/* ==========================================================================
   ParkingBlu — public site (redesign 2026)
   Palette: ParkingBlu blues + orange accent (deploy/customer.json → brand)
   ========================================================================== */

:root {
  --blue-900: #0e3f99;   /* brand.dark    */
  --blue-800: #2185c5;   /* brand.primary */
  --blue-700: #0099e5;   /* brand.mid     */
  --blue-600: #7ecefd;   /* brand.light   */
  --yellow:   #ff8d00;   /* brand.accent (orange) */
  --yellow-d: #e07600;   /* accent hover  */
  --navy:     #08265e;   /* footer / deep band */
  --ink:      #0f172a;
  --muted:    #51607a;
  --line:     #e2e8f0;
  --bg:       #f6f8fb;
  --white:    #ffffff;
  --radius:   16px;
  --shadow:   0 10px 30px rgba(14, 63, 153, .10);
  --shadow-lg:0 24px 60px rgba(14, 63, 153, .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-800);
}
.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: #fff; box-shadow: 0 8px 22px rgba(255, 141, 0, .35); }
.btn--yellow:hover { background: var(--yellow-d); box-shadow: 0 12px 28px rgba(255, 141, 0, .45); }
.btn--blue { background: var(--blue-800); color: #fff; }
.btn--blue:hover { background: var(--blue-900); }
.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-800); }
.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn--whatsapp:hover { background: #1EBE5A; box-shadow: 0 12px 28px rgba(37, 211, 102, .45); }
.btn--whatsapp svg { width: 18px; height: 18px; }
.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(14,63,153,.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:
    radial-gradient(900px 520px at 88% 12%, rgba(126,206,253,.28), transparent 60%),
    radial-gradient(700px 420px at 8% 100%, rgba(0,153,229,.35), transparent 60%),
    linear-gradient(115deg, var(--blue-900) 0%, #1a5fb4 55%, var(--blue-800) 100%);
  overflow: hidden;
}
/* hero photo: right-aligned, fades into the brand gradient so the copy on the left stays readable */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--blue-900) 0%, rgba(14,63,153,.96) 30%, rgba(20,85,175,.62) 55%, rgba(33,133,197,.28) 78%, rgba(33,133,197,.18) 100%),
    linear-gradient(180deg, rgba(14,63,153,.25) 0%, rgba(14,63,153,0) 40%, rgba(14,63,153,.35) 100%),
    url("../img/hero-bg.webp");
  background-size: auto, auto, 85% auto;
  background-position: center, center, right 58%;
  background-repeat: no-repeat;
}
.hero__logo { position: absolute; z-index: 0; right: -40px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: min(52vw, 620px); opacity: .10; pointer-events: none; user-select: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__inner { padding: 96px 0 110px; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,141,0,.16); color: #ffd39a;
  border: 1px solid rgba(255,141,0,.45); 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: #ffd39a; }
.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__icon svg { width: 34px; height: 34px; color: var(--blue-800); }
.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-800); 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-800); 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,141,0,.18); color: #ffd39a; 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), #ff6a00); }
.emcta .container { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 44px 22px; flex-wrap: wrap; }
.emcta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.emcta p { color: rgba(255,255,255,.88); font-weight: 600; }
.emcta__phone { font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: #fff; display: inline-flex; align-items: center; gap: 12px; }
.emcta .btn--blue { background: var(--blue-900); }

/* ---- 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-800); 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-800); }
.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: var(--navy); color: #9fb2cf; padding: 60px 0 26px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer img.flogo { height: 50px; width: auto; 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: #fff; 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-badge--sold { background: #e23b3b; color: #fff; text-transform: uppercase; letter-spacing: .4px; }
.car-badge--reserved { background: #f59e0b; color: #fff; text-transform: uppercase; letter-spacing: .4px; }
.car-card--sold .car-photo img { filter: grayscale(.45); }
.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-desc { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.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(14,63,153,.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(14,63,153,.85); }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-count { position: absolute; bottom: 10px; right: 10px; background: rgba(14,63,153,.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%; }
  /* Keep the nav compact: WhatsApp becomes an icon-only pill next to Emergenza */
  .nav__cta .btn--whatsapp .btn__label { display: none; }
  .nav__cta .btn--whatsapp { padding: 12px 14px; }
}

