/* ==========================================================================
   I-DENTITY GROUP — foglio di stile del sito
   Colori presi dai loghi: blu navy istituzionale, teal del monogramma IDGS,
   arancio del logo "Supporto". Font ospitati in locale (niente chiamate a
   server esterni: più veloce e più semplice per il GDPR).
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #1b2a5e;
  --navy-700: #22336f;
  --navy-900: #0d1736;
  --navy-950: #080f26;
  --teal: #16928f;
  --teal-500: #1fa8a4;
  --teal-300: #63d8d3;
  --teal-50: #e8f7f6;
  --cyan: #22d3ee;
  --orange: #ea6f1c;
  --orange-50: #fff3ea;
  --ink: #0f1a33;
  --text: #2a3550;
  --muted: #5a6680;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 26, 51, .06), 0 8px 24px -12px rgba(15, 26, 51, .18);
  --shadow-lg: 0 30px 60px -30px rgba(13, 23, 54, .45);
  --wrap: 1180px;
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: clamp(40px, 6vw, 64px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .eyebrow::before { display: none; }
.head { margin-bottom: 44px; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 12px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(22, 146, 143, .8); }
.btn-primary:hover { background: #127c79; color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--navy); box-shadow: 0 10px 30px -12px rgba(255,255,255,.6); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-dark { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #cf5f12; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15,26,51,.4); }
.nav { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; letter-spacing: .02em; color: var(--navy); }
.brand-sub { font-family: var(--font-head); font-size: .68rem; font-weight: 600; letter-spacing: .08em; color: var(--teal); margin-top: 5px; }
.menu { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.menu a { display: block; white-space: nowrap; padding: 9px 12px; border-radius: 9px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--text); text-decoration: none; }
.menu a:hover { background: var(--bg-soft); color: var(--navy); }
.menu a[aria-current="page"] { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-portal { padding: 10px 16px; font-size: .88rem; background: var(--navy); color: #fff; }
.btn-portal:hover { background: var(--navy-900); color: #fff; }
.nav-toggle { flex: none; display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1440px) {
  .menu a { padding: 9px 7px; font-size: .84rem; }
  .btn-portal .long { display: none; }
}
@media (max-width: 1220px) {
  .nav { height: 68px; }
  .nav-toggle { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15,26,51,.35); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 10px; font-size: 1rem; border-bottom: 1px solid var(--bg-soft); }
  .nav-cta { margin-left: 0; }
  .btn-portal .long { display: none; }
}
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-sub { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: .92rem; }
  .btn-portal { padding: 10px 12px; gap: 6px; }
}
@media (max-width: 360px) { .brand-name { font-size: .8rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #dbe5f5; background: radial-gradient(1000px 500px at 85% -10%, rgba(34,211,238,.22), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(31,168,164,.25), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy) 70%, #173c6b); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1, .hero h2 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--teal-300); }
.hero .lead { color: #b9c6dd; }
.hero .eyebrow { color: var(--teal-300); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 104px) 0; }
.hero-badge { position: relative; justify-self: center; width: min(400px, 80vw); }
.hero-badge img { position: relative; width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero-badge::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.45), transparent 65%); filter: blur(30px); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #cdd8ea; font-size: .98rem; }
.hero-points svg { width: 20px; height: 20px; color: var(--teal-300); flex: none; margin-top: 3px; }
.page-hero .hero-grid { grid-template-columns: 1fr; padding: clamp(48px, 7vw, 84px) 0 clamp(44px, 6vw, 72px); }
.page-hero .lead { max-width: 780px; }
.page-hero.with-media .hero-grid { grid-template-columns: 1.2fr .8fr; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: #93a4c3; }
.crumbs a { color: #c4d1e8; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }
@media (max-width: 900px) {
  .hero-grid, .page-hero.with-media .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-badge { width: min(260px, 64vw); order: -1; }
  .page-hero.with-media .hero-badge { order: 0; }
}

/* ---------- Riquadro "In breve" (utile a lettori e motori di risposta AI) ---------- */
.summary { margin-top: -36px; position: relative; z-index: 2; }
.summary-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.summary-box .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.summary-box .ico svg { width: 22px; height: 22px; }
.summary-box h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: 6px; }
.summary-box p { margin: 0; color: var(--text); }
@media (max-width: 560px) { .summary-box { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- Card e griglie ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); border-color: #c9e9e7; box-shadow: 0 2px 4px rgba(15,26,51,.05), 0 20px 40px -20px rgba(15,26,51,.3); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.card .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card.navy .ico { background: #e9ecf7; color: var(--navy); }
.card.orange .ico { background: var(--orange-50); color: var(--orange); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-decoration: none; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card .more:hover svg { transform: translateX(3px); }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.card ul li { position: relative; padding-left: 20px; font-size: .94rem; color: var(--text); }
.card ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); }
.card.target { scroll-margin-top: 100px; }
.card.highlight { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(31,168,164,.18), var(--shadow); }

