/* RESET & BASE STYLES ------------------------------------------------- */
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;
  vertical-align: baseline;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
}
html {
  height: 100%;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  min-height: 100%;
  background: #F6F3ED;
  color: #34355B;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
a {
  color: #34355B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D9A441;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
ul, ol {
  padding-left: 1.2em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  color: #34355B;
  margin-bottom: 16px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
p, li, address, blockquote { font-size: 1rem; line-height: 1.65; }
strong, b { font-weight: 700; }

/* COLOR & BRAND SCHEME --------------------------------------------------- */
:root {
  --color-primary: #34355B;
  --color-secondary: #D9A441;
  --color-accent: #F6F3ED;
  --color-playful1: #6DE6BF;   /* teal-mint */
  --color-playful2: #F25E70;   /* pink-red, accentful */
  --color-playful3: #FFD166;   /* playful yellow */
  --color-cta: #D9A441;
  --color-cta-hover: #FFD166;
  --box-shadow-1: 0 2px 16px 0 rgba(34,34,34,0.12);
  --box-shadow-float: 0 10px 28px 0 rgba(34,34,34,0.14);
}

/* CONTAINER & LAYOUT ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 24px;
  box-shadow: var(--box-shadow-1);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
    border-radius: 18px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  width: 100%;
  max-width: 800px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--box-shadow-1);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
  min-width: 260px;
  padding: 24px;
}
.card:hover {
  box-shadow: var(--box-shadow-float);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* FEATURE/TESTIMONIAL/ITEM STRUCTURES ------------------------------------ */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffbe6;
  border-left: 6px solid var(--color-secondary);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(34,34,34,0.05);
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #23234a;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow-1);
  font-family: 'Roboto', Arial, sans-serif;
  min-width: 260px;
  position: relative;
  transition: box-shadow 0.28s, transform 0.15s;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #23234a;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #F25E70;
  font-size: 0.95rem;
  font-weight: 800;
  margin-left: 10px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(53,77,126,0.12);
  transform: scale(1.04) rotate(-1.5deg);
}

@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
  }
}

/* FUN PLAYFUL DECOR ELEMENTS --------------------------------------------- */
h1:after,
h2:after,
h3:after {
  content: '';
  display: block;
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: var(--color-playful2);
  position: relative;
  margin-top: 8px;
  animation: bouncing-bar 1.1s infinite alternate; 
}

@keyframes bouncing-bar {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}
h1, h2 {
  background: linear-gradient(90deg, var(--color-secondary) 50%, var(--color-playful1) 100%);
  background-clip: text;-webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* BUTTONS & CTA ---------------------------------------------------------- */
.cta-primary, .cta-secondary, .cookie-banner button, .cookie-modal button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 13px 34px;
  margin-top: 10px;
  margin-bottom: 7px;
  border-radius: 34px;
  border: none;
  font-size: 1.14rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.17s, color 0.2s, transform 0.14s;
  box-shadow: 0 2px 12px 0 rgba(220,132,70,0.11);
  outline: none;
}
.cta-primary {
  background: var(--color-cta);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(60,54,92,0.13);
  letter-spacing: 0.03em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #F25E70;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
}
.cta-secondary {
  background: var(--color-playful1);
  color: var(--color-primary);
  font-weight: 800;
  border: 2px solid var(--color-primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-playful2);
  color: #fff;
  border-color: var(--color-playful2);
  transform: scale(1.05);
}

button:active, .cta-primary:active, .cta-secondary:active {
  filter: brightness(0.93);
}

/* MAIN NAVIGATION -------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(100,100,120,0.08);
  position: sticky;
  top: 0;
  z-index: 1099;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0;
  width: 100%;
}
.main-nav > a img {
  width: 60px;
  height: auto;
  margin-right: 12px;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.main-nav ul li {
  margin: 0;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 17px;
  border-radius: 24px;
  transition: background 0.13s, color 0.13s;
}
.main-nav ul li a:not(.cta-primary):hover, .main-nav ul li a:not(.cta-primary):focus {
  background: var(--color-playful1);
  color: var(--color-primary);
}

/* Hide burger by default (shown on mobile) */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 990px) {
  .main-nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 24px;
    right: 18px;
    background: var(--color-playful2);
    color: #fff;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    z-index: 1102;
    transition: background 0.18s;
    box-shadow: 0 2px 8px 0 rgba(220,96,120,0.13);
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--color-secondary);
  }
  .main-nav > a img {
    margin-left: 12px;
    width: 52px;
  }
}
/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(52, 53, 91, 0.97);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.42s cubic-bezier(.41,1.5,.55,1);
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  display: block;
  background: var(--color-playful2);
  color: #fff;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  position: absolute;
  top: 24px;
  right: 20px;
  z-index: 1210;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 84px 36px 16px 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 16px 14px 8px 0;
  border-radius: 16px;
  width: 100%;
  transition: background 0.14s, transform 0.11s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-playful1);
  color: var(--color-primary);
  transform: translateX(7px) scale(1.03);
}
@media (min-width: 991px) {
  .mobile-menu,
  .mobile-menu-toggle,
  .mobile-menu-close {
    display: none !important;
  }
}

