/* Inter variabile, servita dal sito: prima era solo dichiarata nel font-family
   e si vedeva unicamente su chi la aveva gia' installata. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ica-navy: #28185f;
  --ica-navy-soft: #382475;
  --ica-blue: #365ba4;
  --ica-cyan: #6786c7;
  --ica-orange: #f28c00;
  --ica-ink: #17212b;
  --ica-muted: #66717c;
  --ica-line: #dce2e6;
  --ica-surface: #f3f6f7;
  --ica-white: #fff;
  --site-width: 1320px;

  /* Scala tipografica: ogni testo del sito pesca da qui, cosi' ruoli uguali
     hanno sempre lo stesso corpo e lo stesso peso. */
  --t-eyebrow: .78rem;   /* occhielli e micro-etichette */
  --t-meta: .88rem;      /* didascalie, note, dati secondari */
  --t-body: 1rem;        /* testo corrente */
  --t-intro: 1.08rem;    /* paragrafo introduttivo sotto un titolo */
  --t-row: 1.1rem;       /* titolo di riga negli elenchi */
  --t-lead: 1.2rem;      /* testo guida di una sezione */
  --t-card: 1.3rem;      /* titolo di scheda o pannello */
  --t-display-s: clamp(1.8rem, 3vw, 3rem);
  --t-h2: clamp(2.25rem, 4.3vw, 4.5rem);
  --t-h1: clamp(2.4rem, 5vw, 4.6rem);
  --t-display: clamp(3rem, 6.5vw, 6.3rem);

  --p-medio: 600;
  --p-forte: 700;
  --p-titolo: 800;
}

html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body { color: var(--ica-ink); background: var(--ica-white); font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: var(--t-body); line-height: 1.65; }
a { color: inherit; }
.site-container { max-width: var(--site-width); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 2000; padding: .75rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }

.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(12,28,46,.1); backdrop-filter: blur(14px); }
.navbar { min-height: 114px; }
.brand { display: inline-flex; align-items: center; gap: .72rem; font-weight: var(--p-titolo); text-decoration: none; letter-spacing: -.025em; }
.brand-image { display: block; width: 104px; height: 104px; object-fit: contain; }
.brand-image-footer { width: 84px; height: 84px; }
.navbar-nav { gap: .2rem; }
.navbar .nav-link { color: #34414d; font-size: var(--t-meta); font-weight: var(--p-medio); padding: .75rem .62rem !important; }
.navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link.active { color: var(--ica-orange); }
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; flex-wrap: nowrap; }
.lang-switch .lang-link { padding: 0 !important; }
.lang-switch .lang-sep { color: rgba(52,65,77,.35); font-weight: var(--p-medio); }
.section-dark .lang-switch .lang-sep, .navbar-collapse .lang-switch .lang-sep { color: rgba(255,255,255,.4); }
.navbar .nav-item-lang { flex: none; white-space: nowrap; }

/* Tra 1200 e 1500px il menu (8 voci + ITA|ENG) si stringe troppo: qui si
   comprime un po' logo, gap e padding per farlo stare su una sola riga. */
