/* Gnodi SA – direzione "Cantiere"
   Fondo petrolio, testo chiaro, arancio solo per le azioni.
   Big Shoulders per i titoli (maiuscolo), Work Sans per il testo.
   Le gamme moduli sono disegnate in prospetto e in pianta su griglia. */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0F2F38; --surface: #173E49; --surface-2: #1D4652; --line: #2C5663; --grid: #21505D;
  --text: #F2F4F1; --muted: #B9CBD0; --soon: #8FA8AF; --draw: #CFE6EA; --paper: #EEF3F4;
  --accent: #FF8A3D; --accent-ink: #0F1A1E;
  --bg-rgb: 15, 47, 56; --accent-rgb: 255, 138, 61; --accent-hover: #FFA061; --accent-soft: #FFB38A;
  --text-soft: #DCE6E8; --field-line: #4B7480; --logo-filter: none;
  --display: "Big Shoulders", "Arial Narrow", sans-serif; --body: "Work Sans", Arial, sans-serif;
  --wrap: 82rem; --gut: clamp(1.25rem, 4vw, 3rem); --sec: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .95; }
h1, h2 { text-transform: uppercase; letter-spacing: -0.005em; }
h1 { font-size: clamp(3rem, 7vw, 6rem); }
.display { font-size: clamp(3.4rem, 10vw, 9.25rem); line-height: .86; max-width: 14ch; }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
h3 { font-size: 1.6rem; line-height: 1.05; }
h4 { font-size: 1.35rem; line-height: 1.05; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--muted); }
.small, .note { font-size: .875rem; color: var(--muted); }

.brand { display: inline-flex; margin: 0; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }

.btn { display: inline-block; white-space: nowrap; padding: .9rem 1.4rem; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-signal { background: var(--accent); color: var(--accent-ink); }
.btn-signal:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-line { border-color: var(--text); color: var(--text); background: transparent; }
.btn-line:hover { background: var(--text); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.tel { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(var(--bg-rgb), .97); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 2.25rem; min-height: 5rem; }
.nav ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: 1.6rem; }
.nav-link { white-space: nowrap; text-decoration: none; font-size: .95rem; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
a.nav-link:hover { color: var(--text); border-bottom-color: var(--accent); }
.nav-link.is-current { border-bottom-color: var(--accent); }
.is-soon { color: var(--soon); cursor: default; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: .55rem 1rem; border: 2px solid var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem var(--gut) 1.5rem; display: grid; gap: 1rem; }
@media (max-width: 1180px) { .nav { display: none; } .menu { display: block; } .head-actions .btn { display: none; } }
@media (max-width: 560px) { .head-actions { display: none; } .brand-logo { height: 38px; } }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 1.4rem 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { text-decoration: none; }

/* Hero home */
.hero { padding-top: 1rem; }
.hero-card { position: relative; min-height: clamp(30rem, 60vw, 42rem); display: flex; align-items: flex-end; overflow: hidden; background: var(--surface-2); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-media .ph span { display: none; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(var(--bg-rgb), .58); }
.hero-content { position: relative; padding: clamp(1.5rem, 5vw, 4rem); }
.hero-text { margin-top: 1.5rem; font-size: 1.15rem; color: var(--text-soft); max-width: 52ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.fact { padding: 2rem 2rem 2rem 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 2rem; }
.fact-title { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; margin-bottom: .4rem; }
.fact-title.is-accent { color: var(--accent); }
.fact p:last-child { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } .fact + .fact { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

/* Pagine interne */
.page-hero { padding-top: 1.75rem; }
.page-hero-text { max-width: 58rem; }
.page-hero h1 { margin-bottom: 1.25rem; }
.module-strip { margin: 2.5rem 0 0; aspect-ratio: 2.48 / 1; overflow: hidden; background: var(--surface-2); }
.module-strip > img, .module-strip > .ph { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .module-strip { aspect-ratio: 3 / 2; } }

.ph { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); min-height: 10rem; }
.ph span { font-size: .75rem; padding: .5rem; background: rgba(var(--bg-rgb), .8); max-width: 90%; word-break: break-all; }

.stats, .deck, .doors, .range, .inside, .formats, .formats-sec, .situations, .compare, .cases, .configs, .case, .steps, .gallery, .related, .modes-sec, .faq { margin-top: var(--sec); }
section h2 { margin-bottom: 2rem; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 4rem; margin-bottom: 2.5rem; }
.sec-head h2 { margin: 0; flex: 1 1 26rem; }
.sec-head .lead { flex: 1 1 22rem; margin: 0; }

/* Porte d'ingresso */
.door-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.door-list li { border-bottom: 1px solid var(--line); }
.door { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 7.5rem; gap: .5rem 2.5rem; align-items: baseline; padding: 1.6rem 0; text-decoration: none; }
.door-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1; }
a.door:hover { color: var(--text); }
a.door:hover .door-title { color: var(--accent); }
.door-text { color: var(--muted); }
.door.is-soon .door-title { color: var(--soon); }
.plain .is-soon, .plain .is-soon .door-title { color: inherit; }
.soon-note { font-size: .8rem; color: var(--soon); white-space: nowrap; text-align: right; }
@media (max-width: 760px) { .door { grid-template-columns: 1fr; } .soon-note { text-align: left; } }

/* Formati: foto prodotto su fondo chiaro */
.format-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fcard { background: var(--surface); display: flex; flex-direction: column; }
.fcard-img { background: var(--paper); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.fcard-img img { max-height: 100%; width: auto; object-fit: contain; }
.fcard-body { padding: 1.5rem; }
.fcard-body h3 { font-size: 2.2rem; margin-bottom: .6rem; }
.fcard-body p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .format-cards { grid-template-columns: 1fr; } }

/* Punti */
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.format-grid.three { grid-template-columns: repeat(3, 1fr); }
.format { background: var(--surface); padding: 1.5rem; }
.format h3 { margin-bottom: .6rem; }
.format p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .format-grid, .format-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .format-grid, .format-grid.three { grid-template-columns: 1fr; } }

/* Quando conviene */
.sit-group + .sit-group { margin-top: 3rem; }
.sit-label { font-size: 2.2rem; color: var(--accent); margin-bottom: 1.25rem; text-transform: uppercase; }
.sit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.sit-grid li { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.sit-grid h4 { margin-bottom: .5rem; }
.sit-grid p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .sit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sit-grid { grid-template-columns: 1fr; } }

/* Confronto */
.table-wrap { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 34rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; border-bottom: 2px solid var(--text); }
.compare tbody th { font-weight: 600; color: var(--muted); width: 26%; }
.compare .is-win { background: rgba(var(--accent-rgb), .1); }
.compare thead .is-win { color: var(--accent); }
.compare td.is-win { font-weight: 600; }

/* Realizzazioni */
.case-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ccard { background: var(--surface); display: flex; flex-direction: column; }
.ccard-img img, .ccard-img .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ccard-body { padding: 1.5rem 1.75rem 1.75rem; }
.ccard-label { font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: .5rem; }
.ccard h3 { font-size: 2rem; margin-bottom: .75rem; }
.ccard-body > p { color: var(--muted); }
.fit { font-size: .95rem; color: var(--text) !important; }
.fit span { color: var(--muted); }
@media (max-width: 860px) { .case-list { grid-template-columns: 1fr; } }

/* Gamme disegnate */
.range-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.model { background: var(--surface); display: flex; flex-direction: column; }
.model-draw { color: var(--draw); padding: 1.5rem; height: 12.5rem; display: flex; align-items: center;
  background-color: var(--surface); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.model-draw svg { width: 100%; height: auto; display: block; }
.model-body { padding: 1.5rem; }
.model-code { font-size: 4rem; line-height: .9; color: var(--accent); margin-bottom: .6rem; }
.model-code.is-generic { font-size: 2.4rem; line-height: 1; }
.model-name { font-size: 1.9rem; margin-bottom: .5rem; }
.model-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.specs { margin: 1rem 0 0; display: grid; gap: .35rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; white-space: nowrap; }
.tech { margin-top: 3rem; }
.tech h3 { font-size: 2rem; margin-bottom: 1rem; }

/* Manifesto */
.inside { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem 4.5rem; align-items: center; }
.inside-img { margin: 0; }
.inside-img img, .inside-img .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.inside h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); margin-bottom: 1.25rem; }
@media (max-width: 900px) { .inside { grid-template-columns: 1fr; } }

/* Noleggio / acquisto */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mode { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); }
.mode h2 { font-size: 1.1rem; font-family: var(--body); text-transform: none; font-weight: 600; margin-bottom: .5rem; color: var(--muted); }
.mode-lead { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: .95; margin-bottom: 1rem; }
.mode:first-child .mode-lead { color: var(--accent); }
.mode p:last-child { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }

.ctx-list, .related { display: flex; flex-wrap: wrap; gap: .75rem; }
.ctx { display: inline-block; padding: .75rem 1.2rem; border: 2px solid var(--text); text-decoration: none; font-weight: 600; }
a.ctx:hover { background: var(--text); color: var(--bg); }
.ctx.is-soon { border-color: var(--line); }

.configs { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 4rem; }
.why-list { margin: 0; display: grid; }
.why-list div { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; border-top: 1px solid var(--line); padding: 1.4rem 0; }
.why-list dt { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; }
.why-list dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .configs { grid-template-columns: 1fr; } .why-list div { grid-template-columns: 1fr; gap: .3rem; } }

.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: start; }
.case-img { margin: 0; }
.case-img img, .case-img .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.25rem; }
.case-text p { color: var(--text-soft); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.step-list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step-list li { counter-increment: s; background: var(--surface); padding: 1.75rem; }
.step-list li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--accent); margin-bottom: .75rem; }
.step-list h3 { margin-bottom: .5rem; }
.step-list p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .step-list { grid-template-columns: 1fr; } }

.faq-list { border-top: 2px solid var(--text); max-width: 58rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

.band { margin-top: var(--sec); background: var(--accent); color: var(--accent-ink); }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.band h2 { margin-bottom: .75rem; font-size: clamp(2.6rem, 6vw, 5rem); }
.band p { margin: 0; font-weight: 500; }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.band .btn-signal { background: var(--band-btn, #0F1A1E); color: var(--band-btn-text, #fff); }
.band .btn-signal:hover { background: var(--band-btn-hover, #24363C); color: var(--band-btn-text, #fff); }
.band .tel, .band a:hover { color: var(--accent-ink); }
.band .tel { font-size: 1.25rem; }

/* Contatti */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem 5rem; padding-top: 1.75rem; }
.contact h1 { margin-bottom: 1.25rem; }
address { font-style: normal; line-height: 1.7; margin-top: 2rem; border-top: 2px solid var(--text); padding-top: 1.25rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; background: var(--surface); padding: clamp(1.25rem, 3vw, 2.25rem); }
.field { display: grid; gap: .35rem; }
.field-wide { grid-column: 1 / -1; }
label, legend { font-weight: 600; font-size: .92rem; }
input, select, textarea { font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1.5px solid var(--field-line); background: var(--bg); color: var(--text); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--soon); }
input:focus, select:focus, textarea:focus { border-color: var(--text); outline: 3px solid var(--accent); outline-offset: 1px; }
.consents { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.consents label { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; }
.consents input { width: auto; margin-top: .3rem; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; background: rgba(var(--accent-rgb), .14); border-left: 4px solid var(--accent); padding: .9rem 1rem; margin: 0; max-width: none; }
.form-error { color: var(--accent-soft); font-weight: 600; }
@media (max-width: 860px) { .contact, .contact-form { grid-template-columns: 1fr; } }

/* Footer */
main:has(> .band:last-child) + .mobile-bar + .site-foot { margin-top: 0; }
.site-foot { margin-top: var(--sec); padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.site-foot a { color: var(--text); }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem 3rem; }
.foot-h { font-weight: 600; color: var(--text); margin-bottom: .6rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.test-flag { margin-top: 2.5rem; font-size: .8rem; color: var(--soon); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* Barra azioni mobile */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr auto; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .6rem var(--gut) calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(var(--bg-rgb), .98); border-top: 1px solid var(--line); }
  .mobile-bar .btn { text-align: center; }
  body { padding-bottom: 4.75rem; }
}

/* Password */
.gate { min-height: 100vh; display: grid; place-items: center; }
.gate-box { width: min(27rem, 92vw); background: var(--surface); padding: 2.5rem; }
.gate-box h1 { font-size: 2.6rem; margin: 1.5rem 0 .75rem; }
.gate-box form { display: grid; gap: .6rem; margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Numeri chiave */
.stat-grid { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); }
.stat-grid div { padding: 1.75rem 1.5rem 1.75rem 0; }
.stat-grid div + div { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.stat-value { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); line-height: .9; }
.stat-value.is-accent { color: var(--accent); }
.stat-grid dd { margin: .5rem 0 0; color: var(--muted); }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr 1fr; } .stat-grid div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Schema Double Deck */
.deck { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: center; }
.deck-draw { color: var(--draw); padding: 2rem; background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.deck-draw svg { width: 100%; height: auto; display: block; }
.deck h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); margin-bottom: 1.25rem; }
@media (max-width: 900px) { .deck { grid-template-columns: 1fr; } }

/* Slideshow home: dissolvenza lenta tra le tre soluzioni */
.slides .slide { position: absolute; inset: 0; margin: 0; opacity: 0; animation: slide-fade 18s infinite; }
.slides .slide img, .slides .slide .ph { width: 100%; height: 100%; object-fit: cover; }
.slides .slide-0 { animation-delay: 0s; }
.slides .slide-1 { animation-delay: 6s; }
.slides .slide-2 { animation-delay: 12s; }
@keyframes slide-fade { 0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 37% { opacity: 0; } 100% { opacity: 0; } }
.slides figcaption { position: absolute; right: 1.25rem; top: 1.25rem; z-index: 2; background: rgba(var(--bg-rgb), .85); padding: .35rem .75rem; font-weight: 600; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .slides .slide { animation: none; } .slides .slide-0 { opacity: 1; } }

/* Tre soluzioni */
.range-grid.three-up { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .range-grid.three-up { grid-template-columns: 1fr; } }

/* Intro testuale */
.intro { margin-top: var(--sec); display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem 4rem; }
.intro h2 { margin: 0; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* Galleria nelle schede */
.gal { position: relative; }
.gal-nav { position: absolute; right: .75rem; bottom: .75rem; display: flex; align-items: center; gap: .25rem; background: rgba(var(--bg-rgb), .88); padding: .2rem; }
.gal-btn { background: transparent; color: var(--text); border: 0; font-size: 1.6rem; line-height: 1; width: 2.4rem; height: 2.4rem; cursor: pointer; }
.gal-btn:hover { color: var(--accent); }
.gal-count { font-size: .85rem; min-width: 3rem; text-align: center; }
.ccard h3 a { text-decoration: none; }
.ccard h3 a:hover { color: var(--accent); }

/* Animazione allestimenti */
.fitout-wrap { color: var(--draw); padding: 1.5rem; background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.fitout { width: 100%; height: auto; display: block; }
.fitout .fo { opacity: 0; animation: fo-cycle 12s infinite; }
.fitout .fo-1 { animation-delay: 3s; } .fitout .fo-2 { animation-delay: 6s; } .fitout .fo-3 { animation-delay: 9s; }
@keyframes fo-cycle { 0% { opacity: 0; } 5% { opacity: 1; } 22% { opacity: 1; } 27% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fitout .fo { animation: none; } .fitout .fo-1 { opacity: 1; } }

/* Posizione regolabile della foto di apertura */
.module-strip > img { object-position: var(--pos, center); }

/* Noleggio / acquisto / usato cliccabili */
.modes.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .modes.three { grid-template-columns: 1fr; } }
a.mode { text-decoration: none; color: inherit; display: block; border: 2px solid transparent; }
a.mode:hover { border-color: var(--accent); color: inherit; }
.mode-cta { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--accent); }

/* Link alle schede PDF */
.pdf-link { display: inline-block; margin-top: .75rem; font-weight: 600; color: var(--accent); }
.why-list dd .pdf-link { display: block; }

/* Tre scale con gallery */
.scale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.scale { background: var(--surface); display: flex; flex-direction: column; }
.scale-open { position: relative; padding: 0; border: 0; background: none; cursor: pointer; display: block; width: 100%; }
.scale-open img, .scale-open .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.scale-more { position: absolute; left: .75rem; bottom: .75rem; background: rgba(var(--bg-rgb), .9); color: var(--text); padding: .4rem .75rem; font: 600 .9rem/1.2 var(--body); }
.scale-open:hover .scale-more { background: var(--accent); color: var(--accent-ink); }
.scale-body { padding: 1.5rem; }
.scale-body h3 { font-size: 1.9rem; margin-bottom: .5rem; }
.scale-body p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .scale-grid { grid-template-columns: 1fr; } }
.lightbox { border: 0; padding: 0; background: var(--bg); color: var(--text); width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(5, 15, 18, .85); }
.lb-in { padding: 1rem; }
.lb-title { font-family: var(--display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; margin: 0 0 .75rem; }
.lightbox .gal-item img, .lightbox .gal-item .ph { width: 100%; max-height: 72vh; object-fit: contain; background: #0b2128; }
.lb-close { margin-top: .75rem; }
.scales, .listing-empty { margin-top: var(--sec); }

/* Disclaimer per i render generati con IA */
.ai-wrap { position: relative; display: block; width: 100%; height: 100%; }
.ai-wrap > img { width: 100%; height: 100%; object-fit: cover; }
.ai-badge { position: absolute; left: .6rem; top: .6rem; background: rgba(var(--bg-rgb), .9); color: var(--text); font-size: .75rem; font-weight: 500; padding: .25rem .5rem; max-width: calc(100% - 1.2rem); }

/* Codice del modulo e dati tecnici */
.model-ref { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 0 0 .35rem; }
.tech-data { margin-top: 3rem; }
.tech-data h3 { font-size: 2rem; margin-bottom: 1rem; }
.data-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.data-group { background: var(--surface); padding: 1.25rem 1.5rem; }
.data-h { font-family: var(--display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; margin: 0 0 .25rem; }
.data-group .specs { border-top: 0; }
@media (max-width: 860px) { .data-groups { grid-template-columns: 1fr; } }

/* Sotto-navigazione dei cantieri */
.subnav { margin-top: var(--sec); border-top: 2px solid var(--text); padding-top: 1rem; }
.subnav-h { font-weight: 600; color: var(--muted); margin: 0 0 .6rem; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 0; }
.subnav li + li::before { content: "|"; color: var(--line); margin: 0 .7rem; }
.subnav a { text-decoration: none; font-weight: 600; }
.subnav [aria-current] { color: var(--accent); font-weight: 600; }
.form-note.is-ok { border-left-color: #4caf7d; }
.thanks { margin-top: var(--sec); max-width: 52rem; }
.thanks h1 { margin-bottom: 1rem; }
.thanks .btn + .btn { margin-left: .5rem; }

/* Vendita usato */
.usato { margin-top: var(--sec); }
.usato-filtri { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.usato-filtri a { padding: .45rem .9rem; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.usato-filtri a[aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stato { position: absolute; left: .75rem; top: .75rem; z-index: 2; padding: .3rem .65rem; font-weight: 600; font-size: .85rem; background: #2f8a5c; color: #fff; }
.stato-riservato { background: #c98a1a; }
.stato-venduto { background: #6b7a80; }
td .stato { position: static; }
.prezzo { font-family: var(--display); font-weight: 800; font-size: 1.8rem; margin: 1rem 0 .5rem; }
.prezzo-vuoto { font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--accent); }
.usato-azioni { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; }
.usato-card .pdf-link { margin-top: 0; }

/* Area riservata */
.admin-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); gap: 1rem; flex-wrap: wrap; }
.admin-main { padding: 2rem 0 5rem; }
.admin-main h1 { font-size: 2.6rem; margin: .5rem 0 1.5rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-form { max-width: 60rem; display: grid; gap: 1rem; }
.admin-grid { grid-template-columns: 1fr 1fr; }
.admin-form .field { display: flex; flex-direction: column; gap: .35rem; }
.admin-form .field-wide { grid-column: 1 / -1; }
.admin-form input:not([type=checkbox]), .admin-form select, .admin-form textarea { padding: .65rem .75rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); font: inherit; }
.admin-form small { color: var(--muted); }
.admin-form .check { flex-direction: row; display: flex; gap: .5rem; align-items: center; }
@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table .thumb, .admin-table img { width: 72px; height: 54px; object-fit: cover; display: block; }
.admin-foto { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-foto figure { margin: 0; background: var(--surface); }
.admin-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.admin-foto figcaption { padding: .5rem; display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.admin-danger { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.admin-users { margin-top: 3rem; }
.admin-users summary { cursor: pointer; font-weight: 600; margin-bottom: 1rem; }
.admin-form .field .check { flex-direction: row; justify-content: flex-start; font-weight: 600; }
.admin-form .check input { width: auto; margin: 0; }

/* Logo: nei temi chiari si scurisce */
.brand-logo { filter: var(--logo-filter); }
.admin-limits { color: var(--muted); font-size: .85rem; }
.form-note ul { margin: .5rem 0 0; padding-left: 1.2rem; }

/* Cosa si può cliccare: freccia sempre visibile, anche da cellulare */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.doors { scroll-margin-top: 5rem; }
.door-go { justify-self: end; font-weight: 600; color: var(--accent); white-space: nowrap; }
a.door:hover .door-go { text-decoration: underline; }
@media (max-width: 760px) { .door-go { justify-self: start; } }
.card-go { margin: 1rem 0 0; }
.card-go a { font-weight: 600; color: var(--accent); }

/* Tre scale con una sola foto */
.scale-img { margin: 0; }
.scale-img img, .scale-img .ph, .scale-img .ai-wrap { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
/* Immagini IA dentro i contenitori a ritaglio */
.module-strip .ai-wrap, .ccard-img .ai-wrap, .gal-item .ai-wrap { height: 100%; }
.module-strip .ai-wrap > img { object-position: var(--pos, center); }

/* Nota sulle immagini generate con IA (footer) */
.ai-note { color: var(--muted); font-size: .85rem; margin-top: 1rem; }
/* Pulsante WhatsApp fisso */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 999px;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float svg { width: 1.5rem; height: 1.5rem; }
.wa-float:hover { background: #1EBE5A; color: #fff; }
@media (max-width: 760px) { .wa-float { bottom: 5rem; padding: .75rem; } .wa-float span { display: none; } }
.nf-links { margin: 1.5rem 0 2rem; padding-left: 1.2rem; } .nf-links li { margin: .4rem 0; }