/* FOOTER ----------------------------------------------------------------- */
footer {
  background: #34355B;
  color: #fff;
  padding: 36px 0 12px 0;
  text-align: center;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 3px;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD166;
}
footer address {
  font-size: 0.93rem;
  color: #fff;
  display: block;
  margin-top: 5px;
  font-style: normal;
}

/* TABLES ----------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(178,161,59,0.08);
  margin: 20px 0;
  overflow: hidden;
}
thead {
  background: var(--color-secondary);
  color: #fff;
}
th, td {
  padding: 16px 12px;
  text-align: left;
  font-size: 1.06rem;
}
tbody tr:nth-child(even) {
  background: #FFF9EB;
}
tr { border-bottom: 1px solid #f6e4b5; }

/* PRICE & CALLOUTS ------------------------------------------------------- */
.price {
  display: inline-block;
  background: var(--color-playful2);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 5px 20px;
  border-radius: 23px 23px 23px 6px;
  margin: 13px 0 2px 0;
  box-shadow: 0 1px 7px 0 rgba(242,94,112,0.08);
  letter-spacing: 0.028em;
  animation: float-price 0.9s ease-in-out infinite alternate;
}
@keyframes float-price {
  from { transform: translateY(0px); }
  to { transform: translateY(-5px) scale(1.07); }
}

/****** DEV: FLEXBOX CARDS FOR PREVIEWS *****/
.service-teasers, .detailed-services-list, .car-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 18px 0 10px 0;
}
.service-teasers > div, .detailed-services-list > div, .car-types-grid > div {
  flex: 1 1 250px;
  min-width: 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(220,164,65,0.09);
  padding: 24px 20px 18px 20px;
  margin-bottom: 10px;
  position: relative;
  transition: transform 0.14s, box-shadow 0.14s;
  font-family: 'Roboto', Arial, sans-serif;
  border-left: 8px solid var(--color-playful1);
}
.service-teasers > div:hover, .detailed-services-list > div:hover, .car-types-grid > div:hover {
  box-shadow: var(--box-shadow-float);
  transform: scale(1.045) rotate(-1.9deg);
}
@media (max-width: 900px) {
  .service-teasers, .detailed-services-list, .car-types-grid {
    flex-direction: column;
    gap: 14px;
  }
  .service-teasers > div, .detailed-services-list > div, .car-types-grid > div {
    min-width: 100%;
  }
}

/********** ADDITIONAL MOBILE ADJUSTMENTS **********/
@media (max-width: 640px) {
  .container {
    padding: 0 6px;
    max-width: 100%;
  }
}

/***** SOCIAL LINKS (about) *****/
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 22px;
}
.social-links a {
  display: inline-flex;
  background: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  box-shadow: 0 1px 6px 0 rgba(67,41,140,0.10);
  align-items: center;
  justify-content: center;
  transition: background 0.13s, transform 0.13s;
}
.social-links a:hover {
  background: var(--color-playful2);
  transform: scale(1.09) rotate(-5deg);
}
.social-links img {
  width: 26px; height: 26px;
  display: block;
}

/* FAQ ACCORDION ---------------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 20px;
}
.faq-accordion > div {
  background: #fffbe6;
  border-radius: 14px;
  box-shadow: 0 1px 7px 0 rgba(217,164,65,0.06);
  border-left: 7px solid var(--color-playful1);
  padding: 18px 22px 13px 22px;
  transition: background 0.14s;
}
.faq-accordion > div:hover {
  background: #FFF9EB;
}
.faq-accordion h2 {
  font-size: 1.16rem;
  margin-bottom: 9px;
  background: none;
  color: var(--color-playful2);
  -webkit-text-fill-color: initial;
}

/* ADDRESS BLOCK (contatti) ----------------------------------------------- */
.address-block {
  padding: 18px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(53,77,126,0.07);
  margin-bottom: 14px;
}

