/* ==========================================================
   NG Idraulica — Nicola Giancaspero
   Layout: pagina unica a fasce; porcellana fredda + rame dei tubi.
   Il manometro dell'hero è il segno distintivo.
   ========================================================== */

/* ---------- Font (inclusi nella cartella, funzionano anche offline) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Colori: tema chiaro (base) ---------- */
:root {
  --bg: #EEF1F1;          /* porcellana */
  --bg-2: #E2E8E8;
  --surface: #F8FAFA;
  --fg: #121819;          /* ghisa */
  --fg-2: #3D4749;
  --muted: #687375;
  --line: rgba(18, 24, 25, .13);
  --line-2: rgba(18, 24, 25, .28);

  --accent: #A9531D;      /* rame */
  --accent-hover: #8C4314;
  --accent-ink: #FFF8F2;
  --ok: #2E7A72;          /* zona verde del manometro */

  --band-bg: #142022;
  --band-2: #1C2A2C;
  --band-fg: #E6ECEC;
  --band-fg-2: #A9B6B7;
  --band-line: rgba(230, 236, 236, .14);
  --band-line-2: rgba(230, 236, 236, .30);
  --band-accent: #E08A4E;

  --header-bg: rgba(238, 241, 241, .88);
  --shadow: 0 18px 50px rgba(18, 24, 25, .16);
  --backdrop: rgba(10, 14, 15, .48);

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec: clamp(72px, 9vw, 120px);
  --radius: 6px;
  --head-h: 72px;
}

/* ---------- Tema scuro ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1314; --bg-2: #141B1C; --surface: #182122;
    --fg: #E7ECEC; --fg-2: #B3BEBF; --muted: #869293;
    --line: rgba(231, 236, 236, .12); --line-2: rgba(231, 236, 236, .26);
    --accent: #E08A4E; --accent-hover: #F0A26A; --accent-ink: #1A0E06; --ok: #5DB5A9;
    --band-bg: #19393A; --band-2: #1F4344; --band-fg: #EAF1F0; --band-fg-2: #AFC4C3;
    --band-line: rgba(234, 241, 240, .14); --band-line-2: rgba(234, 241, 240, .30); --band-accent: #F0A26A;
    --header-bg: rgba(14, 19, 20, .86); --shadow: 0 18px 50px rgba(0, 0, 0, .5); --backdrop: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1314; --bg-2: #141B1C; --surface: #182122;
  --fg: #E7ECEC; --fg-2: #B3BEBF; --muted: #869293;
  --line: rgba(231, 236, 236, .12); --line-2: rgba(231, 236, 236, .26);
  --accent: #E08A4E; --accent-hover: #F0A26A; --accent-ink: #1A0E06; --ok: #5DB5A9;
  --band-bg: #19393A; --band-2: #1F4344; --band-fg: #EAF1F0; --band-fg-2: #AFC4C3;
  --band-line: rgba(234, 241, 240, .14); --band-line-2: rgba(234, 241, 240, .30); --band-accent: #F0A26A;
  --header-bg: rgba(14, 19, 20, .86); --shadow: 0 18px 50px rgba(0, 0, 0, .5); --backdrop: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
.skip { position: absolute; left: -9999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; z-index: 500; }
.skip:focus { left: 8px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--sec); }
.section--alt { background: var(--bg-2); }
.section--band { background: var(--band-bg); color: var(--band-fg); }
.section--band p { color: var(--band-fg-2); }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; font-stretch: 112%; line-height: 1.04; letter-spacing: -.015em; }
h3 { font-size: clamp(20px, 1.8vw, 23px); font-weight: 700; font-stretch: 105%; line-height: 1.2; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.section--band h2 em, .fgas h2 em { color: var(--band-accent); }
p { margin: 0 0 1em; color: var(--fg-2); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.label--band { color: var(--band-accent); }

.center { text-align: center; }
.head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.head h2 { margin-top: 16px; }
.head > p { max-width: 540px; margin: 20px 0 0; }
.head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.head--split > p { margin: 0 0 6px; }

/* ---------- Bottoni e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px; background: transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 600; font-stretch: 105%;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--line { border-color: var(--line-2); }
.btn--line:hover { border-color: var(--fg); }
.section--band .btn--line, .cookie .btn--line { border-color: var(--band-line-2); color: var(--band-fg); }
.section--band .btn--line:hover, .cookie .btn--line:hover { border-color: var(--band-fg); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1.5px solid var(--accent); padding-bottom: 3px; transition: color .2s ease;
}
.link::after { content: "→"; transition: transform .2s ease; }
.link:hover { color: var(--accent); }
.link:hover::after { transform: translateX(3px); }
.link--inline { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101; background: var(--header-bg); }
.header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--fg); }
.brand__mark { display: block; width: 46px; height: 39px; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__txt {
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  padding-left: 12px; border-left: 1.5px solid var(--line-2); line-height: 1.6;
}

.nav { display: flex; gap: clamp(22px, 3vw, 40px); margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; color: var(--fg-2); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transition: right .25s ease; }
.nav a:hover { color: var(--fg); }
.nav a:hover::after { right: 0; }
.header__right { display: flex; align-items: center; gap: 12px; margin-left: clamp(16px, 2.5vw, 32px); }

.theme-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-2); background: none;
  display: grid; place-items: center; cursor: pointer; color: var(--fg); transition: border-color .2s, transform .4s ease;
}
.theme-btn:hover { border-color: var(--fg); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; grid-area: 1 / 1; transition: opacity .25s ease, transform .4s ease; }
.theme-btn .i-moon { fill: currentColor; stroke: none; }
/* Mostra la luna in chiaro (passa a scuro) e il sole in scuro (passa a chiaro) */
.theme-btn .i-sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { opacity: 0; transform: rotate(60deg) scale(.6); }
}
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 0; transform: rotate(60deg) scale(.6); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; color: var(--fg); }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; right: 17px; }
.burger span:nth-child(3) { top: 27px; }

