/* Elettra 80 — foglio di stile del sito
   Concetto: il sito come un quadro elettrico ben cablato. Fondo grigio RAL 7035,
   inchiostro blu-ardesia, un solo accento "blu segnale"; il vino solo per ScaiNet,
   il verde-rame solo per TCQ. Targhette dati in monospazio come le etichette di quadro. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #F3F4F2;          /* carta, appena verde-grigia */
  --panel: #E2E5E1;       /* RAL 7035, grigio quadro */
  --surface: #FFFFFF;
  --ink: #152230;         /* blu ardesia */
  --ink-2: #3F4C58;
  --ink-3: #5B6772;
  --line: #C9CEC9;
  --accent: #0034FB;      /* blu del logo Elettra 80 */
  --accent-ink: #FFFFFF;
  --wine: #6E1F37;        /* ScaiNet */
  --wine-soft: #F4E9EC;
  --copper: #1F6B5C;      /* TCQ */
  --copper-soft: #E4F0EC;
  --band: #152230;        /* fasce scure */
  --band-ink: #E9EDF0;
  --band-ink-2: #A9B5BF;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) and (max-width: 0px) {
  :root:not([data-theme="light"]) {
    --bg: #0F1820; --panel: #17232D; --surface: #1B2833; --ink: #E6EBEE; --ink-2: #B9C3CB; --ink-3: #95A1AB;
    --line: #2C3A46; --accent: #7FA6FF; --accent-ink: #0F1820; --wine: #E59AB0; --wine-soft: #2A1820;
    --copper: #7FD0BC; --copper-soft: #14292A; --band: #0A1218; --band-ink: #E6EBEE; --band-ink-2: #9AA8B3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1820; --panel: #17232D; --surface: #1B2833; --ink: #E6EBEE; --ink-2: #B9C3CB; --ink-3: #95A1AB;
  --line: #2C3A46; --accent: #7FA6FF; --accent-ink: #0F1820; --wine: #E59AB0; --wine-soft: #2A1820;
  --copper: #7FD0BC; --copper-soft: #14292A; --band: #0A1218; --band-ink: #E6EBEE; --band-ink-2: #9AA8B3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; font-stretch: 112%; line-height: 1.08; }
h3 { font-size: 1.3rem; font-weight: 650; font-stretch: 105%; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 760px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: #FFFFFF; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: #FFFFFF; color: #152230; border-bottom: 1px solid #D5D9DD; }
.brand-logo { display: block; text-decoration: none; }
.brand-logo img { height: 40px; width: auto; }
@media (max-width: 420px) { .brand-logo img { height: 32px; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--band-ink); font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand span { color: #8FB0FF; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav a { color: #152230; text-decoration: none; font-size: 0.98rem; padding: 10px 0; }
.nav a:hover { color: #0034FB; text-decoration: underline; }
.nav .cta { background: #0034FB; color: #FFFFFF; padding: 10px 18px; font-weight: 600; }
.nav .cta:hover { color: #FFFFFF; text-decoration: none; filter: brightness(1.15); }
.menu-btn { display: none; background: transparent; color: #152230; border: 1px solid #A9B2BA; font: 600 0.95rem var(--f-body); padding: 10px 14px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #FFFFFF; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter-r) 20px var(--gutter-l); border-top: 1px solid #D5D9DD; border-bottom: 1px solid #D5D9DD; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #E3E6E9; }
  .nav .cta { margin-top: 12px; text-align: center; border: 0; }
}

/* Hero */
.hero { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: end; padding-block: clamp(64px, 10vw, 120px) clamp(56px, 8vw, 96px); position: relative; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); font-weight: 800; font-stretch: 118%; line-height: 0.98; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: #8FB0FF; }
.hero p.lede { color: var(--band-ink-2); margin-top: 24px; }
.hero .eyebrow { color: #8FB0FF; margin-bottom: 22px; display: block; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 14px 24px; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: #4A5A68; color: var(--band-ink); }
.btn-ghost:hover { border-color: var(--band-ink); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.16; pointer-events: none; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Targhetta dati (nameplate) */
.plate { background: #1D2D3A; border: 1px solid #3A4A57; font-family: var(--f-mono); font-size: 0.86rem; color: var(--band-ink); position: relative; }
.plate-title { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #3A4A57; color: var(--band-ink-2); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; }
.plate dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.plate dt, .plate dd { padding: 10px 16px; border-bottom: 1px solid #2C3B47; margin: 0; }
.plate dt { color: var(--band-ink-2); }
.plate dd { text-align: right; font-weight: 500; }
.plate dl > :nth-last-child(-n+2) { border-bottom: 0; }
.screw { position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #5A6B79; }
.screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 3px; height: 1px; background: #5A6B79; transform: rotate(35deg); }

/* Fascia certificazioni */
.strip { background: var(--panel); border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-block: 22px; font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-2); }
.strip b { color: var(--ink); font-weight: 500; }

/* Azienda */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.prose { display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); max-width: 62ch; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.values strong { font-family: var(--f-display); font-stretch: 108%; font-weight: 650; }
.values span { color: var(--ink-2); }
@media (max-width: 520px) { .values li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Settori */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 960px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sectors { grid-template-columns: minmax(0, 1fr); } }
.sector { background: var(--surface); padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.sector svg { width: 34px; height: 34px; stroke: var(--accent); }
.sector p { color: var(--ink-2); font-size: 1rem; }
.sector .tag { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3); margin-top: auto; padding-top: 8px; }

/* ScaiNet */
.scainet { background: var(--wine-soft); border-block: 1px solid var(--line); }
.scainet .eyebrow { color: var(--wine); }
.scainet h2 em { font-style: normal; color: var(--wine); }
.feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.feat li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.feat strong { font-weight: 600; }
.feat span { color: var(--ink-2); font-size: 1rem; }
.bus { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 18px; font-family: var(--f-mono); font-size: 0.85rem; }
.bus-cap { color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; }
.node { border: 1.5px solid var(--wine); padding: 12px 14px; color: var(--ink); background: var(--bg); }
.node small { display: block; color: var(--ink-3); font-size: 0.78rem; margin-top: 2px; }
.line-v { width: 2px; height: 22px; background: var(--wine); margin-left: 22px; }
.rs485 { border-top: 3px solid var(--wine); position: relative; padding-top: 10px; color: var(--wine); font-weight: 500; }
.nodes-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .nodes-row { grid-template-columns: minmax(0, 1fr); } }

/* Storia */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 28px; }
.timeline li { border-top: 2px solid var(--ink); }
@media (max-width: 1100px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .timeline { grid-template-columns: minmax(0, 1fr); } }
.timeline li { padding-top: 20px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--accent); }
.timeline .year { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: 1.85rem; line-height: 1; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--ink-2); font-size: 1rem; }

/* Prodotti */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 800px) { .products { grid-template-columns: minmax(0, 1fr); } }
.product { background: var(--surface); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.product p { color: var(--ink-2); font-size: 1rem; }
.specs { overflow-x: auto; }
.specs table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 600; color: var(--ink-3); width: 44%; padding-right: 12px; font-family: var(--f-body); }
.specs td { font-family: var(--f-mono); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: 0.8rem; border: 1px solid var(--line); padding: 5px 10px; color: var(--ink-2); background: var(--bg); }

/* TCQ */
.tcq { background: var(--copper-soft); border-block: 1px solid var(--line); }
.tcq .eyebrow { color: var(--copper); }
.tcq-logo { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(3rem, 8vw, 5.5rem); line-height: 0.9; color: var(--copper); letter-spacing: 0.02em; }
.tcq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
@media (max-width: 900px) { .tcq-grid { grid-template-columns: minmax(0, 1fr); } }
.tcq-card { background: var(--surface); border-top: 3px solid var(--copper); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.tcq-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.98rem; display: flex; flex-direction: column; gap: 4px; }
.tcq-card .norm { font-family: var(--f-mono); font-size: 0.8rem; color: var(--copper); }
.tcq-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.btn-copper { background: var(--copper); color: var(--bg); }
.btn-copper:hover { filter: brightness(1.1); }

/* Qualità */
.quality { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .quality { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.cert { border: 2px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.cert .std { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.9rem; line-height: 1.05; }
.cert .scope { color: var(--ink-2); font-size: 0.98rem; }

/* Novità */
.news { background: var(--panel); }
.ig { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 32px; }
@media (max-width: 700px) { .ig { grid-template-columns: minmax(0, 1fr); } }

/* Contatti */
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .contacts { grid-template-columns: minmax(0, 1fr); } }
.contact { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.contact .big { font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: 1.35rem; line-height: 1.25; }
.contact .big a { color: var(--ink); text-decoration: none; }
.contact .big a:hover { color: var(--accent); }
.contact p { color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--band); color: var(--band-ink-2); font-size: 0.92rem; }
.site-footer .wrap { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 28px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer a { color: var(--band-ink); }
.foot-legal { border-top: 1px solid #2C3A46; padding-top: 20px; font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.7; }

/* Privacy */
.doc { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; font-stretch: 112%; }
.doc h2 { font-size: 1.35rem; margin-top: 18px; }
.doc p, .doc li { color: var(--ink-2); }

/* Aggiunte: loghi, novità, sedi */
.anniv { width: 150px; height: auto; }
:root[data-theme="dark"] .anniv { filter: invert(1); }
@media (prefers-color-scheme: dark) and (max-width: 0px) { :root:not([data-theme="light"]) .anniv { filter: invert(1); } }
.story-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.story-head .head { margin-bottom: 0; }
.prod-logo { width: 72px; height: 72px; object-fit: contain; background: #FFFFFF; border: 1px solid var(--line); }
.prod-top { display: flex; align-items: center; gap: 16px; }
.tcq-mark { width: 120px; height: auto; background: #FFFFFF; padding: 8px; border: 1px solid var(--line); }
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.post { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); }
.post-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post time { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3); }
.post h3 { font-size: 1.1rem; }
.post p { color: var(--ink-2); font-size: 0.95rem; }
.post .more { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.post:hover h3 { color: var(--accent); }
.news-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* ===== Sito multipagina ===== */
.nav a[aria-current="page"] { color: #0034FB; font-weight: 600; }
.page-hero { background: var(--band); color: var(--band-ink); }
.page-hero .wrap { padding-block: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; font-stretch: 118%; line-height: 1.02; letter-spacing: -0.02em; max-width: 20ch; }
.page-hero .lede { color: var(--band-ink-2); max-width: 64ch; }
.page-hero .eyebrow { color: #8FB0FF; }
.crumbs { font-family: var(--f-mono); font-size: 0.8rem; color: var(--band-ink-2); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--band-ink-2); }
.crumbs a:hover { color: #FFFFFF; }
.page-hero.tone-wine { background: #3B1020; }
.page-hero.tone-copper { background: #10302A; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

a.sector { text-decoration: none; color: var(--ink); }
a.sector:hover h3 { color: var(--accent); }
.sector .go { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* Foto predisposte */
.ph { position: relative; margin: 0; background: var(--panel); border: 1px dashed var(--line); aspect-ratio: 4 / 3; overflow: hidden; max-width: 100%; }
.ph::before { content: "Foto da caricare\A" attr(data-file); white-space: pre; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-3); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--panel); }
.ph.contain img { object-fit: contain; background: #FFFFFF; }
.ph.tall { aspect-ratio: 4 / 5; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.has-img { border-style: solid; }
figure.ph figcaption, .ph-cap { font-size: 0.9rem; color: var(--ink-3); }
.photo-block { display: flex; flex-direction: column; gap: 10px; margin: 0; }

/* Catalogo */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font: 600 0.95rem var(--f-body); background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 10px 16px; cursor: pointer; min-height: 44px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card .thumb { aspect-ratio: 4 / 3; background: #FFFFFF; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .kind { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--ink-2); font-size: 0.94rem; }
.card:hover h3 { color: var(--accent); }
.card.featured { border-color: var(--ink); }
.card[hidden] { display: none; }

/* Scheda prodotto */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.pdp-img { background: #FFFFFF; border: 1px solid var(--line); padding: 16px; }
.pdp-img img { width: 100%; height: auto; }
.pdp-info { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.spec-group { display: flex; flex-direction: column; gap: 8px; }
.spec-group h2 { font-size: 1.1rem; font-stretch: 105%; font-weight: 650; }
.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 46%; padding-right: 16px; color: var(--ink-3); font-weight: 600; }
.spec td { font-family: var(--f-mono); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.bullets { margin: 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.norms { background: var(--panel); padding: 20px; font-family: var(--f-mono); font-size: 0.84rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.norms b { font-family: var(--f-body); font-size: 0.92rem; color: var(--ink); margin-top: 8px; }
.norms b:first-child { margin-top: 0; }
.cta-box { border: 2px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.note { font-size: 0.9rem; color: var(--ink-3); }

/* Articoli */
.article { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.article p { color: var(--ink-2); font-size: 1.08rem; }
.article .cover { width: 100%; max-width: 520px; height: auto; border: 1px solid var(--line); }
.article blockquote { margin: 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink-2); font-style: italic; }
.meta { font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink-3); }

/* Storia estesa */
.chapters { display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--ink); }
.chapter { display: grid; grid-template-columns: 160px minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding-block: 36px; border-bottom: 1px solid var(--line); align-items: start; }
.chapter .yr { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.chapter h3 { font-size: 1.4rem; margin-bottom: 10px; }
.chapter p { color: var(--ink-2); }
.chapter .text { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 860px) { .chapter { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { display: flex; flex-direction: column; gap: 8px; }
.person h3 { font-size: 1.15rem; }
.person p { color: var(--ink-2); font-size: 0.95rem; }

/* Modulo contatti */
.form { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: 400 1rem var(--f-body); padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-height: 46px; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: minmax(0, 1fr); } }
.form button { align-self: flex-start; font: 600 1rem var(--f-body); background: var(--accent); color: var(--accent-ink); border: 0; padding: 14px 26px; cursor: pointer; }
.press { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 24px; text-decoration: none; color: var(--ink); }
.press .src { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.press:hover h3 { color: var(--accent); }
.section-alt { background: var(--panel); }
.ph.square { aspect-ratio: 1 / 1; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery img { width: 100%; height: auto; border: 1px solid var(--line); }
@media (max-width: 600px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

.people { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== ScaiNet ===== */
:root { --sx-ink: #121417; --sx-ink2: #1B1E23; --sx-paper: #F3EFE8; --sx-paper2: #E9E3D8; --sx-gold: #C8A46A; --sx-wine: #8E2A3E; --sx-mute: #B5B0A6; --sx-mute2: #5A5650; --sx-rule: #CFC7B8; --sx-rule-d: #33363C; }
.sx-gold { color: var(--sx-gold) !important; }
.sx-wine { color: var(--sx-wine) !important; }
.sx-dark, .sx-dark2, .sx-hero { background: var(--sx-ink); color: var(--sx-paper); }
.sx-dark2 { background: var(--sx-ink2); }
.sx-light { background: var(--sx-paper); color: var(--sx-ink); }
.sx-dark h2 em, .sx-dark2 h2 em, .sx-hero h1 em, .sx-split h2 em { font-style: italic; font-weight: 500; color: var(--sx-gold); }
.sx-em { font-style: italic; font-weight: 500; color: var(--sx-wine); }
.sx-light .head h2, .sx-light h3 { color: var(--sx-ink); }
.sx-p { font-size: 1.15rem; line-height: 1.6; color: var(--sx-mute2); max-width: 60ch; }
.sx-muted { color: var(--sx-mute); }
.sx-dark h3, .sx-dark2 h3 { color: var(--sx-paper); font-size: 1.5rem; margin-bottom: 10px; }
.sx-k { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-mute2); }
.sx-note-dark { color: var(--sx-mute) !important; }
.sx-big { font-family: var(--f-display); font-weight: 300; font-stretch: 110%; font-size: clamp(4rem, 10vw, 8rem); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 0; }
.sx-mid { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; max-width: 30ch; margin-top: 32px; }
.btn-gold { background: var(--sx-gold); color: var(--sx-ink); }
.btn-gold:hover { filter: brightness(1.08); }

.sx-hero { position: relative; overflow: hidden; }
.sx-hero-img { position: absolute; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; }
.sx-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--sx-ink) 45%, rgba(18,20,23,0.55) 65%, rgba(18,20,23,0.1) 100%); }
.sx-hero-in { position: relative; padding-block: clamp(56px, 9vw, 120px); display: flex; flex-direction: column; gap: 22px; max-width: var(--maxw); }
.sx-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 600; font-stretch: 108%; line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
.sx-hero .lede { color: var(--sx-mute); max-width: 52ch; }
.sx-hero .crumbs a, .sx-hero .crumbs { color: var(--sx-mute); }
.sx-stats { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 8px; }
.sx-stats div { display: flex; flex-direction: column; gap: 2px; }
.sx-stats b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; color: var(--sx-gold); font-variant-numeric: tabular-nums; }
.sx-stats span { font-size: 0.95rem; color: var(--sx-mute); }
@media (max-width: 860px) { .sx-hero-img { width: 100%; opacity: 0.28; } .sx-hero-shade { background: linear-gradient(180deg, rgba(18,20,23,0.6), var(--sx-ink)); } }

.sx-index { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 40; background: rgba(243,239,232,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sx-rule); }
.sx-index .wrap { display: flex; gap: 6px 22px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.sx-index a { color: var(--sx-ink); text-decoration: none; font-size: 0.92rem; font-weight: 600; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.sx-index a.on, .sx-index a:hover { border-color: var(--sx-wine); color: var(--sx-wine); }

.sx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; margin-top: 16px; }
.sx-rule { border-left: 1px solid var(--sx-rule); padding-left: 56px; }
.sx-two-dark .sx-rule { border-color: var(--sx-rule-d); }
@media (max-width: 760px) { .sx-two { grid-template-columns: minmax(0, 1fr); } .sx-rule { border-left: 0; border-top: 1px solid var(--sx-rule); padding: 32px 0 0; } }

.sx-night { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 96px; align-items: center; }
.sx-clock { font-family: var(--f-display); font-weight: 300; font-size: clamp(5rem, 13vw, 11rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--sx-gold); margin: 14px 0; font-variant-numeric: tabular-nums; }
.sx-h3 { font-size: clamp(1.4rem, 2.4vw, 2rem) !important; font-weight: 500 !important; line-height: 1.3 !important; }
.sx-log { list-style: none; margin: 0; padding: 0; }
.sx-log li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--sx-rule-d); }
.sx-log li:last-child { border-bottom: 1px solid var(--sx-rule-d); }
.sx-log time { font-family: var(--f-mono); font-weight: 500; color: var(--sx-gold); font-size: 1.1rem; }
.sx-log p { color: var(--sx-mute); font-size: 1.15rem; }
.sx-log b { color: var(--sx-paper); }
.sx-without p, .sx-without time { opacity: 0.75; }
.sx-night .note { grid-column: 1 / -1; }
@media (max-width: 860px) { .sx-night { grid-template-columns: minmax(0, 1fr); } }

.sx-calc { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 32px; padding-bottom: 32px; border-bottom: 1px solid var(--sx-rule); margin-top: 8px; }
.sx-calc label { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sx-mute2); }
.sx-calc input { font: 300 clamp(2.4rem, 6vw, 4.6rem) var(--f-display); width: 6.2ch; background: transparent; border: 0; border-bottom: 2px solid var(--sx-ink); color: var(--sx-ink); padding: 0 0 4px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.sx-calc input:focus { outline: none; border-color: var(--sx-wine); }
.sx-calc input::-webkit-outer-spin-button, .sx-calc input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sx-op { font: 300 clamp(2rem, 5vw, 3.6rem) var(--f-display); color: var(--sx-wine); padding-bottom: 8px; }
.sx-calc output { font: 600 clamp(2.4rem, 6vw, 4.6rem) var(--f-display); color: var(--sx-wine); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.sx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.sx-split-img { min-height: 420px; position: relative; overflow: hidden; }
.sx-split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-split-txt { padding: clamp(48px, 8vw, 112px) max(20px, env(safe-area-inset-right, 0px)) clamp(48px, 8vw, 112px) clamp(24px, 6vw, 88px); display: flex; flex-direction: column; gap: 20px; justify-content: center; max-width: 720px; }
.sx-split h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
@media (max-width: 860px) { .sx-split { grid-template-columns: minmax(0, 1fr); } .sx-split-txt { padding-left: max(20px, env(safe-area-inset-left, 0px)); } }
.sx-lines { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--sx-rule-d); }
.sx-lines li { padding: 16px 0; border-bottom: 1px solid var(--sx-rule-d); font-size: 1.1rem; color: var(--sx-paper); }
.sx-lines li b { color: var(--sx-paper); }

.sx-screen-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 32px 64px; align-items: center; }
.sx-screen-txt { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .sx-screen-row { grid-template-columns: minmax(0, 1fr); } }
.sx-screen { margin: 0; background: #0B0C0E; border-radius: 22px; padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,0.45); }
.sx-screen img { width: 100%; height: auto; border-radius: 12px; display: block; }
.sx-screen figcaption { font-size: 0.85rem; color: var(--sx-mute); padding: 10px 6px 2px; }
.sx-screen-sm { max-width: 520px; margin-top: 24px; }

.sx-arch { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; margin-top: 8px; }
.sx-tier { border-top: 3px solid var(--sx-ink); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.sx-tier h3 { font-size: 1.6rem; }
.sx-tier p { color: var(--sx-mute2); }
.sx-tier-acc { border-color: var(--sx-wine); }
.sx-tier-acc .sx-k { color: var(--sx-wine); }
.sx-flow { position: relative; display: flex; align-items: center; justify-content: center; }
.sx-flow span { display: block; width: 40px; height: 2px; background: var(--sx-rule); position: relative; overflow: hidden; }
.sx-flow span::after { content: ""; position: absolute; top: -2px; left: -12px; width: 12px; height: 6px; border-radius: 3px; background: var(--sx-wine); animation: sx-pulse 1.8s linear infinite; }
@keyframes sx-pulse { to { left: 44px; } }
@media (max-width: 860px) { .sx-arch { grid-template-columns: minmax(0, 1fr); gap: 0; } .sx-flow { height: 44px; } .sx-flow span { width: 2px; height: 28px; } .sx-flow span::after { left: -2px; top: -12px; width: 6px; height: 12px; animation-name: sx-pulse-v; } }
@keyframes sx-pulse-v { to { top: 32px; } }
.sx-gsm { margin-top: 40px; background: var(--sx-ink); color: var(--sx-paper); border-radius: 14px; padding: 26px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.sx-gsm p { font-size: 1.15rem; }

.sx-pat { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px 80px; align-items: center; }
.sx-tank { width: 100%; max-width: 360px; height: auto; justify-self: center; }
.sx-pat h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 14px 0 18px; }
.sx-wine-fill, .sx-lvl { animation: sx-level 6s ease-in-out infinite; transform-box: view-box; }
@keyframes sx-level { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
.sx-ping { transform-origin: 370px 310px; transform-box: view-box; animation: sx-ping 2.4s ease-out infinite; }
@keyframes sx-ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 760px) { .sx-pat { grid-template-columns: minmax(0, 1fr); } .sx-tank { max-width: 220px; } }

.sx-grid8 { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 40px; }
.sx-grid8 li { border-top: 1px solid var(--sx-rule); padding-top: 18px; font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; display: flex; flex-direction: column; gap: 6px; }
.sx-grid8 span { font-family: var(--f-mono); font-size: 0.95rem; color: var(--sx-wine); }
@media (max-width: 860px) { .sx-grid8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sx-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.sx-duo article { display: flex; flex-direction: column; gap: 14px; }
.sx-duo p { color: var(--sx-mute2); }
.sx-crop { aspect-ratio: 2.4 / 1; border-radius: 16px; background-color: #0B0C0E; background-size: 112% auto; background-repeat: no-repeat; border: 12px solid #0B0C0E; }
@media (max-width: 760px) { .sx-duo { grid-template-columns: minmax(0, 1fr); } }

.sx-sms { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px 80px; align-items: center; }
.sx-sms h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 14px 0 18px; }
.sx-sms .note { grid-column: 1 / -1; }
@media (max-width: 860px) { .sx-sms { grid-template-columns: minmax(0, 1fr); } }
.sx-phone { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18; background: var(--sx-ink); border: 9px solid #2B2E34; border-radius: 48px; padding: 72px 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 40px 80px rgba(18,20,23,0.35); }
.sx-ph-date { color: var(--sx-mute); font-size: 0.95rem; }
.sx-ph-time { font-family: var(--f-display); font-weight: 300; font-size: 4.2rem; line-height: 1; color: var(--sx-paper); font-variant-numeric: tabular-nums; }
.sx-notif { width: 100%; background: #26292F; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 4px; margin-top: 18px; color: var(--sx-paper); }
.sx-notif span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sx-mute); }
.sx-notif p { color: #E6E1D8; }
html.js .sx-notif { opacity: 0; transform: translateY(-14px) scale(0.96); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: .5s; }
html.js .sx-phone.in .sx-notif { opacity: 1; transform: none; }
.sx-phone-app { align-items: stretch; padding-top: 60px; background: var(--sx-ink2); }
.sx-card { background: #26292F; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; color: var(--sx-paper); }
.sx-card span { color: var(--sx-mute); font-size: 0.92rem; }
.sx-card-alert { border-left: 5px solid var(--sx-gold); }
.sx-card-alert span { color: var(--sx-gold); }

.sx-table-wrap { overflow-x: auto; }
.sx-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 1.05rem; }
.sx-table th, .sx-table td { text-align: left; padding: 18px 20px; vertical-align: top; }
.sx-table thead th { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sx-mute2); font-weight: 500; border-bottom: 2px solid var(--sx-ink); }
.sx-table thead th:last-child { color: var(--sx-wine); }
.sx-table tbody tr:nth-child(odd) { background: var(--sx-paper2); }
.sx-table tbody th { font-weight: 600; }
.sx-table td:nth-child(2) { color: var(--sx-mute2); }
.sx-table td:last-child { font-weight: 700; }

.sx-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sx-roles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-roles article { border-left: 3px solid var(--sx-wine); padding: 6px 0 6px 22px; display: flex; flex-direction: column; gap: 10px; }
.sx-roles h3 { font-size: 1.35rem; }
.sx-roles p { color: var(--sx-mute2); }
@media (max-width: 960px) { .sx-roles, .sx-roles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sx-roles, .sx-roles-3 { grid-template-columns: minmax(0, 1fr); } }
.sx-spare { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 48px; align-items: center; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--sx-rule); }
.sx-spare h3 { font-size: 1.5rem; margin-bottom: 12px; }
@media (max-width: 700px) { .sx-spare { grid-template-columns: minmax(0, 1fr); } }

.sx-zero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.sx-zero b { font-family: var(--f-display); font-weight: 300; font-size: clamp(5rem, 10vw, 8rem); line-height: 0.9; color: var(--sx-gold); display: block; margin-bottom: 14px; }
.sx-zero p { color: var(--sx-mute); }
@media (max-width: 760px) { .sx-zero { grid-template-columns: minmax(0, 1fr); } }

.sx-faq { display: flex; flex-direction: column; border-top: 1px solid var(--sx-rule); max-width: 900px; }
.sx-faq details { border-bottom: 1px solid var(--sx-rule); }
.sx-faq summary { cursor: pointer; list-style: none; font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; padding: 22px 48px 22px 0; position: relative; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-size: 1.8rem; font-weight: 300; color: var(--sx-wine); transition: transform .3s ease; }
.sx-faq details[open] summary::after { transform: rotate(45deg); }
.sx-faq details p { color: var(--sx-mute2); padding: 0 48px 24px 0; font-size: 1.08rem; animation: sx-open .35s ease; }
@keyframes sx-open { from { opacity: 0; transform: translateY(-6px); } }

.sx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.sx-steps article { background: var(--sx-ink2); border: 1px solid var(--sx-rule-d); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.sx-steps h3 { margin: 0; }
.sx-steps p { color: var(--sx-mute); flex: 1; }
.sx-steps a:not(.btn) { color: var(--sx-gold); font-weight: 600; }
.sx-steps .btn { align-self: flex-start; }
.sx-step-main { border-color: var(--sx-gold) !important; box-shadow: 0 0 0 1px var(--sx-gold) inset; }
.sx-n { font-family: var(--f-display); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--sx-gold); }
@media (max-width: 900px) { .sx-steps { grid-template-columns: minmax(0, 1fr); } }

/* ===== Animazioni del sito ===== */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
main { animation: fadein .5s ease both; }
.hero .wrap > div > *, .page-hero .wrap > *, .sx-hero-in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > div > *:nth-child(2), .page-hero .wrap > *:nth-child(2), .sx-hero-in > *:nth-child(2) { animation-delay: .08s; }
.hero .wrap > div > *:nth-child(3), .page-hero .wrap > *:nth-child(3), .sx-hero-in > *:nth-child(3) { animation-delay: .16s; }
.hero .wrap > div > *:nth-child(4), .page-hero .wrap > *:nth-child(4), .sx-hero-in > *:nth-child(4) { animation-delay: .24s; }
.sx-hero-in > *:nth-child(5) { animation-delay: .32s; } .sx-hero-in > *:nth-child(6) { animation-delay: .4s; }
.hero .plate { animation: rise 1s .35s cubic-bezier(.2,.7,.2,1) both; }
.hero .plate dl > * { animation: fadein .5s both; }
.hero .plate dl > :nth-child(n+3) { animation-delay: .6s; } .hero .plate dl > :nth-child(n+5) { animation-delay: .75s; } .hero .plate dl > :nth-child(n+7) { animation-delay: .9s; } .hero .plate dl > :nth-child(n+9) { animation-delay: 1.05s; } .hero .plate dl > :nth-child(n+11) { animation-delay: 1.2s; }
.wires path { stroke-dasharray: 1400; animation: draw 3.2s .2s ease-out both; }
.wires circle { animation: fadein .6s 2.4s both; }
.sx-hero-img { animation: fadein 1.4s ease both; }
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(21,34,48,0.10); }
.sector, .card, .post, .product, .tcq-card, .sx-steps article { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
a.sector:hover, a.card:hover, a.post:hover, .sx-steps article:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21,34,48,0.12); position: relative; z-index: 1; }
.card .thumb img, .post img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.card:hover .thumb img, a.post:hover img { transform: scale(1.04); }
.btn { transition: filter .2s ease, transform .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.ph img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ph:hover img { transform: scale(1.03); }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
.timeline li::before { transition: transform .5s ease .3s; }
html.js .timeline li.reveal:not(.in)::before { transform: scale(0); }
.chapter .yr { transition: color .4s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, html.js .sx-notif { opacity: 1 !important; transform: none !important; }
}

/* ===== TCQ ===== */
.tq-c { color: var(--copper) !important; }
.tq-hero { position: relative; overflow: hidden; background: #0E2621; color: #EAF3F0; }
.tq-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; animation: fadein 1.4s ease both; }
.tq-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0E2621 30%, rgba(14,38,33,0.55) 70%, rgba(14,38,33,0.2)); }
.tq-hero-in { position: relative; padding-block: clamp(56px, 9vw, 112px); display: flex; flex-direction: column; gap: 18px; }
.tq-hero-in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.tq-hero-in > *:nth-child(2) { animation-delay: .08s; } .tq-hero-in > *:nth-child(3) { animation-delay: .16s; } .tq-hero-in > *:nth-child(4) { animation-delay: .24s; } .tq-hero-in > *:nth-child(5) { animation-delay: .32s; } .tq-hero-in > *:nth-child(6) { animation-delay: .4s; }
.tq-hero .crumbs, .tq-hero .crumbs a { color: #A9C7BF; }
.tq-hero .eyebrow { color: #8FD9C4; }
.tq-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; font-stretch: 115%; line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
.tq-hero .lede { color: #C3DAD3; }
.tq-logo { width: 96px; height: auto; background: #FFFFFF; padding: 6px; border-radius: 6px; }
.tq-stats { background: var(--copper-soft); border-bottom: 1px solid var(--line); }
.tq-stats .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-block: 32px; }
.tq-stats div { display: flex; flex-direction: column; gap: 4px; }
.tq-stats b { font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; font-stretch: 110%; color: var(--copper); font-variant-numeric: tabular-nums; }
.tq-stats span { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 1000px) { .tq-stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tq-index { background: rgba(228,240,236,0.95); }
.tq-index a.on, .tq-index a:hover { border-color: var(--copper); color: var(--copper); }
:root[data-theme="dark"] .tq-index { background: rgba(20,41,42,0.95); }
@media (prefers-color-scheme: dark) and (max-width: 0px) { :root:not([data-theme="light"]) .tq-index { background: rgba(20,41,42,0.95); } :root:not([data-theme="light"]) .tq-index a { color: var(--ink); } }
.tq-vm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tq-vm article { background: var(--surface); border-top: 3px solid var(--copper); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tq-vm h3 { font-size: 1.35rem; }
.tq-vm p { color: var(--ink-2); }
@media (max-width: 900px) { .tq-vm { grid-template-columns: minmax(0, 1fr); } }
.tq-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.tq-areas li { border-top: 2px solid var(--copper); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.tq-areas p { color: var(--ink-2); font-size: 0.98rem; }
.tq-n { font-family: var(--f-mono); color: var(--copper); }
@media (max-width: 1000px) { .tq-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tq-areas { grid-template-columns: minmax(0, 1fr); } }
.tq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tq-tabs button { font: 600 1rem var(--f-body); padding: 12px 20px; min-height: 46px; border: 1px solid var(--copper); background: transparent; color: var(--copper); cursor: pointer; transition: background .25s ease, color .25s ease; }
.tq-tabs button[aria-selected="true"] { background: var(--copper); color: var(--bg); }
.tq-panel { background: var(--surface); padding: clamp(20px, 4vw, 40px); border: 1px solid var(--line); animation: rise .5s cubic-bezier(.2,.7,.2,1); }
.tq-panel h3 { font-size: 1.6rem; margin: 6px 0 12px; }
.tq-panel h4 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 650; margin: 0 0 10px; }
.tq-panel-intro { max-width: 70ch; margin-bottom: 28px; }
.tq-panel-intro p { color: var(--ink-2); }
.tq-panel .norm { font-family: var(--f-mono); font-size: 0.82rem; color: var(--copper); }
.tq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .tq-cols { grid-template-columns: minmax(0, 1fr); } }
.tq-list { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.tq-norms { font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink-3); line-height: 1.7; }
.tq-table-wrap { overflow-x: auto; }
.tq-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tq-chips li { font-family: var(--f-mono); font-size: 0.86rem; border: 1px solid var(--line); background: var(--bg); padding: 8px 12px; }
.tq-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.tq-path li { position: relative; padding: 0 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tq-path li span { width: 48px; height: 48px; border-radius: 50%; background: var(--copper); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; position: relative; z-index: 1; }
.tq-path li::before { content: ""; position: absolute; top: 23px; left: 48px; right: 0; height: 2px; background: var(--copper); opacity: 0.35; }
.tq-path li:last-child::before { display: none; }
.tq-path h3 { font-size: 1.15rem; }
.tq-path p { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 900px) { .tq-path { grid-template-columns: minmax(0, 1fr); gap: 24px; } .tq-path li { padding: 0 0 0 68px; } .tq-path li span { position: absolute; left: 0; top: 0; } .tq-path li::before { left: 23px; top: 48px; bottom: -24px; right: auto; width: 2px; height: auto; } }
.tq-sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tq-sectors li { background: var(--surface); padding: 22px; font-family: var(--f-display); font-weight: 650; font-size: 1.1rem; }
@media (max-width: 760px) { .tq-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Mappe ===== */
.mapbox { display: flex; flex-direction: column; gap: 20px; }
.map-head h2 { margin-top: 10px; }
.map-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.map-tabs button { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .25s ease, background .25s ease; min-height: 44px; }
.map-tabs button b { font-family: var(--f-display); font-size: 1.05rem; }
.map-tabs button span { color: var(--ink-3); font-size: 0.92rem; }
.map-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--bg); }
@media (max-width: 640px) { .map-tabs { grid-template-columns: minmax(0, 1fr); } }
.map-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .map-body { grid-template-columns: minmax(0, 1fr); } }
.map-frame { position: relative; min-height: 380px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: fadein .6s ease; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; color: var(--ink-2); background: repeating-linear-gradient(45deg, var(--panel), var(--panel) 12px, var(--bg) 12px, var(--bg) 24px); }
.map-consent svg { color: var(--accent); }
.map-side { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.map-addr { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.map-info { color: var(--ink-2); }
.btn-line { border: 1px solid var(--line); color: var(--ink); }

/* ===== TCQ 2 ===== */
:root { --mint: #7FD0BC; --tq-ink: #0B1F1B; --tq-ink2: #10302A; --tq-line: #24453E; --tq-mute: #A9C7BF; }
.btn-mint { background: var(--mint); color: var(--tq-ink); }
.btn-mint:hover { filter: brightness(1.08); }
.tq2-hero { position: relative; overflow: hidden; background: var(--tq-ink); color: #EAF3F0; }
.tq2-hero-big { min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.tq2-hero .chamber { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tq2-hero .tq-hero-img { opacity: 0.32; }
.tq2-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,27,0.15) 0%, rgba(11,31,27,0.55) 55%, var(--tq-ink) 100%), linear-gradient(90deg, rgba(11,31,27,0.85) 0%, rgba(11,31,27,0.2) 70%); }
.tq2-hero-in { position: relative; padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 16px; width: 100%; }
.tq2-hero-in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.tq2-hero-in > *:nth-child(2) { animation-delay: .1s; } .tq2-hero-in > *:nth-child(3) { animation-delay: .2s; } .tq2-hero-in > *:nth-child(4) { animation-delay: .3s; }
.tq2-hero .crumbs, .tq2-hero .crumbs a { color: var(--tq-mute); }
.tq2-hero .eyebrow { color: var(--mint); }
.tq2-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; font-stretch: 112%; line-height: 1.02; letter-spacing: -0.02em; max-width: 18ch; }
.tq2-hero .lede { color: #C3DAD3; max-width: 60ch; }
.tq-sub { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 40; background: rgba(11,31,27,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tq-line); }
.tq-sub .wrap { display: flex; gap: 4px 24px; overflow-x: auto; scrollbar-width: none; }
.tq-sub a { color: var(--tq-mute); text-decoration: none; white-space: nowrap; font-size: 0.92rem; font-weight: 600; padding: 14px 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.tq-sub a:hover { color: #FFFFFF; }
.tq-sub a[aria-current="page"] { color: var(--mint); border-color: var(--mint); }
.tq2-stats { background: var(--tq-ink2); color: #EAF3F0; border-bottom: 1px solid var(--tq-line); }
.tq2-stats .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-block: 36px; }
.tq2-stats div { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--tq-line); padding-left: 18px; }
.tq2-stats b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; font-stretch: 110%; color: var(--mint); font-variant-numeric: tabular-nums; }
.tq2-stats span { font-size: 0.92rem; color: var(--tq-mute); }
@media (max-width: 1000px) { .tq2-stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tq2-dark { background: var(--tq-ink); color: #EAF3F0; }
.tq2-dark .head h2, .tq2-dark h3 { color: #EAF3F0; }
.tq2-dark .eyebrow { color: var(--mint); }
.tq2-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--tq-line); border: 1px solid var(--tq-line); }
.tq2-services a { background: var(--tq-ink); color: #EAF3F0; text-decoration: none; padding: 30px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; position: relative; overflow: hidden; transition: background .35s ease; }
.tq2-services a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--mint); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.tq2-services a:hover { background: var(--tq-ink2); }
.tq2-services a:hover::after { width: 100%; }
.tq2-services .norm { font-family: var(--f-mono); font-size: 0.8rem; color: var(--mint); }
.tq2-services h3 { font-size: 1.4rem; }
.tq2-services p { color: var(--tq-mute); }
.tq2-services .go { margin-top: auto; color: #FFFFFF; font-weight: 600; }
.tq2-services .go::after { content: " →"; transition: margin .3s ease; }
.tq2-services a:hover .go::after { margin-left: 6px; }
.tq2-new { box-shadow: inset 0 0 0 1px var(--mint); }
@media (max-width: 900px) { .tq2-services { grid-template-columns: minmax(0, 1fr); } }
.tq2-cta { background: var(--tq-ink); color: #EAF3F0; border-radius: 4px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; position: relative; overflow: hidden; }
.tq2-cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid var(--tq-line); box-shadow: 0 0 0 60px rgba(127,208,188,0.04), 0 0 0 120px rgba(127,208,188,0.03); }
.tq2-cta h2 { color: #FFFFFF; margin: 8px 0; }
.tq2-cta p { color: var(--tq-mute); max-width: 52ch; }
.tq2-cta .eyebrow { color: var(--mint); }
.tq2-cta-r { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.tq2-timeline { list-style: none; margin: 0; padding: 0 0 0 32px; position: relative; display: flex; flex-direction: column; gap: 40px; max-width: 820px; }
.tq2-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--copper) 0 78%, transparent 78% 100%), repeating-linear-gradient(var(--copper) 0 6px, transparent 6px 12px); opacity: 0.5; }
.tq2-step { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tq2-dot { position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 5px var(--bg); }
.tq2-next .tq2-dot { background: var(--bg); border: 2px solid var(--copper); animation: tqpulse 2s ease-out infinite; }
@keyframes tqpulse { 0% { box-shadow: 0 0 0 5px var(--bg), 0 0 0 5px rgba(31,107,92,0.45); } 100% { box-shadow: 0 0 0 5px var(--bg), 0 0 0 18px rgba(31,107,92,0); } }
.tq2-yr { font-family: var(--f-mono); font-weight: 500; color: var(--copper); }
.tq2-step h3 { font-size: 1.45rem; }
.tq2-step p { color: var(--ink-2); max-width: 62ch; }
.tq2-badge { align-self: flex-start; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--copper); color: var(--bg); padding: 4px 10px; }
.tq2-timeline-sm { gap: 28px; }
.tq2-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tq2-goals article { border-top: 1px solid var(--tq-line); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.tq2-goals b { font-family: var(--f-display); font-weight: 300; font-size: 3rem; color: var(--mint); line-height: 1; }
.tq2-goals p { color: var(--tq-mute); }
.tq2-goals a { color: var(--mint); font-weight: 600; }
@media (max-width: 860px) { .tq2-goals { grid-template-columns: minmax(0, 1fr); } }
.tq2-rs { margin-bottom: 40px; max-width: 760px; }
.tq2-rs h2 { margin: 10px 0 12px; }
.inst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .inst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .inst-grid { grid-template-columns: minmax(0, 1fr); } }
.inst { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.inst:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21,34,48,0.12); }
.inst-img { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 30% 20%, #1B3A33 0%, var(--tq-ink) 70%); color: var(--mint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.inst-img::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(127,208,188,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(127,208,188,0.07) 1px, transparent 1px); background-size: 22px 22px; }
.inst-ico { width: 34%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 0 14px rgba(127,208,188,0.35)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.inst:hover .inst-ico { transform: scale(1.06); }
.inst-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; z-index: 2; }
.inst-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.inst-brand { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); }
.inst-body h3 { font-size: 1.15rem; }
.inst-body p { color: var(--ink-2); font-size: 0.96rem; }
.inst-tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.inst-tags li { font-family: var(--f-mono); font-size: 0.74rem; background: var(--copper-soft); color: var(--copper); padding: 4px 8px; }
.tq2-spec-card { background: var(--tq-ink); border-radius: 14px; padding: 14px; box-shadow: 0 30px 60px rgba(11,31,27,0.35); }
.tq2-spec-card canvas { width: 100%; aspect-ratio: 16 / 10; display: block; border-radius: 8px; }
.tq2-spec-card .note { color: var(--tq-mute); margin-top: 8px; }
.tq2-cols-dark .tq-norms { color: var(--tq-mute); }
.tq2-list { margin: 12px 0; padding-left: 20px; color: #D7E8E3; display: flex; flex-direction: column; gap: 6px; }
.tq2-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tq2-chips li { font-family: var(--f-mono); font-size: 0.9rem; border: 1px solid var(--tq-line); color: #EAF3F0; padding: 10px 14px; }
.tq2-tests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tq2-tests article { border-top: 3px solid var(--copper); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform .35s ease; }
.tq2-tests article:hover { transform: translateY(-4px); }
.tq2-tests .norm { font-family: var(--f-mono); font-size: 0.78rem; color: var(--copper); }
.tq2-tests p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 960px) { .tq2-tests { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tq2-tests { grid-template-columns: minmax(0, 1fr); } }
.tq2-cbflow { display: flex; flex-direction: column; gap: 0; }
.tq2-cbflow > div { position: relative; padding: 0 0 28px 64px; }
.tq2-cbflow > div::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--copper); opacity: 0.35; }
.tq2-cbflow > div:last-child::before { display: none; }
.tq2-cbflow b { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--copper); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); }
.tq2-cbflow h3 { font-size: 1.2rem; margin-bottom: 4px; }
.tq2-cbflow p { color: var(--ink-2); }

/* ===== TCQ v2 ===== */
.tq-hero2 { background: radial-gradient(120% 90% at 80% 20%, #143A33 0%, #0B1A17 60%); color: #EAF3F0; overflow: hidden; }
.tq-hero2-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 32px 56px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.tq-hero2-txt { display: flex; flex-direction: column; gap: 18px; }
.tq-hero2-txt > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.tq-hero2-txt > *:nth-child(2) { animation-delay: .08s; } .tq-hero2-txt > *:nth-child(3) { animation-delay: .16s; } .tq-hero2-txt > *:nth-child(4) { animation-delay: .24s; } .tq-hero2-txt > *:nth-child(5) { animation-delay: .32s; } .tq-hero2-txt > *:nth-child(6) { animation-delay: .4s; }
.tq-hero2 .crumbs, .tq-hero2 .crumbs a { color: #A9C7BF; }
.tq-hero2 .eyebrow { color: #8FD9C4; }
.tq-hero2 h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); font-weight: 800; font-stretch: 112%; line-height: 1.03; letter-spacing: -0.02em; }
.tq-hero2 h1 em { font-style: normal; color: #8FD9C4; }
.tq-hero2 .lede { color: #C3DAD3; }
.tq-hero2-art { position: relative; animation: rise 1.1s .2s cubic-bezier(.2,.7,.2,1) both; }
.tq-art-cap { font-family: var(--f-mono); font-size: 0.75rem; color: #7FA59B; margin-top: 8px; text-align: right; }
.ch { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 40px 90px rgba(0,0,0,0.45), 0 0 0 1px rgba(143,217,196,0.15); }
.ch-w { transform-box: fill-box; transform-origin: 100% 50%; opacity: 0; animation: chwave 3s ease-out infinite; }
.ch-w.w2 { animation-delay: 1s; } .ch-w.w3 { animation-delay: 2s; }
@keyframes chwave { 0% { opacity: 0; transform: translateX(0) scale(.6); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateX(-260px) scale(1.8); } }
.ch-beam { animation: chbeam 3s ease-in-out infinite; }
@keyframes chbeam { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
.ch-ring { animation: chring 8s linear infinite; }
@keyframes chring { to { stroke-dashoffset: -1200; } }
.ch-led { animation: chled 1.2s steps(2) infinite; }
@keyframes chled { 50% { fill: #E8B04B; } }
.ch-ant { animation: chant 9s ease-in-out infinite; transform-box: view-box; }
@keyframes chant { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-70px); } }
.ch-read { animation: fadein 1s 1.5s both; } .ch-read.r2 { animation-delay: 1.9s; }
.ch-eut { animation: cheut 8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes cheut { 0%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.55); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(-.55); } }
@media (max-width: 900px) { .tq-hero2-in { grid-template-columns: minmax(0, 1fr); } }
.tq-subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 40; background: rgba(228,240,236,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tq-subnav .wrap { display: flex; gap: 6px 22px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.tq-subnav a { color: #10302A; text-decoration: none; font-size: 0.92rem; font-weight: 600; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.tq-subnav a[aria-current="page"], .tq-subnav a:hover { border-color: var(--copper); color: var(--copper); }
.tq-ph { position: relative; overflow: hidden; }
.tq-ph-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; animation: tqwave 12s linear infinite; }
@keyframes tqwave { from { transform: translateX(0); } to { transform: translateX(-25%); } }
.tq-ph .wrap { position: relative; }
.tq-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .tq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tq-cards { grid-template-columns: minmax(0, 1fr); } }
.tq-card { background: var(--surface); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.tq-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.tq-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,48,42,0.14); border-color: var(--copper); }
.tq-card:hover::after { transform: scaleX(1); }
.tq-card svg { color: var(--copper); }
.tq-card p { color: var(--ink-2); font-size: 0.97rem; }
.tq-card .go { margin-top: auto; color: var(--copper); font-weight: 600; }
.tq-miles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; position: relative; counter-reset: none; }
.tq-miles li { position: relative; display: grid; grid-template-rows: auto 28px auto; align-content: start; row-gap: 12px; }
.tq-miles li::after { content: ""; position: absolute; top: calc(var(--tq-yr-h, 1.9rem) + 12px + 13px); left: 0; right: -28px; height: 2px; background: var(--copper); }
.tq-miles li:last-child::after { right: 0; background: linear-gradient(90deg, var(--copper) 0 55%, transparent 100%); }
.tq-miles li::before { content: ""; grid-row: 2; align-self: center; width: 16px; height: 16px; border-radius: 50%; background: var(--copper); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--copper); position: relative; z-index: 1; margin: 0; }
.section-alt .tq-miles li::before { border-color: var(--panel, var(--bg)); }
.tq-yr { grid-row: 1; position: static; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.6rem; line-height: 1.2; height: var(--tq-yr-h, 1.9rem); color: var(--copper); white-space: nowrap; }
.tq-miles h3 { grid-row: 3; font-size: 1.12rem; margin: 0; }
.tq-miles p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.tq-miles li > h3 + p { margin-top: -4px; }
.tq-next::before { background: var(--bg) !important; border-style: dashed !important; animation: tqpulse2 2s ease-in-out infinite; }
@keyframes tqpulse2 { 50% { box-shadow: 0 0 0 2px var(--copper), 0 0 0 8px rgba(31,107,92,0.18); } }
.tq-next h3 { color: var(--copper); }
@media (max-width: 1000px) {
  .tq-miles { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 40px; }
  .tq-miles li { display: flex; flex-direction: column; gap: 6px; }
  .tq-miles li::before { position: absolute; left: -40px; top: 6px; }
  .tq-miles li::after { top: 22px; left: -33px; right: auto; bottom: -26px; width: 2px; height: auto; background: var(--copper); }
  .tq-miles li:last-child::after { display: none; }
  .tq-yr { height: auto; font-size: 1.45rem; }
  .tq-miles li > h3 + p { margin-top: 0; }
}
.tq-dark { background: #0E2621; color: #EAF3F0; }
.tq-dark .head h2, .tq-dark h3 { color: #EAF3F0; }
.tq-dark .eyebrow { color: #8FD9C4; }
.tq-dark .lede, .tq-dark p { color: #C3DAD3; }
.tq-goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tq-goals article { border-top: 1px solid #2E5A50; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.tq-goals .tq-n { color: #8FD9C4; font-size: 1rem; }
.tq-goals h3 { font-size: 1.25rem; }
@media (max-width: 1000px) { .tq-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tq-goals { grid-template-columns: minmax(0, 1fr); } }
.ins-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .ins-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ins-grid { grid-template-columns: minmax(0, 1fr); } }
.ins { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.ins:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,48,42,0.12); }
.ins .photo-block { margin: 0; }
.ins .ph { border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 3 / 2; background: #EEF2F4; }
.ins .ph.contain img { background: #EEF2F4; object-fit: contain; padding: 6px; }
.ins-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ins-body h3 { font-size: 1.15rem; }
.ins-kind { font-weight: 600; color: var(--ink) !important; font-size: 0.95rem; }
.ins-body p { color: var(--ink-2); font-size: 0.93rem; }
.ins-body .chips { margin-top: auto; padding-top: 8px; }
.tq-box { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tq-mini-art .ch { border-radius: 12px; }
.tq-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tq-checks li { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: #13332C; border: 1px solid #2E5A50; padding: 16px 18px; }
.tq-checks li::before { content: ""; grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; background: #2FA88C; mask: none; }
.tq-checks li.done::before { background: #2FA88C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%230E2621' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.tq-checks li.doing::before { background: transparent; border: 3px solid #8FD9C4; border-top-color: transparent; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tq-checks b { color: #EAF3F0; }
.tq-checks span { color: #A9C7BF; font-size: 0.92rem; }
.tq-path4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tq-globe svg { width: 100%; max-width: 300px; margin: 0 auto; display: block; }
.cb-orbit { transform-origin: 150px 150px; animation: spin 18s linear infinite; }
.tq-cta { border-color: var(--copper); }
@media (prefers-reduced-motion: reduce) { .ch *, .cb-orbit, .tq-ph-wave { animation: none !important; } .ch-w { opacity: .6; } }
@media (max-width: 900px) { .tq-path4 { grid-template-columns: minmax(0, 1fr); } }
.tq-stats b span, .sx-stats b span { font-size: inherit !important; color: inherit !important; }

/* ===== Home: apertura ===== */
.intro { position: fixed; inset: 0; z-index: 200; background: #FFFFFF; display: flex; align-items: center; justify-content: center; transition: opacity .6s ease, visibility .6s ease; }
.intro.out { opacity: 0; visibility: hidden; }
html:not(.js) .intro, .intro.skip { display: none; }
.intro-in { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 24px; }
.intro-in img { width: min(320px, 70vw); height: auto; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.intro-bar { width: min(320px, 70vw); height: 2px; background: #E3E8EE; overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 100%; background: #0034FB; transform-origin: left; animation: introbar 1.1s .15s cubic-bezier(.6,0,.2,1) both; }
@keyframes introbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.intro-in p { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #3F4C58; animation: fadein .6s .4s both; }

.hx { position: relative; overflow: hidden; background: #0C1620; color: #EEF2F6; min-height: min(86vh, 860px); display: flex; align-items: flex-end; }
.hx-slides, .hx-shade { position: absolute; inset: 0; }
.hx-s { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease; }
.hx-s.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(0, 0, 0); } to { transform: scale(1.0) translate3d(-1.5%, -1%, 0); } }
.hx-shade { background: linear-gradient(90deg, rgba(10,18,26,0.92) 0%, rgba(10,18,26,0.72) 42%, rgba(10,18,26,0.25) 100%), linear-gradient(0deg, rgba(10,18,26,0.85) 0%, rgba(10,18,26,0) 45%); }
.hx .wires { opacity: 0.22; }
.hx .wires .node { animation: nodepulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hx .wires .node:nth-child(2) { animation-delay: .5s; } .hx .wires .node:nth-child(3) { animation-delay: 1s; } .hx .wires .node:nth-child(4) { animation-delay: 1.5s; } .hx .wires .node:nth-child(5) { animation-delay: 2s; } .hx .wires .node:nth-child(6) { animation-delay: 2.5s; }
@keyframes nodepulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(2.2); opacity: 1; } }
.hx-in { position: relative; width: 100%; padding-block: clamp(96px, 14vh, 160px) clamp(40px, 6vh, 64px); display: flex; flex-direction: column; gap: 22px; }
.hx-eb { color: #8FB0FF !important; animation: rise .8s .2s cubic-bezier(.2,.7,.2,1) both; }
.hx-title { font-size: clamp(2.5rem, 6.4vw, 5.6rem); font-weight: 800; font-stretch: 118%; line-height: 1.0; letter-spacing: -0.025em; max-width: 15ch; }
.hx-title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hx-title .ln > span { display: inline-block; animation: lineup 1s cubic-bezier(.2,.7,.2,1) both; }
.hx-title .ln:nth-child(1) > span { animation-delay: .35s; } .hx-title .ln:nth-child(2) > span { animation-delay: .5s; } .hx-title .ln:nth-child(3) > span { animation-delay: .65s; }
.hx-title em { font-style: normal; color: #8FB0FF; }
@keyframes lineup { from { transform: translateY(105%); } to { transform: none; } }
.hx-lede { color: #C9D3DC !important; max-width: 56ch; animation: rise .9s .85s cubic-bezier(.2,.7,.2,1) both; }
.hx-btns { animation: rise .9s 1s cubic-bezier(.2,.7,.2,1) both; margin-top: 4px; }
.hx-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 6vh, 64px); animation: fadein 1s 1.2s both; }
.hx-nav button { text-align: left; background: none; border: 0; color: #C9D3DC; font: inherit; cursor: pointer; padding: 14px 0 6px; display: flex; flex-direction: column; gap: 2px; position: relative; min-height: 44px; }
.hx-nav b { font-family: var(--f-display); font-size: 0.98rem; color: #EEF2F6; }
.hx-nav i { font-style: normal; font-size: 0.85rem; opacity: .75; }
.hx-prog { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,0.22); overflow: hidden; }
.hx-prog::after { content: ""; position: absolute; inset: 0; background: #FFFFFF; transform: scaleX(0); transform-origin: left; }
.hx-nav button[aria-selected="true"] .hx-prog::after { animation: prog 6.5s linear forwards; }
.hx-nav button[aria-selected="false"] { opacity: .65; }
.hx-nav button:hover { opacity: 1; }
@keyframes prog { to { transform: scaleX(1); } }
@media (max-width: 760px) { .hx-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hx { min-height: 0; } }
.hx-scroll { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 28px; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,0.6); border-radius: 16px; display: block; }
.hx-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #FFFFFF; animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 760px) { .hx-scroll { display: none; } }
.nums { background: #FFFFFF; border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .nums { background: var(--surface); }
@media (prefers-color-scheme: dark) and (max-width: 0px) { :root:not([data-theme="light"]) .nums { background: var(--surface); } }
.nums .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.nums .wrap > div { padding: 36px 24px 34px 0; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); padding-left: 24px; }
.nums .wrap > div:first-child { padding-left: 0; }
.nums .wrap > div:last-child { border-right: 0; }
.nums b { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.nums b span { font-size: inherit; color: inherit; }
.nums .wrap > div > span { font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 1000px) { .nums .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nums .wrap > div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; } }

/* ===== Animazioni generali (seconda fase) ===== */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 0%, transparent 40%, rgba(143,176,255,0.10) 50%, transparent 60%, transparent 100%); background-size: 250% 100%; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
.page-hero .wrap { position: relative; z-index: 1; }
html.js .photo-block.reveal .ph { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1) .1s; }
html.js .photo-block.reveal.in .ph { clip-path: inset(0 0 0 0); }
.section .head .eyebrow, .section .prose > .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section .head .eyebrow::before, .section .prose > .eyebrow::before { content: ""; width: 0; height: 2px; background: currentColor; transition: width .8s cubic-bezier(.2,.7,.2,1) .2s; }
html.js .head.in .eyebrow::before, html.js .prose > .eyebrow.in::before, html:not(.js) .section .eyebrow::before { width: 28px; }
.btn-primary, .btn-copper, .btn-gold { position: relative; overflow: hidden; }
.btn-primary::after, .btn-copper::after, .btn-gold::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-primary:hover::after, .btn-copper:hover::after, .btn-gold:hover::after { left: 130%; }
.nav a:not(.cta) { position: relative; }
.nav a:not(.cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: #0034FB; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:not(.cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:not(.cta):hover { text-decoration: none; }
.progress-top { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 100%; background: #0034FB; transform-origin: left; transform: scaleX(0); z-index: 70; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } .hx-s.on { animation: none; transform: none; } .hx-title .ln > span { animation: none; } html.js .photo-block.reveal .ph { clip-path: none; } }
.intro { z-index: 1000; }
.hx-title { font-size: clamp(2.3rem, 5vw, 4.4rem); max-width: 19ch; }
@media (min-width: 761px) { .hx-in { padding-top: clamp(72px, 10vh, 120px); } }

/* ===== Pagine più luminose ===== */
.page-hero { background: radial-gradient(90% 140% at 100% 0%, #DCE6FF 0%, rgba(220,230,255,0) 60%), linear-gradient(180deg, #F5F8FF 0%, #FFFFFF 100%); color: var(--ink); border-bottom: 1px solid #E1E7F5; }
.page-hero .lede { color: var(--ink-2); }
.page-hero .eyebrow { color: var(--accent); }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--ink-3); }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero h1 em { color: var(--accent); font-style: normal; }
.page-hero::after { background: linear-gradient(115deg, transparent 40%, rgba(0,52,251,0.06) 50%, transparent 60%); background-size: 250% 100%; }
.page-hero.tone-wine { background: radial-gradient(90% 140% at 100% 0%, #F6DCE4 0%, rgba(246,220,228,0) 60%), linear-gradient(180deg, #FFF7F9 0%, #FFFFFF 100%); }
.page-hero.tone-wine .eyebrow, .page-hero.tone-wine .ph-art { color: #8E1F43; }
.page-hero.tone-copper { background: radial-gradient(90% 140% at 100% 0%, #D6F0EA 0%, rgba(214,240,234,0) 60%), linear-gradient(180deg, #F4FBF9 0%, #FFFFFF 100%); }
.page-hero.tone-copper .eyebrow, .page-hero.tone-copper .ph-art { color: #11695A; }
.ph-art { position: absolute; right: 0; top: 0; height: 100%; width: min(60%, 720px); color: #0034FB; opacity: 0.35; pointer-events: none; }
.ph-art path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s cubic-bezier(.6,0,.2,1) .2s forwards; }
.ph-art .w2 { animation-delay: .45s; } .ph-art .w3 { animation-delay: .7s; } .ph-art .w4 { animation-delay: .9s; } .ph-art .w5 { animation-delay: 1.1s; }
.ph-art .nd { transform-box: fill-box; transform-origin: center; animation: nodepulse 3s ease-in-out 1.6s infinite; }
.ph-art .nd:nth-child(2) { animation-delay: 2.1s; } .ph-art .nd:nth-child(3) { animation-delay: 2.6s; } .ph-art .nd:nth-child(4) { animation-delay: 3.1s; } .ph-art .nd:nth-child(5) { animation-delay: 3.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 760px) { .ph-art { width: 100%; opacity: 0.16; } }
@media (prefers-color-scheme: dark) and (max-width: 0px) { :root:not([data-theme="light"]) .page-hero { background: var(--band); color: var(--band-ink); border-color: var(--line); } :root:not([data-theme="light"]) .page-hero .lede { color: var(--band-ink-2); } :root:not([data-theme="light"]) .ph-art { color: #8FB0FF; } }
:root[data-theme="dark"] .page-hero { background: var(--band); color: var(--band-ink); }
:root[data-theme="dark"] .page-hero .lede { color: var(--band-ink-2); }

/* Spazi foto vuoti: riquadro di marca invece del grigio */
.ph:not(.has-img) { border: 0; background: linear-gradient(135deg, #0034FB 0%, #3D6BFF 55%, #8FB0FF 100%); }
.ph:not(.has-img)::after { content: ""; position: absolute; inset: 0; background: url("img/logo-simbolo.png") center 42% / 22% auto no-repeat; opacity: .9; }
.ph:not(.has-img)::before { content: attr(data-file); align-items: flex-end; justify-content: flex-start; color: rgba(255,255,255,0.75); font-size: 0.7rem; }
.section-alt { background: linear-gradient(180deg, #EEF3FF 0%, var(--panel) 100%); }

/* ===== Elettromeccanica ===== */
.em-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.em-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.em-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,52,251,0.45); border-color: #B9C8FF; }
.em-card .ph { aspect-ratio: 16 / 10; }
.em-card .t { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.em-card h3 { font-size: 1.12rem; }
.em-card p { color: var(--ink-2); font-size: 0.97rem; }
.em-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: st; position: relative; }
.em-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: linear-gradient(90deg, #0034FB, #8FB0FF); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.6,0,.2,1); }
html:not(.js) .em-steps::before, .em-steps.in::before { transform: scaleX(1); }
.em-steps li { position: relative; padding: 0 14px 0 0; display: flex; flex-direction: column; gap: 8px; counter-increment: st; }
.em-steps li::before { content: counter(st, decimal-leading-zero); width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; border: 2px solid #0034FB; color: #0034FB; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; position: relative; z-index: 1; }
.em-steps b { font-family: var(--f-display); font-size: 1rem; }
.em-steps span { color: var(--ink-2); font-size: 0.93rem; }
.em-band { background: linear-gradient(120deg, #0034FB 0%, #1F4BFF 50%, #4E7BFF 100%); color: #FFFFFF; }
.em-band .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 44px; }
.em-band b { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; }
.em-band b span { font-size: inherit; color: inherit; }
.em-band .wrap > div > span { color: #DCE5FF; font-size: 0.95rem; }
.em-norms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.em-norms div { border-left: 3px solid #0034FB; padding: 6px 0 6px 16px; display: flex; flex-direction: column; gap: 4px; }
.em-norms b { font-family: var(--f-mono); font-size: 0.9rem; color: var(--accent); }
.em-norms span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 1000px) { .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .em-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } .em-steps::before { display: none; } .em-band .wrap, .em-norms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .em-grid, .em-steps, .em-norms { grid-template-columns: minmax(0, 1fr); } }
.ph:not(.has-img)::after { background: linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px) 0 0 / 28px 28px, radial-gradient(circle at 70% 30%, rgba(255,255,255,0.35) 0, rgba(255,255,255,0) 40%); opacity: 1; }

/* ===== Novembre 2026: aperture più luminose e dinamiche ===== */
.page-hero { background: linear-gradient(120deg, #EEF3FF 0%, #FFFFFF 45%, #E6EEFF 100%); }
.page-hero::before { content: ""; position: absolute; inset: -30%; pointer-events: none; z-index: 0;
  background: radial-gradient(30% 40% at 72% 28%, rgba(0,52,251,0.16), transparent 70%),
              radial-gradient(26% 36% at 92% 78%, rgba(61,107,255,0.14), transparent 70%),
              radial-gradient(22% 30% at 48% 92%, rgba(143,176,255,0.22), transparent 70%);
  animation: hero-drift 16s ease-in-out infinite alternate; }
.page-hero.tone-wine { background: linear-gradient(120deg, #FFF1F5 0%, #FFFFFF 45%, #FBE6EC 100%); }
.page-hero.tone-wine::before { background: radial-gradient(30% 40% at 72% 28%, rgba(142,31,67,0.14), transparent 70%), radial-gradient(26% 36% at 92% 78%, rgba(200,164,106,0.20), transparent 70%), radial-gradient(22% 30% at 48% 92%, rgba(229,154,176,0.22), transparent 70%); }
.page-hero.tone-copper { background: linear-gradient(120deg, #ECF8F4 0%, #FFFFFF 45%, #E0F3EE 100%); }
.page-hero.tone-copper::before { background: radial-gradient(30% 40% at 72% 28%, rgba(17,105,90,0.14), transparent 70%), radial-gradient(26% 36% at 92% 78%, rgba(127,208,188,0.22), transparent 70%), radial-gradient(22% 30% at 48% 92%, rgba(143,176,255,0.16), transparent 70%); }
.page-hero .ph-art { opacity: 0.5; z-index: 0; }
@keyframes hero-drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-4%,3%,0) scale(1.06); } 100% { transform: translate3d(3%,-2%,0) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .page-hero::before { animation: none; } }
/* Home: foto più visibili */
.hx-shade { background: linear-gradient(90deg, rgba(10,18,26,0.78) 0%, rgba(10,18,26,0.48) 42%, rgba(10,18,26,0.05) 100%), linear-gradient(0deg, rgba(10,18,26,0.6) 0%, rgba(10,18,26,0) 40%); }
/* ScaiNet: apertura meno cupa */
.sx-hero-img { width: 60%; }
.sx-hero-shade { background: linear-gradient(90deg, var(--sx-ink) 38%, rgba(18,20,23,0.35) 62%, rgba(18,20,23,0) 100%); }

/* ===== Menu a tendina al passaggio del mouse ===== */
.nav-item { position: relative; display: inline-flex; }
.nav-sub { position: absolute; top: 100%; left: -18px; padding-top: 12px; min-width: 270px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.nav-sub-in { background: #FFFFFF; border: 1px solid #DCE3F5; border-top: 3px solid #0034FB; box-shadow: 0 22px 48px -18px rgba(21,34,48,0.28); padding: 8px; display: flex; flex-direction: column; }
.nav .nav-sub a { padding: 9px 12px; font-size: 0.95rem; color: #152230; display: block; white-space: nowrap; border: 0; }
.nav .nav-sub a::after { display: none; }
.nav .nav-sub a:hover, .nav .nav-sub a:focus-visible { background: #EEF3FF; color: #0034FB; }
.nav .nav-sub a.all { margin-top: 4px; border-top: 1px solid #E3E8F2; font-weight: 600; color: #0034FB; }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.nav-item > a::before { content: ""; }
@media (max-width: 900px) { .nav-item { display: block; } .nav-sub { display: none; } }

/* ===== Più luce e movimento (6/11/2026) ===== */
:root { --bg: #F8FAFF; --panel: #EDF2FC; --sx-paper: #FBF8F3; --sx-paper2: #F3ECE2; }
@keyframes bg-pan { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
/* ScaiNet: niente più nero, vino e blu vivi in movimento */
.sx-dark, .sx-split { background: linear-gradient(125deg, #4A1226 0%, #7A2340 40%, #A8405E 75%, #7A2340 100%); background-size: 220% 220%; animation: bg-pan 16s ease-in-out infinite alternate; }
.sx-dark2 { background: linear-gradient(125deg, #0B2CA8 0%, #1E4BE0 45%, #4A78FF 80%, #1E4BE0 100%); background-size: 220% 220%; animation: bg-pan 18s ease-in-out infinite alternate; }
.sx-dark2 .sx-lines li, .sx-dark2 p { color: #E6ECFF; }
.sx-hero { background: linear-gradient(120deg, #3E0F20 0%, #6E1F37 45%, #8E2A3E 100%); }
.sx-hero-shade { background: linear-gradient(90deg, #4A1226 30%, rgba(74,18,38,0.45) 58%, rgba(74,18,38,0) 100%); }
.sx-hero .lede, .sx-hero .crumbs, .sx-hero .crumbs a { color: #F1DCE2; }
.sx-steps article { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); backdrop-filter: blur(4px); }
.sx-gsm { background: linear-gradient(120deg, #6E1F37, #A8405E); }
.sx-note-dark, .sx-muted { color: #EBD3DA !important; }
@media (max-width: 860px) { .sx-hero-shade { background: linear-gradient(180deg, rgba(74,18,38,0.55), #4A1226); } }
/* Schermate ScaiNet che "galleggiano" */
.sx-screen img, .sx-duo img, .pdp-img img { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.sx-screen:hover img, .sx-duo article:hover img, .pdp-img:hover img { transform: translateY(-6px) scale(1.015); box-shadow: 0 30px 60px -25px rgba(0,52,251,0.55); }
/* Settori: icone colorate e card che si accendono */
.sectors { background: transparent; border: 0; gap: 18px; }
.sector { border: 1px solid #DCE3F5; border-radius: 14px; position: relative; overflow: hidden; }
.sector::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, #0034FB, #8FB0FF); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.sector:hover::before { transform: scaleX(1); }
.sector svg { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: #E8EEFF; transition: background .35s ease, stroke .35s ease, transform .35s ease; }
.sector:hover svg { background: #0034FB; stroke: #FFFFFF; transform: rotate(-8deg) scale(1.08); }
.sector:hover { box-shadow: 0 22px 44px -20px rgba(0,52,251,0.35); }
.sector .go::after { content: " →"; display: inline-block; transition: transform .3s ease; }
.sector:hover .go::after { transform: translateX(6px); }
/* Prodotti e novità: foto che si avvicinano */
.card, .post { border-radius: 12px; overflow: hidden; }
.card .thumb img, .post > img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.card:hover .thumb img, a.post:hover > img { transform: scale(1.06); }
/* Numeri in home con un tocco di colore */
.nums { background: linear-gradient(90deg, #FFFFFF 0%, #EEF3FF 100%); }
.nums b { background: linear-gradient(90deg, #0034FB, #4A78FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { .sx-dark, .sx-split, .sx-dark2 { animation: none; } }

/* ===== Apertura pagine: dal disegno al prodotto, i pezzi si compongono ===== */
.ph-stage { display: none; }
@media (min-width: 1000px) {
  .page-hero.has-stage .wrap { min-height: 440px; justify-content: center; padding-right: calc(46% + 24px); }
  .page-hero.has-stage .ph-art { display: none; }
  .ph-stage { display: block; position: absolute; z-index: 1; top: 50%; right: max(20px, calc((100vw - var(--maxw)) / 2 + 20px)); width: min(44%, 520px); aspect-ratio: 4 / 3; transform: translateY(-50%); margin: 0;
    background: rgba(255,255,255,0.6); background-image: radial-gradient(circle, rgba(0,52,251,.16) 1px, transparent 1.2px); background-size: 16px 16px; }
}
.ph-stage .ps-draw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ps-draw .ln { fill: none; stroke: #0034FB; stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ps-draw 1.1s cubic-bezier(.65,0,.25,1) forwards; }
.ps-draw .dm { stroke: #7D8CA0; stroke-width: 1; }
.ps-draw { animation: ps-dim 1s ease 2.4s forwards; }
@keyframes ps-draw { to { stroke-dashoffset: 0; } }
@keyframes ps-dim { to { opacity: .14; } }
.ps-tiles { position: absolute; inset: 0; overflow: hidden; }
.ps-tiles .zoom { position: absolute; inset: 0; animation: ps-zoom 14s ease-in-out 2.6s infinite alternate; }
.ps-tile { position: absolute; background-repeat: no-repeat; opacity: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.9);
  transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.9);
  animation: ps-in .9s cubic-bezier(.2,.8,.2,1) var(--d) forwards, ps-seam .6s ease 2.4s forwards; }
.ph-stage.contain .ps-tiles { background: #FFFFFF; }
@keyframes ps-in { to { opacity: 1; transform: none; } }
@keyframes ps-seam { to { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); } }
@keyframes ps-zoom { to { transform: scale(1.05); } }
.ps-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #0034FB; box-shadow: 0 0 18px 4px rgba(0,52,251,.45); opacity: 0; animation: ps-scan 1s cubic-bezier(.6,0,.3,1) 2.1s forwards; }
@keyframes ps-scan { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.ps-corner { position: absolute; width: 14px; height: 14px; border: 0 solid #0E1A26; opacity: 0; animation: ps-fade .4s ease .1s forwards; }
.ps-corner.tl { top: -7px; left: -7px; border-top-width: 1.5px; border-left-width: 1.5px; }
.ps-corner.tr { top: -7px; right: -7px; border-top-width: 1.5px; border-right-width: 1.5px; }
.ps-corner.bl { bottom: -7px; left: -7px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.ps-corner.br { bottom: -7px; right: -7px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
@keyframes ps-fade { to { opacity: 1; } }
.ps-tag { position: absolute; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translate(-6px, calc(-50% + 8px)); animation: ps-tag .5s cubic-bezier(.2,.8,.2,1) var(--d) forwards; }
.ps-tag::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #0034FB; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 5px #0034FB; flex: none; }
.ps-tag span { background: #0E1A26; color: #FFFFFF; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; white-space: nowrap; }
.ps-tag.left { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), calc(-50% + 8px)); }
@keyframes ps-tag { to { opacity: 1; transform: translate(-6px, -50%); } }
.ps-tag.left { animation-name: ps-tag-l; }
@keyframes ps-tag-l { to { opacity: 1; transform: translate(calc(-100% + 6px), -50%); } }
.ps-sheet { position: absolute; left: 0; top: calc(100% + 10px); font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: .12em; text-transform: uppercase; color: #7D8CA0; opacity: 0; animation: ps-fade .6s ease .6s forwards; }
.page-hero.tone-wine .ps-draw .ln:not(.dm), .page-hero.tone-wine .ps-scan { stroke: #8E1F43; }
.page-hero.tone-wine .ps-scan { background: #8E1F43; box-shadow: 0 0 18px 4px rgba(142,31,67,.4); }
.page-hero.tone-wine .ps-tag::before { background: #8E1F43; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 5px #8E1F43; }
.page-hero.tone-wine .ph-stage { background-image: radial-gradient(circle, rgba(142,31,67,.16) 1px, transparent 1.2px); }
@media (prefers-reduced-motion: reduce) { .ps-draw .ln, .ps-tile, .ps-tag, .ps-corner, .ps-sheet { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; box-shadow: none; } .ps-draw { animation: none; opacity: .14; } .ps-scan, .ps-tiles .zoom { animation: none; } .ps-tag.left { transform: translate(calc(-100% + 6px), -50%); } .ps-tag:not(.left) { transform: translate(-6px, -50%); } }

/* Apertura pagine semplificata: la foto compare intera con una dissolvenza morbida, cornice sottile, etichette calme */
@media (min-width: 1000px) { .ph-stage, .page-hero.tone-wine .ph-stage { background-image: none; background: transparent; } }
.ps-tile { opacity: 1; transform: none; box-shadow: none; animation: none; }
.ps-tiles { opacity: 0; animation: ps-fade 1s ease .15s forwards; }
.ps-tiles .zoom { transform: scale(1.04); animation: ps-settle 1.6s cubic-bezier(.2,.7,.2,1) .15s forwards; }
@keyframes ps-settle { to { transform: none; } }
.ps-draw { animation: ps-dim .8s ease 1s forwards; }
.ps-draw .ln { animation-duration: .9s; }
.ps-corner, .ps-scan { display: none; }
.ps-tag { animation-duration: .6s; }

/* ===== Enologia: storia, impianti esistenti, vetrina ScaiNet, galleria ===== */
.eno-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.eno-tl li { display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--line); border-top: 3px solid var(--wine); }
.eno-tl figure { margin: 0; aspect-ratio: 16 / 10; background: #EEF1F3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.eno-tl figure img { width: 100%; height: 100%; object-fit: cover; }
.eno-tl figure.scr img { object-fit: cover; object-position: top left; }
.eno-tl li > div { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.eno-tl b { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); }
.eno-tl h3 { margin: 0; font-size: 1.2rem; color: var(--ink); }
.eno-tl p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.eno-tl a { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--wine); }
.eno-tl a::after { content: " →"; }
@media (max-width: 960px) { .eno-tl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .eno-tl { grid-template-columns: minmax(0, 1fr); } }
.eno-nums b { color: var(--wine); }
.eno-cap { font-size: .9rem; color: var(--ink-3); }

.eno-sn { background: radial-gradient(120% 90% at 85% 10%, #8E1F43 0%, #4A1226 45%, #22080F 100%); color: #F6E9EE; overflow: hidden; }
.eno-sn-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .eno-sn-in { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.eno-pill { display: inline-block; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); color: #FFD7E3; }
.eno-sn h2 { color: #FFFFFF; margin: 18px 0 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
.eno-sn h2 em { font-style: normal; color: #FFB3C9; }
.eno-sn .lede { color: #E8CDD6; margin-top: 18px; }
.eno-ben { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
@media (max-width: 520px) { .eno-ben { grid-template-columns: minmax(0, 1fr); } }
.eno-ben li { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 2px solid #FF8FB0; }
.eno-ben b { color: #FFFFFF; font-size: 1rem; }
.eno-ben span { color: #DDBFC9; font-size: .92rem; line-height: 1.45; }
.eno-btn-w { background: #FFFFFF; color: #5A1530; border: 1px solid #FFFFFF; }
.eno-btn-w:hover { background: #FFE6EE; }
.eno-btn-o { border: 1px solid rgba(255,255,255,.5); color: #FFFFFF; }
.eno-btn-o:hover { border-color: #FFFFFF; }
.eno-sn-vis { position: relative; min-width: 0; }
.eno-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.eno-tabs button { font: inherit; font-size: .88rem; padding: 8px 14px; background: rgba(255,255,255,.08); color: #F3DCE4; border: 1px solid rgba(255,255,255,.18); cursor: pointer; }
.eno-tabs button[aria-selected="true"] { background: #FFFFFF; color: #5A1530; border-color: #FFFFFF; }
.eno-mon { background: #0E1116; padding: 12px; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.eno-scr { position: relative; aspect-ratio: 1280 / 995; overflow: hidden; border-radius: 4px; background: #1A33C7; }
.eno-scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.02); transition: opacity .7s ease, transform 1.2s ease; }
.eno-scr img.on { opacity: 1; transform: none; }
.eno-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #FF8FB0; transform-origin: left; transform: scaleX(0); }
.eno-bar.run { animation: prog 6s linear forwards; }
.eno-sms { position: absolute; right: -10px; bottom: -26px; display: flex; gap: 12px; align-items: flex-start; background: #FFFFFF; color: #152230; padding: 12px 16px 12px 12px; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); max-width: 290px; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.eno-sms.show { opacity: 1; transform: none; }
.eno-sms .ic { width: 34px; height: 34px; border-radius: 9px; background: #8E1F43; flex: none; position: relative; }
.eno-sms .ic::after { content: "!"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.eno-sms div { display: flex; flex-direction: column; gap: 1px; }
.eno-sms small { font-size: .72rem; color: #6B7783; }
.eno-sms b { font-size: .92rem; }
.eno-sms span { font-size: .85rem; color: #3A4651; }
@media (max-width: 600px) { .eno-sms { right: 8px; bottom: -34px; max-width: 250px; } .eno-sn { padding-bottom: 80px; } }

.eno-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.eno-mosaic .m1 { grid-column: span 2; grid-row: span 2; }
.eno-mosaic .m1 .ph { aspect-ratio: auto; height: 100%; min-height: 320px; }
.eno-mosaic .m1 { display: flex; flex-direction: column; }
.eno-mosaic .m1 .ph { flex: 1; }
@media (max-width: 960px) { .eno-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eno-mosaic .m1 { grid-row: auto; } .eno-mosaic .m1 .ph { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .eno-mosaic { grid-template-columns: minmax(0, 1fr); } .eno-mosaic .m1 { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .eno-scr img, .eno-sms { transition: none; } .eno-bar.run { animation: none; } }

/* Foto di apertura: solo la foto, senza etichette né didascalia */
.ps-tag, .ps-sheet { display: none !important; }

/* Elettromeccanica: video dalla nostra officina */
.em-vid-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
@media (max-width: 860px) { .em-vid-in { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.em-vid-txt h2 { color: var(--ink); margin-top: 10px; }
.em-vid-txt .lede { margin-top: 16px; }
.em-vid-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
@media (max-width: 520px) { .em-vid-list { grid-template-columns: minmax(0, 1fr); } }
.em-vid-list li { display: flex; flex-direction: column; gap: 3px; padding-left: 16px; border-left: 2px solid var(--accent); }
.em-vid-list b { color: var(--ink); }
.em-vid-list span { color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.em-vid-fig { position: relative; margin: 0; justify-self: center; width: min(100%, 400px); display: flex; flex-direction: column; gap: 10px; }
.em-vid-fig video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; object-fit: cover; background: #10161C; border-radius: 6px; box-shadow: 0 30px 60px -28px rgba(10,20,30,.55); }
.em-vid-fig figcaption { font-size: .9rem; color: var(--ink-3); }
.em-vid-btn { position: absolute; right: 12px; top: 12px; font: inherit; font-size: .8rem; padding: 6px 12px; background: rgba(14,26,38,.72); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; cursor: pointer; }
.em-vid-btn:hover { background: rgba(14,26,38,.9); }

/* ===== Elettromeccanica: video 16:9, filmato e galleria (7/11/2026) ===== */
.em-vid--wide .em-vid-in { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; }
@media (max-width: 960px) { .em-vid--wide .em-vid-in { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.em-vid--wide .em-vid-fig { width: 100%; justify-self: stretch; }
.em-vid--wide .em-vid-fig video { aspect-ratio: 16 / 9; max-height: none; border-radius: 10px; box-shadow: 0 40px 80px -36px rgba(0,52,251,.45), 0 0 0 1px rgba(14,26,38,.08); }
.em-vid-cta { position: absolute; left: 16px; bottom: 46px; display: inline-flex; align-items: center; gap: 10px; font: 600 .92rem var(--f-body); padding: 10px 16px 10px 12px; color: #fff; background: rgba(0,52,251,.88); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0,52,251,.8); transition: transform .25s ease, background .25s ease; }
.em-vid-cta:hover { transform: translateY(-2px); background: #0034FB; }
.em-play { width: 22px; height: 22px; border-radius: 50%; background: #fff; position: relative; flex: none; }
.em-play::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #0034FB; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.btn .em-play { margin-right: 10px; vertical-align: -5px; display: inline-block; }
.btn-line { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.em-vid--wide .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.em-vid--wide button.btn { font: inherit; font-weight: 600; cursor: pointer; border: 0; }
.em-film { border: 0; padding: 0; background: transparent; width: min(1180px, 94vw); max-width: none; }
.em-film::backdrop { background: rgba(8,14,24,.86); backdrop-filter: blur(6px); }
.em-film-in { display: flex; flex-direction: column; gap: 12px; }
.em-film video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: block; }
.em-film p { color: #C9D3DC; font-size: .9rem; margin: 0; }
.em-film-x { align-self: flex-end; font: 600 .9rem var(--f-body); color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.em-film-x:hover { background: rgba(255,255,255,.22); }
.em-gal { background: linear-gradient(180deg, #FFFFFF 0%, #F2F6FF 100%); }
.em-gal-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 16px; }
.em-gal-it { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #0E1A26; }
.em-gal-it.big { grid-row: span 2; }
.em-gal-it.wide { grid-column: span 2; }
.em-gal-it img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.em-gal-it.wide img { object-position: 50% 62%; }
.em-gal-it:hover img { transform: scale(1.05); }
.em-gal-it figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(180deg, rgba(8,14,24,0), rgba(8,14,24,.78)); color: #fff; display: flex; flex-direction: column; gap: 2px; }
.em-gal-it figcaption b { font-family: var(--f-display); font-size: 1.08rem; }
.em-gal-it figcaption span { font-size: .9rem; color: #D6DEEA; }
@media (max-width: 900px) { .em-gal-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 420px 260px 260px; } .em-gal-it.big { grid-column: span 2; grid-row: auto; } .em-gal-it.wide { grid-column: span 2; } }
@media (max-width: 560px) { .em-gal-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 320px; } .em-gal-it.big, .em-gal-it.wide { grid-column: auto; } .em-gal-it.big { grid-row: auto; } }
.hx-nav.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.em-vid--wide .btns { flex-direction: row; align-items: center; }
.em-vid--wide .btns .btn { width: auto; }

/* ===== Elettromeccanica: fascia video a tutta larghezza (7/11/2026) ===== */
.em-cine { position: relative; overflow: hidden; color: #FFFFFF; background: #0B1420; min-height: clamp(560px, 84vh, 820px); display: flex; align-items: center; isolation: isolate; }
.em-cine-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); }
.em-cine-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7,13,22,.92) 0%, rgba(7,13,22,.74) 34%, rgba(7,13,22,.28) 64%, rgba(7,13,22,.05) 100%),
  linear-gradient(0deg, rgba(7,13,22,.75) 0%, rgba(7,13,22,0) 38%),
  linear-gradient(180deg, rgba(7,13,22,.45) 0%, rgba(7,13,22,0) 22%); }
.em-cine-in { width: 100%; padding-block: clamp(72px, 10vw, 128px) clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: clamp(40px, 7vh, 88px); }
.em-cine-txt { max-width: 600px; display: flex; flex-direction: column; gap: 18px; }
.em-cine .eyebrow { color: #8FB0FF; }
.em-cine h2 { color: #FFFFFF; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -0.02em; }
.em-cine h2 em { font-style: normal; color: #8FB0FF; }
.em-cine .lede { color: #D3DCE8; max-width: 56ch; }
.em-cine-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.22); }
.em-cine-list li { padding: 18px 18px 4px 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.em-cine-list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px; background: #3D6BFF; transition: width .5s ease; }
.em-cine-list li:hover::before { width: 64px; }
.em-cine-list span { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; color: #8FB0FF; }
.em-cine-list b { font-family: var(--f-display); font-size: 1.05rem; color: #FFFFFF; }
.em-cine-list i { font-style: normal; font-size: .9rem; line-height: 1.4; color: #B9C6D6; }
.em-cine-btn { top: auto; bottom: 18px; right: 18px; }
@media (max-width: 1100px) { .em-cine-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; } }
@media (max-width: 640px) {
  .em-cine { min-height: 0; align-items: stretch; }
  .em-cine-shade { background: linear-gradient(180deg, rgba(7,13,22,.55) 0%, rgba(7,13,22,.82) 45%, rgba(7,13,22,.94) 100%); }
  .em-cine-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .em-cine-v { transform: none; } }

/* ===== Apertura pagine: foto a tutta altezza che si fonde con lo sfondo (7/11/2026) ===== */
.page-hero.has-stage .ph-stage { display: none !important; }
.ph-bleed { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 42%), linear-gradient(0deg, transparent 0%, #000 18%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 42%), linear-gradient(0deg, transparent 0%, #000 18%); mask-composite: intersect; }
.pb-zoom { position: absolute; inset: 0; transform-origin: 70% 50%; }
.pb-go .pb-zoom { animation: pb-zoom 18s ease-in-out 1.6s infinite alternate; }
@keyframes pb-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.pb-t { position: absolute; background-repeat: no-repeat; opacity: 0; transform: translate3d(28px, var(--y), 0) scale(.96); filter: saturate(.2) brightness(1.15); }
.pb-go .pb-t { animation: pb-in 1s cubic-bezier(.2,.8,.2,1) var(--d) forwards; }
@keyframes pb-in { 60% { filter: saturate(.7) brightness(1.05); } to { opacity: 1; transform: none; filter: none; } }
.ph-bleed.contain .pb-zoom { background: transparent; }
.pb-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pb-lines path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pb-lines .pb-acc { stroke: #3D6BFF; stroke-width: 1.6; }
.pb-go .pb-lines path { animation: pb-draw 1.4s cubic-bezier(.65,0,.25,1) .1s forwards, pb-fade 1.2s ease 1.9s forwards; }
.pb-go .pb-lines .pb-acc { animation: pb-draw 1.6s cubic-bezier(.65,0,.25,1) .5s forwards; }
.ph-bleed.contain .pb-lines path:not(.pb-acc) { stroke: rgba(0,52,251,.18); }
@keyframes pb-draw { to { stroke-dashoffset: 0; } }
@keyframes pb-fade { to { opacity: .12; } }
.pb-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #FFFFFF; box-shadow: 0 0 24px 6px rgba(61,107,255,.55); opacity: 0; }
.pb-go .pb-scan { animation: pb-scan 1.1s cubic-bezier(.6,0,.3,1) 1.25s forwards; }
@keyframes pb-scan { 0% { left: 100%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 30%; opacity: 0; } }
.pb-sheet { position: absolute; right: 22px; bottom: 16px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); opacity: 0; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.ph-bleed.contain .pb-sheet { color: #7D8CA0; text-shadow: none; }
.pb-go .pb-sheet { animation: ps-fade .6s ease 1.8s forwards; }
.page-hero.has-bleed .ph-art { display: none; }
.page-hero.has-bleed .wrap { position: relative; z-index: 1; }
@media (min-width: 1000px) { .page-hero.has-bleed .wrap { min-height: 480px; justify-content: center; padding-right: 50%; } }
.ph-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ph-chips li { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 7px 12px 7px 26px; border: 1px solid #D6DEF0; background: rgba(255,255,255,.75); position: relative; opacity: 0; transform: translateY(8px); animation: rise .6s cubic-bezier(.2,.7,.2,1) var(--d) forwards; }
.ph-chips li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); }
.page-hero.tone-wine .ph-chips li::before { background: #8E1F43; }
.page-hero.tone-wine .pb-lines .pb-acc { stroke: #C04A6E; }
@media (max-width: 999px) {
  .ph-bleed { left: 0; width: 100%; bottom: auto; height: 260px; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .page-hero.has-bleed .wrap { padding-top: 230px; }
  .page-hero.has-bleed .crumbs { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pb-t, .ph-chips li { animation: none !important; opacity: 1; transform: none; filter: none; } .pb-lines path { animation: none !important; stroke-dashoffset: 0; opacity: .12; } .pb-scan { display: none; } .pb-zoom { animation: none !important; } .pb-sheet { opacity: 1; } }
.ph-bleed { width: 55%; }
.ph-bleed.contain { mix-blend-mode: multiply; }
@media (min-width: 1000px) { .page-hero.has-bleed h1 { font-size: clamp(2.2rem, 3.7vw, 3.3rem); max-width: 16ch; } .page-hero.has-bleed .wrap { padding-right: 52%; } }
@media (max-width: 999px) { .pb-sheet { display: none; } }

/* Dati chiave sotto il titolo delle aperture */
.ph-facts { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 0; max-width: 620px; }
.ph-facts div { padding: 2px 22px 2px 0; margin-right: 22px; border-right: 1px solid #D3DBEA; display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(8px); animation: rise .6s cubic-bezier(.2,.7,.2,1) var(--d) forwards; }
.ph-facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ph-facts dt { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.1; color: var(--accent); white-space: nowrap; }
.page-hero.tone-wine .ph-facts dt { color: #8E1F43; }
.ph-facts dd { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.35; max-width: 18ch; }
@media (max-width: 560px) { .ph-facts { flex-direction: column; gap: 12px; } .ph-facts div { border-right: 0; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--accent); } }
@media (prefers-reduced-motion: reduce) { .ph-facts div { animation: none; opacity: 1; transform: none; } }
.ph-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
.ph-facts div { margin-right: 0; padding: 2px 16px; border-right: 0; border-left: 1px solid #D3DBEA; }
.ph-facts div:first-child { border-left: 0; padding-left: 0; }
.ph-facts dt { white-space: normal; font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
@media (max-width: 999px) { .ph-bleed { width: 100% !important; } }
@media (max-width: 560px) { .ph-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; } .ph-facts div, .ph-facts div:first-child { padding: 0 0 0 14px; border-left: 2px solid var(--accent); } }
/* Aperture: correzione per schermi larghi (07/11) */
@media (min-width: 1000px) {
  .page-hero.has-bleed .wrap { padding-right: 0; }
  .page-hero.has-bleed .wrap > * { max-width: 560px; }
  .page-hero.has-bleed h1 { max-width: 15ch; }
  .page-hero.has-bleed .lede { max-width: 46ch; }
  .ph-bleed { left: 48%; width: auto !important; }
}
@media (min-width: 1600px) { .ph-bleed { left: 50%; } .page-hero.has-bleed .wrap > * { max-width: 600px; } }
/* Correzioni impaginazione schermi larghi (07/11) */
.post img { height: auto; aspect-ratio: 4 / 5; object-position: 50% 30%; }
.hx-s[src*="postazione"] { object-position: 50% 38%; }
.em-band b { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.em-gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
.em-gal-it.big, .em-gal-it.wide { grid-row: auto; grid-column: auto; }
.em-gal-it { aspect-ratio: 3 / 4; }
.em-gal-it.wide img { object-position: 50% 50%; }
@media (max-width: 900px) { .em-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; } .em-gal-it.big, .em-gal-it.wide { grid-column: auto; } }
@media (max-width: 560px) { .em-gal-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } .em-gal-it { aspect-ratio: 4 / 5; } }
.eno-tl figure img { object-position: 50% 45%; }
@media (min-width: 1800px) { :root { --maxw: 1360px; } body { font-size: 1.125rem; } }
@media (min-width: 2400px) { :root { --maxw: 1560px; } body { font-size: 1.2rem; } }

/* rev03: foto della cantina nella pagina ScaiNet */
.sx-cine .em-cine-shade { background: linear-gradient(180deg, rgba(46,10,22,.55) 0%, rgba(62,15,32,.84) 45%, rgba(46,10,22,.95) 100%); }
.sx-cine .eyebrow { color: #C8A46A; }
.sx-cine h2 em { color: #E7C78F; font-style: italic; font-weight: 500; }
.sx-cine .em-cine-list li::before { background: #C8A46A; }
.sx-gal { background: linear-gradient(180deg, #FBF8F3 0%, #F3ECE2 100%); }
.sx-cine .em-cine-list span { color: #C8A46A; }
.em-campo { background: #FFFFFF; } .em-gal-it video { position: absolute; inset: 0; }
.sx-phone-vid { padding: 0; overflow: hidden; aspect-ratio: 390 / 844; background: #F4F6FA; }
.sx-phone-vid video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 38px; }

/* ===== Storia v2 (24/11): decenni e timeline verticale ===== */
.st-section .story-head { margin-bottom: 24px; }
.st-dec-nav { position: sticky; top: var(--hdr-h, 72px); z-index: 5; display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 12px 0; margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.st-dec-nav::-webkit-scrollbar { display: none; }
.st-dec-nav a { flex: none; font-family: var(--f-mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); padding: 8px 14px; background: var(--surface, #fff); }
.st-dec-nav a:hover, .st-dec-nav a.on { color: #fff; background: var(--accent); border-color: var(--accent); }

.st-timeline { display: flex; flex-direction: column; }
.st-decade { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 40px; padding-top: 40px; scroll-margin-top: calc(var(--hdr-h, 72px) + 64px); }
.st-dec-label { position: sticky; top: calc(var(--hdr-h, 72px) + 84px); align-self: start; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.st-dec-a { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.st-dec-b { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: 3.2rem; line-height: 1; color: var(--ink); }
.st-dec-sub { margin-top: 8px; font-size: .95rem; color: var(--ink-2); max-width: 18ch; }

.st-timeline .chapters { border-top: 0; position: relative; padding-left: 36px; }
.st-timeline .chapters::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 0; width: 2px; background: var(--line); }
.st-timeline .st-decade:last-child .chapters::before { bottom: 40px; background: linear-gradient(var(--line) 0 85%, transparent); }
.st-timeline .chapter { position: relative; display: flex; gap: 28px; align-items: flex-start; padding: 0 0 40px; border: 0; grid-template-columns: none; }
.st-timeline .chapter::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-sizing: border-box; }
.st-timeline .chapter .yr { flex: 0 0 92px; font-size: 1.9rem; }
.st-timeline .chapter .text { flex: 1 1 auto; min-width: 0; gap: 8px; }
.st-timeline .chapter h3 { font-size: 1.3rem; margin: 0; }
.st-timeline .chapter p { margin: 0; max-width: 62ch; }
.st-timeline .chapter .photo-block { flex: 0 0 clamp(200px, 26vw, 300px); }
.st-timeline .chapter .ph { border: 0; aspect-ratio: 4 / 3; box-shadow: 0 14px 30px -22px rgba(21,34,48,.55); }
.st-timeline .chapter .ph.contain img { background: #fff; padding: 6px; }
@media (max-width: 1000px) { .st-decade { grid-template-columns: minmax(0, 1fr); gap: 16px; } .st-dec-label { position: static; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; } .st-dec-b { font-size: 2.4rem; } .st-dec-sub { margin: 0; max-width: none; } }
@media (max-width: 700px) {
  .st-timeline .chapter { flex-direction: column; gap: 10px; padding-bottom: 32px; }
  .st-timeline .chapter .yr { flex: none; font-size: 1.6rem; }
  .st-timeline .chapter .photo-block { flex: none; width: 100%; max-width: 420px; }
  .st-timeline .chapters { padding-left: 30px; }
  .st-timeline .chapter::before { left: -30px; top: 4px; }
  .st-timeline .chapters::before { left: 6px; }
}

/* =====================================================================
   APERTURE v3 (24/11/2026) — un solo modello per tutte le pagine interne
   .hv = apertura con foto (testo a sinistra, foto in cornice a destra)
   .hc = apertura compatta (schede prodotto, articoli, privacy)
   Niente sfumature sulle foto, niente linee sopra testo o foto.
   ===================================================================== */
.page-hero.hv, .page-hero.hc { background: linear-gradient(180deg, #F3F6FD 0%, #FAFBFE 70%, #FFFFFF 100%); color: var(--ink); border-bottom: 1px solid #E3E8F2; }
.page-hero.hv.tone-wine, .page-hero.hc.tone-wine { background: linear-gradient(180deg, #FBF2F5 0%, #FDF9FA 70%, #FFFFFF 100%); border-bottom-color: #F0E2E7; }
.page-hero.hv::before, .page-hero.hv::after, .page-hero.hc::before, .page-hero.hc::after { content: none; display: none; }
.page-hero.hv .wrap, .page-hero.hc .wrap { animation: none; }
.page-hero.hv .wrap > *, .page-hero.hc .wrap > * { animation: none; }

/* testo */
.hv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 5.5vw, 88px); align-items: center; width: 100%; }
.page-hero.hv .wrap { display: block; padding-block: clamp(40px, 5.5vw, 80px) clamp(48px, 6vw, 88px); }
.hv-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hv-text > * { animation: hv-up .8s cubic-bezier(.2,.7,.2,1) both; }
.hv-text > :nth-child(2) { animation-delay: .06s; } .hv-text > :nth-child(3) { animation-delay: .12s; } .hv-text > :nth-child(4) { animation-delay: .18s; } .hv-text > :nth-child(5) { animation-delay: .26s; }
.page-hero.hv h1 { font-size: clamp(2.3rem, 4.1vw, 3.5rem); line-height: 1.04; letter-spacing: -0.022em; max-width: 16ch; margin: 0; text-wrap: balance; }
.page-hero.hv .lede { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin: 0; text-wrap: pretty; }
.page-hero.hv .eyebrow, .page-hero.hc .eyebrow { color: var(--accent); }
.page-hero.tone-wine .eyebrow { color: #8E1F43; }
.page-hero.hv .crumbs, .page-hero.hv .crumbs a, .page-hero.hc .crumbs, .page-hero.hc .crumbs a { color: var(--ink-3); }
.page-hero.hv .crumbs a:hover, .page-hero.hc .crumbs a:hover { color: var(--accent); }

/* numeri chiave */
.hv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); max-width: 540px; }
.hv-facts > div { padding: 0 16px; border-left: 1px solid #D6DCE8; display: flex; flex-direction: column; gap: 4px; }
.hv-facts > div:first-child { padding-left: 0; border-left: 0; }
.hv-facts dt { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.1; color: var(--accent); overflow-wrap: anywhere; }
.page-hero.tone-wine .hv-facts dt { color: #8E1F43; }
.hv-facts dd { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }

/* foto in cornice */
.hv-photo { margin: 0; position: relative; min-width: 0; animation: hv-photo 1s cubic-bezier(.2,.7,.2,1) .1s both; }
.hv-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--accent); opacity: .28; pointer-events: none; }
.page-hero.tone-wine .hv-photo::before { border-color: #8E1F43; }
.hv-photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #E9EDF3; box-shadow: 0 34px 60px -34px rgba(15,28,44,.55), 0 2px 6px rgba(15,28,44,.06); }
.hv-photo.contain img { object-fit: contain; background: #FFFFFF; padding: 7% 9%; box-sizing: border-box; }
.hv-photo figcaption { position: relative; margin-top: 14px; font-size: .88rem; color: var(--ink-3); }
/* inquadrature su misura */
.hv-photo img[src*="em-quadro-sew"] { object-position: 50% 40%; }
.hv-photo img[src*="em-campo-scheda"] { object-position: 50% 45%; }
.hv-photo img[src*="cutter-eno-cantina-2"] { object-position: 50% 42%; }
.hv-photo img[src*="enologia-apertura"] { object-position: 50% 60%; }
.hv-photo img[src*="team"] { object-position: 50% 55%; }
.hv-photo img[src*="officina-quadri"] { object-position: 50% 50%; }

@keyframes hv-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hv-photo { from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 14% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .hv-text > *, .hv-photo { animation: none !important; } }

/* tablet e telefono: foto sopra, testo sotto */
@media (max-width: 960px) {
  .hv-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hv-photo { order: -1; }
  .hv-photo::before { inset: 12px -12px -12px 12px; }
  .hv-photo img { aspect-ratio: 16 / 10; }
  .hv-photo.contain img { aspect-ratio: 16 / 9; padding: 5% 12%; }
  .page-hero.hv .wrap { padding-block: 20px 44px; }
  .page-hero.hv h1 { max-width: 20ch; }
  .page-hero.hv .lede { max-width: 60ch; }
}
@media (max-width: 960px) { .hv-photo { margin-right: 12px; } }
@media (max-width: 560px) {
  .page-hero.hv h1 { font-size: clamp(2rem, 8.6vw, 2.5rem); }
  .page-hero.hv .lede { font-size: 1.02rem; }
  .hv-text { gap: 14px; }
  .hv-facts { padding-top: 14px; }
  .hv-facts > div { padding: 0 10px; }
  .hv-facts dt { font-size: 1.08rem; }
  .hv-facts dd { font-size: .8rem; }
}
@media (max-width: 359px) { .hv-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; } .hv-facts > div, .hv-facts > div:first-child { padding: 0 0 0 12px; border-left: 2px solid var(--accent); } }

/* apertura compatta */
.page-hero.hc .wrap { display: flex; flex-direction: column; gap: 14px; padding-block: clamp(32px, 4.2vw, 56px) clamp(32px, 4vw, 52px); }
.page-hero.hc h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 22ch; margin: 0; text-wrap: balance; }
.page-hero.hc .lede { color: var(--ink-2); max-width: 60ch; margin: 0; }
.page-hero.hc .ph-art { width: min(44%, 560px); opacity: .22; }
.page-hero.hc .ph-art path { animation-duration: 2s; }
@media (max-width: 1000px) { .page-hero.hc .ph-art { display: none; } }

/* pulsante Contatti quando è la pagina corrente */
.nav a.cta[aria-current="page"], .nav a.cta[aria-current="page"]:hover { color: #FFFFFF; text-decoration: none; box-shadow: inset 0 -3px 0 rgba(255,255,255,.55); }
/* rifiniture aperture v3 */
.page-hero.hv h1 { max-width: 17ch; }
.hv-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; max-width: none; width: fit-content; min-width: min(100%, 420px); }
.hv-facts > div { padding: 0 clamp(14px, 1.6vw, 24px); }
.hv-facts > div:last-child { padding-right: 0; }
.hv-facts dt { white-space: nowrap; overflow-wrap: normal; font-size: clamp(1.15rem, 1.45vw, 1.4rem); }
.hv-facts dd { max-width: 17ch; }
@media (max-width: 560px) {
  .hv-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-width: 0; }
  .hv-facts > div { padding: 0 9px; }
  .hv-facts dt { white-space: normal; font-size: 1rem; overflow-wrap: normal; word-break: keep-all; }
  .hv-facts dd { max-width: none; }
}
/* Home: leggibilità del testo sopra la foto */
.hx-shade { background: linear-gradient(90deg, rgba(9,16,24,0.90) 0%, rgba(9,16,24,0.74) 38%, rgba(9,16,24,0.30) 70%, rgba(9,16,24,0.12) 100%), linear-gradient(0deg, rgba(9,16,24,0.82) 0%, rgba(9,16,24,0) 46%); }
.hx .wires { display: none; }
.hx-lede { color: #D5DDE5 !important; }
@media (max-width: 760px) {
  .hx-shade { background: linear-gradient(180deg, rgba(9,16,24,0.55) 0%, rgba(9,16,24,0.78) 45%, rgba(9,16,24,0.92) 100%); }
  .hx-in { padding-block: 56px 28px; gap: 16px; }
  .hx-title { font-size: clamp(2.05rem, 9.4vw, 2.7rem); max-width: 16ch; }
  .hx-lede { font-size: 1rem; line-height: 1.55; }
  .hx-btns { display: flex; flex-wrap: wrap; gap: 10px; }
  .hx-btns .btn { flex: 1 1 auto; text-align: center; }
  .hx-nav.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .hx-nav b, .hx-nav i { display: none; }
  .hx-nav button { padding: 10px 0 4px; }
}
/* Laboratorio TCQ: titolo su 3 righe, colonne bilanciate */
.tq-hero2-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.tq-hero2 h1 { font-size: clamp(2.2rem, 3.7vw, 3.3rem); max-width: 15ch; text-wrap: balance; }
.tq-hero2 .lede { max-width: 50ch; }
@media (max-width: 900px) {
  .tq-hero2-in { grid-template-columns: minmax(0, 1fr); }
  .tq-hero2 h1 { max-width: none; font-size: clamp(2.05rem, 8.4vw, 2.7rem); }
  .tq-hero2-art { order: 2; }
}
/* MIL 200: frontalini e espositori (24/11/2026) */
.mil-gal { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mil-gal #mil-main { max-height: 560px; width: auto; max-width: 100%; margin-inline: auto; display: block; border-radius: 6px; }
.mil-vers { display: flex; gap: 10px; justify-content: center; }
.mil-vers button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; border: 1.5px solid var(--line); border-radius: 8px; font-size: .82rem; color: var(--ink-2); transition: border-color .2s; }
.mil-vers button img { width: 56px; height: 72px; object-fit: cover; border-radius: 4px; }
.mil-vers button.on, .mil-vers button:hover { border-color: var(--accent); color: var(--ink); }
.mil-vers button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mil-note { margin: 0; font-size: .88rem; color: var(--ink-2); text-align: center; }
.pdp-img.mil-gal:hover img { transform: none; box-shadow: none; }
.mil-esp { background: #F3F6FD; border-top: 1px solid var(--line); }
.mil-esp-head { max-width: 760px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.mil-esp-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.mil-esp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mil-esp-grid figure { margin: 0; background: #FFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.mil-esp-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; display: block; background: #EEF0F3; }
.mil-esp-grid figcaption { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.mil-esp-grid figcaption strong { color: var(--ink); font-size: 1.05rem; }
@media (max-width: 1000px) { .mil-esp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mil-esp-grid { grid-template-columns: minmax(0, 1fr); } }
.mil-esp-grid figure > img { flex: none; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #EDF0F3; }
/* Illustrazioni al posto delle foto mancanti (24/11) */
.ill-cap { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: -2px; }
/* Filmato a tutto schermo */
.em-film-btn { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; background: #FFFFFF; color: #0E1830; border: 0; cursor: pointer; }
.em-film-btn:hover { background: #E9EEFF; }
.em-film-ic { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film-dlg { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: #000; border-radius: 12px; overflow: visible; }
.film-dlg::backdrop { background: rgba(6, 12, 28, .82); }
.film-dlg video { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; }
.film-x { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #FFFFFF; color: #0E1830; font-size: 26px; line-height: 1; cursor: pointer; }
.ph .ph-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .ph .ph-vid { display: none; } }
/* Ritratti: il viso non deve toccare il bordo alto */
.people .ph.square img { object-position: 50% 22%; }
/* Telefono: schede prodotto due per riga, così le liste non diventano infinite */
@media (max-width: 440px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card .body { padding: 10px 10px 14px; gap: 4px; }
  .card .kind { font-size: 0.62rem; letter-spacing: 0.04em; }
  .card h3 { font-size: 0.92rem; line-height: 1.2; overflow-wrap: anywhere; }
  .card .body p { font-size: 0.8rem; line-height: 1.35; }
}
/* Settori con foto */
.sector.sector-ph { padding-top: 0; }
.sector .sec-ph { display: block; margin: 0 -28px 6px; aspect-ratio: 16 / 9; overflow: hidden; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.sector .sec-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.sector .sec-ph.contain img { object-fit: contain; padding: 10px 18%; }
a.sector:hover .sec-ph img { transform: scale(1.04); }
.sector.sector-ph svg { margin-top: -30px; position: relative; background: var(--surface); border-radius: 50%; padding: 6px; width: 46px; height: 46px; box-shadow: 0 2px 10px rgba(14,24,48,.12); }
.em-film-btn { align-self: flex-start; width: auto; }
/* Caroselli Instagram nelle Novità */
.post-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 18px; }
.post-gal img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 640px) { .post-gal { grid-template-columns: minmax(0, 1fr); } }

/* Modulo contatti: invio reale */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.form button:disabled { opacity: .7; cursor: progress; }
.form-status { margin: 0; font-size: .95rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 16px; background: #e8f3ec; color: #14532d; border-left: 4px solid #1f7a44; font-weight: 600; }
.form-status.is-err { padding: 14px 16px; background: #fbeceb; color: #8a1c14; border-left: 4px solid #b3261e; }
.form-status a { color: inherit; font-weight: 700; }

/* Pagina 404 */
.nf-hero .lead { max-width: 60ch; }
.nf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nf-grid { grid-template-columns: minmax(0, 1fr); } }
.nf-sec { padding-top: 56px; }
.nf-grid a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.nf-grid a:hover, .nf-grid a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.nf-grid b { font-family: var(--f-display); font-size: 1.15rem; }
.nf-grid span { color: var(--ink-2); font-size: .95rem; }

/* Tocco su telefono: aree cliccabili di almeno 40 px senza cambiare l'impaginazione */
@media (pointer: coarse), (max-width: 700px) {
  .crumbs a, .site-footer .foot-top a { display: inline-flex; align-items: center; min-height: 40px; }
  .crumbs { align-items: center; row-gap: 0; }
  .site-footer .foot-top div[style*="flex-wrap"] { row-gap: 2px !important; }
  main :is(p, h2, h3, ul) + a:not([class]) { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
  main p a:not([class]) { padding-block: 8px; }
  .contact > a { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; }
}

/* Privacy: tabella cookie */
.doc .table-wrap { overflow-x: auto; margin: 8px 0 16px; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { font-weight: 700; background: var(--panel); }
.cookie-table td:first-child { font-family: var(--f-mono); font-size: .85rem; white-space: nowrap; }
@media (max-width: 600px) {
  .cookie-table thead { display: none; }
  .cookie-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cookie-table td { display: block; border: 0; padding: 2px 0; }
  .cookie-table td:first-child { white-space: normal; font-weight: 700; }
  .cookie-table td:last-child { color: var(--ink-2); font-size: .9rem; }
  .cookie-table td:last-child::before { content: "Durata: "; }
}

/* Piè di pagina: le due sedi allineate una sotto l'altra */
.foot-legal { display: flex; flex-direction: column; gap: 14px; }
.foot-sedi { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 28px; margin: 0; }
.foot-sedi > div { display: contents; }
.foot-sedi dt { color: var(--band-ink); font-weight: 500; }
.foot-sedi dd { margin: 0; }
.foot-co { margin: 0; padding-top: 12px; border-top: 1px solid #2C3A46; }
@media (max-width: 640px) {
  .foot-sedi { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot-sedi dd + dt, .foot-sedi > div + div dt { margin-top: 10px; }
}

/* Selettore lingua IT / EN */
.site-header .wrap > .nav { margin-left: auto; }
.lang-sw { order: 4; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 10px; font: 600 0.82rem var(--f-mono); letter-spacing: .06em; color: #152230; text-decoration: none; border: 1px solid #A9B2BA; }
.lang-sw:hover, .lang-sw:focus-visible { color: #0034FB; border-color: #0034FB; }
@media (max-width: 900px) {
  .lang-sw { margin-left: auto; }
  .site-header .wrap > .menu-btn { order: 5; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .site-header .wrap { gap: 12px; }
  .nav { gap: 4px 14px; flex-wrap: nowrap; }
  .nav a { font-size: 0.9rem; white-space: nowrap; }
  .nav .cta { padding: 9px 12px; }
  .brand-logo img { height: 30px; }
  .lang-sw { min-width: 38px; padding: 0 8px; }
}

/* Storia: cinque date nell'apertura */
.hv-facts.hv-facts-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 640px; }
.hv-facts.hv-facts-5 > div { padding: 0 12px; }
.hv-facts.hv-facts-5 > div:first-child { padding-left: 0; }
.hv-facts.hv-facts-5 dd { font-size: .86rem; }
@media (max-width: 640px) {
  .hv-facts.hv-facts-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .hv-facts.hv-facts-5 > div:nth-child(4) { padding-left: 0; border-left: 0; }
}

/* Storia: la festa dei 50 anni in evidenza */
.st-timeline .chapter.st-feature { flex-direction: column; gap: 14px; padding-bottom: 48px; }
.st-timeline .chapter.st-feature::before { width: 24px; height: 24px; left: -40px; top: 3px; background: #EC9240; border-color: #EC9240; box-shadow: 0 0 0 6px rgba(236,146,64,.22); }
.st-feat { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 28px; width: 100%; padding: 30px; background: var(--band); color: var(--band-ink); border-top: 4px solid #EC9240; box-shadow: 0 24px 50px -34px rgba(21,34,48,.8); }
.st-feat-text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.st-feat-kicker { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #F3B47A; }
.st-timeline .chapter.st-feature h3 { color: #FFFFFF; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.st-timeline .chapter.st-feature p { color: var(--band-ink); max-width: 46ch; }
.st-feat-link { color: #FFFFFF; font-weight: 600; text-decoration: none; border-bottom: 2px solid #EC9240; padding-bottom: 2px; }
.st-feat-link:hover { color: #F3B47A; }
.st-feat-num { margin-top: auto; padding-top: 10px; font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: 5.2rem; line-height: .9; color: #EC9240; display: flex; align-items: baseline; gap: 8px; }
.st-feat-num small { font-family: var(--f-mono); font-weight: 400; font-stretch: normal; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-ink-2); }
.st-timeline .chapter.st-feature .yr { flex: none; color: #B85A0C; }
.st-feat-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 8px; }
.st-feat-gallery figure { margin: 0; overflow: hidden; aspect-ratio: 3 / 2; background: #0E1824; }
.st-feat-gallery figure.g-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.st-feat-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .st-feat { grid-template-columns: minmax(0, 1fr); padding: 22px; } .st-feat-num { font-size: 3.6rem; margin-top: 4px; } }
@media (max-width: 760px) { .st-timeline .chapter.st-feature::before { left: -34px; } }

/* Azienda: apertura a collage */
.hv-collage { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; aspect-ratio: 4 / 3; min-width: 0; animation: hv-photo 1s cubic-bezier(.2,.7,.2,1) .1s both; }
.hv-collage::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--accent); opacity: .28; pointer-events: none; }
.hv-collage figure { position: relative; margin: 0; overflow: hidden; background: #E9EDF3; box-shadow: 0 30px 50px -34px rgba(15,28,44,.55); }
.hv-collage figure.c-main { grid-row: 1 / -1; }
.hv-collage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hv-collage figure.c-main img { object-position: 30% 50%; }
.hv-collage figure:hover img { transform: scale(1.035); }
.hv-collage figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; background: rgba(255,255,255,.94); color: var(--ink); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
@media (max-width: 560px) { .hv-collage { gap: 8px; } .hv-collage figcaption { left: 6px; bottom: 6px; font-size: .64rem; padding: 4px 6px; } }

/* Settori: elenco dei sei settori con foto che cambia */
.hv-pick-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 520px; counter-reset: none; }
.hv-pick-list li { border-bottom: 1px solid #D6DCE8; }
.hv-pick-list a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 4px; text-decoration: none; color: var(--ink); transition: background .25s ease, padding .25s ease, color .25s ease; }
.hv-pick-list .n { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); letter-spacing: .06em; }
.hv-pick-list .t { font-family: var(--f-display); font-weight: 700; font-size: 1.04rem; line-height: 1.25; }
.hv-pick-list .arr { color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.hv-pick-list a.on, .hv-pick-list a:hover, .hv-pick-list a:focus-visible { background: #FFFFFF; padding-left: 12px; color: var(--accent); }
.hv-pick-list a.on .n { color: var(--accent); }
.hv-pick-list a.on .arr, .hv-pick-list a:hover .arr, .hv-pick-list a:focus-visible .arr { opacity: 1; transform: none; }
.hv-pick-stage { position: relative; margin: 0; aspect-ratio: 4 / 3; min-width: 0; animation: hv-photo 1s cubic-bezier(.2,.7,.2,1) .1s both; }
.hv-pick-stage::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--accent); opacity: .28; pointer-events: none; }
.hv-pick-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); background: #E9EDF3; box-shadow: 0 34px 60px -34px rgba(15,28,44,.55); }
.hv-pick-stage img.on { opacity: 1; transform: none; }
.hv-pick-ill { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; background: rgba(255,255,255,.94); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .hv-pick-stage img { transition: none; transform: none; } }

/* Prodotti: vetrina in apertura */
.hv-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; position: relative; animation: hv-photo 1s cubic-bezier(.2,.7,.2,1) .1s both; }
.hv-shelf::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--accent); opacity: .28; pointer-events: none; }
.sh-item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; background: #FFFFFF; border: 1px solid #E3E8F2; text-decoration: none; color: var(--ink); box-shadow: 0 22px 40px -32px rgba(15,28,44,.6); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.sh-item:hover, .sh-item:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 30px 46px -30px rgba(0,52,251,.45); }
.sh-img { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; }
.sh-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sh-cat { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sh-name { font-family: var(--f-display); font-weight: 700; font-size: .98rem; line-height: 1.2; }
@media (max-width: 560px) { .hv-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sh-item { padding: 8px 8px 10px; } }

/* Domande frequenti (SEO) */
.faq-sec .head { margin-bottom: 18px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); padding: 20px 48px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 1.7rem; font-weight: 300; color: var(--accent); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq details p { color: var(--ink-2); padding: 0 48px 22px 0; font-size: 1.02rem; max-width: 70ch; }
