/* ============================================================
   BLUE ECO LINE — styles.css
   Stile dark/tech derivato dal pitch aziendale.
   Palette: blu notte + blu brand + azzurro · corallo come accento.
   ============================================================ */

/* ---- Font ospitati in locale (sostituiscono Google Fonts) ---- */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('assets/fonts/dm-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  /* Sfondi scuri */
  --bg:          #0A1628;   /* blu notte principale */
  --bg-2:        #0E1B30;   /* fascia alternata */
  --bg-3:        #102138;   /* card / superfici rialzate */
  --bg-line:     rgba(111,179,224,0.12);

  /* Blu del brand */
  --blue:        #2E5FB8;
  --blue-deep:   #1B3F86;
  --blue-ink:    #0E2451;
  --sky:         #6FB3E0;
  --sky-bright:  #87C5E8;

  /* Accento corallo (uso parsimonioso) */
  --coral:       #FF3B5C;

  /* Testo */
  --ink:         #FFFFFF;
  --ink-2:       rgba(255,255,255,0.62);
  --ink-3:       rgba(255,255,255,0.52);
  --ink-faint:   rgba(255,255,255,0.50);
  --line-soft:   rgba(255,255,255,0.28);

  /* Font */
  --f-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; }

/* ============================================================
   PATTERN — network e circuiti (usati con parsimonia)
   ============================================================ */
.fx-network { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.fx-network svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 75%; opacity: 0.5; }
.fx-circuit-l { position: absolute; top: 90px; left: 22px; width: 34px; opacity: 0.55; pointer-events: none; z-index: 1; }
.fx-circuit-r { position: absolute; top: 90px; right: 22px; width: 34px; opacity: 0.55; pointer-events: none; z-index: 1; transform: scaleX(-1); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--bg-line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__logo img { height: 26px; width: auto; }
.nav__payoff {
  font-size: 10px; color: var(--sky); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  border-left: 1px solid var(--bg-line); padding-left: 11px;
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a, .nav__dropdown-trigger {
  font-size: 13px; color: var(--ink-2); font-weight: 400;
  background: none; border: none; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s;
}
.nav__links > a:hover, .nav__dropdown-trigger:hover,
.nav__links > a.is-current { color: var(--ink); }
.nav__cta {
  font-size: 13px; font-weight: 600; color: var(--bg);
  background: var(--sky); padding: 9px 18px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 7px; transition: background 0.2s, transform 0.15s;
}
.nav__cta:hover { background: var(--sky-bright); transform: translateY(-1px); }

/* Selettore lingua */
.nav__links > a.nav__lang {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-2); padding: 5px 9px; border: 1px solid var(--bg-line);
  border-radius: var(--radius); transition: color 0.2s, border-color 0.2s;
}
.nav__links > a.nav__lang:hover { color: var(--ink); border-color: var(--line-soft); }
.nav__mobile .nav__lang {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-2); border-bottom: none;
}

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--bg-3); border: 1px solid var(--bg-line); border-radius: var(--radius-lg);
  padding: 8px; min-width: 280px; opacity: 0; visibility: hidden; transition: all 0.2s var(--ease);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.nav__dropdown.is-open .nav__dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown-menu a { display: block; padding: 12px 14px; border-radius: var(--radius); transition: background 0.15s; }
.nav__dropdown-menu a:hover { background: rgba(111,179,224,0.08); }
.nav__dropdown-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.nav__dropdown-desc { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--bg); overflow: hidden; padding-top: 72px; }
.hero__content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 76px 32px 90px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(111,179,224,0.1); border: 1px solid rgba(111,179,224,0.28);
  padding: 6px 14px; border-radius: 3px; margin-bottom: 26px;
  font-size: 11px; color: var(--sky); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}
.hero__badge .dot { width: 6px; height: 6px; background: var(--coral); border-radius: 50%; }
.hero__title {
  font-size: clamp(36px, 5.2vw, 56px); line-height: 1.07; color: var(--ink);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; max-width: 640px;
}
.hero__title .accent { color: var(--sky); position: relative; white-space: nowrap; }
.hero__title .accent svg { position: absolute; left: 0; bottom: -7px; width: 100%; }
.hero__lede {
  font-size: clamp(15px, 1.7vw, 17px); line-height: 1.6; color: var(--ink-2);
  max-width: 460px; margin-bottom: 38px; font-weight: 300;
}
.hero__ctas { display: flex; gap: 13px; flex-wrap: wrap; }