/* ---------- Menu mobile: pannello laterale da destra (come loshop3d) ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 140; background: var(--backdrop);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(86vw, 380px);
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top, 0px)) calc(22px + env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) 24px;
  transform: translateX(105%); visibility: hidden;
  transition: transform .42s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .42s;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
body.menu-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
body.menu-open .drawer-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer__head .brand__mark { width: 40px; height: 34px; }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: none; display: grid; place-items: center; cursor: pointer; color: var(--fg); }
.drawer__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer__close:hover { border-color: var(--fg); }

.drawer__nav { display: flex; flex-direction: column; padding: 8px 0 16px; }
.drawer__nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 0;
  font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 23px; line-height: 1.1;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(18px); transition: opacity .3s ease, transform .4s ease, color .2s;
}
.drawer__nav a:hover { color: var(--accent); }
.drawer__nav i { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--accent); min-width: 20px; }
body.menu-open .drawer__nav a { opacity: 1; transform: none; }
body.menu-open .drawer__nav a:nth-child(1) { transition-delay: .08s; }
body.menu-open .drawer__nav a:nth-child(2) { transition-delay: .11s; }
body.menu-open .drawer__nav a:nth-child(3) { transition-delay: .14s; }
body.menu-open .drawer__nav a:nth-child(4) { transition-delay: .17s; }
body.menu-open .drawer__nav a:nth-child(5) { transition-delay: .20s; }
body.menu-open .drawer__nav a:nth-child(6) { transition-delay: .23s; }
body.menu-open .drawer__nav a:nth-child(7) { transition-delay: .26s; }

.drawer__foot { margin-top: auto; display: grid; gap: 12px; padding-top: 8px; }
.drawer__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__contacts a, .drawer__theme {
  display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: 15px; background: none; text-align: left; cursor: pointer;
}
.drawer__contacts .mono, .drawer__theme .mono { font-size: 10.5px; color: var(--muted); font-weight: 400; }
.drawer__theme { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Foto mancanti: piastrelle con il nome del file ---------- */
.ph { position: relative; overflow: hidden; background: var(--bg-2); border-radius: var(--radius); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-missing img { display: none; }
.ph.is-missing {
  background-color: var(--bg-2);
  background-image:
    linear-gradient(var(--line) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--line) 1.5px, transparent 1.5px);
  background-size: 44px 44px;
  background-position: -1px -1px;
}
.ph.is-missing::after {
  content: "FOTO · " attr(data-file);
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  background: var(--fg); color: var(--bg); padding: 5px 8px; border-radius: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(48px, 6vw, 80px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 20px 0 24px; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); max-width: 560px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta [data-phone-text] { font-variant-numeric: tabular-nums; }

/* Manometro */
.gauge { margin: 0; justify-self: center; width: 100%; max-width: 400px; display: grid; gap: 14px; justify-items: center; }
.gauge svg { width: 100%; height: auto; max-width: 100%; overflow: visible; }
.gauge figcaption { color: var(--muted); text-align: center; }
.g-ring { fill: var(--surface); stroke: var(--fg); stroke-width: 10; }
.g-inner { fill: none; stroke: var(--line); stroke-width: 1.5; }
.g-tick { stroke: var(--fg); stroke-linecap: round; }
.g-tick--min { stroke: var(--muted); }
.g-num { fill: var(--fg); font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 26px; }
.g-ok { fill: none; stroke: var(--ok); stroke-width: 9; }
.g-hot { fill: none; stroke: var(--accent); stroke-width: 9; }
.g-unit { fill: var(--muted); font-family: var(--mono); font-size: 15px; letter-spacing: .1em; }
.g-brand { fill: var(--fg); }
.g-read { fill: var(--fg); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.g-needle { fill: var(--accent); transform-origin: 200px 200px; transform: rotate(-33.75deg); animation: needle 2.2s cubic-bezier(.3, 1.5, .5, 1) .3s both; }
.g-hub { fill: var(--fg); }
.g-hub-dot { fill: var(--surface); }
@keyframes needle {
  0% { transform: rotate(-135deg); }
  100% { transform: rotate(-33.75deg); }
}

.facts { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--fg); }
.facts li { display: grid; gap: 4px; padding: 22px 24px 4px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 18px; }
.facts span { color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* ---------- Servizi ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 26px 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease;
}
.service:hover { border-color: var(--accent); transform: translateY(-3px); }
.service__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; color: var(--accent); }
.service__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-top: 6px; }
.service p { font-size: 15.5px; line-height: 1.55; margin: 0; }
.ticks { list-style: none; margin: 0 0 6px; padding: 14px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 7px; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.4; color: var(--fg-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; }
.service--wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; }
.service--wide .ticks { border-top: 0; border-left: 1px dashed var(--line-2); padding: 0 0 0 28px; margin: 0; }
.service--wide h3 { margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 28px); }

