@font-face { font-family: "Anton"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/anton-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3.woff2") format("woff2"); }

:root {
  --black: #0a0a0b;
  --ink: #17171a;
  --muted: #5d5d66;
  --line: #dedbd6;
  --paper: #f5f3ef;
  --white: #fff;
  --red: #cc1335;
  --red-dark: #a50e2a;
  --bar-h: 76px;
  --head-h: 77px;
  --gutter: clamp(20px, 5vw, 72px);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ui: "Poppins", system-ui, sans-serif;
  --text: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 24px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.125rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.on-red :focus-visible, .panel:focus-visible { outline-color: var(--white); }

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 600 .8125rem/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.display { font-family: var(--display); font-weight: 400; line-height: 1.04; text-transform: uppercase; letter-spacing: .005em; }

/* Barra loghi */
.bar { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.bar__in { max-width: 1440px; min-height: var(--bar-h); margin-inline: auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; }
.bar__g { display: flex; align-items: center; gap: 14px; }
.bar__l { font: 600 .9375rem/1.2 var(--ui); color: var(--black); white-space: nowrap; }
.bar__g a { display: block; }
.bar img { width: auto; max-width: none; }
.logo-sor { height: 62px; }
.logo-anc { height: 40px; }
.logo-con { height: 46px; }
.logo-riv { height: 25px; }
.bar__multi { display: flex; align-items: center; gap: 14px; }
.bar__div { width: 1px; height: 46px; background: var(--black); }
/* Header: loghi più piccoli del footer */
.bar .logo-sor { height: 48px; }
.bar .logo-anc { height: 31px; }
.bar .logo-con { height: 36px; }
.bar .logo-riv { height: 20px; }
.bar .bar__div { height: 36px; }

/* Immagine iniziale */
/* Riempie lo spazio sotto la barra. Sugli schermi larghi cresce fino a mostrare gli occhi,
   sforando al massimo del margine sotto il titolo (4.7vw); 42vw evita di tagliare il titolo */
.hero { position: relative; overflow: hidden; background: var(--black); height: max(42vw, calc(100vh - var(--head-h)), min(49.25vw, calc(100vh - var(--head-h) + 4.7vw))); height: max(42vw, calc(100svh - var(--head-h)), min(49.25vw, calc(100svh - var(--head-h) + 4.7vw))); }
.hero picture { display: block; height: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
.scroll { position: absolute; right: var(--gutter); top: calc(100vh - var(--head-h) - 121px); top: calc(100svh - var(--head-h) - 121px); display: grid; justify-items: center; gap: 10px; padding: 14px 12px 12px; background: rgba(10, 10, 11, .72); color: var(--white); font: 600 .8125rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.scroll svg { animation: scorri 1.8s ease-in-out infinite; }
.scroll:hover { background: var(--red); }
@keyframes scorri {
  0%, 100% { transform: translateY(-5px); opacity: .75; }
  50% { transform: translateY(5px); opacity: 1; }
}
@media (max-aspect-ratio: 1/1) {
  .hero { height: min(calc(100vh - var(--head-h)), 100vw / .57); height: min(calc(100svh - var(--head-h)), 100vw / .57); }
  .hero img { object-position: 10% bottom; }
  /* A destra di "NON È": più in basso coprirebbe "NORMALE" */
  .scroll { top: auto; right: 12px; bottom: 26%; }
}

/* Video in evidenza */
.stage { position: relative; height: 170vh; background: var(--black); scroll-margin-top: -124px; }
.stage__pin { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); display: grid; place-items: center; overflow: hidden; }
.stage__glow { position: absolute; inset: 0; opacity: var(--p, 1); background: radial-gradient(ellipse 46% 62% at 50% 50%, rgba(204, 19, 53, .34), transparent 72%); pointer-events: none; }
.stage__frame { position: relative; width: min(calc(100vw - 40px), calc((100vh - var(--bar-h) - 56px) * .5577)); aspect-ratio: 464 / 832; background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); transform: scale(calc(.68 + .32 * var(--p, 1))); will-change: transform; }
.stage__frame video { width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border: 0; background: var(--red); color: var(--white); font: 600 .875rem/1 var(--ui); white-space: nowrap; cursor: pointer; transition: background .2s; }
.sound:hover { background: var(--red-dark); }
.sound[hidden] { display: none; }

/* L'iniziativa */
.intro { padding-block: clamp(72px, 11vw, 160px); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro h1 { margin-top: 18px; font-size: clamp(4.25rem, 11vw, 10rem); line-height: 1; }
.intro h1 span { display: block; color: var(--red); }
.intro__txt .btn { justify-self: start; margin-top: .4em; }
.intro__txt { display: grid; gap: 1.1em; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); }

/* Percorsi */
.paths { background: var(--paper); padding-block: clamp(64px, 9vw, 128px); }
.paths__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.paths__head h2 { font-size: clamp(2.75rem, 5.5vw, 4.75rem); }
.paths__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel { display: flex; flex-direction: column; min-height: 440px; padding: clamp(26px, 3vw, 40px); background: var(--black); color: var(--white); text-decoration: none; transition: background .25s; }
.panel:hover { background: var(--red); }
.panel__tag { font: 600 .8125rem/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #bdbdc4; transition: color .25s; }
.panel:hover .panel__tag { color: var(--white); }
.panel h3 { margin-top: 14px; font-size: clamp(3rem, 5vw, 4.5rem); }
.panel p { margin-top: 18px; color: #e6e6ea; }
.panel:hover p { color: var(--white); }
.panel__go { margin-top: auto; padding-top: 32px; display: inline-flex; align-items: center; gap: 12px; font: 600 1rem/1 var(--ui); }
.panel__go svg { transition: transform .25s; }
.panel:hover .panel__go svg { transform: translateX(6px); }


/* Sentinella */
.sentinel { background: var(--red); color: var(--white); padding-block: clamp(64px, 9vw, 128px); }
.sentinel__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.sentinel h2 { font-size: clamp(3rem, 5.6vw, 5.25rem); }
.sentinel__lead { margin-top: 24px; font-size: 1.25rem; max-width: 30em; }
.sentinel__note { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .45); font-size: 1rem; max-width: 32em; }
.sentinel__note a { font-weight: 700; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: clamp(24px, 3.4vw, 44px); background: var(--white); color: var(--ink); }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 .875rem/1.3 var(--ui); }
.field small { font: 400 .8125rem/1 var(--text); color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #8f8f98; border-radius: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.4 var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: 0; border-color: var(--black); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 1rem; line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.consent.is-bad { color: var(--red-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 28px; border: 0; background: var(--black); color: var(--white); font: 600 1rem/1 var(--ui); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--red); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--red-dark); }
.cta { margin-top: clamp(28px, 4vw, 44px); }
.hp { position: absolute; left: -9999px; }
.form__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.form__status { flex: 1 1 240px; font-size: 1rem; line-height: 1.4; }
.form__status.is-error { color: var(--red-dark); font-weight: 600; }
.form__status.is-ok { color: #12703a; font-weight: 600; }

/* Footer */
.foot { background: var(--white); }
.foot .bar__in { min-height: 92px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; border-top: 1px solid var(--line); padding: 16px var(--gutter) 0; font: 500 .9375rem/1.4 var(--ui); }
.foot__links a:hover { color: var(--red); }
.foot__links + .foot__legal { border-top: 0; padding-top: 10px; }
.foot__legal { border-top: 1px solid var(--line); padding: 16px var(--gutter); text-align: center; font-size: .9375rem; color: var(--muted); }

/* Pagine di dettaglio */
.head { position: relative; overflow: hidden; background: var(--black); color: var(--white); }
.head::before { content: ""; position: absolute; inset: 0 0 0 auto; width: min(58%, 820px); background: url("../img/volto.jpg") right center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 85%); mask-image: linear-gradient(90deg, transparent 22%, #000 85%); opacity: .62; }
.head .wrap { position: relative; padding-block: clamp(44px, 6vw, 72px) clamp(52px, 7vw, 92px); }
.back { display: inline-flex; align-items: center; gap: 10px; font: 500 .9375rem/1 var(--ui); color: var(--white); text-decoration: none; }
.back:hover { text-decoration: underline; }
.head h1 { margin-top: clamp(36px, 6vw, 72px); font-size: clamp(4.25rem, 11vw, 9.5rem); line-height: 1; }
.head .eyebrow { margin-top: clamp(36px, 6vw, 72px); color: #ff6f88; }
.head .eyebrow + h1 { margin-top: 14px; }
.head__lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); }
.head .btn { margin-top: 28px; }
.head--legal h1 { font-size: clamp(3.25rem, 8vw, 7rem); }
.legal { max-width: 960px; }

.sec { padding-block: clamp(52px, 7vw, 96px); }
.sec + .sec { padding-top: 0; }
.sec--tint { background: var(--paper); }
.sec--tint + .sec, .sec + .sec--tint { padding-top: clamp(52px, 7vw, 96px); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 6vw, 88px); align-items: start; }
.split h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
.split__side { position: sticky; top: calc(var(--bar-h) + 28px); }
.split__side p { margin-top: 14px; color: var(--muted); }
.split__side .btn { margin-top: 24px; }
@media (max-width: 1039px) { .split__side { position: static; } }
.prose { display: grid; gap: 1em; }
.prose h3 { margin-top: .5em; font: 600 1.25rem/1.3 var(--ui); }

.steps { counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding-block: 22px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 400 2.25rem/1 var(--display); color: var(--red); }
.steps a { font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 6px; align-content: start; padding: 22px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-size: 1.0625rem; line-height: 1.4; }
.tile strong { font: 600 1.0625rem/1.3 var(--ui); }

.checks { display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .34em; width: 16px; height: 9px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

.note { padding: clamp(24px, 3vw, 36px); background: var(--black); color: var(--white); }
.prose .note { margin-top: 1em; }
.note h3 { margin: 0 0 8px; font: 600 1.25rem/1.3 var(--ui); }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fig { padding: clamp(22px, 2.6vw, 34px); background: var(--black); color: var(--white); }
.fig b { display: block; font: 400 clamp(2.75rem, 5vw, 4.25rem)/1 var(--display); color: var(--white); }
.fig span { display: block; margin-top: 10px; font-size: 1.0625rem; line-height: 1.4; color: #e6e6ea; }

.toc { display: grid; gap: 2px; margin-top: 20px; }
.toc a { display: block; padding: 8px 0; font: 500 .9375rem/1.3 var(--ui); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--red); }
.tutele { display: grid; gap: clamp(40px, 5vw, 64px); }
.tutele article { display: grid; gap: 1em; }
.tutele h2 { font-size: clamp(2.25rem, 3.8vw, 3.25rem); }
.tutele__key { padding: 16px 20px; border-left: 4px solid var(--red); background: var(--paper); }

.source { margin-top: clamp(28px, 4vw, 44px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }

.others { background: var(--paper); padding-block: clamp(48px, 6vw, 80px); }
.others h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 26px; }
.others__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.others a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding: 20px 24px; background: var(--black); color: var(--white); text-decoration: none; font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--display); text-transform: uppercase; transition: background .2s; }
.others a:hover { background: var(--red); }
.others a.others__cta { background: var(--red); }
.others a.others__cta:hover { background: var(--red-dark); }

@media (max-width: 1239px) {
  .bar__in { gap: 16px 18px; }
  .bar__g { gap: 10px; }
  .bar__l { font-size: .8125rem; }
  .logo-sor { height: 50px; }
  .logo-anc { height: 32px; }
  .logo-con { height: 38px; }
  .logo-riv { height: 20px; }
  .bar__div { height: 38px; }
  .bar .logo-sor { height: 40px; }
  .bar .logo-anc { height: 26px; }
  .bar .logo-con { height: 30px; }
  .bar .logo-riv { height: 16px; }
  .bar .bar__div { height: 30px; }
}
@media (max-width: 1039px) {
  :root { --bar-h: 0px; --head-h: 81px; }
  .bar { position: static; }
  /* Header su una sola riga, con le etichette sopra i loghi */
  .bar .bar__in { flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; padding-block: 10px; }
  .bar .bar__g { flex-direction: column; align-items: flex-start; gap: 5px; }
  /* Stessa altezza per tutti i loghi, così le etichette restano allineate */
  .bar .bar__g > :last-child { display: flex; align-items: center; min-height: 40px; }
  .bar__in { flex-wrap: wrap; justify-content: center; }
  .intro__grid, .sentinel__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .paths__grid { grid-template-columns: minmax(0, 1fr); }
  .panel { min-height: 0; }
  .others__grid { grid-template-columns: minmax(0, 1fr); }
  .others a { min-height: 76px; }
}
@media (max-width: 639px) {
  :root { --head-h: 58px; }
  .bar__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 12px; }
  .bar__g { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; }
  .bar__g > :nth-child(2) { justify-self: start; }
  .bar__multi { gap: 10px; }
  .logo-sor { height: 46px; }
  .logo-anc { height: 28px; }
  .logo-con { height: 32px; }
  .bar__div { height: 30px; }
  /* Footer: etichette sopra i loghi, che mantengono la loro misura */
  .foot .bar__in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 12px; padding-block: 18px; }
  .foot .bar__g { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .foot .bar__g:first-child { flex-basis: 100%; }
  .foot .bar__g > :last-child { display: flex; align-items: center; min-height: 32px; }
  .foot .bar__l { white-space: nowrap; }
  .bar .bar__in { display: flex; gap: 2vw; padding-inline: 3vw; }
  .bar .bar__g > :last-child { min-height: min(8.2vw, 40px); }
  .bar .bar__g { display: flex; }
  .bar .bar__l { font-size: clamp(.5rem, 2.4vw, .8125rem); white-space: nowrap; }
  .bar .bar__multi { gap: 5px; }
  .bar .logo-sor { height: min(8.2vw, 40px); }
  .bar .logo-anc { height: min(5.6vw, 26px); }
  .bar .logo-con { height: min(6.4vw, 30px); }
  .bar .logo-riv { height: min(3.6vw, 16px); }
  .bar .bar__div { height: min(6vw, 30px); }
  .bar__l { white-space: normal; }
  .stage { height: 150vh; }
  .stage__pin { height: 100vh; height: 100svh; }
  .stage__frame { width: min(calc(100vw - 32px), calc((100svh - 32px) * .5577)); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .head::before { width: 100%; opacity: .3; }
  .steps li { grid-template-columns: 44px 1fr; }
}
@media (max-width: 359px) {
  .foot .bar__in { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage { height: auto; }
  .stage__pin { position: static; height: auto; padding-block: 40px; }
  .stage__frame { transform: none; }
  .stage__glow { opacity: 1; }
  .scroll svg { animation: none; }
  * { transition: none !important; }
}
