[hidden] { display: none !important; }

/* ==========================================================================
   Ecoservice Garda — foglio di stile
   Direzione: lacustre e scura (dalla bozza approvata), accenti smeraldo/ciano.
   Idea guida: l'acqua del Garda (onde animate e separatori a onda).
   ========================================================================== */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #04141c;
  --bg2: #071c26;
  --bg3: #0b2d3d;
  --fg: #f4f4f5;
  --muted: #a7b4b8;
  --card: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .11);
  --a1: #34d399;
  --a2: #22d3ee;
  --onA: #03201a;
  --r: 22px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --testata-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.6; font-size: 17px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--a1); color: var(--onA); }
:focus-visible { outline: 3px solid var(--a2); outline-offset: 3px; border-radius: 4px; }
em { font-style: italic; color: var(--a1); padding-right: .1em; }

.contenitore { width: min(1240px, 92vw); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--a1); color: var(--onA); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.salta:focus { top: 1rem; }
.muto { color: var(--muted); }

.progresso { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--a1), var(--a2)); z-index: 150; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .85rem 1.6rem; border-radius: 999px; font: 600 1rem/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; background: var(--a1); color: var(--onA); white-space: nowrap; }
.btn svg { transition: transform .3s; flex: none; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn--p { background: linear-gradient(135deg, var(--a1), var(--a2)); color: var(--onA); box-shadow: 0 12px 34px -12px var(--a1); }
.btn--p:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -14px var(--a1); }
.btn--g { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--g:hover { background: #fff; color: var(--bg); }
.btn--bianco { background: #fff; color: #0a1a20; }
.btn--bianco:hover { transform: translateY(-3px); }
.btn--bordo { background: transparent; color: var(--onA); border-color: currentColor; }
.btn--bordo:hover { background: var(--onA); color: #fff; }
.btn--piccolo { min-height: 42px; padding: .6rem 1.15rem; font-size: .93rem; }
.azioni { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.azioni--centro { justify-content: center; }
.link-freccia { display: inline-flex; align-items: center; gap: .5rem; color: var(--a1); font-weight: 600; text-decoration: none; margin-top: .5rem; }
.link-freccia:hover svg { transform: translateX(4px); }
.link-freccia svg { transition: transform .3s; }
.link-sottolineato { color: var(--a1); text-underline-offset: 3px; }

/* ---------- Testata ---------- */
.testata { position: fixed; top: 0; left: 0; right: 0; z-index: 100; isolation: isolate; padding: 18px 0; transition: padding .4s, background .4s, border-color .4s; border-bottom: 1px solid transparent; }
/* Lo sfondo sfocato sta in un livello a parte: un backdrop-filter sulla testata intrappolerebbe il menu mobile (position: fixed) */
.testata::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); opacity: 0; transition: opacity .4s; }
.testata.solida { padding: 10px 0; border-bottom-color: var(--line); }
.testata.solida::before { opacity: 1; }
.menu-aperto .testata::before { opacity: 0; }
.menu-aperto .testata { background: var(--bg); border-bottom-color: var(--line); }
.testata__riga { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; position: relative; z-index: 2; }
.logo__segno { width: 44px; height: 44px; flex: none; }
.logo__img { max-height: 48px; width: auto; }
.logo__testo { font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1; }
.logo__testo small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--a1); margin-top: .3rem; }

.menu-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); cursor: pointer; display: grid; place-items: center; position: relative; z-index: 2; }
.menu-btn__icona, .menu-btn__icona::before, .menu-btn__icona::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform .25s, background .25s; }
.menu-btn__icona::before, .menu-btn__icona::after { content: ""; position: absolute; left: 0; }
.menu-btn__icona::before { top: -6px; } .menu-btn__icona::after { top: 6px; }
.menu-aperto .menu-btn__icona { background: transparent; }
.menu-aperto .menu-btn__icona::before { transform: translateY(6px) rotate(45deg); }
.menu-aperto .menu-btn__icona::after { transform: translateY(-6px) rotate(-45deg); }

