/* RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FAF7F3;
  color: #2A2F45;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
a {
  color: #2A2F45;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #DFB03F;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(42,47,69,.06);
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #f0ece8;
}
th {
  background: #EDEDED;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 18px;
  color: #2A2F45;
}
tr:last-child td {
  border-bottom: none;
}

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2A2F45;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.18;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}
p,
.content-wrapper p {
  margin-bottom: 16px;
  color: #4a5268;
  font-size: 1.08em;
}
strong {
  color: #2A2F45;
  font-weight: 700;
}

/* CONTAINERS */
.container {
  width: 100%;
  max-width: 1170px;
  padding: 0 18px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* HEADER */
header {
  background: linear-gradient(90deg, #fff6ec 0%, #f7fafd 100%);
  box-shadow: 0 2px 12px rgba(48, 54, 75, 0.06);
  position: relative;
  z-index: 15;
}
header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 0;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
header nav a.btn-primary {
  margin-left: 4px;
}
header nav a:not(.btn-primary):hover,
header nav a:not(.btn-primary):focus {
  background: #d6e6ef;
  color: #2A2F45;
}
header img[alt="ComprinCor Noleggi"] {
  height: 46px;
  margin-right: 16px;
}

/* PRIMARY BUTTON */
.btn-primary {
  background: #DFB03F;
  color: #2A2F45 !important;
  padding: 11px 24px;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.16s;
  box-shadow: 0 2px 18px rgba(223,176,63,.08);
  text-shadow: none;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #e8c05c;
  color: #2A2F45;
  box-shadow: 0 6px 22px rgba(223,176,63,.20);
}

/* SECTIONS LAYOUT */
main {
  padding-bottom: 48px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: none;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero {
  background: linear-gradient(120deg, #fff8f3 0%, #e1ebf7 100%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 2px 18px rgba(210, 187, 255, .07);
  min-height: 310px;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 8px;
  padding: 16px 0 0 0;
}
.hero h1 {
  color: #2A2F45;
  font-size: 2.8rem;
  text-shadow: 0 1px 10px rgba(255,255,255,0.08);
}
.hero p {
  color: #3a3e52;
  font-size: 1.17rem;
  margin-bottom: 18px;
}

.features {
  background: linear-gradient(100deg, #F5ECFF 0%, #FAFAE9 100%);
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(48,54,75,0.07);
}
.features ul {
  list-style: circle inside;
  font-size: 1.08em;
  padding-left: 0;
}
.features li {
  margin-bottom: 7px;
}

.services {
  background: linear-gradient(110deg, #f6fbfd 0%, #fffbf0 100%);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(42,47,69,.06);
}
.services .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.services .service-list > div {
  flex: 1 1 220px;
  background: #fff;
  padding: 22px 24px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(42,47,69,.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
}

/* Cards & Containers */
.card-container,
.card-grid,
.vehicle-category-grid,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(168, 169, 214, 0.13);
  padding: 24px 20px;
  flex: 1 1 210px;
  min-width: 0;
  transition: box-shadow 0.15s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(42,47,69,0.10);
  transform: translateY(-2px) scale(1.02);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f4f8ff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(168, 169, 214, 0.09);
  margin-bottom: 20px;
  min-width: 0;
  position: relative;
}
.testimonial-card p {
  flex: 1;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.1em;
  color: #27313f;
  margin-bottom: 0;
}
.testimonial-card div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 140px;
}
.testimonial-card strong {
  color: #2A2F45;
  margin-bottom: 5px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.testimonial-card span {
  color: #DFB03F;
  font-size: 1.25em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
}
/* About section - index and about.html  */
.about {
  background: linear-gradient(100deg, #f9f7fa 0%, #e8f3fa 100%);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(42,47,69,.04);
}

/* Contact block styles */
.contact {
  background: #fff9f5;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(42,47,69,0.03);
}
.contact ul {
  list-style: none inside;
  padding: 0;
  margin: 0 0 14px 0;
}
.contact li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05em;
}
.contact img {
  height: 20px;
  width: 20px;
  margin-right: 3px;
}

.confirmation {
  background: #f2fafd;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(42,47,69,0.08);
}
.confirmation h1 {
  color: #2A2F45;
  font-size: 2.1rem;
}

.faq {
  background: #fffaf6;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(42,47,69,.03);
}
.faq ul {
  padding-left: 0;
  list-style: none;
}
.faq li {
  margin-bottom: 10px;
}

/* Legal/policy blocks */
.legal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(42,47,69,0.06);
  padding: 32px 20px;
  margin: 40px 0;
}
.legal h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.legal h2 {
  color: #2A2F45;
  margin-top: 22px;
  font-size: 1.2rem;
}
.legal ul {
  padding-left: 22px;
}

/* TABLES AND VEHICLE GRID */
.vehicle-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0;
}
.vehicle-category-grid > div {
  background: #f7f8fb;
  border-radius: 12px;
  padding: 18px 20px;
  flex: 1 1 220px;
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(42,47,69,.05);
}

/* FOOTER */
footer {
  background: linear-gradient(90deg, #f4f5fc 0%, #ffeede 100%);
  padding: 0 0 0 0;
  width: 100%;
}
footer .container {
  padding: 0 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 48px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 0 24px 0;
}
.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a,
.footer-legal a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #444951;
  font-size: 0.98em;
  border-radius: 8px;
  padding: 5px 7px;
  margin-right: 0;
  transition: background 0.18s, color 0.17s;
}
.footer-nav a:hover,
.footer-legal a:hover {
  color: #DFB03F;
  background: #fff9ed;
}
.contact-info {
  font-size: 0.97em;
  line-height: 1.8;
}
.contact-info img {
  width: 20px;
  height: 20px;
  margin-bottom: -4px;
  margin-right: 5px;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.social-links a {
  display: inline-flex;
  background: #F7F5FF;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.social-links a:hover,
.social-links a:focus {
  background: #DFB03F;
}
.social-links img {
  width: 20px;
  height: 20px;
}

/* MOBILE NAVIGATION - Hamburger + Sidebar */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #2A2F45;
  margin-left: 22px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s;
  z-index: 120;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #eae6fd;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(244,244,252,0.98);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.74,0,.45,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
  will-change: transform, opacity;
  box-shadow: -3px 0 24px rgba(40,40,60,.09);
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform 0.37s cubic-bezier(.64,.31,.65,.99);
  overflow-y: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #2A2F45;
  padding: 12px 24px 2px 0;
  margin-top: 16px;
  margin-bottom: 0;
  margin-right: 10px;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 30;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #DFB03F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 40px;
  align-items: flex-start;
}
.mobile-nav a {
  padding: 17px 30px 13px 32px;
  font-size: 1.19rem;
  width: 100%;
  border-bottom: 1px solid #f0ece8;
  color: #2A2F45;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
  border-radius: 0 10px 10px 0;
}
.mobile-nav a.btn-primary {
  background: #DFB03F;
  color: #2A2F45 !important;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ece9f9;
  color: #DFB03F;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff8e6;
  color: #2A2F45;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  box-shadow: 0 -2px 16px rgba(50,50,64,0.09);
  padding: 22px 12px 22px 16px;
  font-size: 1.04em;
  animation: fadeinBanner 0.8s;
}
@keyframes fadeinBanner {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 11px;
}
.cookie-btn {
  padding: 10px 26px;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.03em;
  font-weight: 700;
  background: #ede7fa;
  color: #2A2F45;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  box-shadow: 0 2px 8px rgba(168, 169, 214, 0.08);
}
.cookie-btn.accept {
  background: #DFB03F;
  color: #2A2F45;
}
.cookie-btn.reject {
  background: #ffe3e3;
  color: #BD5151;
}
.cookie-btn.settings {
  background: #ede7fa;
  color: #2A2F45;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #f9e6bc;
  color: #2A2F45;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffebeb;
  color: #BD5151;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(22,22,32,0.33);
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 44px rgba(42,47,69,0.12);
  padding: 36px 24px 28px 24px;
  max-width: 400px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: popinModal 0.34s;
}
@keyframes popinModal {
  0% { transform: scale(0.96); opacity:0; }
  100% { transform: scale(1); opacity:1; }
}
.cookie-modal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #2A2F45;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  font-size: 1.08em;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #EDEDED;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #DFB03F;
}
.cookie-toggle:before {
  content: "";
  position: absolute;
  top: 3px; left: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.16s;
  box-shadow: 0 1px 3px rgba(80,70,80,0.08);
}
.cookie-toggle:checked:before {
  left: 19px;
}
.cookie-actions {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.cookie-modal-content .close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #2A2F45;
  cursor: pointer;
  outline: none;
}
.cookie-modal-content .close:hover,
.cookie-modal-content .close:focus {
  color: #DFB03F;
}

/* ANIMATIONS */
.fade-in {
  animation: fade-in 0.4s ease-in;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* FORMATTING extras for accessibility */
:focus {
  outline: 2px solid #DFB03F;
  outline-offset: 3px;
}
::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }

/* MEDIA QUERIES: Responsive Design */
@media (max-width: 1100px) {
  .container { max-width: 970px; }
}
@media (max-width: 900px) {
  .footer-nav, .footer-legal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.08rem; }

  .container, footer .container {
    padding: 0 8px;
    max-width: 100vw;
  }
  .content-wrapper {
    padding: 0 2px;
    gap: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding: 10px 0 8px 0;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .social-links {
    margin-top: 18px;
    gap: 16px;
  }
  section, .section {
    margin-bottom: 38px;
    padding: 26px 7px;
  }
  .features, .about, .services, .faq, .legal, .contact, .confirmation, .contact {
    border-radius: 0;
    padding: 16px 6px;
  }
  .hero {
    min-height: 210px;
    border-radius: 0 0 22px 22px;
    padding-top: 12px;
  }
  .hero .content-wrapper {
    padding-top: 8px;
  }
  .services .service-list,
  .vehicle-category-grid,
  .card-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card,
  .card,
  .services .service-list > div {
    min-width: 0;
    width: 100%;
    padding: 18px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .card {
    flex-basis: 100%;
    margin-bottom: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .footer-nav, .footer-legal {
    flex-direction: column;
    gap: 4px;
  }
  .footer-nav a, .footer-legal a {
    padding: 6px 2px;
  }
  .contact-info {
    font-size: 0.93em;
    margin-top: 12px;
  }
  .confirmation h1 { font-size: 1.4rem; }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 18px 6px 18px 6px;
    font-size: 0.95em;
  }
}
@media (max-width: 490px) {
  h1 { font-size: 1.16rem; }
  h2 { font-size: 1rem; }
  .hero {
    min-height: 130px;
    padding: 6px 0 12px 0;
  }
  .services .service-list > div,
  .card,
  .testimonial-card {
    padding: 13px 5px;
    min-width: 0;
  }
  .legal {
    padding: 14px 3px;
  }
  .cookie-modal-content {
    padding: 15px 5px 16px 7px;
    border-radius: 14px;
  }
}

/* MISCELLANEOUS -- highlight table rows and implement card microinteractions */
table tbody tr:hover {
  background: #f7ece8;
  transition: background 0.18s;
}

/* Scrollbar soft pastel */
::-webkit-scrollbar { width: 9px; background: #F8F9FF; }
::-webkit-scrollbar-thumb { background: #EDEDED; border-radius: 6px; }

/* Subtle shadow on hover for buttons */
.btn-primary:active,
.card:active,
.cookie-btn:active {
  box-shadow: 0 4px 18px rgba(42,47,69,0.17);
}

/* Prevent overlap & always proper spacing */
.card, .testimonial-card, .services .service-list > div, .vehicle-category-grid > div {
  margin-bottom: 20px;
}
section:last-child, .section:last-child {
  margin-bottom: 0;
}

/* Z-index layering for overlays */
.mobile-menu,.cookie-modal, .cookie-banner {
  z-index: 9998;
}

/* Print minimal styling for privacy/policy pages */
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  section, .legal { margin: 0; padding: 0; background: #fff; box-shadow: none }
  body { background: #fff; color: #222; }
}
