/* =========================================================
   BTronic — style.css
   ========================================================= */

/* Font self-hosted (WOFF2 variabili, sottoinsiemi latin e latin-ext), scaricati da Google Fonts il 25/10/2026. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('../fonts/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('../fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/work-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../fonts/work-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #011A3A;
  --navy-deep: #011731;
  --navy-mid: #012347;
  --navy-light: #02305E;
  --cyan: #3CC4E0;
  --cyan-dark: #1A9FBE;
  --white: #FFFFFF;
  --bg-light: #F4F7FA;
  --line-light: #DCE3EA;
  --text-muted: #B7C8DC;
  --text-body: #4A5B70;

  --f-display: 'Montserrat', sans-serif;
  --f-body: 'Work Sans', system-ui, sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Margine laterale: minimo clamp(20px, 5vw, 80px); sugli schermi larghi cresce per centrare un contenitore di --wrap. */
  --wrap: 1180px;
  --pad-x: max(clamp(20px, 5vw, 80px), calc((100vw - var(--wrap)) / 2));
  --pad-y: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* nessuno scroll orizzontale; clip non blocca gli elementi sticky */
}
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
}
img { max-width: 100%; display: block; }
a { color: var(--white); text-decoration: none; transition: color .25s; }
a:hover { color: var(--cyan); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.accent { color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  padding: 17px 30px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--sm { font-size: 14px; padding: 14px clamp(18px, 2vw, 30px); letter-spacing: .02em; }
.btn--block { width: 100%; margin-top: 6px; letter-spacing: .04em; padding: 18px 28px; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--cyan); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--dark { background: var(--navy); color: var(--white); letter-spacing: .06em; }
.btn--dark:hover { background: var(--cyan-dark); color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .22em;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 32px; height: 1.5px; background: currentColor; }
.eyebrow--dark { color: var(--cyan-dark); }
.hero__copy .eyebrow::before { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: calc(100vh - 96px); display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
}
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 72% 50%, rgba(60,196,224,.14), transparent 70%); }

.header {
  position: relative; z-index: 50; background: var(--navy-deep);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 24px; padding: 24px var(--pad-x); /* stessi margini laterali del contenuto */
}
.header__logo img { display: block; height: 32px; width: auto; }
@media (max-width: 640px) { .header__logo img { height: 25px; } }
.header__nav {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px clamp(14px, 1.7vw, 28px);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(14px, 1.1vw, 16px);
}
.header__nav a { white-space: nowrap; }
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--text-muted);
}

.hero__main {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 96px); align-items: center;
  padding: clamp(48px, 6vw, 96px) var(--pad-x);
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.hero__title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(42px, 5.6vw, 86px);
  line-height: 1.02; letter-spacing: -.03em; text-wrap: balance;
}
html[lang^="en"] .hero__title { font-size: clamp(34px, 4.2vw, 64px); }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text-muted); max-width: 540px; text-wrap: pretty; }
.hero__copy .btn-row { flex-wrap: nowrap; }
.hero__copy .btn-row .btn { flex: 0 1 auto; padding: 17px 24px; white-space: normal; text-align: center; }
@media (max-width: 400px) { .hero__copy .btn-row { flex-wrap: wrap; } }
.hero__lead strong { color: var(--white); font-weight: 500; }
.hero__badge { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--text-muted); }
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.anim-up { animation: up .9s var(--d, 0s) var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Reader ---------- */
.reader-wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; perspective: 1200px; }
.reader {
  position: relative; width: min(100%, 440px); aspect-ratio: 1;
  display: grid; place-items: center; transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.reader__ring { position: absolute; border-radius: 50%; }
.reader__ring--outer { inset: 0; border: 1px dashed rgba(60,196,224,.35); }
.reader__ring--inner { inset: 11%; border: 1px solid rgba(255,255,255,.1); }
.reader__orbit { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.reader__orbit span { position: absolute; top: -3px; left: 50%; margin-left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.reader__ripples { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ripple {
  position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(60,196,224,.45);
  animation: ripple 2.4s cubic-bezier(.2,.6,.3,1) both;
}
.reader[data-phase="open"] .ripple { border-color: rgba(255,255,255,.5); }
@keyframes ripple { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }

.reader__core {
  position: relative; width: 58%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(1,26,58,.75); border: 1px solid rgba(60,196,224,.5);
  backdrop-filter: blur(8px); box-shadow: 0 0 40px -16px rgba(60,196,224,.25);
  transform: translateZ(30px);
  transition: background .5s, box-shadow .5s, border-color .5s;
  --ink: var(--white); --keyhole: var(--navy);
}
.reader[data-phase="open"] .reader__core {
  background: var(--white); border-color: var(--white);
  box-shadow: 0 0 50px -6px rgba(60,196,224,.3);
  --ink: var(--navy); --keyhole: var(--white);
}

.lock { position: relative; width: 36px; height: 28px; margin-top: 20px; border-radius: 6px; background: var(--ink); transition: background .5s; }
.lock__shackle {
  position: absolute; left: 6px; bottom: 100%; width: 24px; height: 22px;
  border: 4px solid var(--ink); border-bottom: none; border-radius: 12px 12px 0 0;
  transition: transform .45s cubic-bezier(.3,1.6,.5,1), border-color .5s;
}
.reader[data-phase="open"] .lock__shackle { transform: translate(8px, -9px); }
.lock__keyhole { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--keyhole); transition: background .5s; }

.reader__status {
  font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: .16em;
  color: var(--ink); transition: color .5s; text-align: center; line-height: 1.5;
  min-height: 34px; padding: 0 12px; white-space: pre-line;
}
.reader__pins { display: flex; gap: 7px; height: 7px; opacity: 0; transition: opacity .3s; }
.reader[data-method="2"] .reader__pins { opacity: 1; }
.reader__pins span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .15s; }
.reader__pins span.is-on { background: var(--cyan); }

.reader__scan {
  position: absolute; left: 10%; right: 10%; height: 1px; border-radius: 1px; display: none;
  background: rgba(255,255,255,.7); box-shadow: 0 0 8px 1px rgba(60,196,224,.4);
  animation: scan 2s ease-in-out infinite;
}
.reader[data-method="3"][data-phase="read"] .reader__scan { display: block; }
@keyframes scan { 0% { top: 12%; } 50% { top: 82%; } 100% { top: 12%; } }

/* Tokens (badge / smartphone) */
.token {
  position: absolute; display: none; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 40px -14px rgba(0,0,0,.6);
  transform: translate(30px, 30px) rotate(6deg);
  transition: transform .9s var(--ease), opacity .5s;
}
.token--card { right: 2%; bottom: 4%; width: 120px; height: 76px; border-radius: 10px; padding: 12px; background: linear-gradient(135deg, #FFFFFF, #DCE8F2); }
.token--phone { right: 6%; bottom: 0; width: 74px; height: 136px; border-radius: 16px; padding: 8px; background: #0B1626; border: 3px solid #2B3B52; }
.reader[data-method="0"] .token--card,
.reader[data-method="1"] .token--phone { display: flex; }
.reader[data-phase="read"] .token--card,
.reader[data-phase="open"] .token--card { transform: translate(-70px, -70px) rotate(-8deg) translateZ(60px); }
.reader[data-phase="read"] .token--phone,
.reader[data-phase="open"] .token--phone { transform: translate(-80px, -60px) rotate(-8deg) translateZ(60px); }
.reader[data-phase="close"] .token { opacity: 0; }
.token__chip { width: 18px; height: 14px; border-radius: 3px; background: #C9B677; }
.token__brand { font-family: var(--f-display); font-size: 11px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.token__notch { width: 18px; height: 4px; border-radius: 2px; background: #2B3B52; align-self: center; }
.token__screen {
  height: 34px; border-radius: 8px; background: var(--cyan); display: grid; place-items: center;
  color: var(--navy); font-family: var(--f-display); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  transition: background .4s;
}
.reader[data-phase="open"] .token__screen { background: var(--white); }

/* Method switcher */
.methods {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.methods__btn {
  position: relative; overflow: hidden; cursor: pointer; border: none;
  font-family: var(--f-display); font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  background: transparent; color: var(--text-muted);
  transition: background .3s, color .3s;
}
.methods__btn:hover { color: var(--white); }
.methods__btn.is-active { background: var(--white); color: var(--navy); }
.methods__bar {
  position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--cyan); transform-origin: left; transform: scaleX(0); opacity: 0;
}
.methods__btn.is-active .methods__bar.is-running { opacity: 1; animation: fill var(--dur, 4.2s) linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.reader-log {
  height: 20px; display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-muted);
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.reader-log.is-visible { opacity: 1; transform: none; }
.reader-log__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* Ticker */
.ticker {
  position: relative; z-index: 2; display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.1); background: #000;
  font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: .12em; text-transform: uppercase;
}
.ticker__label {
  flex: none; position: relative; z-index: 1; background: #000; white-space: nowrap;
  padding: 22px clamp(20px, 3vw, 40px) 22px var(--pad-x);
  font-size: 12px; letter-spacing: .2em; color: var(--cyan);
}
.ticker__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; width: max-content; white-space: nowrap; animation: marquee 60s linear infinite; }
.ticker__group { display: flex; flex: none; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); }
.ticker__group span { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.ticker__group span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); opacity: .6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; gap: 56px; }
.section--compact { padding: clamp(64px, 8vw, 112px) var(--pad-x); gap: 40px; }
.section--navy { background: var(--navy); }
.section--deep { background: var(--navy-deep); }
.section--light { background: var(--bg-light); color: var(--navy); }
.section--white { background: var(--white); color: var(--navy); }
.section--gradient { background: linear-gradient(180deg, var(--navy), var(--navy-mid)); }
.section--gradient-2 { background: linear-gradient(180deg, var(--navy-mid), var(--navy-light)); }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.split--top { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.stack--sm { gap: 24px; max-width: 720px; }
.sticky { position: sticky; top: 40px; }
/* Sotto i 1000px le colonne sono una sotto l'altra: il blocco fisso farebbe scorrere il contenuto sopra il testo. */
@media (max-width: 1000px) { .sticky { position: static; } }

.h2 {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08; letter-spacing: -.025em; text-wrap: balance;
}
.h2--sm { font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.h2--xl { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: var(--text-muted); max-width: 560px; text-wrap: pretty; }
.lead--dark { color: var(--text-body); max-width: 480px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head__aside { font-size: 17px; line-height: 1.6; color: var(--text-body); max-width: 400px; }
.section-head__aside--light { color: var(--text-muted); font-size: 16px; }
/* Home, servizi: colpo d'occhio sui dispositivi gestiti */
.ecosys { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ecosys__text { display: flex; flex-direction: column; gap: 18px; }
.ecosys__text .lead { max-width: 520px; }
.ecosys__text strong { color: var(--navy); }
.ecosys__note { font-size: 16px; line-height: 1.65; color: var(--text-body); opacity: .85; max-width: 500px; }
.ecosys__title { margin: 0 0 14px; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-dark); }
.ecosys__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ecosys__list li {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px;
  background: var(--white); border: 1px solid var(--line-light); border-radius: 12px;
  font-family: var(--f-display); font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--navy);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.ecosys__list li:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(1,26,58,.4); }
.ecosys__list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--cyan-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .ecosys { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ecosys__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ecosys__list li { font-size: 13px; padding: 10px 12px; } }

/* Azienda */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); }
.facts span { font-size: 15px; color: var(--text-muted); }

.placeholder {
  position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,.07) 12px 24px);
}
.placeholder--tall { aspect-ratio: 4/5; }
.placeholder span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-muted); }

/* Competenze */
.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--navy); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0 3px, var(--navy) 3.5px);
}
.steps { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-light); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-light); }
.steps__num { font-family: var(--f-display); font-weight: 800; font-size: 28px; color: var(--cyan-dark); line-height: 1; }
.steps li div { display: flex; flex-direction: column; gap: 6px; }
.steps h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--navy); }
.steps p { font-size: 16px; line-height: 1.55; color: var(--text-body); }