/* ---- ParkingBlu additions: sedi, convenzioni, contatti ×3 ---- */
.parks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.park { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.park__label { font-family: var(--head); font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-800); }
.park h3 { font-size: 1.3rem; }
.park__addr { color: var(--muted); font-size: .96rem; }
.park__phones { display: grid; gap: 6px; }
.park__phones a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #f5f8fc; font-weight: 600; font-size: .93rem; }
.park__phones a:hover { background: #eaf1fb; color: var(--blue-800); }
.park__phones a.wa { color: #128c4b; }
.park__cta { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.park__cta .btn { flex: 1; padding: 11px 14px; font-size: .9rem; }
.about__panel { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); color: #fff; border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.about__panel div { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.about__panel div:last-child { border-bottom: 0; padding-bottom: 0; }
.about__panel b { font-family: var(--head); font-size: 1.9rem; color: #ffd39a; min-width: 120px; line-height: 1; }
.about__panel span { color: #d9e3f2; font-size: .96rem; }
.conv { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.conv p { color: var(--muted); margin-bottom: 14px; }
.conv__cta { display: flex; flex-direction: column; gap: 12px; }
.conv__cta .btn { width: 100%; }
.contacts-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contacts-3 .contact-card { padding: 26px 24px; display: flex; flex-direction: column; }
.contacts-3 .contact-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.contacts-3 .cinfo { padding: 10px 0; }
.map-wrap--sm { min-height: 240px; margin-top: 18px; }
.map-wrap--sm iframe { min-height: 240px; height: 240px; }
.company-bar { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: center; color: var(--muted); font-size: .93rem; }
.company-bar b { color: var(--ink); font-family: var(--head); }
.company-bar a { color: var(--blue-800); font-weight: 600; }
.footer .fcontacts li { display: flex; flex-wrap: wrap; gap: 6px; font-size: .93rem; }
.footer .fcontacts span { color: #fff; font-weight: 600; }
@media (max-width: 980px) {
  .parks-grid, .contacts-3 { grid-template-columns: repeat(2, 1fr); }
  .conv { grid-template-columns: 1fr; }
  .hero__logo { display: none; }
  .hero::before { background-image: linear-gradient(180deg, rgba(14,63,153,.90) 0%, rgba(14,63,153,.78) 55%, rgba(33,133,197,.55) 100%), url("../img/hero-bg.webp"); background-size: auto, cover; background-position: center, 62% 60%; }
}
@media (max-width: 700px) {
  .parks-grid, .contacts-3 { grid-template-columns: 1fr; }
  .company-bar { flex-direction: column; align-items: flex-start; }
}

/* ---- footer: link legali + banner cookie + placeholder embed (v4) ---- */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 14px; font-size: .85rem; }
.footer__legal a { color: #cdd9ec; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--yellow); }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(8, 38, 94, .25); padding: 18px 20px;
  display: none; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto;
}
.cookie-banner.is-open { display: flex; }
.cookie-banner__text { font-size: .93rem; line-height: 1.5; flex: 1 1 420px; }
.cookie-banner__text a { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 20px; font-size: .9rem; }
.map-wrap { position: relative; }
.consent-ph {
  position: absolute; inset: 0; z-index: 1; background: #eef4fc; display: grid; place-items: center;
  text-align: center; padding: 24px; gap: 12px; align-content: center;
}
.consent-ph p { color: var(--muted); font-size: .93rem; max-width: 360px; margin: 0; }
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 10px 0 8px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: #2b3648; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; display: grid; gap: 6px; }
.legal a { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0 18px; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: #f3f7fc; font-family: var(--head); font-weight: 700; }
@media (max-width: 640px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; } .cookie-banner .btn { width: 100%; justify-content: center; } .cookie-banner__actions { width: 100%; } }

/* ---- prenotazione online (v8) ---- */
.pren-section { padding: 40px 0 84px; }
.pren-section [hidden] { display: none !important; }
.pren-status { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.pren-status a { color: var(--blue-800); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pren-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.pren-form { display: grid; gap: 18px; min-width: 0; }
.pren-step { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px 22px 24px; box-shadow: 0 6px 20px rgba(14, 63, 153, .05); min-width: 0; }
.pren-step__head { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; padding: 0; margin-bottom: 16px; }
.pren-step__num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-900); color: #fff; font-size: .95rem; flex: none; }
.pren-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 14px; }
.pren-grid--dates { margin-top: 18px; }
.pren-field { display: grid; gap: 6px; min-width: 0; }
.pren-field--full { grid-column: 1 / -1; }
.pren-label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.pren-opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.pren-input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #cfd8e6; border-radius: 12px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none;
}
select.pren-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2351607a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.pren-input { resize: vertical; min-height: 88px; line-height: 1.5; }
.pren-input:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(0, 153, 229, .18); }
.pren-input--targa { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pren-datetime { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
.pren-phone { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.pren-hint { color: var(--muted); font-size: .86rem; margin-top: 12px; line-height: 1.5; }
.pren-cards { display: grid; gap: 10px; }
.pren-cards--sedi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pren-cards--posti { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.pren-cards--servizi { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.pren-card {
  position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  border: 1.5px solid #cfd8e6; border-radius: 14px; padding: 14px 16px; background: #fff; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pren-card:hover { border-color: var(--blue-600); }
.pren-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pren-card:has(input:checked) { border-color: var(--blue-800); background: #eef6fd; box-shadow: 0 0 0 1px var(--blue-800) inset; }
.pren-card:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(0, 153, 229, .25); }
.pren-card__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pren-card__title { font-family: var(--head); font-weight: 700; font-size: .98rem; line-height: 1.25; }
.pren-card__sub { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.pren-card__meta { color: var(--muted); font-size: .8rem; }
.pren-card--sede .pren-card__body::before, .pren-card--posto .pren-card__body::before { content: ""; display: none; }
.pren-card--servizio { align-items: center; }
.pren-card--servizio .pren-card__body::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px;
  border: 2px solid #b8c4d6; border-radius: 6px; background: #fff;
}
.pren-card--servizio { padding-left: 48px; }
.pren-card--servizio:has(input:checked) .pren-card__body::before { background: var(--blue-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--blue-800); }
.pren-price { flex: none; font-family: var(--head); font-weight: 800; color: var(--blue-900); background: #eef4fc; border-radius: 999px; padding: 4px 10px; font-size: .88rem; white-space: nowrap; }
.pren-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.pren-seg__item { position: relative; cursor: pointer; }
.pren-seg__item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pren-seg__item span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #cfd8e6; background: #fff; font-weight: 600; font-size: .95rem; transition: all .15s ease; }
.pren-seg__item:hover span { border-color: var(--blue-600); }
.pren-seg__item:has(input:checked) span { background: var(--blue-900); color: #fff; border-color: var(--blue-900); }
.pren-seg__item:has(input:focus-visible) span { box-shadow: 0 0 0 4px rgba(0, 153, 229, .25); }
.pren-seg--sm span { min-height: 38px; padding: 7px 14px; font-size: .88rem; }
.pren-navetta { display: flex; align-items: center; gap: 12px; background: #eef8f1; border: 1px solid #bfe5cc; border-radius: 12px; padding: 12px 14px; color: #14532d; }
.pren-navetta__ico { font-size: 1.4rem; line-height: 1; }
.pren-navetta__text { display: grid; gap: 1px; font-size: .95rem; }
.pren-navetta__text small { color: #2f6b45; font-size: .82rem; }
.pren-navetta--off { background: #f3f5f8; border-color: var(--line); color: var(--muted); }
.pren-navetta--off strong { text-decoration: line-through; }
.pren-navetta--off small { color: var(--muted); }
.pren-toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; cursor: pointer; font-weight: 600; }
.pren-toggle input, .pren-check input { width: 20px; height: 20px; accent-color: var(--blue-800); flex: none; margin-top: 2px; cursor: pointer; }
.pren-fattura { margin-top: 14px; padding: 16px; border: 1px dashed #cfd8e6; border-radius: 12px; background: #fafcff; }
.pren-consensi { display: grid; gap: 12px; }
.pren-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .93rem; line-height: 1.5; color: #2b3648; }
.pren-check a { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
.pren-check em { font-style: normal; color: var(--muted); font-size: .8rem; }
.pren-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.pren-msg { display: none; border-radius: 12px; padding: 12px 14px; font-size: .93rem; line-height: 1.5; margin-top: 4px; background: #eef4fc; color: var(--blue-900); border: 1px solid #c7d8f0; }
.pren-msg:not([hidden]) { display: block; }
.pren-msg--error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.pren-msg--warn { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.pren-msg a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.pren-error { color: #b91c1c; font-size: .88rem; line-height: 1.45; margin-top: 10px; }
.pren-quote { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.pren-quote__toggle { display: none; }
.pren-quote__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pren-quote__title { font-family: var(--head); font-weight: 800; font-size: 1.1rem; }
.pren-avail { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pren-avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pren-avail--wait { background: #f1f5f9; color: var(--muted); }
.pren-avail--ok { background: #e6f7ec; color: #15803d; }
.pren-avail--no { background: #fee2e2; color: #b91c1c; }
.pren-quote__lines { display: grid; gap: 8px; padding-top: 4px; }
.pren-quote__row { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; line-height: 1.4; }
.pren-quote__row span { color: #2b3648; }
.pren-quote__row--muted { color: var(--muted); font-size: .85rem; }
.pren-quote__row--muted:empty { display: none; }
.pren-quote__row--sconto strong { color: #15803d; }
.pren-quote__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px solid var(--blue-900); padding-top: 12px; font-family: var(--head); font-weight: 800; }
.pren-quote__total strong { font-size: 1.7rem; color: var(--blue-900); }
.pren-quote__note { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.pren-quote.is-loading .pren-quote__total strong { opacity: .5; }
.pren-submit { width: 100%; padding: 15px 20px; font-size: 1.02rem; }
.pren-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.pren-done__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 32px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.pren-done__card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.pren-done__card > p { color: #2b3648; line-height: 1.6; }
.pren-done__num { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pren-done__num small { color: var(--muted); font-size: .9rem; }
.pren-done__num b { font-family: var(--head); font-size: 2.2rem; color: var(--blue-900); letter-spacing: -.02em; }
.pren-done__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pren-done__link { font-size: .93rem; color: var(--muted); }
.pren-done__link a { color: var(--blue-800); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pren-riep { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pren-riep > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pren-riep > div:last-child { border-bottom: 0; }
.pren-riep dt { color: var(--muted); font-weight: 600; }
.pren-riep dd { color: var(--ink); display: grid; gap: 1px; }
.pren-riep dd small { color: var(--muted); font-size: .82rem; }
.pren-riep__total { background: #eef4fc; font-family: var(--head); }
.pren-riep__total dd { font-size: 1.25rem; font-weight: 800; color: var(--blue-900); }
.pren-stato { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 11px; font-size: .8rem; font-weight: 700; }
.pren-stato-confermata { background: #e0f2fe; color: #075985; }
.pren-stato-arrivata { background: #dcfce7; color: #166534; }
.pren-stato-completata { background: #f1f5f9; color: #475569; }
.pren-stato-annullata { background: #fee2e2; color: #991b1b; }
.pren-stato-no-show { background: #fef3c7; color: #92400e; }
.pren-terms { padding: 64px 0 80px; background: #fff; border-top: 1px solid var(--line); }
.pren-terms .container { max-width: 860px; }
.pren-terms h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 12px 0 14px; }
.pren-terms__draft { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 12px 16px; font-size: .92rem; margin-bottom: 18px; }
.pren-terms__list { padding-left: 22px; display: grid; gap: 12px; color: #2b3648; line-height: 1.65; font-size: .96rem; }
.pren-terms__list a { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) {
  .pren-layout { grid-template-columns: 1fr; }
  .pren-body--form { padding-bottom: 150px; }
  .pren-body--form .fab { bottom: 160px; }
  .pren-quote { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 80; border-radius: 18px 18px 0 0; box-shadow: 0 -14px 40px rgba(8, 38, 94, .22); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); gap: 8px; max-height: 85vh; overflow: auto; }
  .pren-quote__toggle { display: inline-block; justify-self: center; border: 0; background: transparent; color: var(--blue-800); font: inherit; font-size: .82rem; font-weight: 700; padding: 2px 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .pren-quote__lines, .pren-quote__note, .pren-quote__title { display: none; }
  .pren-quote.is-open .pren-quote__lines { display: grid; }
  .pren-quote.is-open .pren-quote__note, .pren-quote.is-open .pren-quote__title { display: block; }
  .pren-quote__head { justify-content: flex-start; }
  .pren-quote__total { border-top: 0; padding-top: 0; }
  .pren-quote__total strong { font-size: 1.4rem; }
  .pren-quote .pren-error { margin-top: 0; }
  .pren-cards--sedi, .pren-cards--posti { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pren-step { padding: 18px 16px 20px; }
  .pren-grid, .pren-cards--servizi { grid-template-columns: 1fr; }
  .pren-datetime { grid-template-columns: minmax(0, 1fr) 100px; }
  .pren-riep > div { grid-template-columns: 1fr; gap: 2px; }
  .pren-done__card { padding: 22px 18px 24px; }
  .pren-done__cta .btn { width: 100%; }
}
