:root {
  --ink: #14213d;
  --ink-2: #46506a;
  --muted: #6b7079;
  --paper: #f6f8fc;
  --white: #ffffff;
  --line: #dfe4ee;
  --brand: #c8161d;      /* rosso logo */
  --navy: #1d3a8e;       /* blu logo */
  --navy-dark: #142a6b;
  --on-dark-accent: #ff8a8f;
  --brand-dark: #a31016;
  --wood: #8a5a32;
  --sand: #eaeff8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 35, 40, .08);
  --font-head: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.band { background: var(--sand); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: .8em; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--brand); cursor: pointer; font: inherit; font-weight: 600; transition: background .2s, transform .2s, color .2s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(31,35,40,.92); backdrop-filter: blur(10px); color: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .08em; }
.brand small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { text-decoration: none; font-size: .95rem; opacity: .85; }
.menu a:not(.btn):hover { opacity: 1; color: var(--on-dark-accent); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(31,35,40,.96) 0%, rgba(31,35,40,.82) 45%, rgba(31,35,40,.35) 100%),
    url("img/hero-cestello.jpg?v=2") center/cover no-repeat,
    repeating-linear-gradient(90deg, #3a3330 0 60px, #332d2a 60px 62px),
    #2b2623; }
.hero-inner { position: relative; padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 9vw, 100px); }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 800; max-width: 14ch; }
.hero .eyebrow { color: var(--on-dark-accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 56ch; color: rgba(255,255,255,.85); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 56px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-head); font-size: 2rem; color: var(--on-dark-accent); }
.hero-facts span { font-size: .9rem; color: rgba(255,255,255,.7); }

