/* =====================================================================
   MARTINI CAMBI AUTOMATICI – foglio di stile
   Colori e caratteri del marchio: rosso #EE2628, nero #1C1C1C, testo #5A5A5A,
   Space Grotesk (titoli) e DM Sans (testi), entrambi ospitati sul sito.
   ===================================================================== */
@font-face { font-family: 'Space Grotesk'; src: url(../fonts/spacegrotesk-latin-wght.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url(../fonts/dmsans-latin-wght.woff2) format('woff2'); font-weight: 300 800; font-display: swap; }

:root {
  --red: #ee2628;
  --red-2: #c41e20;
  --ink: #1c1c1c;
  --dark: #141414;
  --dark-2: #202020;
  --dark-3: #2c2c2c;
  --text: #5a5a5a;
  --muted: #6b6b6b;
  --line: #e7e5e4;
  --soft: #f6f5f4;
  --white: #fff;
  --wa: #25d366;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -14px rgba(20, 20, 20, .28);
  --shadow-lg: 0 24px 50px -22px rgba(20, 20, 20, .45);
  --hdr: 92px;
  --head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0; font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px; line-height: 1.65; color: var(--ink); background: var(--white); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; color: inherit; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 36px; }
.center-text { text-align: center; }
.muted { color: var(--muted); font-size: .9rem; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 2000; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------- bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { width: 1.15em; height: 1.15em; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(238, 38, 40, .7); }
.btn-red:hover { background: var(--red-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--dark-3); }
.btn-wa { background: var(--wa); color: #0b3d1f; }
.btn-wa:hover { background: #1fbe5a; }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--ink); text-decoration: none; font-size: .9rem; }
.link:hover { color: var(--red); }

/* --------------------------------------------------------------- avvisi e topbar */
.avviso { background: #fff4dc; color: #5c3d00; font-size: .9rem; border-bottom: 1px solid #f1d58f; }
.avviso.chiusura { background: var(--red); color: #fff; border-color: var(--red-2); }
.avviso-in { display: flex; align-items: center; gap: 10px; min-height: 42px; padding-block: 8px; }
.avviso a { font-weight: 700; }
.topbar { background: var(--dark); color: rgba(255, 255, 255, .78); font-size: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-in { display: flex; justify-content: flex-end; align-items: center; gap: 24px; min-height: 36px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar b { color: #fff; font-weight: 700; }
.tb-hours { margin-right: auto; }
.topbar .i { color: var(--red); }

/* --------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(28, 28, 28, .97); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .6); }
.hdr { display: flex; align-items: center; gap: 22px; height: var(--hdr); }
.logo img { height: 80px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 999px; font-weight: 600; font-size: .93rem; text-decoration: none; color: rgba(255, 255, 255, .88); }
.nav-list > li > a:hover, .nav-list > li > a[aria-current] { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-list > li > a[aria-current] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; background: none; }
.chev { width: .9em; height: .9em; transition: transform .2s; }
.sub-toggle, .nav-mobile-extra, .burger { display: none; }
.has-mega { position: relative; }
.mega { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); width: min(880px, 94vw); padding-top: 12px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-mega:hover .chev { transform: rotate(180deg); }
.mega-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; padding: 26px 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.mega-h { margin: 0 0 6px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 4px 0; font-size: .92rem; color: var(--ink); text-decoration: none; }
.mega li a:hover { color: var(--red); }
.mega-all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); padding-top: 14px; }

/* --------------------------------------------------------------- hero */
.hero, .phero { position: relative; isolation: isolate; color: #fff; background: var(--dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after, .phero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14, 14, 14, .96) 0%, rgba(14, 14, 14, .85) 45%, rgba(14, 14, 14, .4) 100%); }
.hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red); z-index: 1; }
.hero-in { padding: clamp(70px, 11vw, 140px) 20px clamp(60px, 9vw, 110px); }
.hero h1 { max-width: 780px; }
.hero h1 span, .phero h1 span { color: var(--red); display: block; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--red); padding: 6px 12px; border-radius: 6px; margin-bottom: 18px; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 650px; color: rgba(255, 255, 255, .84); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-btns.center { justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 40px 0 0; padding: 0; font-size: .92rem; color: rgba(255, 255, 255, .82); }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges .i { color: var(--red); }
.hero-badges b { color: #fff; }
.phero-in { padding: 46px 20px 70px; }
.phero h1 { max-width: 860px; }
.phero-sm .phero-in { padding-bottom: 54px; }
.phero-xs { background: var(--ink); }
.phero-xs::after { display: none; }
.phero-xs .phero-in { padding: 34px 20px 40px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .82rem; color: rgba(255, 255, 255, .68); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------- sezioni */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-block: 0 56px; }
.bg-soft { background: var(--soft); }
.bg-dark { background: var(--ink); color: #fff; }
.sh { text-align: center; max-width: 780px; margin: 0 auto 44px; }
.sh p { color: var(--text); }
.bg-dark .sh p, .sh-light p { color: rgba(255, 255, 255, .74); }
.tag { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.big { font-size: 1.12rem; color: var(--text); }
.intro .ico-big { width: 60px; height: 60px; margin: 0 auto 18px; color: var(--red); }
.prose { color: var(--text); }
.prose strong, .prose h2, .prose h3 { color: var(--ink); }
.prose a { color: var(--red); font-weight: 600; }
.bg-dark .prose, .bg-dark .prose strong { color: rgba(255, 255, 255, .85); }

/* split testo/immagine */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; }
.badge-years { position: absolute; right: -14px; bottom: -22px; background: var(--red); color: #fff; border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); }
.badge-years b { font-family: var(--head); font-size: 2.4rem; line-height: 1; font-weight: 700; }
.badge-years span { font-size: .8rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .05em; }
.stats { display: flex; gap: 32px; list-style: none; margin: 24px 0 30px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--head); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stats span { font-size: .82rem; color: var(--muted); }

/* elenchi */
.prose ul, .prose ol { padding-left: 1.2em; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; }
.checks { list-style: none; padding: 0 !important; margin: 0 0 1.2em; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--red) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.steps-list { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 14px; margin: 0 0 1.2em; }
.steps-list li { counter-increment: s; position: relative; padding-left: 48px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; }

/* --------------------------------------------------------------- sintomi (home) */
.sym-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sym { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.sym:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.sym .i { width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.sym b { display: block; font-family: var(--head); font-size: 1.02rem; line-height: 1.25; }
.sym span { font-size: .86rem; color: var(--text); }

/* --------------------------------------------------------------- griglia servizi */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.svc { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc .ico-svc { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(238, 38, 40, .1); color: var(--red); margin-bottom: 16px; transition: background .25s, color .25s; }
.svc:hover .ico-svc { background: var(--red); color: #fff; }
.svc h3 { margin-bottom: .4em; }
.svc p { font-size: .92rem; color: var(--text); flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; color: var(--red); }
.more .i { transition: transform .2s; }
a:hover .more .i { transform: translateX(4px); }
.svc-dark .svc { background: var(--dark-2); border-color: rgba(255, 255, 255, .08); color: #fff; }
.svc-dark .svc p { color: rgba(255, 255, 255, .7); }
.svc-dark .svc .ico-svc { background: rgba(238, 38, 40, .18); }
.svc-dark .more { color: #fff; }

/* --------------------------------------------------------------- processo */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: p; }
.proc li { counter-increment: p; position: relative; padding: 24px 20px; border-radius: var(--radius); background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); }
.proc li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--head); font-size: 1.9rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 12px; }
.proc b { display: block; font-family: var(--head); font-size: 1.1rem; margin-bottom: 6px; }
.proc span { font-size: .9rem; color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------- perché */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.why-i { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: rgba(238, 38, 40, .1); color: var(--red); margin-bottom: 16px; }
.why p { color: var(--text); font-size: .93rem; margin: 0; }

/* --------------------------------------------------------------- costruttori */
.makers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.makers li { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-family: var(--head); font-weight: 700; font-size: .95rem; color: var(--ink); }
.bg-soft .makers li { background: #fff; }

/* --------------------------------------------------------------- banca dati */
.bd-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.bd-search { position: relative; flex: 1 1 280px; }
.bd-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.bd-search input { width: 100%; font: inherit; padding: 13px 16px 13px 42px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.bd-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(238, 38, 40, .14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--soft); border: 0; font: inherit; font-weight: 600; font-size: .88rem; color: var(--ink); cursor: pointer; text-decoration: none; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.bd-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.bd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bd-card h3 { margin: 6px 0 2px; font-size: 1.12rem; }
.bd-card p { margin: 0; color: var(--text); font-size: .92rem; }
.bd-card .bd-marche { font-size: .82rem; color: var(--muted); margin-top: 6px; flex: 1; }
.bd-card .more { margin-top: 12px; }
.bd-tipo { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); background: rgba(238, 38, 40, .09); padding: 4px 9px; border-radius: 6px; }
.bd-empty { text-align: center; color: var(--muted); padding: 30px; }
.spec { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; color: var(--muted); font-weight: 600; padding-right: 14px; }
.scheda { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.scheda-box { background: var(--soft); border-radius: var(--radius); padding: 26px; position: sticky; top: calc(var(--hdr) + 20px); }
.scheda-box h2 { font-size: 1.25rem; }
.note-info { font-size: .85rem; color: var(--muted); background: var(--soft); border-left: 4px solid var(--red); padding: 12px 16px; border-radius: var(--radius-sm); }

/* --------------------------------------------------------------- lavori */
.lav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lav-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.lav-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.lav-media img, .lav-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lav-noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), var(--dark-3)); color: rgba(255, 255, 255, .2); }
.lav-noimg .i { width: 64px; height: 64px; }
.lav-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lav-body h3 { margin: 4px 0 0; }
.lav-body p { margin: 0; color: var(--text); font-size: .9rem; flex: 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 1.5em; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.lav-step { margin-bottom: 1.6em; }
.lav-step h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.lav-step h2 .i { color: var(--red); }

/* --------------------------------------------------------------- recensioni */
.rating { display: inline-flex; align-items: center; gap: 8px; }
.stars { color: #f5a623; letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--soft); display: flex; flex-direction: column; }
.review blockquote { margin: 10px 0 14px; font-size: .95rem; flex: 1; color: var(--text); }
.review figcaption { font-weight: 700; font-size: .85rem; color: var(--ink); }

/* --------------------------------------------------------------- dove siamo */
.loc { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: stretch; }
.loc-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.c-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; font-size: .97rem; }
.c-list li { display: flex; gap: 12px; align-items: flex-start; }
.c-list .i { color: var(--red); margin-top: .25em; }
.c-list a { text-decoration: none; }
.c-list a:hover { color: var(--red); text-decoration: underline; }
.c-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.map { position: relative; min-height: 340px; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; color: var(--muted); }
.map-ph .i { width: 36px; height: 36px; color: var(--ink); }
.map-ph p { margin: 0; font-weight: 700; color: var(--ink); }
.map-ph small { font-size: .75rem; }
.hours { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .92rem; }
.hours caption { text-align: left; font-weight: 800; margin-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; }
.bg-dark .hours th, .bg-dark .hours td { border-bottom-color: rgba(255, 255, 255, .14); }
.zone { color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------- CTA */
.cta-band { background: linear-gradient(110deg, var(--red) 0%, var(--red-2) 100%); color: #fff; padding: 48px 0; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta-band-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-red { background: #fff; color: var(--red-2); box-shadow: none; }
.cta-band .btn-red:hover { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------- form */
.form-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.form-aside p { color: rgba(255, 255, 255, .76); }
.aside-contacts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.aside-contacts a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.aside-contacts a:hover { text-decoration: underline; }
.aside-contacts .i { color: var(--red); }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow-lg); }
.form-card-light { border: 1px solid var(--line); }
.form { display: grid; gap: 16px; }
.form-h { font-family: var(--head); font-size: 1.05rem; font-weight: 700; margin: 8px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-h:first-of-type { border-top: 0; padding-top: 0; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: .82rem; font-weight: 700; color: var(--ink); padding: 0; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(238, 38, 40, .14); }
.field .invalid, .check.invalid span, .pills.invalid label span { border-color: var(--red) !important; }
.check.invalid span { color: var(--red); }
.opt { font-weight: 400; color: var(--muted); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; inset: 0; }
.pills span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; transition: border-color .2s, background .2s; }
.pills input:checked + span { border-color: var(--red); background: rgba(238, 38, 40, .07); color: var(--red-2); }
.pills input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 600; font-size: .95rem; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #157347; background: #e8f6ee; padding: 14px 16px; border-radius: var(--radius-sm); }
.form-msg.err { color: var(--red-2); background: #fdecec; padding: 14px 16px; border-radius: var(--radius-sm); }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.sending .btn { opacity: .6; pointer-events: none; }
.book-layout { display: grid; grid-template-columns: 7fr 4fr; gap: 32px; align-items: start; }
.book-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--hdr) + 20px); }
.aside-box { background: var(--soft); border-radius: var(--radius); padding: 26px; }
.aside-box h2 { font-size: 1.2rem; }
.aside-box a { color: var(--red); font-weight: 700; }
.promo-banner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff4dc; border: 1px solid #f3d48a; color: #6b4a00; padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 6px; }
.promo-x { margin-left: auto; border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; }

/* --------------------------------------------------------------- tabelle e varie */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1.4em; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.tbl th { background: var(--soft); }
.big-404 { font-family: var(--head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; color: var(--red); line-height: 1; margin: 0; }
.photo-credits { margin-block: 0 28px; font-size: .75rem; color: var(--muted); }
.photo-credits a { color: inherit; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.guide-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.guide-item:last-child { border-bottom: 0; }
.guide-item .i { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: rgba(238, 38, 40, .1); color: var(--red); }
.guide-item h2 { font-size: 1.4rem; margin-bottom: .4em; }
.guide-item .cause { font-size: .92rem; }
.urg { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; margin-bottom: 8px; }
.urg-alta { background: var(--red); color: #fff; }
.urg-media { background: #fff1d6; color: #7a4f00; }
.urg-bassa { background: #e8f6ee; color: #157347; }

/* --------------------------------------------------------------- footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, .7); font-size: .9rem; padding-top: 64px; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 46px; }
.f-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.f-h { color: #fff; font-family: var(--head); font-weight: 700; margin-bottom: 12px; font-size: 1.02rem; }
.footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .i { color: var(--red); }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.f-social { display: flex; gap: 10px; margin-top: 16px; }
.f-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; }
.f-social a:hover { background: var(--red); }
.f-social a:hover .i { color: #fff; }
.f-group { margin-top: 18px; padding: 12px 14px; border: 1px dashed rgba(255, 255, 255, .2); border-radius: var(--radius-sm); font-size: .85rem; }
.f-group a { color: #fff; font-weight: 700; display: inline; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .8rem; }
.f-bottom-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.f-bottom a { display: inline; }

/* --------------------------------------------------------------- flottanti */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 800; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .i { width: 30px; height: 30px; }
.mbar { display: none; }

/* --------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--red); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--text); line-height: 1.65; }
.faq-a a { color: var(--red); font-weight: 600; }
.faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 14px; }
.faq-group h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* --------------------------------------------------------------- promozioni */
.promo-grid { display: grid; gap: 32px; }
.promo-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.promo-media { position: relative; display: flex; align-items: center; background: linear-gradient(135deg, var(--ink), var(--dark-3)); }
.promo-media a, .promo-media img { display: block; width: 100%; }
.promo-media img { object-fit: cover; }
.promo-noimg { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 4.5rem; font-weight: 800; color: rgba(255, 255, 255, .16); }
.promo-body { display: flex; flex-direction: column; gap: 12px; padding: 28px 30px 30px; }
.promo-body h2 { font-size: 1.6rem; margin: 0; }
.promo-sub { margin: 0; color: var(--text); font-weight: 600; }
.promo-price { margin: 0; font-size: 1.05rem; }
.promo-price b { font-family: var(--head); font-size: 1.8rem; color: var(--red); font-weight: 700; }
.promo-price s { color: var(--muted); }
.promo-off { display: inline-block; vertical-align: middle; background: #ffd23f; color: var(--ink); font-weight: 800; font-size: .9rem; padding: 4px 10px; border-radius: 99px; margin-left: 6px; }
.promo-desc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.promo-desc li { position: relative; padding-left: 26px; font-size: .95rem; }
.promo-desc li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.promo-until { margin: 0; font-size: .85rem; font-weight: 700; }
.promo-cond { margin: 0; font-size: .78rem; color: var(--muted); }
.promo-body .btn { margin-top: auto; align-self: flex-start; }
.promo-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; justify-content: center; }
.promo-mini-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 380px)); }
.promo-mini-grid:has(> :only-child) { grid-template-columns: minmax(0, 420px); }
.promo-mini { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.promo-mini:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.promo-mini img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.promo-mini .promo-noimg { font-size: 3.5rem; background: linear-gradient(135deg, var(--ink), var(--dark-3)); }
.promo-mini-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.promo-mini-body h3, .promo-mini-body p { margin: 0; }
.promo-mini-body > p:not(.promo-price) { color: var(--text); font-size: .9rem; }
.promo-home { padding-top: 56px; }

/* --------------------------------------------------------------- recensioni (richiesta) */
.review-ask .stars-big { color: #f5b301; font-size: 2.6rem; letter-spacing: 6px; margin: 0 0 8px; }
.review-btns { display: grid; gap: 14px; max-width: 460px; margin: 28px auto; }

/* --------------------------------------------------------------- animazioni */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .hdr-cta { display: none; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .sym-grid { grid-template-columns: repeat(2, 1fr); }
  .proc { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --hdr: 72px; }
  .logo img { height: 58px; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; margin-left: auto; border: 0; background: rgba(255, 255, 255, .08); border-radius: 12px; cursor: pointer; padding: 0 12px; }
  .burger span { display: block; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav { position: fixed; inset: var(--hdr) 0 0 0; background: #fff; overflow-y: auto; padding: 14px 20px 120px; transform: translateX(100%); transition: transform .3s ease; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); position: relative; }
  .nav-list > li > a { padding: 16px 4px; border-radius: 0; font-size: 1.05rem; color: var(--ink); }
  .nav-list > li > a:hover { background: none; color: var(--red); }
  .nav-list > li > a[aria-current] { box-shadow: none; color: var(--red); }
  .nav-list .chev { display: none; }
  .sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 6px; width: 46px; height: 46px; border: 0; background: var(--soft); border-radius: 10px; color: var(--ink); cursor: pointer; }
  .sub-toggle .i { transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
  .mega { position: static; transform: none; width: auto; padding: 0; opacity: 1; visibility: visible; display: none; }
  .has-mega:hover .mega { transform: none; }
  .mega.open { display: block; }
  .mega-in { grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 4px 0 18px; gap: 16px; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 22px; }
  body.menu-open { overflow: hidden; }
  .split, .form-split, .book-layout, .loc, .scheda { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 0; }
  .book-aside, .scheda-box { position: static; }
  .reviews, .lav-grid { grid-template-columns: 1fr 1fr; }
  .badge-years { right: 12px; }
  .promo-card { grid-template-columns: 1fr; }
  .promo-mini-grid, .promo-mini-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: 66px; }
  .topbar { display: none; }
  .wa-float { display: none; }
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 4px; color: #fff; text-decoration: none; font-size: .72rem; font-weight: 600; }
  .mbar .i { width: 22px; height: 22px; }
  .mbar-wa .i { color: var(--wa); }
  .mbar-cta { background: var(--red); }
  .reviews, .lav-grid, .why-grid, .sym-grid { grid-template-columns: 1fr; }
  .proc { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .f-row, .f-row-3, .check-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .stats b { font-size: 1.5rem; }
  .hero-btns .btn { flex: 1 1 auto; }
  .form .btn { justify-self: stretch; }
  .cta-band-btns .btn { flex: 1 1 auto; }
  .guide-item { grid-template-columns: 1fr; gap: 10px; }
  .spec th { width: 45%; }
}
@media (max-width: 420px) { .proc { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- officine di consegna */
.sedi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.sede-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sede-card .map { min-height: 0; aspect-ratio: 16 / 10; border-radius: 0; }
.sede-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.sede-body h3 { font-size: 1.25rem; margin-bottom: .6em; }
.sede-body .c-btns { margin-top: auto; }
.sede-cambi { background: var(--ink); color: #fff; border-color: var(--ink); }
.sede-cambi .muted { color: rgba(255, 255, 255, .7); }
.sede-cambi .hours th, .sede-cambi .hours td { border-bottom-color: rgba(255, 255, 255, .14); }
.sedi-grid + .note-info { margin-top: 24px; }
@media (max-width: 1080px) { .sedi-grid { grid-template-columns: 1fr 1fr; } .sede-cambi { grid-column: 1 / -1; } }
@media (max-width: 760px) { .sedi-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- corsi */
.corsi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.corso-card { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.corso-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.corso-date { flex: none; width: 74px; height: 80px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.corso-date b { font-family: var(--head); font-size: 1.9rem; color: var(--red); }
.corso-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.corso-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.corso-body h3 { margin: 4px 0 0; }
.corso-body p { margin: 0; color: var(--text); font-size: .92rem; }
.corso-meta { font-size: .85rem !important; color: var(--muted) !important; margin-top: 4px !important; }
.corso-meta b { color: #157347; } .corso-meta b.pieno { color: var(--red-2); }
.corso-body .more { margin-top: 10px; }
.why-grid-3 { grid-template-columns: repeat(3, 1fr); }
.badge-years span { font-size: .95rem; }
@media (max-width: 960px) { .why-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .corsi-grid { grid-template-columns: 1fr; } .corso-card { flex-direction: column; } }

/* --------------------------------------------------------------- dal laboratorio: foto e video */
.gal-filtri { justify-content: center; margin: -18px 0 28px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.gal { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gal-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gal-foto a { display: block; overflow: hidden; }
.gal-foto a:hover img { transform: scale(1.03); }
.gal figcaption { padding: 14px 16px 16px; display: grid; gap: 4px; }
.gal figcaption b { font-family: var(--head); font-size: 1.02rem; }
.gal figcaption span:not(.bd-tipo) { font-size: .88rem; color: var(--text); }
.gal figcaption .bd-tipo { justify-self: start; }
.embed { position: relative; background: var(--ink); aspect-ratio: 4 / 5; }
.gal-youtube .embed { aspect-ratio: 16 / 9; }
.gal-instagram .embed.loaded { aspect-ratio: auto; height: 640px; background: #fff; }
.gal-facebook .embed.loaded { aspect-ratio: auto; height: 560px; background: #fff; }
.embed > img, .embed-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed-bg { background: radial-gradient(circle at 30% 20%, #3a3a3a, var(--ink) 70%); }
.embed > img { filter: brightness(.55); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; text-align: center; color: #fff; }
.embed-ico { width: 52px; height: 52px; color: #fff; }
.embed-ph small { font-size: .75rem; color: rgba(255, 255, 255, .8); max-width: 260px; }
.embed-ph small a { color: #fff; font-weight: 700; }
.gal-reel .embed, .gal-reel .embed.loaded { aspect-ratio: 9 / 16; height: auto; }

/* --------------------------------------------------------------- banca dati: portale in costruzione */
.wip-hero .phero-in { padding: 46px 20px clamp(70px, 9vw, 110px); }
.wip-hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 1;
  background: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--ink) 18px 36px); }
.wip-badge { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); padding: 7px 14px; border-radius: 999px; margin: 0 0 18px; }
.wip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(238, 38, 40, .7); animation: wip-pulse 1.8s infinite; }
@keyframes wip-pulse { 70% { box-shadow: 0 0 0 10px rgba(238, 38, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(238, 38, 40, 0); } }
.wip-progress { max-width: 520px; margin-top: 26px; }
.wip-progress p { margin: 10px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.wip-progress b { color: #fff; }
.wip-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.wip-bar span { display: block; height: 100%; width: 62%; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, var(--red-2) 12px 24px); background-size: 34px 34px; animation: wip-move 1.2s linear infinite; }
@keyframes wip-move { to { background-position: 34px 0; } }
.wip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wip-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: w; }
.wip-steps li { counter-increment: w; position: relative; padding: 24px 22px; border-radius: var(--radius); background: var(--dark-2); border: 1px solid var(--dark-3); color: rgba(255, 255, 255, .72); font-size: .92rem; }
.wip-steps li::before { content: counter(w); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px;
  background: var(--dark-3); color: #fff; font-weight: 800; }
.wip-steps li.done::before { content: '✓'; background: #2e7d32; }
.wip-steps li.now { border-color: var(--red); background: linear-gradient(160deg, rgba(238, 38, 40, .18), var(--dark-2) 60%); }
.wip-steps li.now::before { background: var(--red); animation: wip-pulse 1.8s infinite; }
.wip-steps li.now::after { content: 'In corso'; position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.wip-steps b { display: block; color: #fff; font-family: var(--head); font-size: 1.08rem; margin-bottom: 6px; }
.wip-more { margin-top: 24px; }
.wip-more summary { cursor: pointer; text-align: center; font-weight: 700; color: var(--red-2); padding: 10px; list-style: none; }
.wip-more summary::-webkit-details-marker { display: none; }
.wip-more[open] summary { margin-bottom: 18px; }
.wip-cta { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; max-width: 900px; }
.wip-cta h2 { margin-bottom: .3em; }
.wip-cta .ico-big { width: 84px; height: 84px; color: var(--red); }
@media (max-width: 960px) { .wip-grid, .wip-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wip-grid, .wip-steps { grid-template-columns: 1fr; } .wip-cta { grid-template-columns: 1fr; text-align: center; } .wip-cta .c-btns { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .wip-dot, .wip-bar span, .wip-steps li.now::before { animation: none; } }

/* FAQ su due colonne (home): due elenchi indipendenti affiancati */
.faq-2col .wrap.narrow { max-width: 1180px; }
.faq-2col .faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-items: start; }
@media (max-width: 860px) { .faq-2col .faq-cols { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- preventivo: questionario cliente */
.quest { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px; margin: 4px 0 20px; border-radius: var(--radius); border: 1.5px dashed var(--red); background: rgba(238, 38, 40, .04); }
.quest[hidden] { display: none; }
.quest-ico .i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--red); color: #fff; }
.quest p { margin: 0 0 12px; font-size: .93rem; color: var(--text); }
.quest .quest-h { font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.quest-up { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); cursor: pointer; }
.quest-up span { font-weight: 700; color: var(--ink); }
.quest-up small { color: var(--muted); }
.quest-up input { margin-top: 6px; font: inherit; font-size: .9rem; max-width: 100%; }
.quest .quest-files { margin: 10px 0 0; font-size: .88rem; color: #1b7a33; font-weight: 600; }
.quest .quest-files.err { color: var(--red-2); }
@media (max-width: 600px) { .quest { grid-template-columns: 1fr; } }
/* preventivo: parti del modulo che compaiono secondo "Di cosa hai bisogno" */
.fx { border: 0; margin: 0; padding: 0; min-width: 0; }
.fx[hidden] { display: none; }

/* ------------------------------------------------ home: hero, loghi marche, officina */
.hero-home { min-height: min(86vh, 800px); display: flex; align-items: center; }
.hero-home .hero-in { width: 100%; }
.hero-home .hero-bg { object-position: 60% 50%; animation: hero-zoom 20s ease-out both; }
.hero-home h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.brand-band { background: var(--dark-2); color: rgba(255, 255, 255, .7); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand-in { display: flex; align-items: center; gap: 30px; padding-top: 24px; padding-bottom: 24px; }
.brand-in > p { flex: none; max-width: 140px; margin: 0; font-size: .74rem; font-weight: 800; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.marquee { flex: 1; min-width: 0; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { flex: none; display: flex; align-items: center; gap: 60px; list-style: none; margin: 0; padding: 0 60px 0 0; animation: marquee 34s linear infinite; }
.marquee img { height: 42px; width: auto; max-width: 150px; object-fit: contain; opacity: .8; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

.mosaico { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.mosaico figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--dark-3); }
.mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaico figure:hover img { transform: scale(1.05); }
.mosaico figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; font-size: .86rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.mosaico .m-a { grid-column: span 2; grid-row: span 2; }
.mosaico .m-b { grid-column: span 2; }

.split-media.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 40px; }
.split-media.duo img { aspect-ratio: 1; }
.split-media.duo img + img { margin-top: 40px; }

.makers-logo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.makers-logo li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 18px 12px; border-radius: var(--radius-sm); background: var(--dark); }
.makers-logo img { width: auto; height: auto; max-height: 46px; max-width: 70%; object-fit: contain; }
.makers-logo span { font-size: .76rem; font-weight: 700; color: rgba(255, 255, 255, .65); text-align: center; }

@media (max-width: 860px) {
  .brand-in { flex-direction: column; align-items: stretch; gap: 16px; }
  .brand-in > p { max-width: none; text-align: center; }
  .marquee img { height: 34px; }
  .mosaico { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .makers-logo { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-bg, .marquee ul { animation: none; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; gap: 30px; padding: 0; }
}

/* ------------------------------------------------ telefono: home più corta (classi m-* sulle sezioni della home) */
@media (max-width: 760px) {
  .section { padding: 46px 0; }
  .sh { margin-bottom: 22px; }
  /* schede da scorrere di lato */
  .m-scroll .svc-grid, .m-scroll .why-grid, .m-scroll .proc { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 14px; scroll-padding-inline: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .m-scroll .svc-grid::-webkit-scrollbar, .m-scroll .why-grid::-webkit-scrollbar, .m-scroll .proc::-webkit-scrollbar { display: none; }
  .m-scroll .svc-grid > *, .m-scroll .why-grid > *, .m-scroll .proc > li { flex: 0 0 80%; scroll-snap-align: start; }
  .m-scroll .sh::after { content: 'Scorri  →'; display: block; margin-top: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
  .m-scroll .sh-light::after { color: #fff; opacity: .6; }
  /* sintomi: due colonne, solo il titolo (la spiegazione è nella guida ai sintomi) */
  .m-sym .sym-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .m-sym .sym { flex-direction: column; gap: 8px; padding: 14px; }
  .m-sym .sym b { font-size: .92rem; }
  .m-sym .sym span { display: none; }
  /* officina: 5 foto */
  .m-mosaico .mosaico figure:nth-child(n+6) { display: none; }
  .m-mosaico .mosaico .m-a { grid-column: span 2; grid-row: span 1; }
  .m-mosaico .mosaico { grid-auto-rows: 140px; }
  .m-mosaico .mosaico .m-a { grid-row: span 2; }
  /* costruttori: 3 per riga, piccoli */
  .makers-logo { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .makers-logo li { min-height: 74px; padding: 10px 6px; gap: 6px; }
  .makers-logo img { max-height: 30px; }
  .makers-logo span { font-size: .66rem; }
  /* FAQ: le prime 5, poi il pulsante verso la pagina con tutte le domande */
  .m-faq .faq + .faq { display: none; }
  .m-faq .faq-item:nth-child(n+6) { display: none; }
  /* dove siamo: la mappa resta nella pagina Contatti, qui basta il pulsante Indicazioni */
  .m-dove .map { display: none; }
  .m-dove .sh > p:last-child { display: none; }
  /* footer compatto */
  .f-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding-bottom: 30px; }
  .f-brand, .f-grid > .f-col:nth-child(2) { grid-column: 1 / -1; }
  .f-brand img { max-width: 170px; height: auto; }
  .f-brand p { display: none; }
  .f-grid .f-links { font-size: .86rem; }
  .f-group { font-size: .82rem; }
}
@media (max-width: 760px) {
  .m-dove .sedi-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 14px; scroll-padding-inline: 20px; scrollbar-width: none; align-items: stretch; }
  .m-dove .sedi-grid::-webkit-scrollbar { display: none; }
  .m-dove .sedi-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .m-dove .sh::after { content: 'Scorri  →'; display: block; margin-top: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
}