.menu { position: fixed; inset: var(--testata-h) 0 0 0; background: var(--bg); padding: 1rem 6vw 3rem; overflow-y: auto; transform: translateY(-100%); visibility: hidden; transition: transform .55s var(--ease), visibility .55s; }
.menu-aperto { overflow: hidden; }
.menu-aperto .menu { transform: none; visibility: visible; }
.menu ul { list-style: none; }
.menu > ul > li > a:not(.btn) { display: block; padding: .8rem 0; font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.menu a[aria-current="page"] { color: var(--a1); }
.menu > ul > li { border-bottom: 1px solid var(--line); }
.menu > ul > li.menu__azione { border-bottom: 0; }
.menu__sotto { padding: 0 0 1rem; display: grid; gap: .15rem; }
.menu__sotto a { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .35rem .2rem; text-decoration: none; color: var(--muted); font-size: 1.05rem; border-radius: 10px; }
.menu__sotto a[aria-current="page"] { color: var(--a1); }
.menu__ic { color: var(--a1); display: inline-grid; }
.menu__azione { margin-top: 1.6rem; }
.menu__azione .btn { font-size: 1.05rem; width: 100%; min-height: 54px; }

@media (min-width: 860px) {
  .menu-btn { display: none; }
  .menu { position: static; transform: none; visibility: visible; padding: 0; background: none; overflow: visible; }
  .menu > ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
  .menu > ul > li { border-bottom: 0; }
  .menu__azione .btn { width: auto; min-height: 42px; }
  .menu > ul > li { position: relative; }
  .menu > ul > li > a:not(.btn) { font-size: .98rem; font-weight: 500; letter-spacing: 0; padding: .5rem 0; position: relative; color: #fff; }
  .menu > ul > li > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--a1); transition: width .3s; }
  .menu > ul > li > a:not(.btn):hover::after, .menu > ul > li > a[aria-current="page"]::after { width: 100%; }
  .menu > ul > li > a[aria-current="page"] { color: #fff; }
  .menu__tendina > a::before { content: ""; position: absolute; right: -14px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); opacity: .7; }
  .menu__tendina > a { margin-right: 10px; }
  .menu__sotto { position: absolute; top: 100%; left: -1.2rem; min-width: 320px; padding: .7rem; display: grid; gap: .1rem; margin-top: .8rem; background: color-mix(in srgb, var(--bg2) 96%, transparent); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .menu__sotto::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
  .menu__tendina:hover .menu__sotto, .menu__tendina:focus-within .menu__sotto { opacity: 1; visibility: visible; transform: none; }
  .menu__sotto a { min-height: 0; padding: .65rem .8rem; border-radius: 12px; color: var(--fg); font-size: .95rem; }
  .menu__sotto a:hover, .menu__sotto a[aria-current="page"] { background: rgba(52, 211, 153, .1); color: var(--a1); }
  .menu__azione { margin-top: 0; }
  .menu__azione .btn { font-size: .93rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 150px 0 clamp(110px, 14vh, 160px); color: #fff; overflow: hidden; background: var(--bg3); isolation: isolate; }
.hero__sfondo { position: absolute; inset: 0; z-index: -1; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 18s ease-out both; }
@keyframes kb { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__sfondo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(4, 20, 28, .55) 0%, rgba(4, 20, 28, .1) 35%, rgba(4, 20, 28, .55) 70%, var(--bg) 100%),
  linear-gradient(90deg, rgba(4, 20, 28, .8) 0%, rgba(4, 20, 28, .15) 65%); }
.hero__onde { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: 1; pointer-events: none; }
.hero__testo { position: relative; z-index: 2; }
.etichetta-vetro { display: inline-flex; align-items: center; gap: .6rem; margin: 0; padding: .55rem 1.05rem; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.etichetta-vetro::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--a1); animation: ping 2s infinite; }
.etichetta-vetro:has(.etichetta-vetro__ic)::before { display: none; }
.etichetta-vetro__ic { display: inline-grid; color: var(--a1); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 100% { box-shadow: 0 0 0 14px transparent; } }
.hero__titolo { font-size: clamp(3.2rem, 8.6vw, 8.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 700; margin: 1.4rem 0 1.5rem; max-width: 12ch; text-wrap: balance; }
.hero__titolo--servizio { font-size: clamp(2.6rem, 6.2vw, 5.6rem); max-width: 16ch; }
.hero__sotto { font-size: clamp(1.08rem, 1.45vw, 1.3rem); max-width: 56ch; opacity: .92; }
.hero__sotto p:last-child { margin: 0; }
.hero--servizio { min-height: 82vh; min-height: 82svh; }
.briciole { font-size: .88rem; color: rgba(255, 255, 255, .78); margin-bottom: 1.3rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.briciole a { text-decoration: none; }
.briciole a:hover { color: var(--a1); }
.briciole [aria-current] { color: #fff; }

/* Comparsa del titolo all'avvio */
@media (prefers-reduced-motion: no-preference) {
  .hero__testo > * { animation: sale 1.1s var(--ease) both; }
  .hero__testo > *:nth-child(2) { animation-delay: .1s; }
  .hero__testo > *:nth-child(3) { animation-delay: .2s; }
  .hero__testo > *:nth-child(4) { animation-delay: .3s; }
  .hero__testo > *:nth-child(5) { animation-delay: .4s; }
}
@keyframes sale { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Fascia scorrevole ---------- */
.scorrevole { background: linear-gradient(90deg, var(--a1), var(--a2)); color: var(--onA); overflow: hidden; padding: 1.15rem 0; white-space: nowrap; font-size: clamp(1.35rem, 2.6vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
.scorrevole__traccia { display: inline-flex; animation: scorri 40s linear infinite; }
.scorrevole span { padding-right: 3rem; }
.scorrevole span::after { content: "✦"; margin-left: 3rem; opacity: .5; font-size: .7em; vertical-align: middle; }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
.sezione { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sezione--alt { background: var(--bg2); }
.sezione--stretta { padding: clamp(56px, 7vw, 90px) 0; }
.sezione--attaccata { padding-top: clamp(48px, 6vw, 80px); }
.sezione--acqua { background: radial-gradient(120% 80% at 80% 0%, #0d3a4a 0%, var(--bg2) 55%, var(--bg) 100%); padding-top: clamp(110px, 13vw, 180px); }
.occhiello { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.1rem; font-size: .8rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--a1); }
.occhiello::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.titolo-sez { font-size: clamp(2.3rem, 5.2vw, 4.8rem); line-height: 1; letter-spacing: -.035em; margin-bottom: 1.6rem; text-wrap: balance; }
.titolo-sez--medio { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.titolo-sez--stretto { max-width: 18ch; }
.prosa { max-width: 62ch; color: var(--muted); }
.prosa--grande { font-size: clamp(1.06rem, 1.3vw, 1.2rem); }
.prosa strong { color: var(--fg); }
.sottotitolo-piccolo { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg); margin: 2.2rem 0 1rem; font-weight: 700; }

.due-col { display: grid; gap: clamp(40px, 6vw, 100px); align-items: start; }
@media (min-width: 900px) {
  .due-col--chi { grid-template-columns: 1.05fr .95fr; }
  .due-col--servizio { grid-template-columns: 1.15fr .85fr; }
  .due-col--faq { grid-template-columns: .8fr 1.2fr; }
  .due-col--contatti { grid-template-columns: .95fr 1.05fr; }
}

/* Numeri */
.numeri { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.numero { padding: 1.7rem 1.5rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.numero b { display: block; font-size: clamp(2.3rem, 3.8vw, 3.5rem); line-height: 1; letter-spacing: -.03em; margin-bottom: .5rem; background: linear-gradient(135deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numero span { color: var(--muted); font-size: .95rem; line-height: 1.35; display: block; }
.foto-arrotondata { margin: 14px 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg3); }
.foto-arrotondata img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.foto-arrotondata:hover img { transform: scale(1.04); }
.foto-arrotondata--alta { aspect-ratio: 4 / 5; margin: 0; }

/* Intestazione con testo a destra */
.intestazione { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: clamp(40px, 5vw, 64px); }
.intestazione .titolo-sez { margin-bottom: 0; max-width: 15ch; }
.intestazione .prosa { max-width: 44ch; }
.intestazione .prosa p:last-child { margin: 0; }

/* Schede servizi (home) */
.schede { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.scheda { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform .5s var(--ease), border-color .4s, background .4s; }
.scheda:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--a1) 60%, transparent); background: rgba(52, 211, 153, .05); }
.scheda__foto { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #0f4a4a, #0b2d3d); position: relative; }
.scheda__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.scheda:hover .scheda__foto img { transform: scale(1.07); }
.scheda__vuota { position: absolute; inset: 0; display: grid; place-items: center; color: var(--a1); }
.scheda__testo { display: flex; flex-direction: column; gap: .55rem; padding: 1.6rem 1.6rem 1.7rem; position: relative; flex: 1; }
.scheda__num { position: absolute; top: 1.5rem; right: 1.6rem; color: var(--muted); font-size: .9rem; }
.scheda__ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(52, 211, 153, .13); color: var(--a1); margin: -3.2rem 0 .4rem; border: 4px solid var(--bg2); box-sizing: content-box; background-clip: padding-box; position: relative; }
.scheda__ic::before { content: ""; position: absolute; inset: 0; background: var(--bg2); z-index: -1; border-radius: 12px; }
.scheda h3 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); }
.scheda__breve { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.scheda__vai { margin-top: auto; padding-top: .7rem; display: inline-flex; align-items: center; gap: .45rem; color: var(--a1); font-weight: 600; font-size: .95rem; }

/* Elenco con filetti */
.elenco-filetti { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line); margin-top: clamp(30px, 4vw, 50px); }
.elenco-filetti li { padding: 2.2rem 1.8rem 2.4rem 0; border-bottom: 1px solid var(--line); }
.elenco-filetti b { display: block; color: var(--a1); font-size: .95rem; letter-spacing: .1em; }
.elenco-filetti h3 { font-size: 1.4rem; margin: 1rem 0 .6rem; }
.elenco-filetti p { color: var(--muted); max-width: 36ch; margin: 0; }

/* Tappe del metodo */
.tappe { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; counter-reset: t; position: relative; margin-top: clamp(20px, 3vw, 40px); }
.tappe li { position: relative; padding: 1.8rem 1.6rem 1.9rem; border-radius: var(--r); background: rgba(4, 20, 28, .55); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.tappe__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, var(--a1), var(--a2)); color: var(--onA); margin-bottom: 1.2rem; }
.tappe li:not(:last-child)::after { content: ""; position: absolute; top: 3.55rem; right: -18px; width: 18px; height: 2px; background: linear-gradient(90deg, var(--a1), transparent); }
.tappe h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.tappe p { color: var(--muted); margin: 0; }

/* Onde */
.onda { position: absolute; left: 0; right: 0; height: clamp(40px, 6vw, 80px); line-height: 0; pointer-events: none; }
.onda svg { width: 100%; height: 100%; display: block; }
.onda--su { top: -1px; transform: rotate(180deg); }
.onda--su svg path { fill: var(--bg); }
.onda--testata { bottom: -1px; }
.onda--testata svg path { fill: var(--bg2); }
.onda--piede { top: -1px; transform: rotate(180deg); }
.onda--piede svg path { fill: var(--bg-sopra-piede, var(--bg)); }
.pagina-contatti, .pagina-zone-servite { --bg-sopra-piede: var(--bg2); }
@media (prefers-reduced-motion: no-preference) {
  .onda svg path:first-child { animation: ondeggia 7s ease-in-out infinite alternate; transform-origin: center; }
}
@keyframes ondeggia { to { transform: translateX(-3%) scaleY(1.25); } }

/* Invito finale */
.invito-wrap { padding: 0 0 clamp(90px, 11vw, 150px); }
.sezione--alt + .invito-wrap { background: linear-gradient(var(--bg2) 50%, var(--bg) 50%); }
.invito { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: calc(var(--r) * 1.6); padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 90px); background: linear-gradient(135deg, var(--a1), var(--a2)); color: var(--onA); }
.invito::before, .invito::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(60px); z-index: -1; }
.invito::before { left: -160px; top: -220px; background: rgba(255, 255, 255, .22); }
.invito::after { right: -160px; bottom: -260px; background: rgba(0, 0, 0, .14); }
.invito h2 { font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -.04em; max-width: 15ch; margin: 0 auto 1.3rem; text-wrap: balance; }
.invito h2 em { color: inherit; }
.invito__testo { max-width: 52ch; margin: 0 auto; font-size: 1.15rem; }
.invito .btn--bordo { color: var(--onA); }

/* ---------- Testata delle pagine interne ---------- */
.testata-pagina { position: relative; padding: calc(var(--testata-h) + clamp(60px, 9vw, 120px)) 0 clamp(100px, 12vw, 170px); background: radial-gradient(90% 120% at 85% 0%, #0f3e4d 0%, var(--bg) 60%); overflow: hidden; }
.testata-pagina::before { content: ""; position: absolute; right: -10vw; top: -20vw; width: 55vw; height: 55vw; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 65%); }
.testata-pagina .contenitore { position: relative; }
.titolo-pagina { font-size: clamp(2.9rem, 7.6vw, 7rem); line-height: .96; letter-spacing: -.045em; max-width: 14ch; margin-bottom: 1.6rem; text-wrap: balance; }
.testata-pagina__intro { max-width: 60ch; }

/* Elenco servizi (pagina Servizi): zig-zag */
.lista-servizi { display: grid; gap: clamp(28px, 4vw, 48px); }
.riga-servizio { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 860px) {
  .riga-servizio { grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); }
  .riga-servizio:nth-child(even) .riga-servizio__foto { order: 2; }
}
.riga-servizio__foto { display: block; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #0f4a4a, #0b2d3d); }
.riga-servizio__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.riga-servizio:hover .riga-servizio__foto img { transform: scale(1.05); }
.riga-servizio__num { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(52, 211, 153, .65); display: block; margin-bottom: .6rem; }
.riga-servizio h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .9rem; }
.riga-servizio h2 a { text-decoration: none; }
.riga-servizio h2 a:hover { color: var(--a1); }
.riga-servizio__testo > p { color: var(--muted); font-size: 1.08rem; max-width: 48ch; }

.nota-documento { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; padding: clamp(26px, 4vw, 44px); border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent); background: rgba(52, 211, 153, .06); }
.nota-documento__ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(52, 211, 153, .14); color: var(--a1); }
.nota-documento h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); margin-bottom: .7rem; }
.nota-documento p { color: var(--muted); margin: 0; max-width: 70ch; }

/* Chip */
.chip { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip li { padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .93rem; font-weight: 500; }
.chip--piccoli { margin: 1rem 0 1.2rem; }
.chip--piccoli li { font-size: .84rem; padding: .38rem .8rem; color: var(--muted); }

/* Riquadro interventi */
.riquadro { padding: clamp(26px, 3vw, 40px); border-radius: calc(var(--r) * 1.15); background: var(--bg2); border: 1px solid var(--line); position: sticky; top: calc(var(--testata-h) + 20px); }
.riquadro__titolo { font-size: 1.5rem; margin-bottom: 1.4rem; }
.punti { list-style: none; display: grid; gap: 0; }
.punti li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.punti__n { color: var(--a1); font-weight: 700; font-size: .9rem; padding-top: .15rem; }
.punti h3 { font-size: 1.12rem; margin-bottom: .3rem; letter-spacing: -.01em; }
.punti p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }

/* Galleria (masonry) */
.galleria { columns: 3 300px; column-gap: 16px; }
.galleria figure { margin: 0 0 16px; break-inside: avoid; border-radius: 18px; overflow: hidden; position: relative; background: var(--bg3); }
.galleria a { display: block; position: relative; cursor: zoom-in; }
.galleria img { width: 100%; transition: transform 1.2s var(--ease), filter .5s; }
.galleria a:hover img { transform: scale(1.05); }
.galleria a::after { content: "+"; position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0a1a20; font-size: 1.5rem; opacity: 0; transform: scale(.6); transition: .35s var(--ease); }
.galleria a:hover::after, .galleria a:focus-visible::after { opacity: 1; transform: none; }
.galleria figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 70px); padding: .35rem .75rem; border-radius: 999px; background: rgba(4, 20, 28, .75); backdrop-filter: blur(6px); font-size: .82rem; font-weight: 500; pointer-events: none; }
.galleria--quattro { columns: 4 240px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: var(--card); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--a1) 50%, transparent); background: rgba(52, 211, 153, .05); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; font-weight: 600; font-size: 1.1rem; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: none; color: var(--a1); transition: transform .3s; display: inline-grid; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq__risposta { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq__risposta p:last-child { margin: 0; }

/* Altri servizi */
.altri-servizi { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.altri-servizi a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; min-height: 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; transition: border-color .3s, transform .4s var(--ease); }
.altri-servizi a:hover { border-color: var(--a1); transform: translateX(6px); }
.altri-servizi a > span:nth-child(2) { flex: 1; line-height: 1.25; }
.altri-servizi small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; letter-spacing: .1em; }
.altri-servizi__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(52, 211, 153, .12); color: var(--a1); flex: none; }
.altri-servizi a > svg { color: var(--a1); flex: none; }