/* Partner */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.partners__item {
  aspect-ratio: 2/1; border-radius: 16px; border: 1px dashed rgba(255,255,255,.2);
  display: grid; place-items: center; padding: 20px;
  transition: border-color .3s, background .3s;
}
.partners__item:hover { border-color: var(--cyan); background: rgba(60,196,224,.06); }
.partners__item span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-muted); }
.partners__item img { max-height: 48px; width: auto; }

/* Progetti */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 3vw, 40px) 24px; }
.project { display: flex; flex-direction: column; gap: 18px; color: var(--navy); }
.project:hover { color: var(--navy); }
.project--wide { grid-column: span 2; }
@media (max-width: 760px) { .project--wide { grid-column: auto; } }
.project__media { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; background: var(--line-light); }
.project--wide .project__media { aspect-ratio: 16/9; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.tag {
  position: absolute; top: 16px; left: 16px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: .16em;
  background: rgba(1,26,58,.75); color: var(--white); backdrop-filter: blur(6px);
}
.project__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.project__info div { display: flex; flex-direction: column; gap: 6px; }
.project .project__title { color: var(--navy); font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.project.project--wide .project__title { font-size: 28px; }
.project p { font-size: 16px; color: var(--text-body); }
.arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #C9D3DD;
  display: grid; place-items: center; font-size: 18px; transition: background .3s, color .3s, border-color .3s;
}
.project:hover .arrow { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Progettisti: immagine schema */
.designers__media { margin: 0; }
.designers__media img { width: 100%; height: auto; }

/* Progetti: masonry (span calcolato in JS sull'altezza reale; senza JS resta griglia normale) */
.projects--masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; grid-auto-flow: row dense; align-items: start; }
.projects--masonry.is-masonry { grid-auto-rows: 1px; row-gap: 0; }
.projects--masonry .project--wide { grid-column: span 2; }
.projects--masonry .project__media { aspect-ratio: auto; }
.projects--masonry .project--wide .project__media { aspect-ratio: auto; }
.projects--masonry .project__media img { height: auto; }
.projects--masonry .project .project__title { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; }
.projects--masonry .project p { font-size: 15px; line-height: 1.5; }
@media (max-width: 1100px) { .projects--masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .projects--masonry { grid-template-columns: 1fr; }
  .projects--masonry .project--wide { grid-column: auto; }
}

/* Contatti */
.contact-list { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.12); }
.contact-list > * { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 18px; }
.contact-list > * span:first-child { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--cyan); }
.contact-list > * span:last-child { text-align: right; }

.form-card {
  padding: clamp(24px, 3vw, 40px); border-radius: 24px;
  background: rgba(1,23,49,.6); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.form label {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--text-muted);
}
.form input, .form select, .form textarea {
  font-family: var(--f-body); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--white);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  padding: 15px 16px; outline: none; transition: border-color .25s, background .25s;
}
.form input::placeholder, .form textarea::placeholder { color: #7D8FA5; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--cyan); background: rgba(60,196,224,.06); }
.form select option { color: var(--navy); }
.form textarea { resize: vertical; }
.form__note { font-size: 13px; color: #8DA3BC; }

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 40px 0; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; color: var(--navy); font-size: 24px; font-weight: 700; }
.form-success .form-success__title { color: var(--white); font-family: var(--f-display); font-weight: 800; font-size: 30px; }
.form-success p { font-size: 17px; line-height: 1.6; color: var(--text-muted); }

/* Footer */
.footer { padding: 56px var(--pad-x) 32px; background: #000; display: flex; flex-direction: column; gap: 48px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__logo { height: 30px; width: auto; }
.footer__nav { display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.footer__contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text-muted); }
.footer__contact a { color: var(--text-muted); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7D8FA5; }
.footer__social { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__social a, .footer__bottom > span a { color: #7D8FA5; }
.footer a:hover { color: var(--cyan); }

/* Accessibilità: skip link e focus */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; border-radius: 999px; background: var(--white); color: var(--navy);
  font-family: var(--f-display); font-weight: 600;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Link nel testo */
.text-link { color: var(--white); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.text-link--dark { color: var(--navy); text-decoration-color: var(--cyan-dark); }
.text-link--dark:hover { color: var(--cyan-dark); }

/* Esperienza (manifesto) */
.legacy { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.legacy__num {
  flex: none; font-family: var(--f-display); font-weight: 800; line-height: .9; letter-spacing: -.04em;
  font-size: clamp(64px, 8vw, 120px); color: var(--cyan);
}
.legacy__text { max-width: 260px; font-family: var(--f-display); font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; }

/* Manifesto: titolo + 50+, immagine orizzontale con testo sovrapposto */
.section.about { padding-top: 0; }
.legacy--sm .legacy__num { font-size: clamp(56px, 5.5vw, 84px); }
.legacy--sm .legacy__text { font-size: clamp(15px, 1.1vw, 17px); max-width: 240px; }
.about__media {
  position: relative; margin: 0 calc(-1 * var(--pad-x)); overflow: hidden; background: var(--navy);
  display: flex; align-items: center; min-height: clamp(560px, 46vw, 820px);
}
.about__media img {
  position: absolute; top: 0; right: 0; width: 68%; height: 100%;
  object-fit: cover; object-position: right center;
}
.about__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 38%, rgba(1,26,58,.82) 52%, rgba(1,26,58,.45) 70%, rgba(1,26,58,.2) 100%);
}
.about__overlay {
  /* Larghezza = margine sinistro + 640px di testo: con il margine automatico degli schermi larghi il testo non si stringe. */
  position: relative; z-index: 1; width: min(100%, calc(var(--pad-x) + 640px)); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 48px) clamp(40px, 5vw, 72px) var(--pad-x);
  color: var(--white); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65;
}
.about__overlay strong { font-weight: 600; color: var(--cyan); }
.about__overlay > div:last-child { padding-top: 8px; }
.about__overlay .h2 { margin-bottom: 4px; }
@media (max-width: 900px) {
  .about__media { flex-direction: column; align-items: stretch; min-height: 0; }
  .about__media img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-position: 70% center; }
  .about__media::after { inset: 0 0 auto 0; height: calc((100vw) * 9 / 16); background: linear-gradient(180deg, rgba(1,26,58,.15) 40%, var(--navy) 100%); }
  .about__overlay { width: auto; padding-top: 8px; }
}

.values.values--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.values__num { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--cyan); }
.values.values--row h3 { font-size: clamp(20px, 1.6vw, 24px); }

/* Valori (manifesto) */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.values div { display: flex; flex-direction: column; gap: 8px; }
.values h3 { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.values p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }

/* Settori: sfondo onde (canvas) */
.section--waves { position: relative; overflow: clip; }
.section--waves > *:not(.waves) { position: relative; z-index: 1; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .35; }

/* Titolo h3 di sezione */
.h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); color: var(--navy); }

/* Progetti: segnaposto foto */
.project__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-body);
  background: repeating-linear-gradient(135deg, #E6ECF2 0 12px, #DCE3EA 12px 24px); }

/* Tecnologie */
.tech { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tech__item { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; border: 1px solid rgba(255,255,255,.14); transition: border-color .3s, background .3s; }
.tech__item:hover { border-color: var(--cyan); background: rgba(60,196,224,.06); }
.tech__item .tech__name { color: var(--white); font-family: var(--f-display); font-weight: 700; font-size: 22px; margin: 0; }
.tech__item .tech__name a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.tech__item p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }

/* Video partner */
.section--video { padding-top: 0; }
.video { border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #000; }
.video__el { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-light); max-width: 920px; }
.faq__item { border-top: 1px solid var(--line-light); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 48px; padding: 22px 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-family: var(--f-display); font-size: 26px; font-weight: 500; color: var(--cyan-dark); transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.5vw, 21px); color: var(--navy); }
.faq__item p { padding: 0 0 24px; font-size: 17px; line-height: 1.65; color: var(--text-body); max-width: 760px; }

/* Form: privacy, honeypot, link */
.form__check { flex-direction: row !important; align-items: flex-start; gap: 12px !important; font-family: var(--f-body) !important; font-weight: 400 !important; font-size: 14px !important; letter-spacing: 0 !important; line-height: 1.5; }
.form__check input { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 0; accent-color: var(--cyan); }
.form__check a, .form__note a { color: var(--white); text-decoration: underline; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 280px; }
.footer__brand .footer__logo { height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.footer__brand p { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
/* Footer a 5 colonne: marchio | Azienda | Soluzioni | Supporto | contatti */
.footer__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 3fr) minmax(0, 1.5fr); gap: 32px clamp(24px, 3vw, 48px); align-items: start; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); min-width: 0; }
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer__brand { max-width: none; }
  .footer__bottom { flex-direction: column; }
}
.footer__cols div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__cols a { color: var(--text-muted); }
.footer__title { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--cyan); margin-bottom: 4px; }
.footer__contact { font-style: normal; }
.footer__contact strong { color: var(--white); font-family: var(--f-display); }

/* =========================================================
   MENU MOBILE + BARRA CONTATTI
   ========================================================= */
.header__panel { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-left: clamp(16px, 3vw, 48px); }
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 48px; padding: 0 18px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white);
    font-family: var(--f-display); font-weight: 600; font-size: 14px; cursor: pointer;
  }
  .nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
  .nav-toggle__bars span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
  .header.is-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .header.is-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header__panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 8px var(--pad-x) 32px; background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 40px -20px rgba(0,0,0,.6);
    max-height: calc(100vh - 96px); overflow-y: auto;
  }
  .header.is-open .header__panel { display: flex; }
  .header__nav { flex-direction: column; align-items: stretch; gap: 0; font-size: 18px; }
  .header__nav a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .header__actions { margin-left: 0; justify-content: space-between; }
  .header__actions .btn { flex: 1; }
}

.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(1,23,49,.96); border-top: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px);
  }
  .mobile-bar__btn {
    flex: 1; min-height: 48px; display: grid; place-items: center; border-radius: 999px;
    font-family: var(--f-display); font-weight: 600; font-size: 15px;
    border: 1px solid rgba(255,255,255,.35); color: var(--white);
  }
  .mobile-bar__btn--primary { flex: 1.6; background: var(--white); border-color: var(--white); color: var(--navy); }
}

/* Aree servite: mappa */
.map-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.map { width: min(100%, 520px); height: auto; }
.map__r { fill: var(--navy-light); stroke: var(--navy); stroke-width: .8; stroke-linejoin: round; transition: fill .3s; }
.map__r.is-on { fill: var(--cyan); }
.map__r:hover { fill: #5AD3EC; }
/* 4Access: blu più acceso e alone, per dare rilievo alla cooperazione al Nord */
.map__r.is-4a { fill: #1A7FB4; stroke: rgba(143,239,255,.45); stroke-width: .8; }
.map__r.is-4a:hover { fill: #2591CA; }
.map__4a-label text, .map__btr-label text { fill: #fff; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: .14em; paint-order: stroke; stroke: rgba(0,26,59,.55); stroke-width: 4px; pointer-events: none; }
.map__btr-label text { font-size: 15px; }
.map__btr-label .map__btr-city { font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.map__pin { fill: #fff; stroke: #001A3B; stroke-width: 1.5; }
.map__pin-ring { fill: none; stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: map-pin 2.4s ease-out infinite; }
@keyframes map-pin { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.2); } }
@media (prefers-reduced-motion: reduce) { .map__pin-ring { animation: none; opacity: .5; } }
.map__r:not(.is-on):not(.is-4a):hover { fill: #0A4A82; }
.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 14px; color: var(--text-muted); }
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 3px; }
.map-legend__on { background: var(--cyan); }
.map-legend__off { background: var(--navy-light); }
.map-legend__4a { background: #1A7FB4; }
.map-legend__strong { color: var(--white); font-weight: 600; }
.regions__logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 6px 0; }
.regions__logos img { display: block; height: 30px; width: auto; }
.regions__logos img + .regions__plus + img { height: 38px; }
.regions__plus { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--cyan); }
.regions { display: flex; flex-wrap: wrap; gap: 10px; }
.regions li {
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(60,196,224,.45);
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
}
.regions__note { font-size: 15px; color: var(--text-muted); }
.regions__claim { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-left: 3px solid var(--cyan); border-radius: 0 14px 14px 0; background: rgba(60,196,224,.08); }
.regions__claim p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--white); }
.regions__claim .regions__claim-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); color: var(--cyan); }