/* ============================================================
   BOTTONI
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: var(--radius); border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.btn--primary { background: var(--sky); color: var(--bg); }
.btn--primary:hover { background: var(--sky-bright); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-soft); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--large { font-size: 16px; padding: 16px 32px; }

/* ============================================================
   SEZIONI
   ============================================================ */
.section { padding: 92px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--deep { background: var(--blue-ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--sky); letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--coral); }

.section__title {
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; color: var(--ink);
  font-weight: 700; letter-spacing: -0.015em; margin-bottom: 32px; max-width: 980px; width: 100%;
}
.section__lede {
  font-size: 16px; color: var(--ink-2); max-width: 980px; width: 100%; line-height: 1.65;
  margin-bottom: 32px; font-weight: 300;
}

/* ============================================================
   GRIGLIE & CARD
   ============================================================ */
.grid { display: grid; gap: 1px; background: var(--bg-line); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); overflow: hidden; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.cell { background: var(--bg); padding: 30px 28px; transition: background 0.2s; }
.cell:hover { background: var(--bg-3); }

.step__num { font-size: 11px; color: var(--sky); font-weight: 600; margin-bottom: 12px; font-family: var(--f-mono); }
.step__title { font-size: 17px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.step__desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; font-weight: 300; }

/* Stat / metriche */
.stat { background: var(--bg); padding: 34px 28px; }
.stat__num { font-size: clamp(30px, 4vw, 44px); color: var(--ink); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat__num em { color: var(--sky); font-style: normal; }
.stat__label { font-size: 13px; color: var(--ink-3); margin-top: 10px; font-weight: 300; line-height: 1.45; }

/* Card prodotto */
.prod {
  background: var(--bg); padding: 36px 32px; position: relative; display: block;
  transition: background 0.2s; overflow: hidden;
}
.prod:hover { background: var(--bg-3); }
.prod::after {
  content: '→'; position: absolute; top: 36px; right: 32px;
  font-size: 18px; color: var(--sky); transition: transform 0.2s;
}
.prod:hover::after { transform: translateX(4px); }
.prod__tag {
  display: inline-block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sky); border: 1px solid rgba(111,179,224,0.4); padding: 3px 10px;
  border-radius: 3px; margin-bottom: 18px; font-weight: 500;
}
.prod__tag--coral { color: var(--coral); border-color: rgba(255,59,92,0.5); }
.prod__name { font-size: 22px; color: var(--ink); font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.prod__desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 380px; font-weight: 300; }

/* Card prodotto con immagine (tag sovrapposto in alto a sinistra) */
.prod--media { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.prod--media .prod__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); }
.prod--media .prod__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.prod--media:hover .prod__media img { transform: scale(1.04); }
.prod--media .prod__media .prod__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2; margin: 0;
  background: rgba(10,22,40,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.prod--media .prod__body { padding: 28px 32px 32px; }
.prod--media::after { display: none; }
.prod__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--sky); transition: gap 0.2s; }
.prod--media:hover .prod__more { gap: 11px; }

/* Pipeline tecnologia (home sez. 02): schema di flusso a tre fasi */
.pipeline { display: flex; align-items: stretch; border: 1px solid var(--bg-line); border-radius: var(--radius-lg); overflow: hidden; }
.pipeline__step { flex: 1; background: var(--bg); padding: 28px 28px 32px; transition: background 0.2s; }
.pipeline__step:hover { background: var(--bg-3); }