/* Citazione */
.citazione { margin: 0 auto; max-width: 900px; text-align: center; }
.citazione p { font-size: clamp(1.7rem, 3.5vw, 3rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; margin-bottom: 1.3rem; }
.citazione p::before { content: "“"; display: block; font-size: 2.2em; line-height: .6; color: var(--a1); margin-bottom: .2em; }
.citazione footer { color: var(--a1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }

/* Zone servite */
.foto-panorama { margin: 0 0 clamp(36px, 5vw, 60px); border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; }
.foto-panorama img { width: 100%; height: 100%; object-fit: cover; }
.zone { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.zona { padding: 1.7rem 1.6rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.zona__n { color: var(--a1); font-weight: 700; font-size: .9rem; }
.zona h2 { font-size: 1.5rem; margin: .6rem 0 .2rem; }
.zone__fine { margin-top: 2.5rem; }

/* ---------- Contatti ---------- */
.recapiti { list-style: none; display: grid; gap: 10px; }
.recapito { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), border-color .3s; }
.recapito:hover { transform: translateX(6px); border-color: var(--a1); }
.recapito__ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(52, 211, 153, .13); color: var(--a1); }
.recapito small { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.recapito strong { font-size: 1.08rem; font-weight: 600; word-break: break-word; }
.dati-fiscali dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.4rem; margin: 0; padding: 1.3rem 1.4rem; border-radius: 18px; border: 1px dashed var(--line); font-size: .98rem; }
.dati-fiscali dt { color: var(--muted); }
.dati-fiscali dd { margin: 0; font-weight: 600; word-break: break-word; }
.modulo-box { padding: clamp(24px, 3.5vw, 44px); border-radius: calc(var(--r) * 1.2); background: var(--bg); border: 1px solid var(--line); scroll-margin-top: calc(var(--testata-h) + 20px); }
.modulo-box h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .5rem; }
.modulo { display: grid; gap: 1rem; margin-top: 1.4rem; }
.modulo label { display: grid; gap: .4rem; font-weight: 500; font-size: .95rem; }
.modulo__riga { display: grid; gap: 1rem; }
@media (min-width: 560px) { .modulo__riga { grid-template-columns: 1fr 1fr; } }
.modulo input[type="text"], .modulo input[type="email"], .modulo input[type="tel"], .modulo textarea { width: 100%; padding: .95rem 1.05rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); font: inherit; font-size: 1rem; transition: border-color .3s, box-shadow .3s; }
.modulo input:focus, .modulo textarea:focus { outline: 0; border-color: var(--a1); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.modulo textarea { min-height: 150px; resize: vertical; }
.modulo textarea::placeholder { color: #6f8187; }
.modulo .modulo__check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.modulo__check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--a1); flex: none; }
.modulo__check a { color: var(--a1); }
.modulo .btn { justify-self: start; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nota { font-size: .85rem; color: var(--muted); margin: 0; }
.avviso { padding: 1rem 1.2rem; border-radius: 14px; margin: 1rem 0 0; }
.avviso ul { margin: 0; padding-left: 1.1rem; }
.avviso--ok { background: rgba(52, 211, 153, .13); border: 1px solid var(--a1); color: #c9f7e4; }
.avviso--errore { background: rgba(248, 113, 113, .12); border: 1px solid #f87171; color: #fecaca; }
.mappa { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: 1.6rem; background: var(--card); }
.mappa iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.4) contrast(.95); }
.mappa__segnaposto { padding: 1.5rem; color: var(--muted); font-size: .95rem; }
.mappa__segnaposto a { color: var(--a1); }
.consenso-attivo .mappa__segnaposto { display: none; }

/* ---------- Pagine legali e 404 ---------- */
main > .sezione.contenitore:first-child { padding-top: calc(var(--testata-h) + 70px); }
.legale { max-width: 780px; color: #d4dcde; }
.legale h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .8rem; letter-spacing: -.03em; }
.legale h2 { font-size: 1.35rem; margin: 2.2em 0 .7em; color: var(--fg); }
.legale ul { padding-left: 1.2rem; margin-bottom: 1em; }
.legale a { color: var(--a1); }
.pagina-404 main h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.tabella-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }
.tabella-scroll table { border-collapse: collapse; min-width: 560px; width: 100%; font-size: .92em; }
.tabella-scroll th, .tabella-scroll td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.tabella-scroll th { background: var(--bg2); color: var(--fg); }