/* ---------- F-GAS ---------- */
.fgas { background: var(--band-bg); color: var(--band-fg); padding-block: clamp(64px, 8vw, 104px); }
.fgas__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.fgas__badge {
  width: clamp(170px, 20vw, 230px); aspect-ratio: 1; max-width: 100%; border-radius: 50%;
  border: 2px solid var(--band-line-2); outline: 1px dashed var(--band-line-2); outline-offset: 8px;
  display: grid; place-content: center; text-align: center; gap: 6px;
}
.fgas__badge b { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--band-accent); }
.fgas__badge .mono { color: var(--band-fg-2); font-size: 11px; }
.fgas h2 { margin: 16px 0 20px; }
.fgas p { color: var(--band-fg-2); max-width: 640px; }
.fgas__ref { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--band-line); color: var(--band-fg-2) !important; font-size: 11.5px; }

/* ---------- Prima / dopo ---------- */
.ba { position: relative; margin: 0; aspect-ratio: 16 / 9; max-width: 100%; user-select: none; touch-action: pan-y; border-radius: var(--radius); overflow: hidden; }
.ba__img { position: absolute; inset: 0; border-radius: 0; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__img--before.is-missing { background-color: var(--surface); }
.ba__img:not(.ba__img--before).is-missing::after { left: auto; right: 12px; }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; z-index: 2; }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 3; width: 50px; height: 50px; transform: translate(-50%, -50%);
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; pointer-events: none;
  border-radius: 50%; box-shadow: var(--shadow);
}
.ba__handle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.ba__range:focus-visible ~ .ba__handle { outline: 2px solid var(--fg); outline-offset: 3px; }
.ba__tag { position: absolute; top: 14px; z-index: 1; background: var(--fg); color: var(--bg); padding: 5px 10px; border-radius: 4px; }
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; }
.ba__cap { color: var(--muted); margin: 12px 0 0; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.gallery__item { aspect-ratio: 4 / 5; max-width: 100%; border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
.gallery__item img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item > span {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 5px 9px; border-radius: 4px;
}
.gallery__item.is-missing { cursor: default; }
.ig-cta { margin-top: 40px; }
.ig-cta .btn { max-width: 100%; white-space: normal; }

/* ---------- Chi sono ---------- */
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__ph { aspect-ratio: 4 / 5; max-width: 100%; }
.about h2 { margin: 16px 0 24px; }
.about__specs { margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--fg); }
.about__specs div { padding: 16px 16px 0 0; display: grid; gap: 4px; }
.about__specs div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.about__specs dt { color: var(--muted); font-size: 11px; }
.about__specs dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.3; }