/* COOKIE CONSENT BANNER -------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 4001;
  background: #fffbe6;
  color: #34355B;
  box-shadow: 0 -2px 18px 0 rgba(53,53,91,0.08);
  padding: 20px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 58px;
  font-size: 1rem;
  border-radius: 20px 20px 0 0;
  animation: cookie-in 0.68s 0.1s cubic-bezier(.1,1,.80,1.18);
}
@keyframes cookie-in {
  from { transform: translateY(80px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner span {
  flex: 1 1 auto;
  min-width: 180px;
}
.cookie-banner button {
  margin: 0 5px;
  font-size: 1rem;
  border-radius: 21px;
  font-weight: 700;
  padding: 11px 20px;
  min-width: 100px;
  border: none;
  cursor: pointer;
  background: var(--color-secondary);
  color: #fff;
  transition: background 0.13s, color 0.13s, transform 0.12s;
}
.cookie-banner button:active {
  filter: brightness(0.93);
}
.cookie-banner button.settings {
  background: var(--color-playful2);
}
.cookie-banner button.reject {
  background: var(--color-playful1);
  color: var(--color-primary);
}
.cookie-banner button.settings:hover {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner button.accept:hover {
  background: var(--color-playful2);
}
.cookie-banner button.reject:hover {
  background: #FFD166;
  color: #34355B;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 4px;
    font-size: 0.98rem;
  }
  .cookie-banner span {
    min-width: unset;
    margin-bottom: 7px;
  }
}

/* COOKIE MODAL ----------------------------------------------------------- */
.cookie-modal-backdrop {
  position: fixed; top:0;left:0;right:0;bottom:0;
  z-index: 4100;
  background: rgba(52,53,91,0.37);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #34355B;
  border-radius: 24px;
  max-width: 410px;
  min-width: 270px;
  min-height: 280px;
  box-shadow: 0 12px 28px rgba(53,53,91,0.13);
  padding: 36px 24px 24px 24px;
  position: relative;
  z-index: 4120;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.32s cubic-bezier(.55,1.1,.48,1.15);
}
@keyframes cookie-modal-in {
  from{ opacity:0; transform: scale(0.86) translateY(52px); }
  to{ opacity:1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.24rem;
  color: var(--color-playful2);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 1.06rem;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
  margin-right: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category.disabled label {
  color: #b7b7b7;
  text-decoration: line-through;
  cursor: not-allowed;
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal button {
  min-width: 0;
  padding: 10px 17px;
  font-size: 1rem;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 10px;
  background: none;
  color: var(--color-playful2);
  border: none;
  font-size: 1.32rem;
  cursor: pointer;
  padding: 2px 7px;
}
.cookie-modal .close-modal:hover {
  color: var(--color-secondary);
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 20px 8px 18px 8px;
    border-radius: 15px;
  }
}

/* MISCELLANEOUS ---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 11px;
  background: #fff;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: #ffd166;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F25E70;
}

blockquote {
  font-style: italic;
  background: #fff9eb;
  padding: 10px 17px;
  border-radius: 9px;
  margin-bottom: 10px;
}

/* Additional Flex Wrapping for .customer-benefits-grid, .service-highlights, .service-comparison */
.customer-benefits-grid, .service-highlights, .service-comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CONTACT-PROMPT (faq page) ---------------------------------------------- */
.contact-prompt {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(127,132,220,0.09);
  padding: 13px 18px 10px 18px;
  margin-top: 14px;
}
.contact-prompt a {
  color: var(--color-playful2);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.13s;
}
.contact-prompt a:hover {
  color: var(--color-secondary);
}

/* VISUAL ANIMATIONS: Pulse on Load for CTA */
.cta-primary, .cta-secondary {
  animation: cta-pop 0.79s cubic-bezier(.9,1.1,.4,1.12);
}
@keyframes cta-pop {
  0% { transform: scale(0.93); }
  60%{ transform: scale(1.08); }
  80%{ transform: scale(0.96); }
  100%{ transform: scale(1); }
}

/* TYPOGRAPHY SCALE (responsiveness) -------------------------------------- */
@media (max-width: 560px) {
  h1 {font-size: 1.35rem;}
  h2 {font-size: 1.07rem;}
  h3 {font-size: 0.99rem;}
  .cta-primary, .cta-secondary { font-size: 1rem; padding: 10px 13px; }
  th, td { font-size: 1rem; padding: 10px 5px; }
}

/* ENSURE NO OVERLAPS & GAPS EVERYWHERE ----------------------------------- */
section, .card, .testimonial-card, .feature-item, .card-container, .car-types-grid > div, .detailed-services-list > div, .service-teasers > div {
  margin-bottom: 20px;
}
.section:last-child, .card:last-child, .testimonial-card:last-child, .feature-item:last-child { margin-bottom: 0; }

/* ACCESSIBILITY ---------------------------------------------------------- */
:focus-visible {
  outline: 2.5px dashed var(--color-playful2) !important;
  outline-offset: 2px;
}

/* Hide visually but keep accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