/* Card divisioni in home */
.division { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.division .top { padding: 26px 28px 0; min-height: 96px; display: flex; align-items: center; }
.division .top img { max-height: 64px; width: auto; mix-blend-mode: multiply; }
.division .top .round { width: 64px; height: 64px; }
.division .body { padding: 18px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.division .body .more { margin-top: auto; padding-top: 16px; }
.tag { display: inline-block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: #e9ecf7; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.tag.teal { color: var(--teal); background: var(--teal-50); }
.tag.orange { color: var(--orange); background: var(--orange-50); }

/* ---------- Split testo + media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split > *, .grid > *, .hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 2px; }
.checks strong { color: var(--ink); }

.shot { border-radius: var(--radius); overflow: hidden; background: var(--navy-950); box-shadow: var(--shadow-lg); border: 1px solid #1c2a4f; }
.shot .bar { display: flex; gap: 6px; padding: 10px 14px; background: #0b1430; border-bottom: 1px solid #1c2a4f; }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a66; }
.shot figcaption { padding: 10px 14px; font-size: .78rem; color: #8ea0c4; background: #0b1430; }
figure { margin: 0; }

.vertical-box { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 30px; }
@media (max-width: 760px) { .vertical-box { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Percorso / step ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.steps.five { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 14px; box-shadow: 0 0 0 6px #e9ecf7; }
.step .when { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.step h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .steps, .steps.five { grid-template-columns: repeat(2, 1fr); } .steps.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps, .steps.five { grid-template-columns: 1fr; } }

/* ---------- Confronto prima / dopo ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.compare > div { padding: 30px; }
.compare .before { background: #fff; }
.compare .after { background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #d7e1f2; }
.compare .after h3 { color: #fff; }
.compare ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.compare li { display: flex; gap: 10px; }
.compare svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.compare .before svg { color: #c2410c; }
.compare .after svg { color: var(--teal-300); }
.split .compare { grid-template-columns: 1fr; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Tabella confronto ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .96rem; }
thead th { background: var(--bg-soft); font-family: var(--font-head); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
tbody tr:last-child td { border-bottom: 0; }
td.good { color: var(--teal); font-weight: 600; }

/* ---------- Statistiche ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat span { font-size: .9rem; color: #b7c5de; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Banda scura ---------- */
.band { background: linear-gradient(150deg, var(--navy-950), var(--navy) 60%, #12506a); color: #cfdaee; position: relative; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: #b6c4dc; }
.band .eyebrow { color: var(--teal-300); }
.band .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.band .card h3 { color: #fff; }
.band .card p { color: #b6c4dc; }
.band .card .ico { background: rgba(99,216,211,.12); color: var(--teal-300); }

/* ---------- CTA ---------- */
.cta { border-radius: 24px; padding: clamp(32px, 5vw, 56px); background: radial-gradient(600px 300px at 100% 0, rgba(34,211,238,.25), transparent 60%), linear-gradient(140deg, var(--navy), var(--navy-900)); color: #cfdaee; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta p { margin: 0; color: #b6c4dc; }
.cta .actions { margin-top: 0; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: #bfe3e1; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 19px 34px 19px 0; position: relative; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Supporto ---------- */
.support-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 30px; border-radius: 20px; border: 1px solid #f6c9a8; background: linear-gradient(135deg, #fff, var(--orange-50)); box-shadow: var(--shadow); }
.support-card img { width: 120px; height: 120px; }
.support-card h2, .support-card h3 { margin-bottom: 6px; }
@media (max-width: 620px) { .support-card { grid-template-columns: 1fr; text-align: center; } .support-card img { margin: 0 auto; } .support-card .actions { justify-content: center; } }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.status.open { color: #0f8a5f; }
.status.open::before { background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); }

/* ---------- Contatti / form ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.info-list span, .info-list a { font-size: .97rem; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(31,168,164,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.note { font-size: .85rem; color: var(--muted); }

/* ---------- Video ---------- */
.video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team ---------- */
.person { text-align: left; }
.person .avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy), var(--teal)); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 14px; }
.person .role { font-size: .88rem; font-weight: 600; color: var(--teal); margin-bottom: 8px; display: block; }

/* ---------- Testi legali ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .4em; }
.callout { border-left: 4px solid var(--orange); background: var(--orange-50); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0cf; font-size: .93rem; padding: 64px 0 28px; }
.site-footer a { color: #cfdaee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.foot-brand img { width: 52px; height: 52px; }
.foot-brand b { font-family: var(--font-head); color: #fff; font-size: 1.05rem; letter-spacing: .02em; display: block; }
.foot-brand span { font-size: .78rem; letter-spacing: .1em; color: var(--teal-300); }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; }
.socials a:hover { background: var(--teal); text-decoration: none; }
.socials svg { width: 18px; height: 18px; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .82rem; color: #7f90b0; }
.legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Animazioni discrete ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none !important; }
  .hero { background: #fff; color: #000; }
  .hero h1 { color: #000; }
}

/* ---------- i-dentity: logo testuale in header e footer ---------- */
.brand-wordmark { flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-wordmark img { width: auto; height: 38px; }
.brand-wordmark .brand-sub { margin-top: 0; font-size: .64rem; }
.foot-wordmark { flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-wordmark img { width: 170px; height: auto; }
.foot-wordmark span { font-family: var(--font-head); font-size: .7rem; font-weight: 600; letter-spacing: .1em; color: var(--teal-300); }
.site-footer p a { color: #fff; }
.partner-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 12px 18px; }
.partner-badge img { height: 34px; width: auto; }
@media (max-width: 420px) {
  .brand-wordmark img { height: 32px; width: auto; }
}
.hero-badge-sub { position: relative; text-align: center; color: var(--teal-300); font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; margin-top: 14px; font-size: .8rem; }
