/* ==========================================================================
   F.lli Zompatore — public site (redesign 2026)
   Palette: navy blue + safety yellow (from brand logo)
   ========================================================================== */

:root {
  --blue-900: #06234a;
  --blue-800: #0a3d77;
  --blue-700: #0e4d93;
  --blue-600: #1565c0;
  --yellow:   #ffce00;
  --yellow-d: #f5b400;
  --ink:      #0f172a;
  --muted:    #51607a;
  --line:     #e2e8f0;
  --bg:       #f6f8fb;
  --white:    #ffffff;
  --radius:   16px;
  --shadow:   0 10px 30px rgba(6, 35, 74, .10);
  --shadow-lg:0 24px 60px rgba(6, 35, 74, .18);
  --maxw:     1180px;
  --font:     'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --head:     'Plus Jakarta Sans', var(--font);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 800; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--yellow); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.text-center { text-align: center; }
.text-center .eyebrow { justify-content: center; }
.text-center .section-head { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--blue-900); box-shadow: 0 8px 22px rgba(255, 206, 0, .35); }
.btn--yellow:hover { box-shadow: 0 12px 28px rgba(255, 206, 0, .45); }
.btn--blue { background: var(--blue-800); color: #fff; }
.btn--blue:hover { background: var(--blue-700); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { background: #fff; color: var(--blue-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue-700); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---- top emergency bar ---- */
.topbar {
  background: var(--blue-900); color: #cdd9ec;
  font-size: .85rem; font-weight: 500;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar a { color: #fff; font-weight: 700; }
.topbar .topbar__left { display: inline-flex; align-items: center; gap: 8px; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: #28d17c; box-shadow: 0 0 0 0 rgba(40,209,124,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(40,209,124,.6)} 70%{box-shadow:0 0 0 8px rgba(40,209,124,0)} 100%{box-shadow:0 0 0 0 rgba(40,209,124,0)} }
.topbar__socials { display: inline-flex; gap: 14px; }
.topbar__socials a { color: #cdd9ec; }
.topbar__socials a:hover { color: var(--yellow); }

/* ---- header / nav ---- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(6,35,74,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--head); font-weight: 600; font-size: .96rem; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--yellow); transition: width .2s ease; }
.nav__links a:hover { color: var(--blue-800); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__phone { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 800; color: var(--blue-800); }
.nav__phone small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav__toggle span { display: block; width: 26px; height: 2.5px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }

/* ---- hero ---- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(115deg, rgba(6,35,74,.95) 0%, rgba(10,61,119,.86) 55%, rgba(6,35,74,.72) 100%),
    url("../img/photo-incidente.jpg") center/cover no-repeat;
}
.hero__inner { padding: 96px 0 110px; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,206,0,.16); color: var(--yellow);
  border: 1px solid rgba(255,206,0,.4); border-radius: 999px;
  padding: 7px 16px; font-family: var(--head); font-weight: 700; font-size: .82rem; letter-spacing: .03em;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin: 22px 0 18px; }
.hero h1 .hl { color: var(--yellow); }
.hero p { font-size: 1.18rem; color: #d9e3f2; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__sub { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; color: #aebfd9; font-size: .92rem; }
.hero__sub strong { color: #fff; }

/* stats band */
.stats { background: var(--blue-900); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--yellow); }
.stat span { color: #b9c7df; font-size: .95rem; font-weight: 500; }

/* ---- services ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.svc::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background: var(--yellow); transform: scaleY(0); transform-origin: bottom; transition: transform .2s ease; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc:hover::before { transform: scaleY(1); }
.svc__icon { width: 64px; height: 64px; border-radius: 14px; background: #eef4fc; display: grid; place-items: center; margin-bottom: 18px; }
.svc__icon img { width: 38px; height: 38px; object-fit: contain; }
.svc h3 { font-size: 1.18rem; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: .96rem; }
.svc__tag { position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 800; font-family: var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); background: #eef4fc; padding: 4px 10px; border-radius: 999px; }

/* ---- about ---- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: -18px; bottom: -18px; background: var(--yellow); color: var(--blue-900);
  border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow-lg); font-family: var(--head);
}
.about__badge b { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about__badge span { font-size: .85rem; font-weight: 700; }
.about p { color: var(--muted); margin-bottom: 16px; }
.about__list { display: grid; gap: 12px; margin-top: 22px; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.about__list svg { flex: 0 0 22px; margin-top: 3px; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; transition: transform .18s, box-shadow .18s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member__av { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: var(--yellow); display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.5rem; }
.member b { display: block; font-family: var(--head); font-size: 1.05rem; }
.member span { color: var(--muted); font-size: .9rem; }
.member a { display: inline-block; margin-top: 8px; color: var(--blue-700); font-weight: 700; font-size: .9rem; }

/* ---- why / features ---- */
.why { background: var(--blue-900); color: #fff; }
.why .section-head h2 { color: #fff; }
.why .section-head p { color: #b9c7df; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 28px; }
.feat__ic { width: 50px; height: 50px; border-radius: 12px; background: rgba(255,206,0,.15); color: var(--yellow); display: grid; place-items: center; margin-bottom: 16px; }
.feat h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feat p { color: #b9c7df; font-size: .95rem; }

/* ---- emergency CTA band ---- */
.emcta { background: linear-gradient(120deg, var(--yellow), #ffb800); }
.emcta .container { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 44px 22px; flex-wrap: wrap; }
.emcta h2 { color: var(--blue-900); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.emcta p { color: #5a4500; font-weight: 600; }
.emcta__phone { font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--blue-900); display: inline-flex; align-items: center; gap: 12px; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.4rem; margin-bottom: 22px; }
.cinfo { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cinfo:last-child { border-bottom: 0; }
.cinfo__ic { flex: 0 0 44px; height: 44px; border-radius: 11px; background: #eef4fc; color: var(--blue-700); display: grid; place-items: center; }
.cinfo b { font-family: var(--head); font-size: 1rem; display: block; }
.cinfo span, .cinfo a { color: var(--muted); font-size: .96rem; }
.cinfo a:hover { color: var(--blue-700); }
.phones { display: grid; gap: 8px; margin-top: 4px; }
.phones a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 10px; background: #f5f8fc; font-weight: 600; color: var(--ink); }
.phones a:hover { background: #eaf1fb; color: var(--blue-800); }
.phones a span { color: var(--muted); font-weight: 500; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---- footer ---- */
.footer { background: #041a38; color: #9fb2cf; padding: 60px 0 26px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer img.flogo { height: 50px; margin-bottom: 18px; }
.footer p { font-size: .95rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { font-size: .95rem; }
.footer ul a:hover { color: var(--yellow); }
.footer__socials { display: flex; gap: 12px; margin-top: 18px; }
.footer__socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; transition: .18s; }
.footer__socials a:hover { background: var(--yellow); color: var(--blue-900); }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px; padding-top: 24px; font-size: .85rem; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--yellow); }

/* floating whatsapp */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.5); transition: transform .18s; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- vehicle catalog (vendita / noleggio) ---- */
.catalog-hero { background: linear-gradient(120deg, var(--blue-900), var(--blue-800)); color: #fff; padding: 60px 0 52px; }
.catalog-hero .eyebrow { color: var(--yellow); }
.catalog-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 12px; }
.catalog-hero p { color: #d9e3f2; max-width: 640px; }
.cars-section { padding: 52px 0 84px; }
.cars-status { text-align: center; color: var(--muted); padding: 64px 18px; font-size: 1.05rem; }
.cars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.car-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.car-photo { position: relative; aspect-ratio: 16 / 10; background: #eef2f8; overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #aebccf; }
.car-badge { position: absolute; top: 12px; left: 12px; background: var(--yellow); color: var(--blue-900); font-family: var(--head); font-weight: 800; font-size: .76rem; padding: 5px 12px; border-radius: 999px; }
.car-badge--rented { left: auto; right: 12px; background: #e23b3b; color: #fff; text-transform: uppercase; letter-spacing: .4px; }
.car-card--rented .car-photo img { filter: grayscale(.25); }
.car-rented-note { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; background: rgba(226,59,59,.1); color: #c62828; font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.car-rented-dot { width: 8px; height: 8px; border-radius: 50%; background: #e23b3b; flex: 0 0 auto; }
.car-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-title { font-family: var(--head); font-weight: 800; font-size: 1.18rem; color: var(--ink); line-height: 1.2; }
.car-version { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.car-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.car-specs span { background: #f1f5fb; border-radius: 8px; padding: 5px 10px; font-size: .82rem; color: #41506a; font-weight: 600; }
.car-price { font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--blue-800); margin-top: auto; }
.car-price small { font-weight: 600; font-size: .85rem; color: var(--muted); }
.car-cta { display: flex; gap: 10px; margin-top: 4px; }
.car-cta .btn { flex: 1; padding: 11px 14px; font-size: .9rem; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: none; border-radius: 50%; background: rgba(6,35,74,.55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s; z-index: 2; }
.car-nav:hover { background: rgba(6,35,74,.85); }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-count { position: absolute; bottom: 10px; right: 10px; background: rgba(6,35,74,.7); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; z-index: 2; }
@media (max-width: 980px) { .cars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cars-grid { grid-template-columns: 1fr; } }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    padding: 14px 22px 22px; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav__links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .topbar__socials { display: none; }
}
@media (max-width: 520px) {
  .services-grid, .why-grid, .team-grid, .footer__top { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}