/* Visualizzazione per fase (illustrazione su fondo scuro, fuso col box) */
.pipeline__viz {
  height: 158px; margin-bottom: 22px; border-radius: var(--radius);
  background: rgba(111,179,224,0.05); border: 1px solid var(--bg-line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pipeline__viz img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }

/* Connettore di flusso tra le fasi */
.pipeline__arrow { flex: 0 0 56px; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.pipeline__arrow svg { width: 56px; height: 28px; overflow: visible; }
.pipeline__arrow .pl-line { fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-opacity: 0.5; stroke-linecap: round; }
.pipeline__arrow .pl-chev { fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pipeline__arrow .pl-pulse { fill: var(--sky-bright); }

@media (prefers-reduced-motion: no-preference) {
  .pipeline__arrow .pl-pulse { animation: plFlow 2.4s var(--ease) infinite; }
}
@keyframes plFlow {
  0%   { transform: translateX(0);    opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateX(36px); opacity: 0; }
}

@media (max-width: 760px) {
  .pipeline { flex-direction: column; }
  .pipeline__arrow { flex-basis: auto; padding: 10px 0; }
  .pipeline__arrow svg { transform: rotate(90deg); }
}

/* Schema problema (home sez. 03): fiume -> intercettazione -> mare */
.flowmap { margin: 40px 0 4px; }
.flowmap svg { width: 100%; height: auto; display: block; }
.fm-water { fill: rgba(111,179,224,0.06); stroke: var(--sky); stroke-opacity: 0.3; stroke-width: 1.2; }
.fm-flow { fill: none; stroke: var(--sky); stroke-opacity: 0.38; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fm-waste { fill: var(--sky); fill-opacity: 0.6; }
.fm-waste-b { fill: var(--sky-bright); }
.fm-barrier { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; }
.fm-float { fill: var(--coral); }
.fm-station { fill: var(--bg-3); stroke: var(--sky); stroke-width: 1.2; }
.fm-panel { fill: none; stroke: var(--sky); stroke-opacity: 0.6; stroke-width: 1; }
.fm-label { fill: var(--sky); font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.08em; }
.fm-leader { fill: none; stroke: var(--sky); stroke-opacity: 0.4; stroke-width: 1; stroke-dasharray: 2 3; }
.fm-pulse { fill: var(--sky-bright); }
@media (prefers-reduced-motion: no-preference) {
  .fm-pulse { animation: fmDrift 3.2s var(--ease) infinite; }
}
@keyframes fmDrift {
  0%   { transform: translateX(0);     opacity: 0; }
  12%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(440px); opacity: 0; }
}

/* Applicazioni (immagini) */
.app { position: relative; background: var(--bg); overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; }
.app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 0.3s, transform 0.4s var(--ease); }
.app:hover img { opacity: 0.75; transform: scale(1.04); }
.app__label { position: relative; z-index: 2; padding: 22px; font-size: 14px; font-weight: 600; color: #fff; letter-spacing: 0.02em; width: 100%; background: linear-gradient(transparent, rgba(10,22,40,0.85)); }

/* Card partner / installazioni */
.tile { background: var(--bg); padding: 24px 26px; transition: background 0.2s; }
.tile:hover { background: var(--bg-3); }
.tile__kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); font-weight: 600; margin-bottom: 10px; }
.tile__title { font-size: 15px; color: var(--ink); font-weight: 600; margin-bottom: 5px; line-height: 1.3; }
.tile__sub { font-size: 13px; color: var(--ink-3); font-weight: 300; line-height: 1.5; }

/* Stato monitoraggi: LED nelle card installazioni */
.tile--in-corso,
.tile--completato {
  position: relative;
  padding-right: 52px;
}

.tile--in-corso::after,
.tile--completato::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 18px;
  width: 9px;
  height: 12px;
  border-radius: 999px;
  background: var(--status-color);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 12px var(--status-glow);
  transform: rotate(-35deg);
  opacity: 1;
  pointer-events: none;
}

.tile--in-corso {
  --status-color: #7ED98B;
  --status-glow: rgba(126, 217, 139, 0.42);
}

.tile--completato {
  --status-color: var(--sky);
  --status-glow: rgba(111, 179, 224, 0.45);
}


/* Badge riconoscimenti */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  padding: 8px 16px; border: 1px solid var(--bg-line); border-radius: var(--radius);
  background: var(--bg-3);
}
.badge strong { color: var(--ink); font-weight: 600; }