/* ---------- Metodo ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 3px; border-radius: 3px; background: var(--line-2); }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.steps__n {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 3px solid var(--fg); color: var(--fg); font-size: 13px; font-weight: 500; margin-bottom: 10px;
}
.steps li:last-child .steps__n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps p { font-size: 15.5px; margin: 0; }

/* ---------- Domande ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-wrap__head { position: sticky; top: calc(var(--head-h) + 32px); margin: 0; }
.faq { border-top: 1.5px solid var(--fg); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.3;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2);
  transition: transform .35s ease, background-color .35s ease, border-color .35s ease, color .35s ease;
}
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; background: currentColor; border-radius: 2px; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq__body > div { overflow: hidden; }
.faq__item.is-open .faq__body { grid-template-rows: 1fr; }
.faq__body p { margin: 0 0 22px; max-width: 600px; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__intro h2 { margin: 16px 0 20px; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--band-line); }
.contact__list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--band-line); align-items: baseline; }
.contact__list .mono { color: var(--band-fg-2); font-size: 11px; }
.contact__list a { font-weight: 600; overflow-wrap: anywhere; cursor: pointer; transition: color .2s; }
.contact__list a:hover { color: var(--band-accent); }

.form { background: var(--band-2); border: 1px solid var(--band-line); border-radius: calc(var(--radius) * 2); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > legend { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--band-fg-2); padding: 0; margin-bottom: 8px; }
.field > label { margin-bottom: 0; }
.form input:not([type=radio]), .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--band-bg); border: 1px solid var(--band-line-2); color: var(--band-fg); transition: border-color .2s ease;
}
.form textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.form textarea::placeholder { color: var(--band-fg-2); opacity: .6; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--band-fg-2) 50%), linear-gradient(-45deg, transparent 50%, var(--band-fg-2) 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: var(--band-bg); color: var(--band-fg); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--band-accent); }
.form .is-invalid { border-color: var(--band-accent) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--band-line-2); border-radius: 999px; font-size: 15px; transition: all .2s ease; }
.chips input:checked + span { background: var(--band-fg); color: var(--band-bg); border-color: var(--band-fg); }
.chips input:focus-visible + span { outline: 2px solid var(--band-accent); outline-offset: 2px; }
.form__err { grid-column: 1 / -1; margin: -4px 0 0; color: var(--band-accent) !important; font-size: 14px; font-weight: 600; }
.form__err:empty { display: none; }
.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.section--band .btn--accent { background: var(--band-accent); color: #1A0E06; }
.section--band .btn--accent:hover { background: var(--band-fg); }
.form__note { grid-column: 1 / -1; margin: 0; font-size: 13px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); padding-block: 56px calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.footer__logo { display: block; width: 116px; color: var(--fg); }
.footer__logo svg { width: 100%; height: auto; display: block; }
.footer__cols { display: grid; gap: 22px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; font-weight: 500; }
.footer__links a { cursor: pointer; }
.footer__links a:hover { color: var(--accent); }
.footer__legal { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8, 11, 12, .95); display: grid; place-items: center; padding: 64px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #E7ECEC; cursor: pointer; font-size: 44px; line-height: 1; width: 56px; height: 56px; }
.lightbox button:hover { color: #E08A4E; }
.lightbox__close { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
.lightbox__nav--prev { left: calc(8px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: calc(8px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); color: #A9B6B7; }

/* ---------- WhatsApp su telefono ---------- */
.fab { display: none; position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  place-items: center; box-shadow: var(--shadow); }
.fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* ---------- Avviso cookie ---------- */
.cookie {
  position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 200; max-width: 420px;
  background: var(--band-bg); color: var(--band-fg); padding: 16px 18px; display: flex; gap: 16px; align-items: center;
  border-radius: calc(var(--radius) * 2); box-shadow: var(--shadow);
  transform: translateY(160%); transition: transform .4s ease;
}
.cookie.is-visible { transform: none; }
.cookie p { margin: 0; font-size: 14px; color: var(--band-fg-2); line-height: 1.5; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; color: var(--band-fg); }
.cookie .btn { flex: none; }
body.menu-open .cookie, body.menu-open .fab { visibility: hidden; }