/* =========================================================
   SERVIZI — lista editoriale
   ========================================================= */
.svc { counter-reset: none; border-bottom: 1px solid var(--line-light); }
.svc__row { border-top: 1px solid var(--line-light); }
.svc__link {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr) 56px; gap: 24px;
  padding: clamp(22px, 2.4vw, 34px) 8px; color: var(--navy);
}
.svc__link:hover { color: var(--navy); }
.svc__link::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px;
  background: var(--white); opacity: 0; transform: scaleY(.85); transition: opacity .35s, transform .35s var(--ease);
}
.svc__num { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--cyan-dark); }
.svc__title {
  margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(22px, 2.3vw, 36px); line-height: 1.12; transition: transform .45s var(--ease), color .3s;
}
.svc__desc { font-size: 16px; line-height: 1.55; color: var(--text-body); max-width: 440px; }
.svc__arrow {
  justify-self: end; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #C9D3DD; font-size: 18px; transition: background .3s, color .3s, border-color .3s, transform .45s var(--ease);
}
.svc__link:hover::before, .svc__link:focus-visible::before { opacity: 1; transform: none; }
.svc__link:hover .svc__title { transform: translateX(10px); color: var(--cyan-dark); }
.svc__link:hover .svc__arrow { background: var(--navy); border-color: var(--navy); color: var(--white); transform: rotate(-45deg); }
.svc { position: relative; z-index: 0; }

@media (max-width: 900px) {
  .svc__link { grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-areas: "num title arrow" ". desc desc"; gap: 8px 14px; }
  .svc__num { grid-area: num; }
  .svc__title { grid-area: title; }
  .svc__desc { grid-area: desc; font-size: 15px; }
  .svc__arrow { grid-area: arrow; width: 44px; height: 44px; }
}

/* =========================================================
   SETTORI — esploratore (lista + pannello)
   ========================================================= */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.explorer__list { border-bottom: 1px solid rgba(255,255,255,.12); }
.explorer__list li { border-top: 1px solid rgba(255,255,255,.12); }
.explorer__item {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; align-items: center; gap: 4px 12px;
  padding: 16px 0; text-align: left; background: none; border: 0; color: var(--text-muted); cursor: pointer; font: inherit;
}
.explorer__num { font-family: var(--f-display); font-weight: 600; font-size: 13px; color: rgba(183,200,220,.6); transition: color .3s; }
.explorer__name {
  margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.015em;
  font-size: clamp(19px, 1.7vw, 26px); line-height: 1.2; transition: color .3s, transform .45s var(--ease);
}
.explorer__short { display: none; grid-column: 2 / 4; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.explorer__arrow { justify-self: end; font-size: 18px; color: var(--cyan); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.explorer__item--soon .explorer__arrow { display: none; }
.explorer__item.is-active, .explorer__item:hover, .explorer__item:focus-visible { color: var(--white); }
.explorer__item.is-active .explorer__num { color: var(--cyan); }
.explorer__item.is-active .explorer__name { transform: translateX(8px); }
.explorer__item.is-active .explorer__arrow { opacity: 1; transform: none; }

/* Il riquadro scorre in verticale fino alla voce attiva (main.js), senza uscire dalla sezione. */
.explorer__stage { position: relative; display: grid; transition: transform .6s var(--ease); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .explorer__stage { transition: none; } }
.explorer__panel {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .45s, transform .45s var(--ease), visibility 0s .45s;
}
.explorer__panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s, transform .45s var(--ease), visibility 0s; }
.explorer__media { width: 100%; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; margin-bottom: 10px; background: var(--navy-light); }
.explorer__media img { width: 100%; height: 100%; object-fit: cover; }
.explorer__group { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--cyan); }
.explorer__ptitle { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.02em; }
.explorer__long { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 520px; }
.explorer__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.explorer__tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(60,196,224,.4); font-size: 13px; font-family: var(--f-display); font-weight: 600; }
.explorer__soon { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; color: var(--text-muted); padding: 12px 0; }

@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer__stage { display: none; }
  .explorer__item { color: var(--white); padding: 20px 0; }
  .explorer__item .explorer__arrow { opacity: 1; transform: none; }
  .explorer__item.is-active .explorer__name { transform: none; }
  .explorer__short { display: block; }
}

/* =========================================================
   METODO — linea di avanzamento
   ========================================================= */
.steps--progress { position: relative; padding-left: 28px; border-bottom: 0; --p: 0; }
.steps--progress::before, .steps--progress::after {
  content: ""; position: absolute; left: 0; top: 0; width: 2px; border-radius: 2px;
}
.steps--progress::before { bottom: 0; background: var(--line-light); }
.steps--progress::after { height: calc(var(--p) * 100%); background: var(--cyan-dark); }
.steps--progress li { position: relative; border-top: 0; padding: 22px 0; }
.steps--progress li::before {
  content: ""; position: absolute; left: -34px; top: 30px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line-light); transition: border-color .3s, background .3s;
}
.steps--progress li.is-reached::before { border-color: var(--cyan-dark); background: var(--cyan-dark); }
.steps--progress .steps__num { color: #B9C6D3; transition: color .3s; }
.steps--progress li.is-reached .steps__num { color: var(--cyan-dark); }

/* =========================================================
   TESTIMONIANZE — slider
   ========================================================= */
.slider { display: flex; flex-direction: column; gap: 28px; }
.slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; gap: 24px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px 64px; align-items: end;
  padding: clamp(32px, 4vw, 64px); border-radius: 24px; background: var(--bg-light);
}
.slide::before {
  content: "\201C"; grid-column: 1 / -1; font-family: var(--f-display); font-weight: 800;
  font-size: 110px; line-height: .5; height: 40px; color: var(--cyan);
}
.slide blockquote {
  margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(22px, 2.4vw, 36px); line-height: 1.3; color: var(--navy); text-wrap: pretty;
}
.slide--solo { grid-template-columns: minmax(0, 1fr); }
.slide--solo blockquote { max-width: 34em; }
.slide figcaption { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 2px solid var(--cyan); }
.slide figcaption strong { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--navy); }
.slide figcaption span { font-size: 15px; color: var(--text-body); }
.quote__sample {
  position: absolute; top: 22px; right: 22px; padding: 5px 10px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 10px; letter-spacing: .14em;
  background: #FFE8A3; color: #6B4E00;
}
.slider__controls { display: flex; gap: 10px; }
.slider__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid #C9D3DD; background: transparent;
  color: var(--navy); font-size: 18px; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.slider__btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.slider__btn:disabled { opacity: .35; pointer-events: none; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: var(--line-light); cursor: pointer; transition: background .3s, width .3s; }
.slider__dot.is-active { width: 48px; background: var(--cyan-dark); }
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; }
}

/* Assistenza */
.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.support li {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
}
.support .support__title { margin: 0; color: var(--white); font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.support .support__title::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 16px; background: var(--cyan); }
.support p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }

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

/* =========================================================
   PAGINE INTERNE
   ========================================================= */
.page-hero {
  padding: clamp(48px, 7vw, 112px) var(--pad-x) clamp(48px, 6vw, 88px);
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}
.page-hero__inner { display: flex; flex-direction: column; gap: 24px; max-width: 920px; }
.page-hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(36px, 5vw, 68px); line-height: 1.04; text-wrap: balance;
}
.page-hero__lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text-muted); max-width: 680px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--text-muted); }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: var(--text-muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current] { color: var(--white); }

.page-body { gap: 40px; }

/* Contenuti in blocchi core (REST API) */
.prose { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--text-body); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--navy); }
.prose h3 { margin-top: 1.6em; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; color: var(--navy); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--cyan-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--cyan-dark); }
.prose blockquote, .prose .wp-block-quote { margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--cyan); font-family: var(--f-display); font-weight: 600; font-size: 1.15em; color: var(--navy); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { border-radius: 16px; height: auto; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--text-body); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line-light); text-align: left; vertical-align: top; }
.prose th { font-family: var(--f-display); font-weight: 700; color: var(--navy); background: var(--bg-light); }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .wp-block-button__link {
  display: inline-flex; padding: 15px 28px; border-radius: 999px; background: var(--navy); color: var(--white);
  font-family: var(--f-display); font-weight: 600; font-size: 15px; text-decoration: none;
}
.prose .wp-block-button__link:hover { background: var(--cyan-dark); color: var(--white); }
.prose hr { border: 0; border-top: 1px solid var(--line-light); margin: 2.4em 0; }

.post-meta { font-size: 14px; color: var(--text-body); }

/* Progetto */
.project-facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 0; padding-bottom: 32px; border-bottom: 1px solid var(--line-light); }
.project-facts div { display: flex; flex-direction: column; gap: 4px; }
.project-facts dt { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--cyan-dark); text-transform: uppercase; }
.project-facts dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--navy); }
.project-cover { margin: 0; border-radius: 24px; overflow: hidden; }
.project-cover img { width: 100%; height: auto; }
.project-quote { margin: 2.4em 0 0; padding: 32px; border-radius: 20px; background: var(--bg-light); }
.project-quote blockquote { margin: 0; padding: 0; border: 0; font-size: 1.25em; }
.project-quote figcaption { margin-top: 14px; font-size: 15px; }

/* Archivio: filtri */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #C9D3DD; background: transparent;
  font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.filters__btn:hover { border-color: var(--navy); }
.filters__btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.project[hidden] { display: none; }

/* CTA, form, liste */
.cta-band { gap: 32px; }
.form__error { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(255,120,120,.12); border: 1px solid rgba(255,140,140,.4); color: #FFD3D3; font-size: 15px; }
.form__error[hidden] { display: none; }
.form button[disabled] { opacity: .6; cursor: wait; }

.post-list { display: flex; flex-direction: column; max-width: 860px; }
.post-list__item { padding: 28px 0; border-top: 1px solid var(--line-light); }
.post-list__item h2 { margin: 0 0 8px; font-family: var(--f-display); font-size: 24px; }
.post-list__item a { color: var(--navy); }
.post-list__item p { color: var(--text-body); }

.links-404 { display: flex; flex-wrap: wrap; gap: 12px; }
.links-404 a { display: inline-flex; padding: 14px 22px; border-radius: 999px; border: 1px solid #C9D3DD; color: var(--navy); font-family: var(--f-display); font-weight: 600; }
.links-404 a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* Galleria progetto: colonne masonry (foto verticali e orizzontali senza ritagli) */
.gallery-section { gap: 32px; }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin-bottom: 16px; }
.gallery__link { display: block; border-radius: 16px; overflow: hidden; background: var(--bg-light); cursor: zoom-in; }
.gallery__link img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery__link:hover img { transform: scale(1.03); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(1,15,33,.94); color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(1,15,33,.94); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 12px; }
.lightbox__btn {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(1,23,49,.6); color: var(--white); font-size: 22px; cursor: pointer;
}
.lightbox__btn:hover { border-color: var(--cyan); color: var(--cyan); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); font-family: var(--f-display); font-size: 14px; color: var(--text-muted); }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; } }
.project-facts dd a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--cyan-dark); text-underline-offset: 4px; }
.project-facts dd a:hover { color: var(--cyan-dark); }

/* Scheda progetto: galleria subito dopo il testo, senza doppio margine tra le sezioni */
.page-body + .gallery-section { padding-top: clamp(8px, 1.5vw, 24px); }