/* Video */
.video-frame { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bg-line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-cap { font-size: 13px; color: var(--ink-3); margin-top: 12px; font-style: italic; }

/* ============================================================
   CTA FINALE
   ============================================================ */
.cta-final { padding: 90px 0; background: var(--bg-2); position: relative; overflow: hidden; }
.cta-final__head { margin-bottom: 44px; }
.cta-final__title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; color: var(--ink); font-weight: 700; letter-spacing: -0.015em; }
.cta-box {
  background: var(--bg-3); border: 1px solid var(--bg-line); border-radius: var(--radius-lg);
  padding: 36px 34px; transition: border-color 0.2s, transform 0.2s var(--ease); display: block;
}
.cta-box:hover { border-color: rgba(111,179,224,0.35); transform: translateY(-2px); }
.cta-box__who { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); font-weight: 600; margin-bottom: 14px; }
.cta-box__title { font-size: 20px; color: var(--ink); font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.cta-box__desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; font-weight: 300; }
.cta-box__link { font-size: 14px; color: var(--sky); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; transition: gap 0.2s; }
.cta-box:hover .cta-box__link { gap: 11px; }

/* ============================================================
   PAGE HERO (pagine interne)
   ============================================================ */
.page-hero { position: relative; background: var(--bg); padding: 140px 0 70px; overflow: hidden; border-bottom: 1px solid var(--bg-line); }
.page-hero__crumbs { font-size: 12px; color: var(--ink-3); margin-bottom: 20px; }
.page-hero__crumbs a:hover { color: var(--sky); }
.page-hero__crumbs span { margin: 0 8px; opacity: 0.5; }
.page-hero__eyebrow { font-size: 11px; color: var(--sky); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.page-hero__title { font-size: clamp(34px, 4.8vw, 54px); line-height: 1.07; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 22px; }
.page-hero__title .accent { color: var(--sky); }
.page-hero__lede { font-size: 17px; color: var(--ink-2); max-width: 560px; line-height: 1.6; font-weight: 300; }
.page-hero__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: end; }
.page-hero__aside { display: flex; flex-direction: column; gap: 18px; }
.page-hero__metric { border-left: 2px solid var(--coral); padding-left: 16px; }
.page-hero__metric-num { font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.page-hero__metric-label { font-size: 12px; color: var(--ink-3); margin-top: 6px; font-weight: 300; }

/* ============================================================
   TIMELINE (chi siamo)
   ============================================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--bg-line); }
.timeline__item { position: relative; padding-bottom: 36px; }
.timeline__item::before { content: ''; position: absolute; left: -36px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--bg); }
.timeline__year { font-family: var(--f-mono); font-size: 13px; color: var(--coral); font-weight: 500; margin-bottom: 6px; }
.timeline__title { font-size: 17px; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.timeline__desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; font-weight: 300; max-width: 600px; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { background: var(--bg-3); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: 26px 22px; }
.member__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 16px; overflow: hidden; }
.member__avatar picture, .member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-size: 16px; color: var(--ink); font-weight: 600; }
.member__role { font-size: 12px; color: var(--sky); font-family: var(--f-mono); margin-top: 3px; }
.member__tag { font-size: 11px; color: var(--coral); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; }

/* ============================================================
   NEWS
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--bg-3); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s var(--ease), border-color 0.2s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-3px); border-color: rgba(111,179,224,0.3); }
.news-card__media { aspect-ratio: 16/10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-card__cat { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.news-card__date { font-size: 11px; color: var(--ink-3); }
.news-card__title { font-size: 16px; color: var(--ink); font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
.news-card__excerpt { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; font-weight: 300; flex: 1; }
.news-card__link { font-size: 13px; color: var(--sky); font-weight: 600; margin-top: 16px; display: inline-flex; gap: 6px; transition: gap 0.2s; }
.news-card:hover .news-card__link { gap: 10px; }

/* ============================================================
   FORM (contatti)
   ============================================================ */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--bg-line); border-radius: var(--radius);
  padding: 12px 14px; color: var(--ink); font-family: inherit; font-size: 14px; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.field textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #06101F; padding: 64px 0 32px; border-top: 1px solid var(--bg-line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 48px; margin-bottom: 48px; }