/* ---------- Pagina privacy ---------- */
.page-hero { padding-top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 72px); padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 18px; font-size: clamp(40px, 6vw, 72px); }
.legal { max-width: calc(780px + 2 * var(--gutter)); margin: 0; padding-block: 56px 96px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service--wide { grid-template-columns: auto minmax(0, 1fr); }
  .service--wide .ticks { grid-column: 2; border-left: 0; padding: 14px 0 0; border-top: 1px dashed var(--line-2); }
  .service--wide .link { grid-column: 2; }
}
@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header__right { margin-left: auto; gap: 6px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .gauge { max-width: 300px; order: -1; }
  .head--split, .faq-wrap, .contact, .about, .fgas__in { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap__head { position: static; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__ph { aspect-ratio: 4 / 3; }
  .footer__in { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) { .drawer, .drawer-backdrop { display: none; } }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand__txt { font-size: 12px; letter-spacing: .24em; }
  .gauge { max-width: 240px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service--wide { grid-template-columns: minmax(0, 1fr); }
  .service--wide .ticks, .service--wide .link { grid-column: 1; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .steps li { grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; }
  .steps li > :not(.steps__n) { grid-column: 2; }
  .steps__n { grid-row: 1 / span 2; margin: 0; }
  .ba { aspect-ratio: 4 / 5; }
  .gallery { gap: 8px; margin-top: 40px; }
  .about__specs { grid-template-columns: minmax(0, 1fr); }
  .about__specs div, .about__specs div + div { padding: 12px 0; border-left: 0; }
  .about__specs div + div { border-top: 1px solid var(--line); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .contact__list li { grid-template-columns: 90px minmax(0, 1fr); }
  .fab { display: grid; }
  .cookie { right: calc(84px + env(safe-area-inset-right, 0px)); flex-direction: column; align-items: flex-start; gap: 12px; }
  .lightbox { padding: 56px 12px; }
  .lightbox__nav { top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); transform: none !important; }
}