/* =========================================================
   SEZIONI DELLE PAGINE (gruppi Gutenberg con classe btr-sec)
   I testi restano modificabili nell'editor; il tema dà il design.
   ========================================================= */
.page-sections { display: flex; flex-direction: column; }
.btr-sec {
  padding: clamp(64px, 8vw, 120px) var(--pad-x);
  display: flex; flex-direction: column; gap: 28px;
  background: var(--white); color: var(--navy);
}
.btr-sec > * { margin: 0; max-width: 1180px; }
.btr-sec--light { background: var(--bg-light); }
.btr-sec--navy { background: var(--navy); color: var(--white); }
.btr-sec--deep { background: var(--navy-deep); color: var(--white); }
.btr-sec--gradient { background: linear-gradient(180deg, var(--navy-mid), var(--navy-light)); color: var(--white); }
.btr-sec--tight { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }

/* Tipografia */
.btr-sec h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; max-width: 860px; }
.btr-sec h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; letter-spacing: -.01em; }
.btr-sec p, .btr-sec li { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--text-body); }
.btr-sec p { max-width: 720px; }
.btr-sec :is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) p,
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) :is(p, li) { color: var(--text-muted); }
.btr-sec strong { font-weight: 600; color: inherit; }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) strong { color: var(--white); }
.btr-sec a:not(.wp-block-button__link) { color: var(--cyan-dark); text-decoration: underline; text-underline-offset: 3px; }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) a:not(.wp-block-button__link) { color: var(--cyan); }
.btr-sec .accent { color: var(--cyan); }
.btr-sec .btr-eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan-dark);
}
.btr-sec .btr-eyebrow::before { content: ""; width: 32px; height: 1.5px; background: currentColor; }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-eyebrow { color: var(--cyan); }
.btr-sec .btr-lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--navy); max-width: 820px; }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-lead { color: var(--white); }
.btr-sec ul, .btr-sec ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }

/* Colonne */
.btr-sec .wp-block-columns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 88px); align-items: center; margin: 0; max-width: 1180px; width: 100%;
}
/* colonne centrate in altezza; con un modulo restano allineate in alto */
/* il CSS dei blocchi forza align-items: normal !important sulle colonne: si agisce sulla singola colonna */
.btr-sec .wp-block-columns > .wp-block-column { align-self: center; }
.btr-sec .wp-block-columns:has(form) > .wp-block-column, .btr-sec .wp-block-columns.btr-cols--top > .wp-block-column { align-self: start; }
.btr-sec .wp-block-column { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.btr-sec .wp-block-column > * { margin: 0; }

/* Bottoni */
.btr-sec .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.btr-sec .wp-block-button { margin: 0; }
.btr-sec .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; text-decoration: none;
  background: var(--navy); color: var(--white); border: 1px solid var(--navy); transition: background .25s, color .25s, border-color .25s;
}
.btr-sec .wp-block-button__link:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); color: var(--white); }
.btr-sec .is-style-outline .wp-block-button__link { background: transparent; color: var(--navy); border-color: #C9D3DD; }
.btr-sec .is-style-outline .wp-block-button__link:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .wp-block-button__link { background: var(--white); color: var(--navy); border-color: var(--white); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .wp-block-button__link:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .is-style-outline .wp-block-button__link { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
/* Il CSS core dello stile outline (border 2px, padding in em) ha la stessa specificità e rende il bottone più alto:
   stessa misura per pieno e outline, bottoni allineati al centro. */
.btr-sec .wp-block-buttons { align-items: center; }
.btr-sec .wp-block-buttons > .wp-block-button > .wp-block-button__link {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-width: 1px; border-style: solid; line-height: 1.2;
}
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .wp-block-buttons > .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .wp-block-buttons > .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
/* CTA a due colonne con i soli bottoni a destra: bottoni sotto il testo, allineati a sinistra. */
.btr-sec .wp-block-columns:has(> .wp-block-column:last-child > .wp-block-buttons:only-child) { grid-template-columns: minmax(0, 760px); gap: 28px; }
.btr-sec .wp-block-columns:has(> .wp-block-column:last-child > .wp-block-buttons:only-child) > .wp-block-column { align-self: start; }
.btr-sec .wp-block-columns:has(> .wp-block-column:last-child > .wp-block-buttons:only-child) .wp-block-buttons { margin: 0; justify-content: flex-start; }

/* Lista con spunte */
.btr-sec .btr-checks li { position: relative; padding-left: 36px; }
.btr-sec .btr-checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0 3px, var(--navy) 3.5px);
}
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-checks li::before { background: radial-gradient(circle, var(--navy) 0 3px, var(--cyan) 3.5px); }
/* Colonna con la sola lista accanto al testo: diventa un pannello che riempie la colonna, così la sezione non pende a sinistra. */
.btr-sec .wp-block-columns > .wp-block-column:has(> .btr-checks:only-child) {
  padding: clamp(28px, 3.2vw, 44px); border-radius: 24px; background: var(--bg-light);
}
.btr-sec--light .wp-block-columns > .wp-block-column:has(> .btr-checks:only-child) { background: var(--white); box-shadow: 0 1px 0 rgba(0, 26, 59, .04), 0 18px 40px -28px rgba(0, 26, 59, .25); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .wp-block-columns > .wp-block-column:has(> .btr-checks:only-child) { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.btr-sec .wp-block-column:has(> .btr-checks:only-child) .btr-checks { gap: 14px; }
.btr-sec .wp-block-column:has(> .btr-checks:only-child) .btr-checks li + li { padding-top: 14px; border-top: 1px solid var(--line-light); }
.btr-sec .wp-block-column:has(> .btr-checks:only-child) .btr-checks li + li::before { top: calc(14px + .2em); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .wp-block-column:has(> .btr-checks:only-child) .btr-checks li + li { border-top-color: rgba(255, 255, 255, .12); }

/* Fascia numeri */
.btr-sec .btr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 32px; max-width: 1180px; width: 100%; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.14); }
.btr-sec .btr-stat { display: flex; flex-direction: column; gap: 8px; }
.btr-sec .btr-stat > * { margin: 0; }
.btr-sec .btr-stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 5vw, 76px); line-height: .95; letter-spacing: -.035em; color: var(--cyan); }
.btr-sec .btr-stat p:not(.btr-stat__num) { font-size: 16px; max-width: 260px; }

/* Schede */
.btr-sec .btr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1180px; width: 100%; }
/* Con 4 schede: 2 x 2, per non lasciare una scheda da sola sulla seconda riga. */
.btr-sec .btr-cards:has(> .btr-card:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .btr-sec .btr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .btr-sec .btr-cards, .btr-sec .btr-cards:has(> .btr-card:nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); } }
.btr-sec .btr-card {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 36px); border-radius: 20px;
  background: var(--white); border: 1px solid var(--line-light);
}
.btr-sec .btr-card > * { margin: 0; }
.btr-sec--white .btr-card, .btr-sec:not([class*="btr-sec--"]) .btr-card { background: var(--bg-light); border-color: transparent; }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.btr-sec .btr-card__kicker { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-dark); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-card__kicker { color: var(--cyan); }
.btr-sec .btr-card__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; color: var(--navy); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-card__big { color: var(--white); }
.btr-sec .btr-card__big a { color: inherit !important; text-decoration: none !important; }

/* Posizioni aperte */
.btr-sec .btr-jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; max-width: 1180px; width: 100%; }
.btr-sec .btr-job { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 44px); border-radius: 24px; background: var(--white); border: 1px solid var(--line-light); }
.btr-sec .btr-job > * { margin: 0; }
.btr-sec .btr-job--accent { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btr-sec .btr-job--accent p, .btr-sec .btr-job--accent li { color: var(--text-muted); }
.btr-sec .btr-job .btr-tags { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-dark); }
.btr-sec .btr-job--accent .btr-tags { color: var(--cyan); }
.btr-sec .btr-job ul li { position: relative; padding-left: 20px; font-size: 16px; }
.btr-sec .btr-job ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--cyan-dark); }

/* Riquadro in evidenza */
.btr-sec .btr-callout {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: 20px;
  background: var(--navy); color: var(--white);
  box-shadow: 0 24px 40px -24px rgba(0, 26, 59, .55), 0 8px 16px -10px rgba(0, 26, 59, .35);
}
.btr-sec .btr-callout > * { margin: 0; }
.btr-sec .btr-callout p, .btr-sec .btr-callout li { color: var(--text-muted); }
.btr-sec .btr-callout h3 { color: var(--white); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-callout { background: rgba(60,196,224,.08); border: 1px solid rgba(60,196,224,.35); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); }

/* Linea del tempo */
.btr-sec .btr-timeline { position: relative; display: flex; flex-direction: column; gap: 0; max-width: 980px; width: 100%; padding-left: 28px; }
.btr-sec .btr-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line-light); }
.btr-sec .btr-tl {
  position: relative; display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 8px 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line-light);
}
.btr-sec .btr-tl:last-child { border-bottom: 0; }
.btr-sec .btr-tl::before { content: ""; position: absolute; left: -28px; top: 36px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--cyan-dark); }
.btr-sec .btr-tl > * { margin: 0; }
.btr-sec .btr-tl__year { grid-row: span 2; font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; color: var(--cyan-dark); }
.btr-sec .btr-tl--now::before { background: var(--cyan-dark); }
@media (max-width: 640px) { .btr-sec .btr-tl { grid-template-columns: 1fr; } .btr-sec .btr-tl__year { grid-row: auto; } }

/* Passi numerati */
.btr-sec ol.btr-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 56px; max-width: 1180px; width: 100%; }
.btr-sec ol.btr-steps li {
  counter-increment: step; position: relative; padding: 26px 0 26px 72px; border-top: 1px solid var(--line-light);
}
.btr-sec ol.btr-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px;
  font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--cyan-dark);
}
.btr-sec ol.btr-steps li strong { display: block; margin-bottom: 4px; font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--navy); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) ol.btr-steps li { border-color: rgba(255,255,255,.14); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) ol.btr-steps li strong { color: var(--white); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) ol.btr-steps li::before { color: var(--cyan); }

/* Citazione grande */
.btr-sec .btr-bigquote { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.25; letter-spacing: -.02em; color: var(--navy); max-width: 980px; }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-bigquote { color: var(--white); }

/* Form nelle pagine */
.form-card--page { width: 100%; }
.form input[type="file"] { padding: 12px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.form input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--navy); font-family: var(--f-display); font-weight: 600; font-size: 13px;
}
.form input[type="date"] { color-scheme: dark; }

/* Gruppi Gutenberg nei temi classici: il contenitore interno non deve rompere griglie e spaziature */
.btr-sec .wp-block-group__inner-container,
.btr-sec.wp-block-group > .wp-block-group__inner-container { display: contents; }

/* Tappe (btr-stats): percorso orizzontale con punti, verticale su telefono */
.btr-sec .btr-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  padding-top: 8px; border-top: 0; margin-top: 16px;
}
.btr-sec .btr-stats::before {
  content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px;
  background: linear-gradient(90deg, rgba(60,196,224,.25), var(--cyan));
}
.btr-sec .btr-stat { position: relative; padding-top: 44px; gap: 10px; }
.btr-sec .btr-stat::before {
  content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--cyan);
}
.btr-sec .btr-stat:last-child::before { background: var(--cyan); box-shadow: 0 0 0 6px rgba(60,196,224,.18), 0 0 18px var(--cyan); }
.btr-sec .btr-stat__num { font-size: clamp(40px, 4.2vw, 64px); }
.btr-sec .btr-stat p:not(.btr-stat__num) { max-width: 240px; }
@media (max-width: 860px) {
  .btr-sec .btr-stats { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 40px; }
  .btr-sec .btr-stats::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(60,196,224,.25), var(--cyan)); }
  .btr-sec .btr-stat { padding: 0 0 32px; }
  .btr-sec .btr-stat::before { left: -40px; top: 10px; }
}