@media (min-width: 1200px) and (max-width: 1499.98px) {
  .navbar-nav { gap: 0; }
  .navbar .nav-link { padding: .75rem .42rem !important; font-size: .82rem; }
  .brand-image { width: 84px; height: 84px; }
}
.navbar-toggler { border: 0; box-shadow: none !important; }
.navbar-toggler { position: relative; z-index: 1060; display: grid; gap: 7px; width: 52px; height: 20px; padding: 0; border-radius: 0; color: var(--ica-navy); cursor: pointer; }
.navbar-toggler > span { display: block; height: 2px; background: currentColor; transform-origin: center; transition: width 320ms cubic-bezier(.65,0,.35,1), margin 320ms cubic-bezier(.65,0,.35,1), transform 320ms cubic-bezier(.65,0,.35,1), opacity 180ms ease; }
.navbar-toggler > span:nth-child(1) { width: 36px; margin-left: 8px; }
.navbar-toggler > span:nth-child(2) { width: 26px; margin-left: 0; }
.navbar-toggler > span:nth-child(3) { width: 42px; margin-left: 5px; }
.navbar-toggler:hover > span:nth-child(1), .navbar-toggler:focus-visible > span:nth-child(1) { width: 28px; margin-left: 0; transform: translateX(14px); }
.navbar-toggler:hover > span:nth-child(2), .navbar-toggler:focus-visible > span:nth-child(2) { width: 44px; margin-left: 4px; transform: translateX(-6px); }
.navbar-toggler:hover > span:nth-child(3), .navbar-toggler:focus-visible > span:nth-child(3) { width: 24px; margin-left: 18px; transform: translateX(-12px); }
.navbar-toggler.is-active { color: #fff; }
.navbar-toggler.is-active > span:nth-child(1) { width: 36px; margin-left: 8px; transform: translateY(9px) rotate(45deg); }
.navbar-toggler.is-active > span:nth-child(2) { opacity: 0; }
.navbar-toggler.is-active > span:nth-child(3) { width: 36px; margin-left: 8px; transform: translateY(-9px) rotate(-45deg); }
.navbar-toggler.is-active:hover > span:nth-child(1), .navbar-toggler.is-active:focus-visible > span:nth-child(1) { width: 36px; margin-left: 8px; transform: translateY(9px) rotate(45deg) scale(1.04); }
.navbar-toggler.is-active:hover > span:nth-child(3), .navbar-toggler.is-active:focus-visible > span:nth-child(3) { width: 36px; margin-left: 8px; transform: translateY(-9px) rotate(-45deg) scale(1.04); }
body.menu-aperto { overflow: hidden; }
body.menu-aperto .brand { opacity: 0; visibility: hidden; pointer-events: none; }
.btn { border-radius: .2rem; font-weight: var(--p-forte); letter-spacing: .01em; padding: .72rem 1.15rem; }
.btn-brand { background: var(--ica-orange); border-color: var(--ica-orange); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: #cf7600; border-color: #cf7600; color: #fff; }

.section-dark { color: #fff; background: var(--ica-navy); }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 720px; display: flex; align-items: center; padding: 7.5rem 0; background: #071018; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.84) 36%, rgba(0,0,0,.4) 68%, rgba(0,0,0,.14) 100%); }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.eyebrow { margin-bottom: 1.25rem; color: #8ddbe3; font-size: var(--t-eyebrow); font-weight: var(--p-titolo); letter-spacing: .16em; text-transform: uppercase; }
.text-accent { color: var(--ica-orange) !important; }
.hero h1 { max-width: 900px; margin: 0; font-size: var(--t-display); font-weight: var(--p-titolo); letter-spacing: -.055em; line-height: .96; }
.hero-lead { max-width: 760px; margin-top: 2rem; color: #d9e3ea; font-size: var(--t-lead); line-height: 1.6; }

/* Animazioni in entrata. Valgono solo con la classe .anim sull'html, aggiunta
   dallo script inline nel <head>: senza JavaScript i blocchi restano visibili. */
.anim .reveal,
.anim .reveal-group > * { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.anim .reveal.is-visible,
.anim .reveal-group > .is-visible { opacity: 1; transform: none; }

/* Pagine interne: testata compatta, passi numerati, elenchi ed invito finale. */
/* Altezza unica per tutte le testate, presa da "Chi siamo" che era la piu' alta:
   il contenuto si centra in verticale e le bande restano allineate fra le pagine. */
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 32rem; padding: 5.5rem 0 4.5rem; background: linear-gradient(145deg, #181039, #32206d); }
.page-hero > .container { width: 100%; }
/* La foto sta sotto: un velo scuro tiene leggibile il testo bianco.
   Se l'immagine non carica resta il gradiente viola del blocco. */
.page-hero-foto::before { content: ""; position: absolute; inset: 0; z-index: -2; background-position: center; background-size: cover; }
.page-hero-foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,13,48,.95) 0%, rgba(24,16,57,.86) 45%, rgba(50,32,109,.6) 100%); }
.foto-chi-siamo::before { background-image: url("../../media/riunione-progetto-rete-globale-ica-world-gate.jpg"); }
/* Il video sta sotto il velo scuro, come nell'hero della home. Se non parte
   (o se l'utente ha chiesto meno movimento) resta il poster dello stesso fotogramma. */
.page-hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.foto-sistema-ica::before { background-image: url("../../media/analisi-dati-centrale-rischi-ica-world-gate.jpg"); }
.foto-network::before { background-image: url("../../media/grattacieli-distretto-direzionale-ica-world-gate.jpg"); }
/* Su un filmato gia' scuro il velo pieno spegnerebbe tutto: qui serve piu' leggero. */
.velo-leggero::after { background: linear-gradient(90deg, rgba(16,10,40,.86) 0%, rgba(24,16,57,.7) 45%, rgba(50,32,109,.42) 100%); }
.foto-documentazione::before { background-image: url("../../media/documentazione-archivio-documenti-ica-world-gate.jpg"); }
.foto-contatti::before { background-image: url("../../media/contatti-sede-ica-world-gate-group.jpg"); }
.foto-la-storia::before { background-image: url("../../media/ambienti-di-lavoro-condivisi-ica-world-gate.jpg"); }

/* Blocco parallax di chiusura pagina: foto fissa, velo scuro, testo e
   pulsante a tutta larghezza sotto. Su mobile l'attachment fixed non e'
   affidabile (Safari iOS), quindi li' torna a scorrere normalmente. */
.parallax-cta { position: relative; isolation: isolate; overflow: hidden; padding: 7rem 0; text-align: center; color: #fff; }
.parallax-cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: url("../../media/grattacieli-distretto-direzionale-ica-world-gate.jpg"); background-position: center; background-size: cover; background-attachment: fixed; }
.parallax-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,13,48,.93) 0%, rgba(24,16,57,.88) 100%); }
.parallax-cta h2 { max-width: 26ch; margin: 0 auto; font-size: var(--t-display-s); }
.parallax-cta p { max-width: 62ch; margin: 1.5rem auto 0; color: #cad7df; font-size: var(--t-lead); line-height: 1.7; }
.parallax-download { display: block; width: 100%; padding: 1.85rem 1rem; border: 0; background: var(--ica-orange); color: #fff; text-align: center; font-size: var(--t-card); font-weight: var(--p-titolo); letter-spacing: -.01em; text-decoration: none; transition: background-color .3s ease; }
.parallax-download:hover, .parallax-download:focus { background: #cf7600; color: #fff; }
@media (max-width: 767.98px) {
  .parallax-cta::before { background-attachment: scroll; }
  .parallax-cta { padding: 4.5rem 0; }
  .parallax-download { font-size: var(--t-lead); padding: 1.5rem 1rem; }
}
.page-hero h1 { max-width: 15ch; margin: 0; font-size: var(--t-h1); font-weight: var(--p-titolo); letter-spacing: -.05em; line-height: 1; }
.page-hero-lead { max-width: 70ch; margin: 1.75rem 0 0; color: #cad7df; font-size: var(--t-lead); line-height: 1.6; }

.step-list { margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.step-list li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.step-list li:first-child { padding-top: 0; }
.step-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-number { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 2px solid var(--ica-orange); border-radius: 50%; color: var(--ica-orange); font-size: var(--t-body); font-weight: var(--p-titolo); }
.step-list strong { display: block; margin-bottom: .35rem; font-size: var(--t-row); font-weight: var(--p-forte); }
.step-list p { margin: 0; color: #cad7df; }
.section-muted .step-list li { border-bottom-color: var(--ica-line); }
.section-muted .step-list p { color: var(--ica-muted); }

.plain-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 2.5rem; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ica-line); }
.plain-list li { padding: .95rem 0; border-bottom: 1px solid var(--ica-line); font-weight: var(--p-medio); }
.plain-list-wide { grid-template-columns: 1fr; }
.metodo-nota { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); color: #b9c6d2; font-size: var(--t-meta); }

.data-strip { margin-top: 4rem; padding: 2.25rem; border-left: 3px solid var(--ica-orange); background: var(--ica-surface); }
.data-strip h3 { margin-bottom: .85rem; color: var(--ica-navy); font-size: var(--t-row); }
.data-strip p { margin: 0; color: var(--ica-muted); font-size: var(--t-meta); line-height: 1.7; }

.cta-band { padding: 0 0 7rem; }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem); color: #fff; background: var(--ica-navy); }
.cta-inner h2 { max-width: 20ch; margin: 0 0 .75rem; font-size: var(--t-display-s); }
.cta-inner p { max-width: 60ch; color: #cad7df; }
/* Variante chiara: serve dove il richiamo segue una sezione scura, come in
   "Chi siamo", altrimenti i due blocchi si fondono in un unico rettangolo viola. */
.cta-chiara { color: var(--ica-ink); background: var(--ica-surface); border-left: 4px solid var(--ica-orange); }
.cta-chiara p { color: var(--ica-muted); }

.audience-strip { background: #fff; border-bottom: 1px solid var(--ica-line); }
.audience-strip a { display: block; padding: 1.25rem 1rem; border-right: 1px solid var(--ica-line); text-align: center; text-decoration: none; font-weight: var(--p-forte); }
.audience-strip [class*="col-"]:last-child a { border-right: 0; }
.audience-strip a:hover { color: var(--ica-orange); background: #fafafa; }

.section-space { padding: 7rem 0; }
.section-muted { background: var(--ica-surface); }
h2 { font-size: var(--t-h2); font-weight: var(--p-titolo); letter-spacing: -.045em; line-height: 1.02; }
h3 { font-weight: var(--p-titolo); letter-spacing: -.025em; }
.section-intro { color: var(--ica-muted); font-size: var(--t-lead); line-height: 1.75; }
.section-dark .section-intro { color: #cad7df; }
.section-heading { max-width: 780px; }
.section-heading > p:last-child { max-width: 660px; color: var(--ica-muted); font-size: var(--t-intro); }

.feature-tile { height: 100%; padding: 1.35rem; border-left: 3px solid var(--ica-cyan); background: #fff; transition: transform .35s ease, background-color .45s ease, border-color .45s ease, box-shadow .35s ease; }
.feature-tile strong, .feature-tile span { display: block; }
.feature-tile strong { margin-bottom: .45rem; transition: color .45s ease; }
.feature-tile span { color: var(--ica-muted); font-size: var(--t-meta); transition: color .45s ease; }
/* In negativo al passaggio del mouse, come le schede. */
.feature-tile:hover, .feature-tile:focus-within { transform: translateY(-4px); border-left-color: var(--ica-orange); background: var(--ica-blue); box-shadow: 0 18px 40px rgba(54,91,164,.26); }
.feature-tile:hover strong, .feature-tile:focus-within strong { color: #fff; }
.feature-tile:hover span, .feature-tile:focus-within span { color: #dde6f4; }
.visual-card { overflow: hidden; margin: 0; border: 1px solid var(--ica-line); background: #0f1e2b; box-shadow: 0 22px 60px rgba(12,28,46,.14); }
.visual-card img { display: block; width: 100%; height: auto; }
.visual-card-portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.visual-card-dark { border-color: rgba(255,255,255,.15); box-shadow: 0 24px 70px rgba(0,0,0,.34); }

.solution-card { display: flex; flex-direction: column; padding: 2.25rem 2rem; border: 1px solid var(--ica-line); background: #fff; transition: transform .35s ease, background-color .45s ease, border-color .45s ease, box-shadow .35s ease; }
.solution-card h3 { margin-bottom: .9rem; font-size: var(--t-card); transition: color .45s ease; }
.solution-card p { color: var(--ica-muted); transition: color .45s ease; }
.solution-card a { margin-top: auto; padding-top: 1.5rem; color: var(--ica-blue); font-weight: var(--p-forte); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .45s ease; }
/* Passando il mouse la scheda si colora di blu e il testo diventa bianco.
   :focus-within fa lo stesso per chi naviga con la tastiera. */
.solution-card:hover, .solution-card:focus-within { transform: translateY(-6px); border-color: var(--ica-blue); background: var(--ica-blue); box-shadow: 0 24px 55px rgba(54,91,164,.28); }
.solution-card:hover h3, .solution-card:focus-within h3,
.solution-card:hover a, .solution-card:focus-within a { color: #fff; }
.solution-card:hover p, .solution-card:focus-within p { color: #dde6f4; }

.section-network { background: linear-gradient(145deg, #181039, #32206d); }
.network-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem 2rem; margin: 2rem 0; padding: 0; list-style: none; }
.network-list li { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.16); font-weight: var(--p-medio); }
.network-list.network-list-single { grid-template-columns: 1fr; margin-top: 0; }

.project-list { border-top: 1px solid var(--ica-line); }
.project-list a { display: grid; grid-template-columns: minmax(200px, .8fr) 1fr; gap: 2rem; padding: 1.55rem 0; border-bottom: 1px solid var(--ica-line); text-decoration: none; }
.project-list a { transition: background-color .35s ease, padding-left .35s ease; }
.project-list a:hover, .project-list a:focus { padding-left: 1rem; background: var(--ica-surface); }
.project-list a:hover span, .project-list a:focus span { color: var(--ica-blue); }
.project-list span { font-size: var(--t-row); font-weight: var(--p-forte); transition: color .2s ease; }
.project-list small { color: var(--ica-muted); font-size: var(--t-meta); }
.documentation-section { border-top: 1px solid var(--ica-line); background: #fff; }
.documentation-section .col-lg-4 > p:last-child { color: var(--ica-muted); font-size: var(--t-intro); }
/* Blocco documenti: barra dei filtri e schede. Una sola icona, monocromatica,
   richiamata via <use> dal simbolo in cima al blocco. */
.doc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.doc-barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; margin-bottom: 2.25rem; }
/* Senza JavaScript i filtri non funzionerebbero: li mostriamo solo se c'e'. */
.doc-filtri { display: none; flex-wrap: wrap; gap: .6rem; }
.js .doc-filtri { display: flex; }
.doc-filtro { padding: .6rem 1.15rem; border: 1px solid var(--ica-line); border-radius: 999px; background: #fff; color: var(--ica-ink); font-size: var(--t-meta); font-weight: var(--p-forte); transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
.doc-filtro:hover { border-color: var(--ica-blue); color: var(--ica-blue); }
.doc-filtro.attivo { border-color: var(--ica-navy); background: var(--ica-navy); color: #fff; }
.doc-conteggio { margin: 0; color: var(--ica-muted); font-size: var(--t-meta); }

.doc-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.doc-card { position: relative; display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--ica-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(12,28,46,.05); transition: transform .35s ease, background-color .45s ease, border-color .45s ease, box-shadow .35s ease; }
.doc-card:hover, .doc-card:focus-within { transform: translateY(-4px); border-color: var(--ica-blue); background: var(--ica-blue); box-shadow: 0 22px 45px rgba(54,91,164,.28); }
.doc-card-testa { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.doc-icona { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 12px; background: #eef1f8; color: var(--ica-navy); }
.doc-icona svg { width: 26px; height: 26px; }
.doc-tag { padding: .3rem .7rem; border-radius: 6px; background: var(--ica-surface); color: var(--ica-muted); font-size: .72rem; font-weight: var(--p-titolo); letter-spacing: .1em; text-transform: uppercase; }
.doc-titolo { margin: 0 0 .9rem; font-size: var(--t-row); line-height: 1.35; }
.doc-titolo a { text-decoration: none; }
/* Tutta la scheda e' cliccabile, ma il link resta uno solo. */
.doc-titolo a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
/* Tutto quello che sta dentro la scheda si ribalta insieme a lei. */
.doc-icona, .doc-tag, .doc-titolo a, .doc-meta, .doc-meta-icona, .doc-azione { transition: color .45s ease, background-color .45s ease, border-color .45s ease; }
.doc-card:hover .doc-titolo a, .doc-card:focus-within .doc-titolo a { color: #fff; }
.doc-card:hover .doc-icona, .doc-card:focus-within .doc-icona { background: rgba(255,255,255,.16); color: #fff; }
.doc-card:hover .doc-tag, .doc-card:focus-within .doc-tag { background: rgba(255,255,255,.16); color: #fff; }
.doc-card:hover .doc-meta, .doc-card:focus-within .doc-meta,
.doc-card:hover .doc-meta-icona, .doc-card:focus-within .doc-meta-icona { color: #dde6f4; }
.doc-card:hover .doc-azione, .doc-card:focus-within .doc-azione { border-top-color: rgba(255,255,255,.28); color: #fff; }
.doc-meta { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; color: var(--ica-muted); font-size: var(--t-meta); }
.doc-meta-icona { display: inline-grid; place-items: center; color: var(--ica-muted); }
.doc-meta-icona svg { width: 17px; height: 17px; }
.doc-azione { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--ica-line); color: var(--ica-blue); font-size: var(--t-meta); font-weight: var(--p-forte); }
.doc-azione svg { width: 17px; height: 17px; transition: transform .3s ease; }
.doc-card:hover .doc-azione svg { transform: translateX(4px); }
.doc-card[hidden] { display: none; }

.text-link { color: var(--ica-blue); font-weight: var(--p-forte); text-underline-offset: 5px; }
.editorial-panel { display: grid; grid-template-columns: minmax(180px, 290px) 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; padding: clamp(2rem, 4vw, 3rem); color: #fff; background: linear-gradient(120deg, #3b216e, #1d1748); }
.editorial-cover { margin: 0; }
.editorial-cover img { display: block; width: 100%; height: auto; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.publication-label { display: block; margin-bottom: 2rem; color: #f3a37d; font-size: var(--t-eyebrow); font-weight: var(--p-titolo); letter-spacing: .14em; text-transform: uppercase; }
.editorial-panel h3 { max-width: 22ch; font-size: var(--t-display-s); }
.editorial-panel p { max-width: 62ch; margin: 1.25rem 0 0; color: #d7e0e7; }

.contact-section { padding-top: 5rem; }
.contact-panel { padding: clamp(2rem, 6vw, 5rem); color: #fff; background: var(--ica-orange); }
.contact-panel .eyebrow { color: #fff; }
.contact-panel h2 { max-width: 830px; }
.contact-panel > p:not(.eyebrow) { max-width: 820px; margin-bottom: 0; font-size: var(--t-intro); }
.contact-body { margin-top: 4rem; }
.contact-form { margin: 0; }
.contact-form .form-label { margin-bottom: .4rem; font-size: var(--t-meta); font-weight: var(--p-forte); }
.contact-form .form-control, .contact-form .form-select { padding: .8rem .95rem; border: 1px solid var(--ica-line); border-radius: .2rem; font-size: var(--t-body); }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--ica-orange); box-shadow: 0 0 0 .2rem rgba(242,140,0,.18); }
.contact-form .form-check-input { margin-top: .3rem; border-color: var(--ica-muted); }
.contact-form .form-check-input:checked { background-color: var(--ica-orange); border-color: var(--ica-orange); }
.contact-form .form-check-input:focus { border-color: var(--ica-orange); box-shadow: 0 0 0 .2rem rgba(242,140,0,.18); }
.contact-form .form-check-label { color: var(--ica-muted); font-size: var(--t-meta); line-height: 1.6; }
.contact-form .form-check-label a { color: var(--ica-blue); font-weight: var(--p-forte); text-underline-offset: 3px; }
.req { color: var(--ica-orange); font-weight: var(--p-titolo); }
.form-note { color: var(--ica-muted); font-size: var(--t-meta); }
/* Honeypot: fuori dallo schermo ma non display:none, cosi' i bot lo compilano. */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-bottom: 1.75rem; padding: 1rem 1.15rem; border-left: 3px solid #c0392b; background: #fdf0ee; color: #8c2c1f; font-size: var(--t-body); }
.form-alert a { color: inherit; }

.contact-info { padding: 2.25rem; border: 1px solid var(--ica-line); background: var(--ica-surface); }
.contact-info h3 { margin-bottom: 1.75rem; color: var(--ica-navy); font-size: var(--t-card); }
.contact-block { margin-bottom: 1.5rem; }
.contact-block p { margin: 0; line-height: 1.6; }
.contact-block a { color: var(--ica-blue); font-weight: var(--p-forte); text-decoration: none; }
.contact-block a:hover, .contact-block a:focus { color: var(--ica-orange); text-decoration: underline; text-underline-offset: 3px; }
.contact-label { display: block; margin-bottom: .3rem; color: var(--ica-muted); font-size: var(--t-eyebrow); font-weight: var(--p-titolo); letter-spacing: .14em; text-transform: uppercase; }
.contact-legal { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--ica-line); color: var(--ica-muted); font-size: var(--t-meta); line-height: 1.65; }
.footer-contact { margin-top: .6rem; font-size: var(--t-meta); }

.thankyou-section { background: var(--ica-surface); }
.thankyou-panel { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem); border-top: 4px solid var(--ica-orange); background: #fff; box-shadow: 0 22px 60px rgba(12,28,46,.08); text-align: center; }
.thankyou-panel h1 { font-size: var(--t-display-s); font-weight: var(--p-titolo); letter-spacing: -.04em; line-height: 1.05; }
.thankyou-panel .section-intro { max-width: 56ch; margin: 1.5rem auto 0; }
.thankyou-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--ica-line); }
.thankyou-contacts p { margin: 0; }
.thankyou-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

/* Segno di conferma: il cerchio si disegna, poi la spunta. */
.success-mark { margin-bottom: 2rem; }
.success-mark svg { display: block; width: clamp(84px, 14vw, 108px); height: auto; margin: 0 auto; }
.success-ring { fill: none; stroke: var(--ica-orange); stroke-width: 4; stroke-dasharray: 277; stroke-dashoffset: 277; transform: rotate(-90deg); transform-origin: 50% 50%; animation: disegna-cerchio .75s cubic-bezier(.22,.61,.36,1) forwards; }
.success-check { fill: none; stroke: var(--ica-orange); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 56; stroke-dashoffset: 56; animation: disegna-spunta .45s .55s cubic-bezier(.22,.61,.36,1) forwards; }

@keyframes disegna-cerchio { to { stroke-dashoffset: 0; } }
@keyframes disegna-spunta { to { stroke-dashoffset: 0; } }
.thankyou-contacts a { color: var(--ica-blue); font-weight: var(--p-forte); text-decoration: none; }
.thankyou-contacts a:hover, .thankyou-contacts a:focus { color: var(--ica-orange); text-decoration: underline; text-underline-offset: 3px; }

.site-footer { padding: 4rem 0; color: #d8d3e6; background: #160f34; }
.site-footer a:not(.brand) { margin-left: 1rem; color: #fff; text-decoration: none; }
.site-footer a:not(.brand):hover { color: #f39a70; }
.site-footer .footer-contact a { margin-left: 0; color: #fff; text-decoration: none; }
.site-footer .footer-contact a:hover { color: #f39a70; }
.copyright { color: #86939d; font-size: var(--t-meta); }
.footer-legal { margin-top: .75rem; font-size: var(--t-meta); }
.site-footer .footer-legal a { margin-left: 1rem; color: #b9b2cd; text-decoration: none; }
.site-footer .footer-legal a:first-child { margin-left: 0; }
.site-footer .footer-legal a:hover { color: #f39a70; }

/* Pagine legali: colonna stretta e gerarchia contenuta, sono testi da leggere. */
.legal-body { max-width: 78ch; }
.legal-body h2 { margin: 3rem 0 1rem; font-size: var(--t-card); letter-spacing: -.02em; line-height: 1.25; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 2rem 0 .6rem; font-size: var(--t-row); }
.legal-body p, .legal-body li { color: var(--ica-muted); }
.legal-body ul { margin: 0 0 1.25rem; padding-left: 1.15rem; }
.legal-body li { margin-bottom: .5rem; }
.legal-body a { color: var(--ica-blue); font-weight: var(--p-forte); text-underline-offset: 3px; }
.legal-updated { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ica-line); font-size: var(--t-meta); }

@media (max-width: 1199.98px) {
  .site-header { z-index: 1050; backdrop-filter: none; }
  .navbar-collapse { position: fixed; inset: 0; z-index: 1055; display: grid !important; place-items: center; width: 100%; min-height: 100dvh; padding: 7rem 1.5rem 2rem; border: 0; background: rgba(54,91,164,.86); color: #fff; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 280ms ease, visibility 280ms ease; backdrop-filter: blur(14px) saturate(.96); -webkit-backdrop-filter: blur(14px) saturate(.96); overflow-y: auto; }
  .navbar-collapse.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .navbar-nav { width: 100%; gap: clamp(14px, 2vw, 24px); text-align: center; }
  .navbar-collapse .nav-item { opacity: 0; transform: translateY(18px); transition: opacity 420ms ease, transform 420ms ease; }
  .navbar-collapse.is-open .nav-item { opacity: 1; transform: translateY(0); }
  .navbar .nav-link { position: relative; display: inline-block; padding: 0 0 .5rem !important; color: rgba(255,255,255,.94); font-size: clamp(1.35rem, 5vw, 2.65rem); font-weight: var(--p-titolo); letter-spacing: -.035em; line-height: 1; }
  .navbar .nav-link::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: center; transition: transform 360ms cubic-bezier(.65,0,.35,1); }
  .navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link.active { color: #fff; }
  .navbar .nav-link:hover::after, .navbar .nav-link:focus::after, .navbar .nav-link.active::after { transform: scaleX(1); }
  .navbar .lang-switch .nav-link { font-size: clamp(1rem, 3.2vw, 1.4rem); }
}
@media (max-width: 991.98px) {
  .doc-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navbar { min-height: 92px; }
  .brand-image { width: 78px; height: 78px; }
  .brand-image-footer { width: 110px; height: 110px; }
  html { scroll-padding-top: 96px; }
  .contact-body { margin-top: 2.5rem; }
  .hero { min-height: auto; padding: 6rem 0; }
  .section-space { padding: 5rem 0; }
  .editorial-panel { grid-template-columns: 1fr; gap: 2rem; justify-items: start; }
  .editorial-cover { max-width: 220px; }
}
@media (max-width: 767.98px) {
  .navbar-toggler { width: 40px; }
  .navbar-toggler > span:nth-child(1) { width: 30px; }
  .navbar-toggler > span:nth-child(2) { width: 22px; }
  .navbar-toggler > span:nth-child(3) { width: 34px; }
  .navbar-toggler.is-active > span:nth-child(1), .navbar-toggler.is-active > span:nth-child(3), .navbar-toggler.is-active:hover > span:nth-child(1), .navbar-toggler.is-active:hover > span:nth-child(3), .navbar-toggler.is-active:focus-visible > span:nth-child(1), .navbar-toggler.is-active:focus-visible > span:nth-child(3) { width: 30px; margin-left: 5px; }
  .doc-griglia { grid-template-columns: 1fr; }
  .doc-card { padding: 1.35rem; }
  .page-hero { min-height: 22rem; padding: 3.5rem 0 3rem; }
  .plain-list { grid-template-columns: 1fr; }
  .step-list li { grid-template-columns: 2.6rem 1fr; gap: 1rem; }
  .step-number { width: 2.6rem; height: 2.6rem; font-size: var(--t-meta); }
  .cta-band { padding-bottom: 4rem; }
  .data-strip { padding: 1.5rem; }
  .audience-strip a { min-height: 78px; display: grid; place-items: center; border-bottom: 1px solid var(--ica-line); }
  .audience-strip [class*="col-"]:nth-child(2n) a { border-right: 0; }
  .network-list { grid-template-columns: 1fr; }
  .project-list a { grid-template-columns: 1fr; gap: .25rem; }
  .editorial-panel { padding: 2rem; }
  .contact-info { padding: 1.5rem; }
  .site-footer a:not(.brand) { margin: 0 1rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal, .anim .reveal-group > * { opacity: 1; transform: none; }
  .success-ring, .success-check { animation: none; stroke-dashoffset: 0; }
  .hero-video, .page-hero-video { display: none; }
  .hero { background: #071018 url("../../media/hero-network-poster.jpg") center / cover no-repeat; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