/* Grid & cards */
.grid { display: grid; gap: 20px; }
.services { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.ico { width: 52px; height: 52px; border-radius: 12px; background: #e8edf8; display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > div > p { color: var(--ink-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { background: var(--white); border-radius: 12px; padding: 16px 18px 16px 52px; position: relative; color: var(--ink-2); }
.checks li strong { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { border-top: 3px solid var(--brand); padding-top: 20px; }
.steps span { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--line); display: block; line-height: 1; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: .95rem; }

/* Gallery */
.gallery { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--ink); aspect-ratio: 4/3; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; flex-direction: column; }
.gallery figcaption span { font-size: .85rem; opacity: .8; }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact .split > div > p { color: rgba(255,255,255,.75); }
.contact .eyebrow { color: var(--on-dark-accent); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list li > span:first-child { color: rgba(255,255,255,.5); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.contact-list a { text-decoration: none; color: var(--on-dark-accent); }
.contact-list a:hover { text-decoration: underline; }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fcfbf9; width: 100%; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,58,142,.18); }
.form .invalid { border-color: #c62828; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-msg { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-msg.err { color: #c62828; }
.form-msg.ok { color: #2e7d32; }

/* Footer */
.footer { background: #16191d; color: rgba(255,255,255,.6); padding: 36px 0; font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.footer .brand { color: #fff; }

/* WhatsApp float */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 70px 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .3s; box-shadow: 0 20px 30px rgba(0,0,0,.3); }
  .menu.open { transform: none; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu .btn { margin-top: 14px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form .row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  .steps, .gallery { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ===== Identità visiva Testini (blu + rosso dal logo) ===== */
h1, h2, h3 { text-transform: uppercase; letter-spacing: .01em; }
h2 { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); }
.hero h1, .contact h2 { color: #fff; }

.nav { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 2px 16px rgba(20,33,61,.08); border-bottom: 3px solid var(--brand); }
.nav-inner { height: 76px; }
.nav .logo { height: 58px; width: auto; }
.menu a:not(.btn) { color: var(--navy); font-weight: 600; opacity: 1; }
.menu a:not(.btn):hover { color: var(--brand); }
.burger span { background: var(--navy); }
html { scroll-padding-top: 86px; }

.hero { background: var(--navy-dark); }
.hero-bg { background:
    linear-gradient(100deg, rgba(20,42,107,.97) 0%, rgba(29,58,142,.85) 50%, rgba(29,58,142,.4) 100%),
    url("img/hero-cestello.jpg?v=2") center/cover no-repeat,
    repeating-linear-gradient(90deg, #1d3a8e 0 60px, #1a3480 60px 62px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--brand) 0 50%, #fff 50% 52%, var(--brand) 52%); }

.ico svg { stroke: var(--navy); }
.card { border-top: 4px solid var(--navy); }
.card:hover { border-color: transparent; border-top-color: var(--brand); }
.steps li { border-top-color: var(--navy); }
.steps li:nth-child(even) { border-top-color: var(--brand); }
.steps span { color: #c9d3ea; }
.checks li::before { background-color: var(--navy); }

.contact { background: var(--navy); }
.btn-ghost { color: #fff; }

.footer { background: #fff; color: var(--ink-2); border-top: 4px solid var(--navy); }
.footer-logo img { height: 64px; width: auto; }

@media (max-width: 760px) {
  .nav .logo { height: 46px; }
  .menu { inset: 79px 0 auto 0; background: #fff; box-shadow: 0 20px 30px rgba(20,33,61,.15); }
  .menu a:not(.btn) { border-bottom-color: var(--line); }
}

/* ===== Foto reali ===== */
.hero-bg { background:
    linear-gradient(100deg, rgba(20,42,107,.96) 0%, rgba(29,58,142,.88) 40%, rgba(29,58,142,0) 62%),
    url("img/hero-cestello-pc.jpg") right center/auto 100% no-repeat, #1d3a8e; }
@media (max-width: 760px) {
  .hero-bg { background: linear-gradient(180deg, rgba(20,42,107,.75), rgba(20,42,107,.95)), url("img/hero-cestello-tel.jpg") center bottom/cover no-repeat, var(--navy-dark); }
}

/* Perché sceglierci con foto */
.why { align-items: center; }
.why-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.why-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.why-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(20,33,61,.85)); }
.why .checks { margin-top: 24px; }

/* Prima / dopo */
.ba-wrap { align-items: center; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #fff; color: var(--navy); border: 1px solid #c9d3ea; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.ba { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; max-height: 640px; width: 100%; justify-self: center; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.ba-handle::after { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; pointer-events: none; }
.ba-l { left: 14px; background: var(--navy); }
.ba-r { right: 14px; background: var(--brand); }

/* Galleria */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -20px 0 28px; }
.chip { font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #c9d3ea; background: #fff; color: var(--navy); cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.gallery figure { aspect-ratio: auto; cursor: zoom-in; background: var(--navy-dark); }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.hide { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { background: linear-gradient(transparent, rgba(20,33,61,.85)); }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; } .gallery figcaption span { display: none; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,18,40,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lb-cap { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; color: #fff; margin: 0; font-weight: 600; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 50px; height: 50px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: var(--brand); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ===== Smartphone ===== */
.mbar { display: none; }
input, select, textarea, button { font-size: 16px; } /* evita lo zoom automatico su iPhone */
a, button, summary, .chip { -webkit-tap-highlight-color: rgba(200,22,29,.15); }
.ba { touch-action: pan-y; cursor: ew-resize; }
.ba input { pointer-events: none; }

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .wrap, .narrow { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  h2 { font-size: 2.1rem; }

  /* Header */
  .nav-inner { height: 64px; }
  .nav .logo { height: 42px; }
  .burger { padding: 10px; margin-right: -10px; }
  .menu { inset: 67px 0 auto 0; padding-bottom: 24px; }
  .menu a:not(.btn) { font-size: 1.15rem; padding: 16px 4px; }
  .menu .btn { min-height: 52px; }

  /* Hero */
  .hero-bg { background:
      linear-gradient(180deg, rgba(20,42,107,.95) 0%, rgba(20,42,107,.88) 50%, rgba(20,42,107,.35) 78%, rgba(20,42,107,.75) 100%),
      url("img/hero-cestello-tel.jpg") center bottom/cover no-repeat, var(--navy-dark); }
  .hero-inner { min-height: calc(100svh - 64px - 66px); display: flex; flex-direction: column; padding: 40px 0 24px; }
  .hero .eyebrow { font-size: .72rem; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .lead { font-size: 1.02rem; }
  .hero-cta { flex-direction: column; margin: 22px 0 auto; }
  .hero-cta .btn { width: 100%; min-height: 52px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 0; margin-top: 32px; }
  .hero-facts li { background: rgba(20,42,107,.75); backdrop-filter: blur(4px); border-radius: 10px; padding: 10px 8px; text-align: center; }
  .hero-facts strong { font-size: 1.5rem; }
  .hero-facts span { font-size: .72rem; line-height: 1.25; }

  /* Servizi: schede compatte con icona a sinistra */
  .services { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 16px; border-top-width: 1px; border-left: 4px solid var(--navy); }
  .card:nth-child(even) { border-left-color: var(--brand); }
  .card:hover { transform: none; }
  .ico { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .card h3 { margin: 2px 0 4px; font-size: 1.2rem; }
  .card p { font-size: .92rem; }

  /* Perché sceglierci */
  .why-photo img { aspect-ratio: 4/3; }
  .checks li { padding: 14px 14px 14px 46px; font-size: .95rem; }
  .checks li::before { left: 14px; top: 17px; }

  /* Metodo: lista verticale */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; border-top: 0; border-left: 3px solid var(--navy); padding: 0 0 22px 16px; }
  .steps li:nth-child(even) { border-left-color: var(--brand); }
  .steps span { grid-row: span 2; font-size: 2rem; margin: 0; }
  .steps h3 { margin-bottom: 4px; }
  .steps p { margin: 0; }

  /* Prima / dopo */
  .ba { max-height: 72svh; order: -1; }
  .ba-wrap { gap: 24px; }
  .ba-handle::after { width: 52px; height: 52px; }

  /* Galleria */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: -8px -16px 20px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; min-height: 42px; }
  .gallery figure.wide { grid-column: span 2; }

  /* Lightbox: comandi in basso, raggiungibili col pollice */
  .lightbox img { max-width: 100vw; max-height: 72svh; border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); transform: none; width: 56px; height: 56px; }
  .lb-cap { bottom: calc(92px + env(safe-area-inset-bottom)); padding: 0 16px; font-size: .95rem; }

  /* FAQ */
  summary { padding: 16px 48px 16px 18px; }
  details p { padding: 0 18px 16px; }

  /* Contatti */
  .contact-list a.tel { font-size: 1.35rem; font-weight: 600; }
  .form { padding: 20px; gap: 14px; }
  .form input, .form select, .form textarea { padding: 14px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; min-height: 54px; }

  .footer { padding: 28px 0; text-align: center; }
  .footer-inner { justify-content: center; flex-direction: column; }

  /* Barra contatti fissa */
  .wa-float { display: none; }
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
          background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,33,61,.12);
          padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 66px;
            text-decoration: none; color: var(--navy); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .mbar svg { width: 24px; height: 24px; fill: currentColor; }
  .mbar-wa { color: #128c4b !important; }
  .mbar-cta { background: var(--brand); color: #fff !important; }
  .mbar a:active { background: #eef2fa; }
  .mbar-cta:active { background: var(--brand-dark) !important; }
}
@media (max-width: 760px) { .mbar-cta svg { fill: none; } }
@media (max-width: 760px) { .hero-inner { min-height: min(calc(100svh - 64px - 66px), 760px); } }

/* ===== SEO: h1 descrittivo + slogan grafico ===== */
.hero h1.eyebrow { font-family: var(--font-body); font-size: .8rem; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; max-width: none; margin: 0 0 1em; color: var(--on-dark-accent); }
.hero .slogan { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; max-width: 14ch; margin: 0 0 .4em; color: #fff; }

/* Zone servite */
.zones { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.zone-group { background: #fff; border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--navy); }
.zone-group:nth-child(2) { border-top-color: var(--brand); }
.zone-group h3 { color: var(--navy); margin-bottom: 16px; }
.zone-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zone-list li { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .95rem; color: var(--ink); }
.zone-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.zone-list li strong { color: var(--navy); }
.zone-note { margin: 18px 0 0; font-size: .92rem; color: var(--ink-2); }
.zone-note a { color: var(--brand); font-weight: 600; }

@media (max-width: 960px) { .zones { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hero h1.eyebrow { font-size: .72rem; }
  .hero .slogan { font-size: clamp(2.3rem, 11vw, 3rem); }
  .zone-group { padding: 20px; }
  .zone-list li { font-size: .9rem; padding: 6px 12px; }
}

/* ===== Pagine servizio ===== */
.page-hero { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; padding: clamp(36px, 6vw, 70px) 0 clamp(32px, 5vw, 56px); position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--brand); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 20ch; }
.page-hero .lead { max-width: 62ch; }
.page-hero .hero-cta { margin: 24px 0 0; }
.crumbs { font-size: .85rem; margin: 0 0 18px; color: rgba(255,255,255,.7); }
.crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.crumbs span { margin: 0 6px; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--navy); margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.04rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); font-weight: 600; }

.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.aside-box { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.aside-box h2 { font-size: 1.5rem; margin-bottom: .4em; }
.aside-box p { color: var(--ink-2); font-size: .95rem; }
.aside-box .btn { width: 100%; margin-top: 10px; }
.aside-box .tel-big { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--navy); text-decoration: none; margin-top: 4px; }
.aside-box .tel-big small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 500; display: block; text-transform: uppercase; letter-spacing: .06em; }

.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 1.6em 0; }
.photo-row figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--navy-dark); position: relative; aspect-ratio: 3/4; }
.photo-row figure.land { aspect-ratio: 4/3; }
.photo-row img { width: 100%; height: 100%; object-fit: cover; }
.photo-row figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(20,33,61,.85)); }

.steps-list { counter-reset: st; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: st; position: relative; padding: 2px 0 14px 52px; }
.steps-list li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; }
.steps-list li:nth-child(even)::before { background: var(--brand); }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related a { display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--ink); transition: .2s; }
.related a:hover { border-left-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.related strong { font-family: var(--font-head); text-transform: uppercase; font-size: 1.2rem; color: var(--navy); display: block; }
.related span { font-size: .9rem; color: var(--ink-2); }

.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 6px 0 0; color: rgba(255,255,255,.8); }

/* link "approfondisci" nelle schede servizi della home */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card .more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--brand); text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* footer: link servizi */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.footer-links a { color: var(--navy); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 960px) {
  .svc-layout { grid-template-columns: 1fr; }
  .aside-box { position: static; }
}
@media (max-width: 760px) {
  .page-hero .hero-cta { flex-direction: column; }
  .page-hero .hero-cta .btn { width: 100%; }
  .card .more { grid-column: 2; margin-top: 6px; }
  .photo-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .photo-row figure.land { grid-column: span 2; }
  .cta-band .btn { width: 100%; }
}
.page-hero { background:
    linear-gradient(100deg, rgba(20,42,107,.97) 0%, rgba(29,58,142,.9) 48%, rgba(29,58,142,.35) 100%),
    var(--hero-img, none) center/cover no-repeat, var(--navy-dark); }
@media (max-width: 760px) {
  .page-hero { background: linear-gradient(180deg, rgba(20,42,107,.93), rgba(20,42,107,.88)), var(--hero-img, none) center/cover no-repeat, var(--navy-dark); }
}

/* Altri prima e dopo */
.ba-more { margin-top: 56px; }
.ba-more-title { font-size: 1.6rem; margin: 0 0 20px; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.ba-item .ba { max-height: none; }
.ba-item h3 { margin: 14px 0 4px; font-size: 1.3rem; }
.ba-item p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 720px) {
  .ba-more { margin-top: 40px; }
  .ba-grid { grid-template-columns: 1fr; gap: 32px; }
  .ba-item .ba { max-height: 72svh; }
}