/* Spazio tra titolo di sezione e contenitori */
.btr-sec h2 + .btr-cards, .btr-sec h2 + .btr-stats, .btr-sec h2 + .btr-jobs, .btr-sec h2 + .btr-timeline, .btr-sec h2 + ol.btr-steps { margin-top: 12px; }

/* Onde di luce anche nelle intestazioni delle pagine */
.page-hero { position: relative; overflow: clip; }
.page-hero > *:not(.waves) { position: relative; z-index: 1; }

/* Ancore interne (#candidati, #richiesta): margine sopra quando si scorre */
#candidati, #richiesta { scroll-margin-top: 32px; }
.btr-job .wp-block-buttons { margin-top: auto; padding-top: 8px; }

/* Progetti dentro le pagine (shortcode btr_progetti) */
.btr-sec .projects { width: 100%; max-width: 1180px; }
.btr-sec .project p { max-width: none; }

/* =========================================================
   PAGINE: IMPATTO VISIVO (foto, icone, passi, schemi)
   ========================================================= */

/* Intestazione: testo + foto */
.page-hero__text { display: flex; flex-direction: column; gap: 24px; }
.page-hero--media .page-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
  gap: clamp(32px, 5vw, 80px); max-width: 1320px;
}
.page-hero__media { margin: 0; position: relative; }
.page-hero__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.page-hero__media::before {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 42%; height: 42%;
  border: 1px solid rgba(60,196,224,.45); border-radius: 28px; z-index: -1;
}
@media (max-width: 900px) {
  .page-hero--media .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media img { aspect-ratio: 16 / 10; }
  .page-hero__media::before { display: none; }
}

/* Foto nelle sezioni (blocco Immagine con classe btr-photo) */
.btr-sec .btr-photo { margin: 0; position: relative; border-radius: 24px; overflow: hidden; background: var(--bg-light); }
.btr-sec .btr-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.btr-sec .btr-photo:hover img { transform: scale(1.04); }
.btr-sec .btr-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-photo { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }

/* Icone nelle schede (inserite da main.js, decorative) */
.btr-sec .btr-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(60,196,224,.12); color: var(--cyan-dark); transition: background .35s, color .35s, transform .35s var(--ease);
}
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) .btr-ico { background: rgba(60,196,224,.14); color: var(--cyan); }
.btr-sec .btr-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btr-sec .btr-ico svg * { stroke-dasharray: 120; stroke-dashoffset: 0; }
/* Icone del set settori nelle schede: viewBox 48, tratto proporzionato e dettaglio ciano */
.btr-sec .btr-ico--settore svg { width: 34px; height: 34px; stroke-width: 2.2; }
.btr-sec .btr-ico--settore svg * { stroke-dasharray: 260; }
.btr-sec .btr-ico--settore svg .a { stroke: var(--cyan); }
.btr-sec .btr-card:hover .btr-ico--settore svg .a { stroke: var(--white); }
.btr-sec .btr-card { transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, background .35s; }
.btr-sec .btr-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(1,26,58,.35); }
.btr-sec .btr-card:hover .btr-ico { background: var(--cyan); color: var(--navy); transform: rotate(-6deg); }
.btr-sec .btr-card:hover .btr-ico svg * { animation: btr-draw .9s var(--ease) both; }
@keyframes btr-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }

/* Passi: percorso verticale con linea che si riempie scorrendo */
.btr-sec ol.btr-steps { display: flex; flex-direction: column; gap: 0; max-width: 900px; position: relative; padding-left: 0; --p: 0; }
.btr-sec ol.btr-steps::before, .btr-sec ol.btr-steps::after {
  content: ""; position: absolute; left: 23px; top: 30px; width: 2px; border-radius: 2px;
}
.btr-sec ol.btr-steps::before { bottom: 30px; background: var(--line-light); }
.btr-sec ol.btr-steps::after { height: calc(var(--p) * (100% - 60px)); background: var(--cyan-dark); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) ol.btr-steps::before { background: rgba(255,255,255,.14); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) ol.btr-steps::after { background: var(--cyan); }
.btr-sec ol.btr-steps li { padding: 20px 0 20px 76px; border-top: 0; }
.btr-sec ol.btr-steps li::before {
  left: 0; top: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-size: 16px; background: var(--white); border: 2px solid var(--line-light); color: #9AA9B8; z-index: 1;
  transition: background .4s, border-color .4s, color .4s;
}
.btr-sec--light ol.btr-steps li::before { background: var(--bg-light); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) ol.btr-steps li::before { background: var(--navy); border-color: rgba(255,255,255,.2); color: var(--text-muted); }
.btr-sec ol.btr-steps li.is-reached::before { background: var(--cyan-dark); border-color: var(--cyan-dark); color: var(--white); }
:is(.btr-sec--navy, .btr-sec--deep, .btr-sec--gradient) ol.btr-steps li.is-reached::before { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }

/* Schemi animati */
.schema-wrap { margin: 0; width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 16px; align-self: center; }
.schema { width: 100%; height: auto; overflow: visible; }
.schema text { font-family: var(--f-display); text-anchor: middle; }
.schema__line { fill: none; stroke: rgba(60,196,224,.25); stroke-width: 2; stroke-dasharray: 4 6; }
.schema__pulse { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 92; stroke-dashoffset: 100; opacity: 0; }
.schema__ring { fill: none; stroke: rgba(60,196,224,.35); stroke-width: 1.5; stroke-dasharray: 3 7; transform-origin: center; transform-box: fill-box; }
.schema__hub { fill: var(--cyan); }
.schema__hub-t { fill: var(--navy); font-weight: 800; font-size: 20px; }
.schema--cloud .schema__hub-t { fill: var(--navy); font-size: 22px; }
.schema__cloud { fill: var(--cyan); }
.schema__node rect { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.22); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.schema__t { fill: var(--white); font-weight: 700; font-size: 18px; }
.schema__s { fill: var(--text-muted); font-weight: 600; font-size: 13px; }
.schema__door { fill: rgba(255,255,255,.08) !important; stroke: rgba(255,255,255,.35) !important; }
.schema__led { fill: rgba(255,255,255,.25); }
.schema-wrap__cap { font-size: 15px; color: var(--text-muted); text-align: center; }

.schema-wrap.is-playing .schema__pulse { animation: btr-pulse 2.7s linear var(--d, 0s) infinite; }
.schema-wrap.is-playing .schema__ring { animation: spin 30s linear infinite; }
.schema-wrap.is-playing .schema__node rect:first-child { animation: btr-node 2.7s ease var(--d, 0s) infinite; }
.schema-wrap.is-playing .schema__led { animation: btr-led 2.7s ease var(--d, 0s) infinite; }
@keyframes btr-pulse { 0% { stroke-dashoffset: 100; opacity: 0; } 8% { opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 65%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes btr-node { 0%, 50% { stroke: rgba(255,255,255,.22); fill: rgba(255,255,255,.05); } 60% { stroke: var(--cyan); fill: rgba(60,196,224,.16); } 85%, 100% { stroke: rgba(255,255,255,.22); fill: rgba(255,255,255,.05); } }
@keyframes btr-led { 0%, 50% { fill: rgba(255,255,255,.25); } 60%, 80% { fill: #3CE07A; } 100% { fill: rgba(255,255,255,.25); } }
@media (prefers-reduced-motion: reduce) {
  .schema-wrap .schema__pulse { opacity: 0; animation: none !important; }
  .schema__ring, .schema__node rect, .schema__led { animation: none !important; }
}

/* Intestazioni delle pagine: stesso gradiente e alone di luce dell'hero della home */
.page-hero { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 55%, var(--navy-light) 100%); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 60% 55% at 72% 50%, rgba(60,196,224,.16), transparent 70%);
}
.page-hero--media::after { background: radial-gradient(ellipse 55% 60% at 76% 50%, rgba(60,196,224,.2), transparent 70%); }

/* Pagine servizio (intestazione con foto): H1 più contenuto */
.page-hero--media .page-hero__title { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; }
.page-hero--media .page-hero__lead { font-size: clamp(16px, 1.2vw, 19px); }

/* Titolo della CTA finale: paragrafo con aspetto da h2 */
.cta-band__title { margin: 0; }

/* Logo SALTO Certified Partner */
/* Badge orizzontale "BTronic Certified Partner SALTO" (482x153) */
.salto-badge { display: block; width: 260px; max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 40px -22px rgba(60,196,224,.55); }
.salto-badge--footer { width: 200px; box-shadow: none; }
.btr-sec .btr-salto-badge { margin: 0; }
.btr-sec .btr-salto-badge img { display: block; width: 240px !important; max-width: 100%; height: auto; border-radius: 12px; }
/* nei riquadri "In breve" il badge va in fondo, dopo l'elenco */
.btr-sec .btr-callout .btr-salto-badge { order: 99; margin-top: 6px; }

/* Contattaci: form a sinistra, informazioni a destra */
.btr-sec .btr-contact-cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
@media (max-width: 900px) { .btr-sec .btr-contact-cols { grid-template-columns: 1fr; } }
.btr-sec ul.btr-contact-list { gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.btr-sec ul.btr-contact-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 17px; color: var(--white);
}
.btr-sec .btr-contact__label {
  font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
}
.btr-sec ul.btr-contact-list li a { color: var(--white); text-decoration: none; }
.btr-sec ul.btr-contact-list li a:hover { color: var(--cyan); }
.btr-sec ul.btr-contact-list li > span:last-child { text-align: right; color: var(--text-muted); }
.btr-sec .btr-contact-cols h3 { margin-top: 12px; color: var(--white); }

/* Intestazione con il lettore animato della home (es. Contattaci) */
.page-hero--motion .reader-wrap { justify-self: center; gap: 22px; }
.page-hero--motion .reader { width: min(100%, 380px); }
.page-hero--motion .methods__btn { padding: 9px 15px; font-size: 13px; }
@media (max-width: 900px) { .page-hero--motion .reader { width: min(100%, 320px); } }

/* =========================================================
   PAGINA SETTORI
   ========================================================= */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Numeri */
.btr-sec .btr-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 1320px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 12px; }
.btr-sec .btr-figure { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px 8px 0; }
.btr-sec .btr-figure + .btr-figure { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.btr-sec .btr-figure > * { margin: 0; }
.btr-sec .btr-figure__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -.035em; color: var(--cyan); }
.btr-sec .btr-figure p:not(.btr-figure__num) { font-size: 16px; max-width: 240px; }
@media (max-width: 900px) {
  .btr-sec .btr-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btr-sec .btr-figure:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Striscia clienti nelle pagine */
.ticker--page { border-top: 0; }
.ticker--page .ticker__group span { font-size: clamp(15px, 1.4vw, 19px); }

/* Settori: carosello 3D. Schede verticali (testo sopra, foto sotto); centrale in primo piano, vicine visibili ai lati */
.btr-sec .sc { --w: min(420px, 32vw); width: 100%; max-width: 1320px; display: flex; flex-direction: column; gap: 20px; }
.btr-sec ul.sc__track {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 16px; margin: 0; padding: 24px 0;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sc__track::-webkit-scrollbar { display: none; }
.btr-sec .sc__item { display: flex; flex: 0 0 var(--w); margin: 0; padding: 0; scroll-snap-align: center; perspective: 1400px; }
.sc__card {
  display: flex; flex-direction: column; width: 100%; border-radius: 24px; overflow: hidden;
  background: var(--navy); color: var(--white); cursor: pointer;
  background-image: radial-gradient(90% 50% at 100% 0%, rgba(60,196,224,.16), transparent 60%);
  transform: translateZ(var(--z, 0)) rotateY(var(--rot, 0deg)) scale(var(--sc, 1));
  filter: brightness(var(--dim, 1)); box-shadow: 0 30px 50px -30px rgba(1,23,49,.6); transition: box-shadow .4s; will-change: transform;
}
.sc__item.is-active .sc__card { cursor: default; box-shadow: 0 0 0 2px var(--cyan), 0 40px 60px -30px rgba(1,23,49,.7); }
.sc__card:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
/* testo */
.sc__info { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 20px; }
.sc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc__label { font-family: var(--f-display); font-weight: 700; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.sc__label--note { color: #FFD27A; }
.sc__num { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: #8FA3BA; }
.btr-sec .sc__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.15; letter-spacing: -.02em; color: var(--white); text-wrap: balance; }
.btr-sec .sc__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: #D3DEEA; }
.btr-sec .sc__facts { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sc__facts > div { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.13); }
.sc__facts dt { font-family: var(--f-display); font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8FA3BA; margin-bottom: 3px; }
.sc__facts dd { margin: 0; font-size: 13px; line-height: 1.45; color: var(--white); }
.sc__facts > div + div dd { color: #AFC0D3; }
.btr-sec a.sc__btn { margin-top: auto; align-self: flex-start; padding: 12px 22px; font-size: 14px; text-decoration: none; background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.btr-sec a.sc__btn:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btr-sec a.sc__btn.btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white); }
.btr-sec a.sc__btn.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
/* foto */
.sc__media { position: relative; flex: none; height: 120px; overflow: hidden; }
.sc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--navy), rgba(1,23,49,0) 45%); }
/* comandi */
.sc__nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.sc__arrow {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-light); background: var(--white); color: var(--navy); font-size: 18px;
  transition: background .3s, color .3s, border-color .3s;
}
.sc__arrow:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sc__arrow:disabled { opacity: .35; cursor: default; }
.sc__count { font-family: var(--f-display); font-size: 14px; color: var(--text-body); min-width: 62px; text-align: center; }
.sc__count strong { color: var(--navy); font-size: 18px; }
.sc__bar { width: min(220px, 30vw); height: 3px; border-radius: 3px; background: var(--line-light); overflow: hidden; }
.sc__bar span { display: block; height: 100%; background: var(--cyan); transition: width .4s var(--ease); }
@media (prefers-reduced-motion: reduce) { .sc__card { transform: scale(var(--sc, 1)); } }
@media (max-width: 900px) { .btr-sec .sc { --w: 52vw; } }
@media (max-width: 640px) {
  .btr-sec .sc { --w: 80vw; }
  .btr-sec ul.sc__track { gap: 10px; padding-block: 18px; }
  .sc__info { padding: 20px 20px 18px; }
  .sc__media { height: 110px; }
  .sc__arrow { width: 48px; height: 48px; }
}

/* Matrice delle esigenze */
.btr-sec .matrix-wrap { width: 100%; max-width: 1320px; overflow-x: auto; border-radius: 20px; background: var(--white); border: 1px solid var(--line-light); }
.btr-sec table.matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.btr-sec .matrix th, .btr-sec .matrix td { padding: 16px 18px; border-bottom: 1px solid var(--line-light); text-align: center; }
.btr-sec .matrix thead th { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-body); background: var(--bg-light); vertical-align: bottom; }
.btr-sec .matrix tbody th { text-align: left; font-family: var(--f-display); font-weight: 700; color: var(--navy); white-space: nowrap; }
.btr-sec .matrix tbody tr:last-child > * { border-bottom: 0; }
.btr-sec .matrix tbody tr:hover { background: rgba(60,196,224,.06); }
.btr-sec .matrix__dot { color: var(--cyan-dark); font-size: 16px; }
.btr-sec .matrix__no { color: #C9D3DD; }
/* da telefono la tabella diventa un elenco di schede: settore + esigenze presenti */
@media (max-width: 760px) {
  .btr-sec .matrix-wrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  .btr-sec table.matrix, .btr-sec .matrix tbody, .btr-sec .matrix tr, .btr-sec .matrix th, .btr-sec .matrix td { display: block; min-width: 0; }
  .btr-sec .matrix thead { display: none; }
  .btr-sec .matrix tbody { display: flex; flex-direction: column; gap: 12px; }
  .btr-sec .matrix tbody tr { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line-light); }
  .btr-sec .matrix tbody tr:hover { background: var(--white); }
  .btr-sec .matrix tbody th { flex: 0 0 100%; padding: 0 0 4px; border: 0; white-space: normal; font-size: 17px; }
  .btr-sec .matrix td { padding: 0; border: 0; }
  .btr-sec .matrix td.is-no { display: none; }
  .btr-sec .matrix td.is-yes::before {
    content: attr(data-label); display: inline-block; padding: 6px 12px; border-radius: 999px;
    font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--navy); background: rgba(60,196,224,.14);
  }
  .btr-sec .matrix td.is-yes .matrix__dot { display: none; }
}