.footer__logo { height: 24px; width: auto; margin-bottom: 14px; }
.footer__payoff { font-size: 11px; color: var(--sky); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer__brand p { font-size: 13px; color: var(--ink-3); line-height: 1.6; max-width: 340px; font-weight: 300; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer__col-title { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { font-size: 13px; color: var(--ink-2); transition: color 0.2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { border-top: 1px solid var(--bg-line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__bottom span { font-size: 12px; color: var(--ink-faint); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 12px; color: var(--ink-faint); transition: color 0.2s; }
.footer__legal a:hover { color: var(--ink-2); }

/* ============================================================
   ANIMAZIONI
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid--3, .grid--4, .team-grid, .news-grid, .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .page-hero__inner, .footer__top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .container, .nav__inner, .hero__content { padding-left: 20px; padding-right: 20px; }
  .nav__links { display: none; }
  .grid--2, .grid--3, .grid--4, .team-grid, .news-grid, .footer__cols { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ============================================================
   VARIANTE SEZIONE CHIARA (per alleggerire il ritmo)
   ============================================================ */
.section--light { background: #F4F8FC; }
.section--light .section__title { color: #0A1628; }
.section--light .section__lede { color: #44546A; }
.section--light .eyebrow { color: var(--blue); }
.section--light .grid { background: rgba(14,36,81,0.10); border-color: rgba(14,36,81,0.10); }
.section--light .cell, .section--light .stat, .section--light .tile { background: #FFFFFF; }
.section--light .cell:hover, .section--light .tile:hover { background: #EAF1FA; }
.section--light .step__title, .section--light .stat__num, .section--light .tile__title { color: #0A1628; }
.section--light .stat__num em { color: var(--blue); }
.section--light .step__desc, .section--light .stat__label, .section--light .tile__sub { color: #6B7B8D; }
.section--light .step__num, .section--light .tile__kicker { color: var(--blue); }
.section--light .badge { background: #FFFFFF; border-color: rgba(14,36,81,0.12); color: #44546A; }
.section--light .badge strong { color: #0A1628; }
.section--light .prod { background: #FFFFFF; }
.section--light .prod:hover { background: #EAF1FA; }
.section--light .prod__name { color: #0A1628; }
.section--light .prod__desc { color: #44546A; }

/* ============================================================
   PAGE HERO con foto di sfondo
   ============================================================ */
.page-hero--photo { padding: 160px 0 80px; }
.page-hero--photo .page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.page-hero--photo .page-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,22,40,0.83) 0%, rgba(10,22,40,0.60) 45%, rgba(10,22,40,0.3) 100%);
}
.page-hero--photo .container { position: relative; z-index: 2; }

/* Tile con foto (installazioni) */
.tile--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile--photo .tile__img { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; }
.tile--photo .tile__body { padding: 24px 26px; }

/* ============================================================
   HERO VIDEO (home)
   ============================================================ */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(10,22,40,0.83) 0%, rgba(10,22,40,0.6) 50%, rgba(10,22,40,0.3) 100%);
}
/* Il pattern network resta visibile sopra al video come texture leggera */
.hero .fx-network { z-index: 1; opacity: 0.5; }

/* ============================================================
   HERO — sottotitoli più leggibili ma leggeri
   ============================================================ */

.hero__lede,
.page-hero__lede {
  color: rgba(255,255,255,0.78);
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0,0,0,0.34);
}

/* Hero fotografiche interne */
.page-hero--photo .page-hero__lede,
.svs-hero .page-hero__lede {
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 14px rgba(0,0,0,0.40);
}

/* Hero video home */
.hero__video ~ .hero__content .hero__lede {
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 14px rgba(0,0,0,0.40);
}
/* ============================================================
   LOGO WALL (partner istituzionali)
   ============================================================ */
.logo-wall { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.logo-plate {
  background: #FFFFFF; border-radius: var(--radius);
  padding: 18px 26px; display: flex; align-items: center; justify-content: center;
  min-width: 160px; min-height: 96px; flex: 0 0 auto;
  transition: transform 0.2s var(--ease);
}
.logo-plate:hover { transform: translateY(-2px); }
.logo-plate img { max-height: 60px; max-width: 190px; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 600px) {
  .logo-wall { gap: 10px; }
  .logo-plate { min-width: calc(50% - 5px); padding: 14px; }
}
.logo-plate--oceanthon {
  padding: 10px 22px;
}

.logo-plate--oceanthon img {
  max-height: 76px;
  max-width: 160px;
}
/* ============================================================
   SMART VISION — hero a immagini diagonali (stile pitch)
   ============================================================ */
.svs-hero { position: relative; overflow: hidden; }
.svs-hero__strip {
  position: absolute; inset: 0; z-index: 0;
  display: flex; width: 100%; height: 100%;
  transform: skewX(-12deg) scale(1.15);
  transform-origin: center;
}
.svs-hero__slice { flex: 1; overflow: hidden; border-right: 2px solid var(--bg); }
.svs-hero__slice img {
  width: 100%; height: 100%; object-fit: cover;
  transform: skewX(12deg) scale(1.15);
}
.svs-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,22,40,0.96) 0%, rgba(10,22,40,0.86) 42%, rgba(10,22,40,0.62) 100%);
}
.svs-hero .container { position: relative; z-index: 2; }
@media (max-width: 600px) {
  .svs-hero__overlay { background: linear-gradient(180deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.95) 100%); }
}

/* ============================================================
   NEWS — filtri categoria
   ============================================================ */
.news-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.news-filters__label { font-size: 11px; font-family: var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.news-filter {
  padding: 8px 16px; background: var(--bg-3); border: 1px solid var(--bg-line);
  border-radius: 100px; font-family: var(--f-sans); font-size: 13px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; transition: all 0.2s var(--ease);
}
.news-filter:hover { color: var(--ink); border-color: rgba(111,179,224,0.4); }
.news-filter.is-active { background: var(--sky); color: var(--bg); border-color: var(--sky); }
/* Card media a gradiente (notizie senza foto) */
.news-card__media--grad { display: grid; place-items: center; }
.news-card__media--grad span { font-size: 40px; font-weight: 700; color: rgba(255,255,255,0.95); letter-spacing: -0.02em; }

/* ============================================================
   CONTATTI — tab e form
   ============================================================ */
.contact-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.contact-tab {
  padding: 12px 22px; background: var(--bg-3); border: 1px solid var(--bg-line);
  border-radius: var(--radius); font-family: var(--f-sans); font-size: 14px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; transition: all 0.2s var(--ease);
}
.contact-tab:hover { color: var(--ink); border-color: rgba(111,179,224,0.4); }
.contact-tab.is-active { background: var(--sky); color: var(--bg); border-color: var(--sky); }
.contact-panel { display: none; }
.contact-panel.is-active { display: block; }
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-info-card { background: var(--bg-3); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: 28px; }
.contact-info-card + .contact-info-card { margin-top: 16px; }
.contact-info-card h4 { font-size: 13px; color: var(--sky); font-family: var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.contact-info-card p, .contact-info-card a { font-size: 14px; color: var(--ink-2); line-height: 1.6; font-weight: 300; }
.contact-info-card a { display: inline-block; transition: color 0.2s; }
.contact-info-card a:hover { color: var(--sky); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   MENU MOBILE (hamburger + pannello)
   ============================================================ */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--bg-line); border-radius: var(--radius);
  cursor: pointer; padding: 0;
}
.nav__burger span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed; left: 0; right: 0; top: 60px; z-index: 99;
  background: var(--bg-2); border-bottom: 1px solid var(--bg-line);
  max-height: calc(100vh - 60px); overflow-y: auto;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
  display: none;
}
.nav__mobile.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav__mobile a, .nav__mobile .nav__mobile-label {
  display: block; padding: 15px 22px; color: var(--ink-2); font-size: 15px;
  font-weight: 500; border-bottom: 1px solid var(--bg-line); font-family: inherit;
}
.nav__mobile a:hover, .nav__mobile a.is-current { color: var(--ink); }
.nav__mobile-label { color: var(--ink-3); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.nav__mobile .sub a { padding-left: 38px; font-size: 14px; color: var(--ink-3); }
.nav__mobile .sub a:hover { color: var(--ink-2); }
.nav__mobile .m-cta { color: var(--sky); font-weight: 600; border-bottom: none; }
.nav.is-menu-open { background: rgba(10,22,40,0.96); backdrop-filter: blur(14px); border-bottom-color: var(--bg-line); }

@media (max-width: 600px) {
  .nav__burger { display: flex; }
  .nav__mobile { display: block; }
  .nav__payoff { display: none; }
  .nav__cta { display: none; }
}

/* ============================================================
   FALLBACK SENZA JAVASCRIPT
   ============================================================ */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .nav__fallback { display: block; }
.nav__fallback { display: none; padding: 14px 32px; }
.nav__fallback a { color: var(--ink-2); font-size: 14px; margin-right: 18px; }
.nav__fallback a:hover { color: var(--ink); }

/* ============================================================
   NEWS — media cliccabile + archivio
   ============================================================ */
.news-card__media { display: block; }

.archive-list { list-style: none; border-top: 1px solid var(--bg-line); }
.archive-list li { border-bottom: 1px solid var(--bg-line); }
.archive-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 16px 4px; transition: padding-left 0.2s var(--ease), color 0.2s;
}
.archive-list a:hover { padding-left: 12px; }
.archive-list__title { font-size: 15px; color: var(--ink-2); font-weight: 500; line-height: 1.4; }
.archive-list a:hover .archive-list__title { color: var(--ink); }
.archive-list__date { font-size: 12px; color: var(--ink-3); font-family: var(--f-mono); white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 600px) {
  .archive-list a { flex-direction: column; gap: 4px; }
}

/* ============================================================
   PAGINA ARTICOLO
   ============================================================ */
.article-hero { padding: 130px 0 28px; border-bottom: 1px solid var(--bg-line); }
.article__cat { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.article__title { font-size: clamp(28px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; max-width: 18ch; }
.article__date { margin-top: 14px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.article__figure { margin: 32px 0 8px; border-radius: var(--radius-lg); overflow: hidden; max-width: 900px; }
.article__figure img { width: 100%; height: auto; display: block; }
.article { max-width: 720px; padding: 24px 0 8px; }
.article p { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 22px; }
.article h2 { font-size: 22px; letter-spacing: -0.01em; margin: 38px 0 14px; color: var(--ink); }
.article__source { font-size: 13px; color: var(--ink-3); font-family: var(--f-mono); margin-top: -10px; }
.article__back { display: inline-block; margin-top: 18px; color: var(--sky); font-weight: 600; }
.article__loading { padding: 140px 0; color: var(--ink-3); }

/* ============================================================
   ADMIN — redazione nuovo articolo
   ============================================================ */
.admin__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.admin__form { display: flex; flex-direction: column; gap: 18px; }
.admin__form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.admin__hint { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.admin__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin input, .admin select, .admin textarea {
  background: var(--bg-2); border: 1px solid var(--bg-line); border-radius: var(--radius);
  color: var(--ink); font-family: inherit; font-size: 15px; padding: 11px 13px; width: 100%;
}
.admin textarea { resize: vertical; line-height: 1.6; }
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: none; border-color: var(--sky); }
.admin__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 12px; }
.admin__side { position: sticky; top: 90px; }
.admin__preview-article { background: var(--bg-2); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: 8px 22px; max-height: 420px; overflow-y: auto; margin-top: 4px; }
.admin__preview-article .article { padding: 16px 0; }
.admin__preview-article .article p { font-size: 15px; margin-bottom: 16px; }
.admin__output { margin-top: 48px; border-top: 1px solid var(--bg-line); padding-top: 32px; }
.admin__steps { color: var(--ink-2); line-height: 1.7; margin: 12px 0 22px 18px; }
.admin__steps code { background: var(--bg-2); border: 1px solid var(--bg-line); border-radius: 5px; padding: 1px 7px; font-family: var(--f-mono); font-size: 13px; color: var(--sky); }
.admin__output textarea { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; line-height: 1.5; }

@media (max-width: 800px) {
  .admin__grid { grid-template-columns: 1fr; gap: 32px; }
  .admin__side { position: static; }
}

/* ============================================================
   ARTICOLO — video YouTube e testo formattato
   ============================================================ */
.article__video { position: relative; width: 100%; padding-bottom: 56.25%; margin: 28px 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bg-line); max-width: 720px; }
.article__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article h3 { font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 10px; color: var(--ink); }
.article a { color: var(--sky); text-decoration: underline; text-underline-offset: 2px; }
.article u { text-decoration: underline; }
.article strong { color: var(--ink); }

/* ============================================================
   HOME — più spazio tra le card River Eye / River Cleaner
   ============================================================ */

#prodotti .grid--2 {
  gap: 32px;
  background: transparent;
  border: none;
  overflow: visible;
}

#prodotti .prod--media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--bg-line);
  background: var(--bg);
}
/* ============================================================
   PAGINA ARTICOLO — layout più ampio desktop/tablet
   ============================================================ */

.article__title {
  max-width: 980px;
}

.article {
  max-width: 980px;
}

.article__figure,
.article__video {
  max-width: 980px;
}


/* ============================================================
   PAGINA ARTICOLO — ottimizzazione mobile
   ============================================================ */

@media (max-width: 600px) {
  .article-hero {
    padding: 110px 0 24px;
  }

  .article__title {
    max-width: none;
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.12;
  }

  .article,
  .article__figure,
  .article__video {
    max-width: none;
    width: 100%;
  }

  .article {
    padding: 22px 0 8px;
  }

  .article p {
    font-size: 16px;
    line-height: 1.7;
  }
}
/* Cookie consent + privacy-friendly video embeds */
.footer__legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__legal-btn { appearance: none; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; padding: 0; }
.footer__legal-btn:hover, .footer__legal-btn:focus-visible { color: var(--sky); outline: none; }

.cookie-consent {
  position: fixed; right: 20px; bottom: 20px; left: auto; z-index: 1000;
  max-width: 420px; width: calc(100% - 40px); margin: 0; display: flex; flex-direction: column;
  background: rgba(6, 16, 31, 0.98); border: 1px solid var(--bg-line); border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5); padding: 24px; color: var(--ink);
}
.cookie-consent__close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--bg-line); background: var(--bg-3); color: var(--ink); cursor: pointer; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0;
}
.cookie-consent h2 { margin: 0 32px 10px 0; font-size: 18px; }
.cookie-consent p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.cookie-consent__choices { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cookie-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--bg-line); border-radius: var(--radius); background: rgba(255,255,255,0.03); }
.cookie-choice input { margin-top: 3px; accent-color: var(--sky); }
.cookie-choice small { display: block; color: var(--ink-2); margin-top: 3px; line-height: 1.4; font-size: 12.5px; }
.cookie-choice.is-disabled { opacity: 0.8; }
.cookie-consent__links { display: flex; gap: 14px; margin-top: 14px; font-size: 13px; }
.cookie-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 20px; }
.cookie-consent__actions .btn { white-space: nowrap; width: 100%; justify-content: center; font-size: 13.5px; padding: 11px 14px; }
.cookie-consent__actions .btn--primary { grid-column: 1 / -1; }

.youtube-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px;
  padding: 28px; text-align: center; background: linear-gradient(135deg, rgba(10,22,40,0.95), rgba(16,33,56,0.94));
}
.youtube-placeholder__title { font-size: 22px; font-weight: 700; color: var(--ink); }
.youtube-placeholder p { max-width: 560px; color: var(--ink-2); margin: 0; line-height: 1.6; }

.article table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; font-size: 14px; }
.article th, .article td { border: 1px solid var(--bg-line); padding: 12px; vertical-align: top; }
.article th { color: var(--ink); background: var(--bg-3); text-align: left; }
.article td { color: var(--ink-2); }
.article ul { color: var(--ink-2); line-height: 1.75; }

@media (max-width: 760px) {
  .cookie-consent { left: 12px; right: 12px; bottom: 12px; max-width: none; width: auto; padding: 18px; max-height: calc(100vh - 24px); overflow: auto; }
  .cookie-consent__actions { grid-template-columns: 1fr; padding-top: 16px; }
  .cookie-consent__actions .btn--primary { grid-column: auto; }
  .youtube-placeholder { padding: 20px; }
  .youtube-placeholder__title { font-size: 18px; }
}