/* ---------- Piede ---------- */
.piede { position: relative; background: var(--bg2); color: var(--muted); padding-top: clamp(90px, 10vw, 140px); font-size: .98rem; }
.piede__grande { font-size: clamp(2.8rem, 10vw, 9rem); font-weight: 700; letter-spacing: -.05em; line-height: .9; color: var(--fg); margin: 0 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--fg) 30%, rgba(244, 244, 245, .25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.piede__griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2rem 3rem; padding-bottom: 3rem; }
.piede__titolo { color: var(--fg); font-weight: 700; margin-bottom: .9rem; font-size: 1.02rem; }
.piede__lista { list-style: none; display: grid; gap: .45rem; }
.piede a { text-decoration: none; transition: color .2s; }
.piede a:hover { color: var(--a1); }
.piede__link-pagine { margin-top: 1rem; }
.piede__legale { border-top: 1px solid var(--line); padding-block: 1.4rem; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: center; }
.piede__legale p { margin: 0; }
.piede__link { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.piede__credito { border-top: 1px solid var(--line); padding: 1rem 0 1.4rem; font-size: .85rem; text-align: center; }
.piede__credito a { color: var(--fg); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--a1); }

/* WhatsApp flottante (desktop) e barra fissa (mobile) */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .5); transition: transform .3s; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: anello 2.6s infinite; }
@keyframes anello { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.barra-mobile { display: none; }
@media (max-width: 859px) {
  .fab-wa { display: none; }
  .barra-mobile { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .menu-aperto .barra-mobile { display: none; }
  .barra-mobile a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; border-radius: 14px; font-weight: 600; text-decoration: none; background: var(--a1); color: var(--onA); }
  .barra-mobile a.barra-mobile__wa { background: #25d366; color: #052e16; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .cookie { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(2, 10, 14, .94); display: grid; place-items: center; padding: 4vw; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__chiudi { position: absolute; top: 16px; right: 16px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__didascalia { margin: 1rem 0 0; color: var(--muted); text-align: center; }
.lightbox__didascalia:empty { display: none; }

/* ---------- Banner cookie ---------- */
.cookie { position: fixed; z-index: 250; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); padding: 1.6rem; font-size: .95rem; }
@media (min-width: 640px) { .cookie { left: 1.5rem; bottom: 1.5rem; } }
.cookie a { color: var(--a1); }
.cookie__titolo { font-size: 1.25rem; margin-bottom: .6rem; padding-right: 2rem; }
.cookie p { color: var(--muted); }
.cookie__chiudi { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border: 0; background: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cookie__chiudi:hover { color: #fff; }
.cookie__preferenze { display: grid; gap: .8rem; margin: 1rem 0; padding: 1rem; background: var(--bg); border-radius: 14px; }
.cookie__cat { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.cookie__cat strong { color: var(--fg); }
.cookie__cat input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--a1); }
.cookie__azioni { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn--cookie { flex: 1 1 auto; min-height: 46px; padding: .7em 1.1em; font-size: .95rem; background: var(--a1); color: var(--onA); }

/* ---------- Comparsa delle sezioni ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rivela { animation: rivela linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}
@keyframes rivela { from { opacity: 0; transform: translateY(2rem); } }

/* ---------- Mobile ---------- */
@media (max-width: 859px) {
  :root { --testata-h: 72px; }
  .testata { padding: 12px 0; }
  .logo__segno { width: 40px; height: 40px; }
  .logo__testo { font-size: 1.3rem; }
  .hero { padding-top: 120px; }
  .tappe li:not(:last-child)::after { display: none; }
  .riquadro { position: static; }
  .foto-panorama { aspect-ratio: 4 / 3; }
  .galleria { columns: 2 150px; column-gap: 10px; }
  .galleria figure { margin-bottom: 10px; border-radius: 14px; }
  .galleria figcaption { font-size: .74rem; left: 8px; bottom: 8px; }
  .elenco-filetti li { padding-right: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .numero { padding: 1.3rem 1.1rem; }
  .azioni .btn { flex: 1 1 100%; }
  .nota-documento { grid-template-columns: 1fr; }
  .scorrevole { padding: .9rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
