/* Agenzia Cars S.r.l. — sito statico */
:root {
  --navy: #16382a;
  --navy-dark: #0f241c;
  --blue: #286838;
  --blue-hover: #1e532c;
  --sky: #eef6ef;
  --sky-2: #dceadc;
  --text: #1c2430;
  --muted: #5a6573;
  --line: #d5e0d7;
  --white: #ffffff;
  --whatsapp: #0e7a3d;
  --whatsapp-hover: #0a6231;
  --star: #b8860b;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(15, 36, 28, 0.08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-h: 4.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; border: 0; display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-hover); }

:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
}
.skip:focus { top: 0; color: var(--white); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--navy-dark);
  color: #e8eef5;
  font-size: 0.875rem;
  line-height: 1.4;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding: 0.45rem 0;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; }
.topbar svg { width: 0.95rem; height: 0.95rem; vertical-align: -0.15em; margin-right: 0.3rem; fill: currentColor; }

/* Header + nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(12, 59, 102, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.logo img { width: 248px; height: auto; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.menu-btn {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.58rem;
  border-radius: 8px;
}
.nav a:hover { background: var(--sky); color: var(--navy); }
.nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--sky);
}

@media (max-width: 980px) {
  .logo img { width: 200px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; }
  .nav a { padding: 0.85rem 0.75rem; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:checked ~ .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .menu-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible + .menu-btn { outline: 3px solid #f0b429; outline-offset: 3px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  cursor: pointer;
}
.btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex: 0 0 auto; }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: var(--sky); color: var(--navy-dark); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); color: #fff; }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--sky); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  background:
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1f5a38 100%);
  color: #fff;
  padding: 3.25rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 48%;
  height: 160%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.05) 40%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe8d6;
  margin: 0 0 0.75rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: #fff;
}
.hero .lead {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  max-width: 40rem;
  color: #e4f0e8;
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}
.stars .glyphs { color: #f0c14b; letter-spacing: 0.08em; font-size: 1.1rem; }

/* Page header for inner pages */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 70%);
  color: #fff;
  padding: 2.25rem 0 2.4rem;
}
.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.page-hero .lead { margin: 0; max-width: 42rem; color: #e4f0e8; }

h1, h2, h3 { font-weight: 750; color: var(--navy); letter-spacing: -0.02em; line-height: 1.25; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

section { padding: 3.25rem 0; }
.section-sky { background: var(--sky); }
.intro { max-width: 46rem; }

/* Cards / grids */
.grid-3, .grid-2, .grid-4, .services-grid {
  display: grid;
  gap: 1.1rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.services-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.3rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card a.more {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--blue);
}
.card a.more:hover { text-decoration: underline; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.icon svg { width: 22px; height: 22px; fill: currentColor; }

.list-plain { margin: 0; padding: 0; list-style: none; }
.list-plain li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.list-plain li:last-child { border-bottom: 0; }
.list-plain .tick {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  color: var(--blue);
}

/* Hours + contact */
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hours th { font-weight: 700; color: var(--navy); width: 42%; }
.hours .closed { color: var(--muted); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 280px;
  background: var(--sky-2);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  margin: 0 0 0.85rem;
  padding-left: 0;
}
.contact-list strong { display: block; color: var(--navy); font-size: 0.85rem; letter-spacing: 0.02em; }
.contact-list a { font-weight: 650; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 2.4rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: #d7e4f0; max-width: 36rem; margin: 0 auto 1.25rem; }
.cta-band .actions { justify-content: center; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #c5d8cc;
  padding: 2.5rem 0 5.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h2 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.4rem; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.1rem;
  font-size: 0.85rem;
  color: #9eb3a6;
}
.legal p { margin: 0 0 0.4rem; }

/* Mobile call bar */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.55rem;
  box-shadow: 0 -6px 20px rgba(15, 36, 28, 0.1);
}
.mobile-cta .btn { flex: 1; min-height: 46px; }

@media (max-width: 980px) {
  .grid-3, .grid-4, .services-grid, .split { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .services-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.25rem 0 2.5rem; }
  section { padding: 2.25rem 0; }
  .site-footer { padding-bottom: 6.25rem; }
  .mobile-cta { display: flex; }
  .topbar-inner { justify-content: center; text-align: center; }
}

@media print {
  .topbar, .menu-btn, .mobile-cta, .cta-band { display: none !important; }
  .site-header, .site-footer, .hero, .page-hero { position: static; box-shadow: none; }
  a[href^="tel"]::after, a[href^="mailto"]::after { content: none; }
  body { color: #000; background: #fff; }
  .map-wrap { display: none !important; }
  .hero-photo img, .photo-frame img, .gallery-grid img { break-inside: avoid; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Offerte e promozioni */
.promo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.promo {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.promo h3 { margin-top: 0; }
.promo p:last-child { margin-bottom: 0; }

/* Galleria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.gallery-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery-grid figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.gallery-ph {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  border: 2px dashed #b7c7d6;
  color: var(--muted);
  padding: 1.2rem 0.9rem;
  border-radius: var(--radius);
  background: var(--sky);
}
.gallery-ph strong { color: var(--navy); font-size: 0.95rem; }
.gallery-ph span { font-size: 0.85rem; }

@media (max-width: 980px) {
  .promo-list, .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .promo-list, .gallery-grid { grid-template-columns: 1fr; }
}

/* Badge UNASCA */
.unasca-section {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.unasca-badge {
  display: flex;
  align-items: center;
  gap: 1.15rem 1.5rem;
  flex-wrap: wrap;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  max-width: 42rem;
  box-shadow: var(--shadow);
}
.unasca-badge:hover { color: var(--navy); }
.unasca-badge img {
  width: 260px;
  height: auto;
  flex: 0 0 auto;
}
.unasca-badge p,
.unasca-badge span {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--navy);
}
.unasca-footer {
  margin: 0 0 1.35rem;
}
.unasca-badge--foot {
  max-width: 36rem;
  background: #fff;
  box-shadow: none;
  padding: 0.75rem 1rem;
  gap: 0.85rem 1.1rem;
}
.unasca-badge--foot img { width: 200px; }
.unasca-badge--foot span { font-size: 0.92rem; color: var(--navy); }
@media (max-width: 640px) {
  .unasca-badge img { width: 220px; }
  .unasca-badge--foot img { width: 180px; }
}

/* Certificazioni e reti */
.cert-section {
  padding: 2.4rem 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.cert-section h2, .cert-footer h2 {
  margin-bottom: 1.1rem;
}
.cert-footer h2 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 0.8rem 1rem;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.cert-card:hover { color: var(--navy); border-color: #b9c9d8; }
.cert-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88px;
  margin-bottom: 0.7rem;
}
.cert-logo img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cert-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
  margin: 0 0 0.3rem;
  color: var(--navy);
}
.cert-card span:not(.cert-logo) {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 500;
}
.cert-footer {
  margin: 0 0 1.4rem;
}
.cert-grid--foot .cert-card {
  box-shadow: none;
  padding: 0.7rem 0.65rem 0.85rem;
}
.cert-grid--foot .cert-logo { height: 70px; }
.cert-grid--foot .cert-logo img { max-height: 70px; }

.ig-placeholder {
  margin-top: 1rem;
  min-height: 180px;
  border: 2px dashed #b7c7d6;
  border-radius: var(--radius);
  background: #fff;
  padding: 1.5rem 1.2rem;
  text-align: center;
  color: var(--muted);
}
.ig-placeholder strong { color: var(--navy); display: block; margin-bottom: 0.4rem; }

@media (max-width: 980px) {
  .cert-grid, .cert-grid--foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cert-grid, .cert-grid--foot { grid-template-columns: 1fr; }
  .cert-logo { height: 100px; }
  .cert-logo img { max-height: 100px; }
}

.cert-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.45;
}
.cert-footer .cert-note {
  color: #e8eef5;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Hero with shop-window photo */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 { max-width: 22ch; }
.slogan {
  margin: 0 0 1rem;
  font-size: clamp(1.12rem, 2.3vw, 1.42rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  color: #e8f6ec;
  max-width: 28rem;
}
.hero-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.18);
  background: #0f241c;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.photo-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.photo-frame figcaption {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.reach-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}
.reach-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
}
.reach-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
}
.footer-brand .logo-foot {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.65rem 0.4rem;
  margin: 0 0 0.9rem;
  text-decoration: none;
}
.footer-brand .logo-foot img {
  width: 200px;
  height: auto;
  display: block;
}
.wa-note { font-size: 0.85rem; color: var(--muted); margin: 0.15rem 0 0; }
.site-footer .wa-note { color: #9eb3a6; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}

.reviews-link { font-weight: 700; }