/* =========================================================
   SERVIZI: BADGE SUL LETTORE
   ========================================================= */
.btr-sec .badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 28px; width: 100%; max-width: 1240px; margin-top: clamp(24px, 3vw, 44px); }
.btr-sec a.bdg { width: calc(25% - 21px); min-width: 240px; display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer; outline: none; }
.bdg__card {
  position: relative; z-index: 2; aspect-ratio: 1.586; border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; color: var(--white);
  background: linear-gradient(135deg, #0F3561 0%, var(--navy) 60%), var(--navy);
  box-shadow: 0 24px 40px -18px rgba(1,23,49,.55), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateY(0) rotate(var(--tilt, -5deg)); transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  overflow: hidden;
}
.bdg:nth-child(even) .bdg__card { --tilt: 4deg; }
.bdg__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(60,196,224,.35), transparent 55%); }
.bdg__card::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%); transform: translateX(-60%); transition: transform 1s var(--ease); }
.bdg__top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.bdg__brand { font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .14em; }
.bdg__brand b { color: var(--cyan); font-weight: 800; }
.bdg__wave { width: 20px; height: 20px; stroke: var(--white); opacity: .8; }
.bdg__chip { position: relative; margin-top: 12px; width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #E9D9A6, #B89A55); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.bdg__chip::before { content: ""; position: absolute; inset: 6px 0; border-top: 1px solid rgba(0,0,0,.25); border-bottom: 1px solid rgba(0,0,0,.25); }
.bdg__chip::after { content: ""; position: absolute; inset: 0 13px; border-left: 1px solid rgba(0,0,0,.25); border-right: 1px solid rgba(0,0,0,.25); }
.bdg__num { position: relative; margin-top: auto; font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #9FB2C8; }
.btr-sec .bdg__name { position: relative; margin: 2px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 18px; line-height: 1.15; letter-spacing: -.01em; color: var(--white); }
.bdg__reader {
  position: relative; z-index: 1; margin: -34px 14px 0; padding: 70px 20px 18px; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #E9EEF3, #D9E1E9); box-shadow: inset 0 -2px 0 rgba(1,23,49,.08);
  display: flex; align-items: center; gap: 12px;
}
.bdg__led { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 3px rgba(255,90,95,.18); transition: background .3s .35s, box-shadow .3s .35s; }
.bdg__screen { position: relative; flex: 1; height: 20px; overflow: hidden; font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.bdg__screen span { position: absolute; inset: 0; transition: transform .4s .35s var(--ease), opacity .4s .35s; }
.bdg__screen .on { color: #13955A; transform: translateY(100%); opacity: 0; }
.bdg__screen .off { color: #7C8DA0; }
.bdg__body { display: block; padding: 16px 6px 0; }
.bdg__desc { display: block; font-size: 15px; line-height: 1.55; color: var(--text-body); }
.bdg__go { display: inline-block; margin-top: 10px; font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--cyan-dark); opacity: 0; transform: translateY(6px); transition: opacity .4s .45s, transform .4s .45s var(--ease); }
.bdg:is(:hover, :focus-visible, .is-on) .bdg__card { transform: translateY(12px) rotate(0deg) scale(.97); box-shadow: 0 10px 20px -10px rgba(1,23,49,.5), 0 0 0 2px var(--cyan); }
.bdg:is(:hover, :focus-visible, .is-on) .bdg__card::after { transform: translateX(60%); }
.bdg:is(:hover, :focus-visible, .is-on) .bdg__led { background: #3BE08A; box-shadow: 0 0 0 4px rgba(59,224,138,.25), 0 0 14px #3BE08A; }
.bdg:is(:hover, :focus-visible, .is-on) .bdg__screen .on { transform: none; opacity: 1; }
.bdg:is(:hover, :focus-visible, .is-on) .bdg__screen .off { transform: translateY(-100%); opacity: 0; }
.bdg:is(:hover, :focus-visible, .is-on) .bdg__go { opacity: 1; transform: none; }
@media (hover: none) { .bdg__go { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bdg__card, .bdg__card::after, .bdg__screen span, .bdg__led, .bdg__go { transition: none; } }
@media (max-width: 1100px) { .btr-sec a.bdg { width: calc(50% - 14px); } }
@media (max-width: 640px) { .btr-sec a.bdg { width: 100%; min-width: 0; } }

/* =========================================================
   HERO SERVIZI: SCHEMA ANIMATO CLOUD → VARCHI
   Ciclo di 8s: il segnale parte dal cloud e raggiunge un varco ogni 2s;
   il lettore diventa verde e il varco si apre, poi si richiude.
   ========================================================= */
.page-hero__schema::before { display: none; }
.page-hero__schema { align-self: center; }
.hs-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hs-svg * { vector-effect: non-scaling-stroke; }
.hs-floor polygon { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.12); stroke-width: 1; }
.hs-links path { fill: none; stroke: rgba(60,196,224,.55); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; animation: hs-flow 1.6s linear infinite; }
.hs-pulse { fill: none; stroke: #8FEFFF; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 110; stroke-dashoffset: 10; opacity: 0; filter: drop-shadow(0 0 4px #3CC4E0); animation: hs-pulse 8s linear infinite; animation-delay: var(--d, 0s); }
.hs-pulse.hs-mon { animation: hs-pulse-fast 2s linear infinite; }
.hs-d1 { --d: 0s; } .hs-d2 { --d: 2s; } .hs-d3 { --d: 4s; } .hs-d4 { --d: 6s; }
.hs-node { fill: #3CC4E0; stroke: rgba(60,196,224,.35); stroke-width: 6; paint-order: stroke; }
.hs-cloud { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.6); stroke-width: 1.5; }
.hs-server rect { fill: rgba(1,23,49,.6); stroke: rgba(255,255,255,.55); stroke-width: 1.2; }
.hs-blink circle { fill: #3CC4E0; animation: hs-blink 1.4s steps(1) infinite; }
.hs-db path, .hs-db ellipse { fill: rgba(60,196,224,.12); stroke: #3CC4E0; stroke-width: 1.4; }
.hs-line { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 1.5; }
.hs-fill { fill: rgba(255,255,255,.06); }
.hs-line.hs-fill { fill: rgba(255,255,255,.06); }
.hs-thin { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.2; }
.hs-row { fill: rgba(255,255,255,.08); animation: hs-row 2.4s ease-in-out infinite; }
.hs-ok { fill: rgba(59,224,138,.25); stroke: #3BE08A; stroke-width: 1.4; }
.hs-bar { fill: #3CC4E0; transform-box: fill-box; transform-origin: bottom; animation: hs-bar 2.4s ease-in-out infinite; }
.hs-light { fill: url(#hsGlass); opacity: 0; animation: hs-light 8s ease-in-out infinite; animation-delay: var(--d); }
.hs-leaf { fill: #12355F; stroke: rgba(255,255,255,.6); stroke-width: 1.5; transform-box: fill-box; animation: hs-swing 8s var(--ease) infinite; animation-delay: var(--d); }
.hs-leaf--l { transform-origin: left center; }
.hs-leaf--r { transform-origin: right center; }
.hs-glass { fill: url(#hsGlass); stroke: rgba(143,239,255,.7); stroke-width: 1.3; transform-box: fill-box; }
.hs-slide--l { animation: hs-slide-l 8s var(--ease) infinite; animation-delay: var(--d); }
.hs-slide--r { animation: hs-slide-r 8s var(--ease) infinite; animation-delay: var(--d); }
.hs-flap--l { transform-origin: left center; animation: hs-flap 8s var(--ease) infinite; animation-delay: var(--d); }
.hs-flap--r { transform-origin: right center; animation: hs-flap 8s var(--ease) infinite; animation-delay: var(--d); }
.hs-reader { fill: #0B1E36; stroke: rgba(255,255,255,.55); stroke-width: 1.2; }
.hs-led { fill: #3CC4E0; animation: hs-led 8s linear infinite; animation-delay: var(--d); }
.hs-wave { fill: none; stroke: #3CC4E0; stroke-width: 1.6; stroke-linecap: round; opacity: 0; animation: hs-wave 8s ease-out infinite; animation-delay: var(--d); }
.hs-arrow { fill: none; stroke: #3BE08A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; animation: hs-light 8s ease-in-out infinite; animation-delay: var(--d); }
.hs-halo { animation: hs-halo 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes hs-flow { to { stroke-dashoffset: -16; } }
@keyframes hs-pulse { 0% { stroke-dashoffset: 10; opacity: 1; } 18% { stroke-dashoffset: -100; opacity: 1; } 19%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes hs-pulse-fast { 0% { stroke-dashoffset: 10; opacity: 1; } 60% { stroke-dashoffset: -100; opacity: 1; } 61%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes hs-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
@keyframes hs-row { 0%, 100% { fill: rgba(255,255,255,.08); } 50% { fill: rgba(60,196,224,.3); } }
@keyframes hs-bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes hs-led { 0%, 17% { fill: #3CC4E0; } 19%, 56% { fill: #3BE08A; filter: drop-shadow(0 0 5px #3BE08A); } 60%, 100% { fill: #3CC4E0; } }
@keyframes hs-wave { 0%, 12% { opacity: 0; } 17% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes hs-light { 0%, 19% { opacity: 0; } 30%, 52% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes hs-swing { 0%, 19% { transform: scaleX(1); } 31%, 52% { transform: scaleX(.36); } 65%, 100% { transform: scaleX(1); } }
@keyframes hs-slide-l { 0%, 19% { transform: translateX(0); } 31%, 52% { transform: translateX(-40px); } 65%, 100% { transform: translateX(0); } }
@keyframes hs-slide-r { 0%, 19% { transform: translateX(0); } 31%, 52% { transform: translateX(40px); } 65%, 100% { transform: translateX(0); } }
@keyframes hs-flap { 0%, 19% { transform: scaleX(1); } 31%, 52% { transform: scaleX(.12); } 65%, 100% { transform: scaleX(1); } }
@keyframes hs-halo { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .hs-svg *, .hs-svg *::before { animation: none !important; }
  .hs-pulse { opacity: 0; }
}
@media (max-width: 900px) { .page-hero__schema { max-width: 560px; margin-inline: auto; width: 100%; } }

/* Tabella di confronto (tecnologie): da telefono diventa un elenco di schede con etichette */
.btr-sec .cmp-wrap { width: 100%; max-width: 1180px; overflow-x: auto; border-radius: 20px; background: var(--white); border: 1px solid var(--line-light); }
.btr-sec table.cmp { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.btr-sec .cmp th, .btr-sec .cmp td { padding: 16px 18px; border-bottom: 1px solid var(--line-light); text-align: left; vertical-align: top; color: var(--text-body); }
.btr-sec .cmp thead th { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--bg-light); color: var(--navy); }
.btr-sec .cmp tbody th { font-family: var(--f-display); font-weight: 700; color: var(--navy); white-space: nowrap; }
.btr-sec .cmp tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 760px) {
  .btr-sec .cmp-wrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  .btr-sec table.cmp, .btr-sec .cmp tbody, .btr-sec .cmp tr, .btr-sec .cmp th, .btr-sec .cmp td { display: block; min-width: 0; }
  .btr-sec .cmp thead { display: none; }
  .btr-sec .cmp tbody { display: flex; flex-direction: column; gap: 12px; }
  .btr-sec .cmp tbody tr { padding: 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line-light); }
  .btr-sec .cmp tbody th { padding: 0 0 8px; border: 0; white-space: normal; font-size: 17px; }
  .btr-sec .cmp td { padding: 8px 0 0; border: 0; }
  .btr-sec .cmp td::before { content: attr(data-label); display: block; font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-dark); }
}

/* Intestazione con video (SALTO Space): video a tutta altezza a destra, sfumato verso il testo, senza cornice */
.page-hero--video .page-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-hero > figure.page-hero__video { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 56%; margin: 0; pointer-events: none; }
.page-hero__video video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 28%, #000 55%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 28%, #000 55%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.page-hero--video::after { background: radial-gradient(ellipse 45% 60% at 20% 50%, rgba(60,196,224,.12), transparent 70%); }
@media (max-width: 900px) {
  .page-hero--video .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero > figure.page-hero__video { position: relative; width: auto; height: 62vw; margin: 28px calc(-1 * var(--pad-x)) calc(-1 * clamp(48px, 6vw, 88px)); }
  .page-hero__video video {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .page-hero__video { display: none; } }

.gallery-section__lead { max-width: 720px; margin: -16px 0 0; color: var(--text-body); }

/* Pagina FAQ: domande per argomento con indice */
.faq-groups { gap: clamp(40px, 5vw, 64px); }
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; top: 12px; z-index: 5; padding: 12px; margin: 0 -12px; border-radius: 18px; background: rgba(243,246,249,.92); backdrop-filter: blur(8px); }
.faq-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-light); font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: none; transition: border-color .25s, background .25s, color .25s; }
.faq-nav a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.faq-nav a span { font-size: 12px; color: var(--cyan-dark); }
.faq-nav a:hover span { color: var(--cyan); }
.faq-group { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 96px; }
.faq-group > .h2 { margin: 0; }
@media (max-width: 640px) { .faq-nav { position: static; margin: 0; padding: 0; background: none; backdrop-filter: none; } }

/* Tabelle nelle pagine legali (cookie policy) */
.prose .btr-legal-table { margin: 8px 0 24px; overflow-x: auto; }
.prose .btr-legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose .btr-legal-table th, .prose .btr-legal-table td { padding: 12px 14px; border: 1px solid var(--line-light); text-align: left; vertical-align: top; }
.prose .btr-legal-table thead th { background: var(--bg-light); font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--navy); }

/* Galleria dentro una sezione di pagina: la regola generica .btr-sec ul (flex in colonna) annullava la masonry */
.btr-sec ul.gallery { display: block; row-gap: 0; columns: 3 280px; column-gap: 16px; width: 100%; max-width: 1180px; }
.btr-sec .gallery__item { padding: 0; }
.btr-sec .gallery__item::before { content: none; }
.btr-sec .gallery-section { padding: 0; background: none; width: 100%; max-width: 1180px; }

/* =========================================================
   GUIDE: pagina contenitore e articolo
   ========================================================= */
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; max-width: 1180px; }
.guide-card { margin: 0; }
.guide-card__link { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: var(--white); border: 1px solid var(--line-light); color: inherit; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.guide-card__link:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 30px 50px -30px rgba(1,23,49,.35); }
.guide-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.guide-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.guide-card__link:hover .guide-card__media img { transform: scale(1.04); }
.guide-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px; }
.guide-card__meta { font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-dark); }
.guide-card__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; color: var(--navy); }
.guide-card__text { font-size: 15px; line-height: 1.55; color: var(--text-body); }
.guide-card__go { margin-top: auto; padding-top: 6px; font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--navy); }
.guide-card__link:hover .guide-card__go { color: var(--cyan-dark); }
@media (max-width: 1000px) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .guide-cards { grid-template-columns: 1fr; } }

.guide__layout > * { min-width: 0; }
.guide__layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(32px, 5vw, 72px); width: 100%; max-width: 1180px; align-items: start; }
.guide__aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.guide__byline { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; }
.guide__byline strong { display: block; font-family: var(--f-display); color: var(--navy); }
.guide__byline strong a { color: inherit; text-decoration: none; }
.guide__byline span span { color: var(--text-body); }
.guide__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--cyan); font-family: var(--f-display); font-weight: 800; font-size: 14px; }
.guide__dates { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-body); padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.guide__toc-title { margin: 0 0 10px; font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-dark); }
.guide__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.guide__toc li { counter-increment: toc; }
.guide__toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 10px 7px 0; border-radius: 8px; font-size: 14px; line-height: 1.4; color: var(--text-body); text-decoration: none; transition: color .2s, background .2s; }
.guide__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-display); font-weight: 700; font-size: 11px; color: var(--cyan-dark); padding-top: 2px; }
.guide__toc a:hover { color: var(--navy); }
.guide__body h2 { scroll-margin-top: 24px; }
/* riquadri nel testo delle guide */
.prose .guide-answer { margin: 0 0 28px; padding: 24px 26px; border-radius: 18px; background: #F4F7FA; color: var(--text-body); }
.prose .guide-answer p { margin: 0; color: var(--text-body); font-size: 17px; line-height: 1.65; }
.prose .guide-answer strong { color: var(--navy); }
.prose .guide-box { margin: 24px 0; padding: 20px 22px; border-radius: 16px; background: var(--bg-light); border: 1px solid var(--line-light); }
.prose .guide-box > :first-child { margin-top: 0; }
.prose .guide-box > :last-child { margin-bottom: 0; }
.prose .guide-box--warn { }
.prose .wp-block-table { margin: 8px 0 28px; overflow-x: auto; }
.prose .wp-block-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose .wp-block-table th, .prose .wp-block-table td { padding: 12px 14px; border: 1px solid var(--line-light); text-align: left; vertical-align: top; }
.prose .wp-block-table thead th { background: var(--bg-light); font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--navy); }
@media (max-width: 1000px) {
  .guide__layout { grid-template-columns: minmax(0, 1fr); }
  .guide__aside { position: static; }
  .guide__toc { padding: 18px; border-radius: 16px; background: var(--bg-light); }
}

/* Tabelle delle guide: su desktop tabella, su telefono un elenco di schede con etichette */
.prose .guide-table-wrap { margin: 8px 0 28px; }
.prose .guide-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose .guide-table th, .prose .guide-table td { padding: 12px 14px; border: 1px solid var(--line-light); text-align: left; vertical-align: top; }
.prose .guide-table thead th { background: var(--bg-light); font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--navy); }
.prose .guide-table tbody th { font-family: var(--f-display); font-weight: 700; color: var(--navy); }
@media (max-width: 760px) {
  .prose .guide-table, .prose .guide-table tbody, .prose .guide-table tr, .prose .guide-table th, .prose .guide-table td { display: block; width: auto; }
  .prose .guide-table thead { display: none; }
  .prose .guide-table tbody { display: flex; flex-direction: column; gap: 12px; }
  .prose .guide-table tr { padding: 16px 18px; border-radius: 16px; background: var(--bg-light); border: 1px solid var(--line-light); }
  .prose .guide-table tbody th { padding: 0 0 6px; border: 0; font-size: 17px; }
  .prose .guide-table td { padding: 8px 0 0; border: 0; }
  .prose .guide-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-dark); }
}

/* Nota finale degli scenari ("scenario illustrativo") */
.prose .guide-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-light); font-size: 14px; line-height: 1.6; color: var(--text-body); font-style: italic; }

/* ============ Icone dei settori (inc/icone.php) ============ */
.btr-icona { flex: none; width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btr-icona .a { stroke: var(--cyan); }
/* Griglia settori [btr_settori_griglia] */
.btr-sec .sg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1180px; margin: 0; padding: 0; list-style: none; }
.sg li { display: flex; margin: 0; }
.sg__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 28px 16px; border-radius: 16px; text-align: center; color: var(--white);
  border: 1px solid rgba(60,196,224,.3); background: rgba(60,196,224,.05);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.sg__item .btr-icona { width: 56px; height: 56px; }
.sg__name { font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.3; }
.btr-sec a.sg__item, .btr-sec a.sg__item:hover, .btr-sec a.sg__item:focus-visible { color: var(--white); text-decoration: none; }
.btr-sec--light a.sg__item, .btr-sec--white a.sg__item { color: var(--navy); }
a.sg__item:hover, a.sg__item:focus-visible { border-color: var(--cyan); background: rgba(60,196,224,.12); transform: translateY(-3px); color: var(--white); }
.btr-sec--light .sg__item, .btr-sec--white .sg__item { color: var(--navy); background: var(--white); border-color: var(--line-light); }
@media (max-width: 1000px) { .btr-sec .sg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .btr-sec .sg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sg__item { padding: 20px 10px; gap: 10px; }
  .sg__item .btr-icona { width: 44px; height: 44px; }
  .sg__name { font-size: 14px; }
}
/* Home: icona al posto del numero nella lista settori */
.explorer__num .btr-icona { display: block; width: 34px; height: 34px; transition: color .3s; }
.explorer__item.is-active .explorer__num, .explorer__item:hover .explorer__num { color: var(--white); }
/* Carosello /settori/ */
.sc__tag { display: inline-flex; align-items: center; gap: 10px; }
.sc__tag .btr-icona { width: 34px; height: 34px; color: var(--white); }
/* Progetti: icona accanto al settore */
.project-facts__settore { display: flex; align-items: center; gap: 8px; }
.project-facts__settore .btr-icona { width: 26px; height: 26px; color: var(--navy); }
.project-facts__settore .btr-icona .a { stroke: var(--cyan-dark); }
.project-facts__stato { display: inline-flex; align-items: center; gap: 8px; }
.project-facts__stato::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #F2A93B; box-shadow: 0 0 0 4px rgba(242,169,59,.2); }

/* ============ Hero "ecosistema" (template-parts/hero-ecosistema.php): 12 dispositivi, ciclo 18 s ============ */
.hx-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--f-display); }
.hx-svg .hx-dev, .hx-svg .hx-label { --t: 18s; }
/* atmosfera */
.hx-halo { transform-box: fill-box; transform-origin: center; animation: hx-breathe 6s ease-in-out infinite; }
.hx-ticks { fill: none; stroke: rgba(143,239,255,.28); stroke-width: 6; stroke-dasharray: 1 12.5; transform-box: fill-box; transform-origin: center; animation: hx-spin 90s linear infinite; }
.hx-orbit { fill: none; stroke: rgba(60,196,224,.2); stroke-width: 1; stroke-dasharray: 2 8; transform-box: fill-box; transform-origin: center; animation: hx-spin 70s linear infinite reverse; }
.hx-orbit--in { stroke: rgba(60,196,224,.16); animation-duration: 40s; animation-direction: normal; }
/* collegamenti: dati che scorrono e impulso luminoso */
.hx-link { stroke: rgba(143,163,186,.22); stroke-width: 1; }
.hx-flow { stroke: rgba(60,196,224,.5); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1.5 9; animation: hx-flow 1.4s linear infinite; }
.hx-pulse { stroke: #CFFAFF; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 22 100; stroke-dashoffset: 22; opacity: 0; animation: hx-pulse var(--t) linear infinite; animation-delay: var(--d); }
.hx-pulse--glow { stroke: #3CC4E0; stroke-width: 8; }
/* nodi */
.hx-bloom { fill: #3CC4E0; opacity: 0; animation: hx-bloom var(--t) ease infinite; animation-delay: var(--d); }
.hx-ring { fill: none; stroke: #8FEFFF; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: hx-ring var(--t) ease-out infinite; animation-delay: var(--d); }
.hx-pop { transform-box: fill-box; transform-origin: center; animation: hx-pop var(--t) cubic-bezier(.3,1.6,.5,1) infinite; animation-delay: var(--d); }
.hx-node { stroke: rgba(143,239,255,.35); stroke-width: 1.2; }
.hx-node-on { opacity: 0; animation: hx-on var(--t) ease infinite; animation-delay: var(--d); }
.hx-shine { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-dasharray: 30 200; stroke-dashoffset: -98; }
.hx-ico { fill: none; stroke: #DDF4FB; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: hx-ico var(--t) ease infinite; animation-delay: var(--d); }
/* piattaforma */
.hx-core-glow { fill: #3CC4E0; opacity: .35; animation: hx-breathe 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hx-core { stroke: #3CC4E0; stroke-width: 1.6; }
.hx-core-rim { fill: none; stroke: rgba(143,239,255,.3); stroke-width: 1; stroke-dasharray: 3 5; transform-box: fill-box; transform-origin: center; animation: hx-spin 20s linear infinite; }
.hx-core-ico { fill: none; stroke: #8FEFFF; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hx-core-kick { fill: #8FEFFF; font-size: 8.5px; font-weight: 700; letter-spacing: .22em; }
.hx-core-txt { fill: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
/* etichetta del dispositivo attivo */
.hx-label { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hx-label var(--t) ease infinite; animation-delay: var(--d); }
.hx-pill { fill: rgba(60,196,224,.14); stroke: rgba(143,239,255,.55); stroke-width: 1; }
.hx-count { fill: #8FEFFF; font-size: 10px; font-weight: 700; letter-spacing: .24em; }
.hx-name { fill: #fff; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
@keyframes hx-pulse { 0% { stroke-dashoffset: 22; opacity: 1; } 3% { stroke-dashoffset: -100; opacity: 1; } 3.4%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes hx-on { 0%, 2.6% { opacity: 0; } 3.4%, 8% { opacity: 1; } 10%, 100% { opacity: 0; } }
@keyframes hx-bloom { 0%, 2.6% { opacity: 0; } 3.6%, 7% { opacity: .75; } 10%, 100% { opacity: 0; } }
@keyframes hx-pop { 0%, 2.8% { transform: scale(1); } 4% { transform: scale(1.16); } 8% { transform: scale(1.1); } 10%, 100% { transform: scale(1); } }
@keyframes hx-ico { 0%, 2.6% { stroke: #DDF4FB; } 3.4%, 8% { stroke: #00213F; } 10%, 100% { stroke: #DDF4FB; } }
@keyframes hx-ring { 0%, 3% { opacity: 0; transform: scale(1); } 3.6% { opacity: 1; transform: scale(1.05); } 9.5%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes hx-label { 0%, 2.4% { opacity: 0; transform: translateY(6px); } 3.6%, 7.8% { opacity: 1; transform: none; } 9%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes hx-flow { to { stroke-dashoffset: -21; } }
@keyframes hx-spin { to { transform: rotate(360deg); } }
@keyframes hx-breathe { 50% { transform: scale(1.1); opacity: .75; } }
@media (prefers-reduced-motion: reduce) {
  .hx-svg *, .hx-svg *::before { animation: none !important; }
  .hx-node-on { opacity: .35; }
}
/* Smartphone: scritte dell'ecosistema più grandi (l'SVG si rimpicciolisce con lo schermo) */
@media (max-width: 640px) {
  .hx-label-in { transform-box: view-box; transform-origin: 320px 378px; transform: scale(1.16); }
  .hx-count, .hx-pill { display: none; }
  .hx-name { stroke: #01203F; stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; }
  .hx-core-label { transform-box: view-box; transform-origin: 320px 292px; transform: scale(1.22); }
  .hx-core-ico { opacity: .9; }
}

/* ============ Servizi: applicazioni raggruppate (.btr-apps) ============ */
.btr-sec .btr-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1180px; margin-top: 12px; }
.btr-apps__card { padding: 24px 22px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: border-color .3s, background .3s; }
.btr-apps__card:hover { border-color: rgba(60,196,224,.45); background: rgba(60,196,224,.06); }
.btr-sec .btr-apps__card h3 { margin: 0 0 16px; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.btr-sec .btr-apps__card ul { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.btr-sec .btr-apps__card li { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--white); }
.btr-sec .btr-apps__card svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .btr-sec .btr-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .btr-sec .btr-apps { grid-template-columns: minmax(0, 1fr); } }

/* Lavora con noi: profili in righe orizzontali (testo a sinistra, competenze a destra su due colonne) */
.btr-sec .btr-jobs--rows { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.btr-sec .btr-jobs--rows .btr-job { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px clamp(32px, 5vw, 64px); align-items: start; }
.btr-sec .btr-job__main, .btr-sec .btr-job__skills { display: flex; flex-direction: column; gap: 14px; }
.btr-sec .btr-job__main > *, .btr-sec .btr-job__skills > * { margin: 0; }
.btr-sec .btr-job__main .wp-block-buttons { margin-top: 6px; padding-top: 0; }
.btr-sec .btr-job__skills { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line-light); }
.btr-sec .btr-job--accent .btr-job__skills { border-left-color: rgba(255,255,255,.14); }
.btr-sec .btr-job__label { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.btr-sec .btr-job--accent .btr-job__label { color: var(--white); }
.btr-sec .btr-job__skills ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; padding: 0; list-style: none; }
.btr-sec .btr-job__skills ul li { font-size: 15px; line-height: 1.5; }
.btr-sec .btr-job__skills p:not(.btr-job__label) { font-size: 15px; }
@media (max-width: 900px) {
  .btr-sec .btr-jobs--rows .btr-job { grid-template-columns: minmax(0, 1fr); }
  .btr-sec .btr-job__skills { padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1px solid var(--line-light); }
  .btr-sec .btr-job--accent .btr-job__skills { border-top-color: rgba(255,255,255,.14); }
}
@media (max-width: 560px) { .btr-sec .btr-job__skills ul { grid-template-columns: minmax(0, 1fr); } }
.btr-sec .btr-job--accent .wp-block-button__link { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.btr-sec .btr-job--accent .wp-block-button__link:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

/* ============ Banner consenso cookie (inc/cookie.php) ============ */
.cc {
  position: fixed; z-index: 1000; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px; padding: 28px 28px 22px;
  background: #0B1B30; color: var(--white); border: 1px solid rgba(143,239,255,.18); border-radius: 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); font-family: var(--f-body);
  opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s var(--ease);
}
.cc.is-open { opacity: 1; transform: none; }
.cc[hidden] { display: none; }
.cc__title { margin: 0; padding-right: 32px; font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.cc__text { margin: 0; font-size: 15px; line-height: 1.6; color: #C9D6E4; }
.cc__text a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.cc__x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; }
.cc__x:hover { background: rgba(255,255,255,.08); }
.cc__prefs { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.05); }
.cc__prefs[hidden] { display: none; }
.cc__opt { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.45; color: #C9D6E4; cursor: pointer; }
.cc__opt strong { color: var(--white); }
.cc__opt input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cyan); }
.cc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc__btn {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--navy); background: var(--cyan);
  transition: background .2s;
}
.cc__btn:hover { background: #8FEFFF; }
.cc__btn--save[hidden] { display: none; }
.cc__link { align-self: center; padding: 4px 2px; border: 0; background: none; color: var(--white); font-family: var(--f-display); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cc button:focus-visible { outline: 3px solid #8FEFFF; outline-offset: 2px; }
.footer__cookie { padding: 0; border: 0; background: none; font: inherit; color: #7D8FA5; cursor: pointer; }
.footer__cookie:hover { color: var(--cyan); }
@media (max-width: 640px) {
  .cc { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 20px 20px 0 0; padding: 22px max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-bottom, 0px)); }
  .cc__title { font-size: 18px; }
  .cc__text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .cc { transition: none; } }

/* ============ Selettore lingua IT / EN (inc/lingua.php) ============ */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.lang-switch a { display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--text-muted); text-decoration: none; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current="true"] { background: rgba(255,255,255,.12); color: var(--white); }
@media (max-width: 1024px) { .header__actions .lang-switch { align-self: flex-start; } }
