/* ==========================================================
   Remo Impianti — foglio di stile
   Colori e misure principali: modifica le variabili qui sotto.
   Regole di stile (taste-skill): niente sfumature, ombre, bordi sottili,
   etichette sopra i titoli o numerazioni decorative. Le superfici si
   distinguono per un cambio di tono, non per una linea.
   ========================================================== */
/* Titillium Web (licenza SIL Open Font License), ospitato localmente */
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/titillium-web-600.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/titillium-web-700.woff2") format("woff2"); }

:root {
  /* colori */
  --bg: #10161d;
  --bg-alt: #151d26;
  --surface: #1a2430;
  --surface-2: #212d3a;
  --text: #e9edf2;
  --muted: #a9b3bf;
  --accent: #f29a45;
  --accent-hover: #f5ad63;
  --accent-ink: #1d2731;

  /* foto: angoli stondati e contorno arancio (stesso arancio di "IMPIANTI") */
  --photo-radius: 14px;
  --photo-border: 2px solid var(--accent);

  /* tipografia: due famiglie, cinque misure */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Titillium Web", "Segoe UI", system-ui, sans-serif;
  --fs-display: clamp(3rem, 6.4vw, 5.75rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 3.5rem);
  --fs-h3: clamp(1.6rem, 2.6vw, 2.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  /* spazi */
  --wrap: 1180px;
  --gutter: clamp(16px, 2.5vw, 32px);
  --section: clamp(88px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--fs-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: .95; letter-spacing: -.03em; }
h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.025em; }
h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Segnaposto: evidenziazione gialla da rimuovere una volta inseriti i dati reali */
.ph { background: rgba(242, 154, 69, .16); outline: 1px dashed rgba(242, 154, 69, .7); outline-offset: 1px; padding: 0 .2em; color: inherit; } /* taste-skill-ignore: segnaposto temporaneo */

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--accent); color: var(--accent-ink);
  font: 700 var(--fs-body)/1.2 var(--font);
  padding: 1em 1.6em; border: 2px solid var(--accent);
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--surface-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn-sm { padding: .65em 1.2em; font-size: var(--fs-small); }
.btn-block { width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  transition: background-color .2s ease;
}
.site-header.scrolled { background: var(--bg-alt); }
/* Intestazione: grande in cima alla pagina, si compatta quando si scorre */
.site-header { --hh: 120px; --logo: 104px; --brand-size: 1.9rem; }
.site-header.scrolled { --hh: 84px; --logo: 66px; --brand-size: 1.45rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--hh); transition: height .25s ease; }
.brand { display: inline-flex; align-items: center; gap: .65em; color: var(--accent); }
.brand:hover { text-decoration: none; }
.brand-logo { width: var(--logo); height: var(--logo); flex: none; transition: width .25s ease, height .25s ease; }
.site-footer { --logo: 110px; --brand-size: 1.35rem; }
.brand-text { color: var(--text); font: 600 var(--brand-size)/1 var(--font-head); letter-spacing: .06em; transition: font-size .25s ease; }
.brand-text strong { font-weight: 700; color: var(--accent); margin-left: .25em; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: var(--text); font-weight: 600; font-size: var(--fs-small); transition: color .15s ease; }
.nav a:not(.btn):hover { color: var(--accent); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--text); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
/* Nella sezione iniziale il motto è il testo grande e il titolo h1 sta sotto, più piccolo */
.hero h1 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 1.4rem; }
.hero .motto { font: 700 var(--fs-display)/.95 var(--font-head); letter-spacing: -.03em; margin: 0 0 .3em; max-width: none; }
/* Motto: Re.Mo. = Realizzazione e Montaggio, con le iniziali in evidenza */
.about-grid .motto { font: 600 var(--fs-h3)/1.1 var(--font-head); letter-spacing: -.01em; margin: 0 0 1.4rem; }
.motto span { color: var(--accent); font-weight: 700; }
.lead { font-size: 1.25rem; line-height: 1.5; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 2.2rem 0 2.4rem; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .7rem 2rem; font-size: var(--fs-small); }
.trust li { display: flex; align-items: center; gap: .6em; }
.trust li::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.2 2.6 2.6L12 5.4' fill='none' stroke='%231d2731' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Mosaico foto lavori */
.mosaic {
  display: grid; gap: 8px; width: 100%;
  grid-template-columns: .8fr 1fr 1fr; grid-template-rows: 1fr 1fr .9fr;
  aspect-ratio: 1 / 1.1;
}
.mosaic figure { position: relative; margin: 0; min-width: 0; min-height: 0; overflow: hidden; background: var(--surface); border: var(--photo-border); border-radius: var(--photo-radius); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; left: 0; bottom: 0; padding: .45em .7em;
  font: 600 var(--fs-small)/1.2 var(--font-head); color: #fff;
  background: rgba(10, 14, 19, .82);
}
.m-quadro { grid-column: 1; grid-row: 1 / 3; }
.m-main   { grid-column: 2 / 4; grid-row: 1 / 3; }
.m-b1 { grid-column: 1; grid-row: 3; }
.m-b2 { grid-column: 2; grid-row: 3; }
.m-b3 { grid-column: 3; grid-row: 3; }
.m-b3 img { object-position: 50% 40%; }
.js .mosaic figure { opacity: 0; transform: translateY(24px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .mosaic figure:nth-child(2) { animation-delay: .08s; }
.js .mosaic figure:nth-child(3) { animation-delay: .16s; }
.js .mosaic figure:nth-child(4) { animation-delay: .24s; }
.js .mosaic figure:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sezioni ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-sub { font-size: 1.25rem; line-height: 1.5; }
/* Etichetta arancione sopra il titolo (come nella prima versione, ripristinata su richiesta per Servizi) */
.kicker {
  font: 700 .95rem/1.2 var(--font-head);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* Servizi: card come nella prima versione (ripristinate su richiesta, fuori dalle regole taste-skill) */ /* taste-skill-ignore */
.cards { --line: #293543; --radius: 14px; --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { border-color: #3a4858; transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font: 700 1.2rem/1.15 var(--font); letter-spacing: -.02em; }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 154, 69, .12); margin-bottom: 20px; }
.card-icon svg { width: 26px; height: 26px; fill: var(--accent); }
.card p { color: var(--muted); font-size: .97rem; }
.card p strong { color: var(--text); }
.card-featured { border-color: rgba(242, 154, 69, .55); background: linear-gradient(180deg, rgba(242, 154, 69, .08), var(--surface) 45%); }
.card-featured::before { transform: scaleX(1); }
.card-badge {
  position: absolute; top: 18px; right: 18px;
  font: 700 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: .45em .7em; border-radius: 6px;
}
.card-cert {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 14px; border-radius: 10px;
  background: rgba(242, 154, 69, .1); border: 1px solid rgba(242, 154, 69, .35);
}
.card-cert svg { width: 26px; height: 26px; flex: none; fill: var(--accent); }
.card-cert span { display: block; font: 600 .7rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.card-cert strong { display: block; font-size: .95rem; line-height: 1.45; }
.card-cert small { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.card-cert small b { color: var(--text); }
.ticks { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); font-size: .93rem; }
.ticks li { position: relative; padding-left: 1.4em; margin-bottom: .45em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* Banda vantaggi: campo pieno di colore */
.band { background: var(--accent); color: var(--accent-ink); padding: clamp(64px, 8vw, 104px) 0; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.band h3 { margin-bottom: .4em; }
.band p { margin: 0; }

/* Come lavoriamo */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.step { padding: clamp(28px, 3vw, 40px) clamp(22px, 2.5vw, 32px); background: var(--surface); }
.step:nth-child(even) { background: var(--surface-2); }
.step p { margin: 0; }

/* Galleria lavori */
.g-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.g-filter {
  font: 600 var(--fs-small)/1 var(--font-head); padding: .85em 1.3em; border-radius: 999px; border: 0;
  background: var(--surface-2); color: var(--text); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.g-filter:hover { background: #2b3a4b; }
.g-filter:active { transform: scale(.97); }
.g-filter.is-active { background: var(--accent); color: var(--accent-ink); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-flow: dense; gap: 8px; }
.gallery li[hidden] { display: none; }
.gallery li { aspect-ratio: 3 / 4; min-width: 0; }
.gallery .g-wide { grid-column: span 2; aspect-ratio: auto; }
.g-item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: var(--photo-border); border-radius: var(--photo-radius);
  overflow: hidden; background: var(--surface); cursor: zoom-in; color: inherit; font: inherit;
}
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover img { transform: scale(1.06); }
.g-item span {
  position: absolute; left: 0; bottom: 0; max-width: 100%; padding: .45em .7em; text-align: left;
  font: 600 var(--fs-small)/1.25 var(--font-head); color: #fff;
  background: rgba(10, 14, 19, .82);
}

/* Clienti: solo il nome, o il logo quando arriva */
.clients { --gap: 8px; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.clients > .client { flex: 0 1 calc((100% - 4 * var(--gap)) / 5); }
@media (max-width: 1100px) { .clients > .client { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 720px) { .clients > .client { flex-basis: calc((100% - var(--gap)) / 2); } }
.client {
  display: grid; place-items: center; min-height: 120px; padding: 16px; text-align: center;
  font: 600 1.25rem/1.2 var(--font-head);
}
.client img { max-width: 92%; max-height: 64px; width: auto; height: auto; }
/* il JPG di Bros ha il fondo grigio chiarissimo: lo porto a bianco puro */
.client img[src*="bros"] { filter: brightness(1.06) contrast(1.12); }
/* i loghi quadrati hanno margini bianchi nel file: servono più grandi per pesare come gli altri */
.client img[width="150"] { max-height: 140px; }
.client img[src*="asso-residence"] { max-height: 80px; }

/* Sezione su sfondo bianco (Clienti): loghi nei colori originali, testo scuro */
.section-light { background: #fff; color: var(--accent-ink); }

/* Finestra foto ingrandita */
.lightbox { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(5, 8, 12, .94); }
.lightbox figure { margin: 0; max-width: min(90vw, 1100px); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80dvh; display: block; margin: 0 auto; border: var(--photo-border); border-radius: var(--photo-radius); }
.lightbox figcaption { margin-top: 14px; font: 600 1.25rem var(--font-head); color: var(--text); }
.lb-btn {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; font: 400 2rem/1 var(--font); cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s ease, color .15s ease;
}
.lb-btn:hover { background: var(--accent); color: var(--accent-ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
html.lb-open { overflow: hidden; }

/* Chi siamo */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-grid p { font-size: 1.25rem; line-height: 1.5; }
.about-side { display: grid; gap: 32px; justify-items: center; }
.about-logo { width: min(300px, 70vw); height: auto; }
.about-side .stats { width: 100%; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.stats div { background: var(--surface); padding: 28px 24px; }
.stats dt { font: 700 clamp(2.6rem, 4vw, 3.5rem)/1 var(--font-head); color: var(--accent); }
.stats dd { margin: .4em 0 0; font-size: var(--fs-small); }

/* Zone */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.zone p { font-size: 1.25rem; line-height: 1.5; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface-2); padding: .6em 1.3em; border-radius: 999px; font: 600 1.25rem/1.2 var(--font-head); }
.chips .chip-home { background: var(--accent); color: var(--accent-ink); }
.chips .chip-home::after { content: " · sede"; font-weight: 600; opacity: .75; }

/* FAQ */
.faq { display: grid; gap: 8px; max-width: 900px; }
.faq details { background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; position: relative;
  font: 600 1.25rem/1.35 var(--font-head); transition: color .15s ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 400 2rem/1 var(--font); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 24px; margin: 0; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.contact-info > p { font-size: 1.25rem; line-height: 1.5; }
.contact-list { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list svg { width: 48px; height: 48px; padding: 12px; flex: none; fill: var(--accent-ink); background: var(--accent); }
.contact-list span:first-child { display: block; font-size: var(--fs-small); color: var(--muted); }
.contact-list a { color: var(--text); font: 700 1.25rem/1.3 var(--font-head); }

.form { background: var(--surface); padding: clamp(24px, 4vw, 44px); }
.field { margin-bottom: 18px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: var(--fs-small); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid #33414f; border-radius: 0; padding: .85em .9em;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .invalid, .field input.invalid, .field textarea.invalid { border-color: #ff5a4f; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); margin: 4px 0 20px; cursor: pointer; }
.check input { margin-top: .2em; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.form-error { color: #ff7a70; font-size: var(--fs-small); margin: -6px 0 14px; }
.form-note { font-size: var(--fs-small); color: var(--muted); text-align: center; margin: 12px auto 0; }

/* Footer */
.site-footer { padding: 48px 0; background: var(--bg-alt); font-size: var(--fs-small); color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.footer-motto { font: 700 clamp(2.5rem, 6vw, 5rem)/1 var(--font-head); letter-spacing: -.03em; color: var(--text); margin: 24px 0 0; max-width: none; }
.footer-motto span { color: var(--accent); }
.footer-claim { margin: 16px 0 0; }
.footer-legal { text-align: right; }
.footer-legal p { margin: 0 0 .3em; max-width: none; }

/* Pulsante chiamata (solo mobile): galleggia sopra la pagina */
.call-fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent);
  place-items: center; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .6); /* taste-skill-ignore: elemento flottante */
}
.call-fab svg { width: 26px; height: 26px; fill: var(--accent-ink); }

/* Animazione comparsa: titolo, poi testo, poi il resto, a scaglioni */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.band-item:nth-child(2), .step:nth-child(2), .client:nth-child(5n+2) { --d: .08s; }
.band-item:nth-child(3), .step:nth-child(3), .client:nth-child(5n+3) { --d: .16s; }
.band-item:nth-child(4), .step:nth-child(4), .client:nth-child(5n+4) { --d: .24s; }
.client:nth-child(5n) { --d: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .steps, .band-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt);
    padding: 8px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.25rem; font-family: var(--font-head); }
  .nav .btn { margin-top: 16px; }
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery li, .gallery .g-wide { grid-column: span 1; aspect-ratio: 1; }
  .hero-grid, .about-grid, .zone, .contact-grid { grid-template-columns: 1fr; }
  .call-fab { display: grid; }
  .footer-legal { text-align: left; }
}
@media (max-width: 560px) {
  /* Smartphone: marchio molto grande, nome su due righe accanto al logo */
  .site-header { --hh: clamp(124px, 36vw, 144px); --logo: clamp(96px, 30vw, 120px); --brand-size: clamp(1.6rem, 8.5vw, 2.15rem); }
  .site-header.scrolled { --hh: 80px; --logo: 62px; --brand-size: 1.15rem; }
  .site-header .brand { gap: .45em; }
  .site-header .brand-text { line-height: .95; }
  .site-header .brand-text strong { display: block; margin-left: 0; }
  /* Smartphone: motto più contenuto */
  .hero .motto { font-size: clamp(1.7rem, 7.8vw, 1.95rem); line-height: 1.05; letter-spacing: -.02em; }
  .hero h1 { font-size: 1.25rem; margin-bottom: 1.1rem; }
  .footer-motto { font-size: clamp(1.7rem, 7.8vw, 1.95rem); line-height: 1.05; }
  .steps, .band-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .mosaic { gap: 6px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lightbox img { max-height: 72dvh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .mosaic figure { opacity: 1; transform: none; }
}
