/* registro-afam.it, NETTunoPA
   Palette neutra zinc con accento blu del marchio NETTuno. Tema chiaro e scuro. */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #e4e4e7;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #52525b;
  --faint: #71717a;
  --brand: #019fd5;
  --brand-deep: #005487;
  --accent: #00669b;
  --brand-soft: #e7f5fb;
  --brand-line: #b5e1f3;
  --primary: #18181b;
  --primary-hover: #3f3f46;
  --on-primary: #ffffff;
  --ok: #15803d;
  --ok-soft: #e8f6ec;
  --warn: #a15c07;
  --warn-soft: #fdf3e2;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --staff: rgba(24, 24, 27, 0.10);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.05);
  --shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 8px 24px -6px rgba(9, 9, 11, 0.10);
  --shadow-lg: 0 2px 4px rgba(9, 9, 11, 0.04), 0 24px 60px -12px rgba(9, 9, 11, 0.20);
  --header-bg: rgba(255, 255, 255, 0.82);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --bg-alt: #0e0e10;
    --surface: #131316;
    --surface-2: #1b1b1f;
    --surface-3: #27272a;
    --border: #27272a;
    --border-strong: #3f3f46;
    --text: #fafafa;
    --text-2: #e4e4e7;
    --muted: #a1a1aa;
    --faint: #8f8f99;
    --brand: #2fb6e5;
    --brand-deep: #7fd3f2;
    --accent: #6cccf0;
    --brand-soft: #0a2532;
    --brand-line: #13465d;
    --primary: #fafafa;
    --primary-hover: #d4d4d8;
    --on-primary: #09090b;
    --ok: #4ade80;
    --ok-soft: #0f2a1a;
    --warn: #fbbf24;
    --warn-soft: #2b2110;
    --danger: #f87171;
    --danger-soft: #2e1414;
    --staff: rgba(250, 250, 250, 0.10);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 70px -14px rgba(0, 0, 0, 0.75);
    --header-bg: rgba(9, 9, 11, 0.78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090b;
  --bg-alt: #0e0e10;
  --surface: #131316;
  --surface-2: #1b1b1f;
  --surface-3: #27272a;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-2: #e4e4e7;
  --muted: #a1a1aa;
  --faint: #8f8f99;
  --brand: #2fb6e5;
  --brand-deep: #7fd3f2;
  --accent: #6cccf0;
  --brand-soft: #0a2532;
  --brand-line: #13465d;
  --primary: #fafafa;
  --primary-hover: #d4d4d8;
  --on-primary: #09090b;
  --ok: #4ade80;
  --ok-soft: #0f2a1a;
  --warn: #fbbf24;
  --warn-soft: #2b2110;
  --danger: #f87171;
  --danger-soft: #2e1414;
  --staff: rgba(250, 250, 250, 0.10);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 70px -14px rgba(0, 0, 0, 0.75);
  --header-bg: rgba(9, 9, 11, 0.78);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 0.5em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.85rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.65rem); line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 650; color: var(--text); }
address { font-style: normal; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.6em 1.15em; border-radius: 999px;
  font: inherit; font-size: 0.97rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-primary .icon { transition: transform .15s ease; }
.btn-primary:hover .icon { transform: translateX(2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { min-height: 50px; padding: 0.75em 1.45em; font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: 0.45em 0.95em; font-size: 0.9rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { width: 19px; height: 19px; }
.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; color: var(--accent); }
.text-link .icon { width: 1em; height: 1em; transition: transform .15s ease; }
.text-link:hover { color: var(--text); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand-logo img { width: 170px; height: auto; }
.brand-product {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap;
  padding-left: 12px; border-left: 1px solid var(--border-strong); line-height: 1.6;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 11px; border-radius: 8px; color: var(--text-2); text-decoration: none;
  font-size: 0.93rem; font-weight: 500; white-space: nowrap;
}
.site-nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-grid; place-items: center; height: 40px; min-width: 40px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 0.8rem; font-weight: 700; letter-spacing: .04em;
}
.lang-switch:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-menu { display: none; }

@media (max-width: 1300px) {
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; margin: 0; padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none; max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a:not(.btn) { padding: 13px 12px; font-size: 1.05rem; }
  .nav-cta { display: flex; margin-top: 12px; width: 100%; }
}
.nav-tools { display: none; }
@media (max-width: 1300px) {
  .nav-tools { display: none; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .header-actions .lang-switch, .header-actions .theme-toggle { display: none; }
  .nav-tools { display: flex; }
  .nav-tools .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .brand-logo img { width: 112px; }
  .brand-product { font-size: 1rem; padding-left: 10px; }
  .brand { gap: 10px; }
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 12px 0 0 -1px var(--brand-deep); margin-right: 12px; }
.lead { font-size: clamp(1.12rem, 1.8vw, 1.28rem); color: var(--muted); line-height: 1.6; max-width: 640px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-actions.center { justify-content: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.trust li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 0.87rem; font-weight: 550; color: var(--text-2);
}
.trust .icon { width: 16px; height: 16px; color: var(--accent); }
.trust a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.trust a:hover { text-decoration-color: currentColor; }
.hero-decor { position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none; opacity: .9; }
.hero-decor svg { width: 100%; height: 100%; }
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--border); background: var(--bg-alt); position: relative; overflow: hidden; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 980px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
}

/* Pentagramma decorativo */
.staff-lines {
  background-image: repeating-linear-gradient(to bottom, var(--staff) 0 1px, transparent 1px 12px);
  background-repeat: no-repeat; background-size: 100% 49px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 0.88rem; color: var(--faint); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Card e griglie ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--shadow-sm); position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 1rem; }
.card .text-link { margin-top: 16px; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card.is-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--accent); border: 1px solid var(--brand-line);
}
.card-icon .icon { width: 23px; height: 23px; }
.card-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-size: 1.05rem; color: var(--faint); }

/* Cinque punti di forza: prima card larga */
.strengths { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.strengths > :nth-child(-n+2) { grid-column: span 3; }
.strengths > :nth-child(n+3) { grid-column: span 2; }
@media (max-width: 980px) {
  .strengths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strengths > * { grid-column: span 1 !important; }
  .strengths > :last-child { grid-column: span 2 !important; }
}
@media (max-width: 640px) {
  .strengths { grid-template-columns: 1fr; }
  .strengths > *, .strengths > :last-child { grid-column: span 1 !important; }
}

/* ---------- Percorso dello studente sul pentagramma ---------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; counter-reset: step; }
.journey::before {
  content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 49px;
  background-image: repeating-linear-gradient(to bottom, var(--border-strong) 0 1px, transparent 1px 12px);
}
.journey li { position: relative; padding: 0 12px 0 0; counter-increment: step; }
.journey .note { display: block; position: relative; height: 92px; }
.journey .note::before { /* testa della nota */
  content: ""; position: absolute; left: 6px; top: calc(54px - var(--i) * 6px);
  width: 20px; height: 15px; border-radius: 50%; transform: rotate(-22deg);
  background: var(--n, var(--brand)); box-shadow: 0 0 0 4px var(--bg);
}
.journey .note::after { /* gambo */
  content: ""; position: absolute; left: 24px; top: calc(54px - var(--i) * 6px - 34px); width: 1.6px; height: 40px; background: var(--n, var(--brand));
}
.journey li:nth-child(even) { --n: var(--brand-deep); }
.journey h3 { font-size: 1.08rem; margin: 6px 0 6px; }
.journey h3::before { content: counter(step, decimal-leading-zero) " "; color: var(--faint); font-weight: 500; font-size: .85rem; letter-spacing: .04em; display: block; margin-bottom: 2px; }
.journey p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.section-alt .journey .note::before { box-shadow: 0 0 0 4px var(--bg-alt); }
@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 0; padding-left: 44px; }
  .journey::before { top: 6px; bottom: 6px; left: 13px; right: auto; width: 2px; height: auto; background: var(--border); }
  .journey li { padding: 0 0 26px; }
  .journey .note { position: absolute; left: -44px; top: 2px; height: 28px; width: 28px; }
  .journey .note::before { left: 4px; top: 6px; }
  .journey .note::after { display: none; }
  .journey h3 { margin-top: 0; }
}

/* ---------- Ruoli ---------- */
.role { display: flex; flex-direction: column; }
.role .role-who { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.role ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.role li { display: flex; gap: 10px; font-size: .97rem; color: var(--text-2); line-height: 1.5; }
.role li .icon { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist .icon-check {
  width: 22px; height: 22px; padding: 3px; border-radius: 50%; margin-top: 2px;
  background: var(--brand-soft); color: var(--accent); stroke-width: 2.4;
}
.checklist.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 720px) { .checklist.two-col { grid-template-columns: 1fr; } }

/* ---------- Split testo + immagine ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 112px); }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 16px; }
.split .lead { margin-bottom: 26px; }
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Dettagli che fanno risparmiare tempo ---------- */
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.details > div { padding: clamp(22px, 2.6vw, 32px); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.details h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.details h3 .icon { color: var(--accent); }
.details p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 920px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .details { grid-template-columns: 1fr; } }

/* ---------- Numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; }
.stats li { padding: 8px 24px; border-left: 1px solid var(--border); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.stats span { color: var(--muted); font-size: .98rem; display: block; max-width: 220px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Banda fotografica ---------- */
.photo-band { position: relative; isolation: isolate; overflow: hidden; background: #6f7d74; color: #fff; }
.photo-band picture, .photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-band img { object-fit: cover; object-position: 72% 30%; }
.photo-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(9, 9, 11, 0.78) 0%, rgba(9, 9, 11, 0.55) 34%, rgba(9, 9, 11, 0) 62%);
}
.photo-band .container { position: relative; z-index: 1; min-height: clamp(360px, 34vw, 480px); display: flex; align-items: center; }
.photo-band blockquote { margin: 0; max-width: 520px; padding: 48px 0; }
.photo-band blockquote p { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; color: #fff; margin-bottom: 18px; text-wrap: balance; }
.photo-band blockquote footer { color: rgba(255, 255, 255, 0.84); font-size: 1.02rem; max-width: 440px; }
@media (max-width: 760px) {
  .photo-band { background: var(--bg-alt); color: var(--text); }
  .photo-band picture, .photo-band img { position: static; height: auto; aspect-ratio: 2 / 1; }
  .photo-band::after { display: none; }
  .photo-band .container { min-height: 0; }
  .photo-band blockquote { padding: 28px 0 40px; }
  .photo-band blockquote p { color: var(--text); }
  .photo-band blockquote footer { color: var(--muted); }
}

/* ---------- Mockup interfaccia (dati di prova) ----------
   Riproducono lo stile reale di Innovazione Scuola AFAM (tema NETTuno su Tabler):
   fondo grigio, schede bianche arrotondate, pulsanti a pillola, stati pastello.
   I colori --a-* sono quelli dell'applicazione, chiari e scuri. */
.mock {
  --a-bg: #f4f4f5; --a-card: #ffffff; --a-text: #18181b; --a-muted: #9ca3af; --a-soft: #6b7280;
  --a-dark: #18181b; --a-on-dark: #ffffff; --a-chip: #f1f1f2; --a-border: #ececec; --a-input: #e4e4e7;
  --a-green-bg: #e4f3ea; --a-green: #2f7d50; --a-red-bg: #fbe5e5; --a-red: #c0392b;
  --a-yellow-bg: #fef9e7; --a-yellow: #92610a; --a-blue-bg: #dce8f4; --a-blue: #1a5f8a;
  --a-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); --a-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  background: var(--a-bg); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg);
  overflow: hidden; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px; line-height: 1.4; letter-spacing: -.01em; color: var(--a-text); position: relative; text-align: left;
}
:root[data-theme="dark"] .mock, :root[data-theme="dark"] .mock-float {
  --a-bg: #0e0e10; --a-card: #1a1a1d; --a-text: #f4f4f5; --a-muted: #71717a; --a-soft: #a1a1aa;
  --a-dark: #f4f4f5; --a-on-dark: #18181b; --a-chip: #232327; --a-border: #2a2a2e; --a-input: #2a2a2e;
  --a-green-bg: #16271d; --a-green: #5fb87f; --a-red-bg: #321b1b; --a-red: #e57373;
  --a-yellow-bg: #2a2009; --a-yellow: #f0c040; --a-blue-bg: #1e2b3a; --a-blue: #60a5d4;
  --a-shadow: 0 1px 3px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --a-shadow-sm: 0 1px 2px rgba(0,0,0,.3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mock, :root:not([data-theme="light"]) .mock-float {
    --a-bg: #0e0e10; --a-card: #1a1a1d; --a-text: #f4f4f5; --a-muted: #71717a; --a-soft: #a1a1aa;
    --a-dark: #f4f4f5; --a-on-dark: #18181b; --a-chip: #232327; --a-border: #2a2a2e; --a-input: #2a2a2e;
    --a-green-bg: #16271d; --a-green: #5fb87f; --a-red-bg: #321b1b; --a-red: #e57373;
    --a-yellow-bg: #2a2009; --a-yellow: #f0c040; --a-blue-bg: #1e2b3a; --a-blue: #60a5d4;
    --a-shadow: 0 1px 3px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --a-shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  }
}
/* barra in alto: titolo a sinistra, schermo, notifiche e avatar a destra come nell'app */
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px 8px 16px; }
.mock-bar span { order: 0; margin-right: auto; font-size: 11.5px; font-weight: 600; color: var(--a-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mock-bar i { order: 1; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--a-card); box-shadow: var(--a-shadow-sm); display: block; }
.mock-bar i:last-of-type { background: var(--a-green-bg); }
.mock-bar em { font-style: normal; font-size: 11px; color: var(--a-muted); letter-spacing: .04em; }
.mock-app { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 0 12px 12px; min-height: 290px; }
.mock-side { background: var(--a-card); border-radius: 16px; box-shadow: var(--a-shadow); padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mock-side b { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: var(--a-soft); }
.mock-side b.on { background: var(--a-chip); color: var(--a-text); }
.mock-side .icon { width: 16px; height: 16px; }
.mock-main { background: var(--a-card); border-radius: 16px; box-shadow: var(--a-shadow); padding: 16px 16px 14px; margin: 0 12px 12px; min-width: 0; }
.mock-app .mock-main { margin: 0; }
.mock-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mock-h strong { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.mock-h small { color: var(--a-muted); font-size: 11.5px; }
.m-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.m-tabs span { font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--a-chip); color: var(--a-text); }
.m-tabs span.on { background: var(--a-dark); color: var(--a-on-dark); }
.m-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--a-border); }
.m-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.m-row > div { min-width: 0; }
.m-row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row .s { color: var(--a-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--a-chip, var(--surface-2)); color: var(--a-soft, var(--muted)); }
.pill .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.pill.ok { background: var(--a-green-bg); color: var(--a-green); }
.pill.warn { background: var(--a-yellow-bg); color: var(--a-yellow); }
.pill.no { background: var(--a-red-bg); color: var(--a-red); }
.pill.info { background: var(--a-blue-bg); color: var(--a-blue); }
.pill.dark { background: var(--a-dark); color: var(--a-on-dark); }
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--a-dark); color: var(--a-on-dark); white-space: nowrap; box-shadow: var(--a-shadow-sm); }
.m-btn.ghost { background: var(--a-chip); color: var(--a-text); box-shadow: none; }
.m-btn.line { background: var(--a-card); color: var(--a-text); border: 1px solid var(--a-border); }
.m-btn .icon { width: 13px; height: 13px; }
.m-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.m-table th { text-align: left; font-weight: 600; color: var(--a-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--a-border); }
.m-table td { padding: 9px 8px; border-bottom: 1px solid var(--a-border); white-space: nowrap; }
.m-table tr:last-child td { border-bottom: 0; }
.m-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.m-foot .muted { color: var(--a-muted); }
.m-bar-track { height: 6px; border-radius: 99px; background: var(--a-chip); overflow: hidden; margin-top: 6px; }
.m-bar-track i { display: block; height: 100%; background: var(--a-dark); border-radius: 99px; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.m-kpis div { background: var(--a-bg); border-radius: 14px; padding: 10px; text-align: center; }
.m-kpis b { display: block; font-size: 17px; font-weight: 700; }
.m-kpis small { color: var(--a-muted); font-size: 11px; }

.mock-wrap { position: relative; padding: 0 0 28px 0; }
.mock-float {
  --a-card: #ffffff; --a-text: #18181b; --a-soft: #6b7280; --a-chip: #f1f1f2;
  position: absolute; z-index: 2; background: var(--a-card); color: var(--a-text); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 12px 14px; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px; line-height: 1.4; letter-spacing: -.01em; display: flex; gap: 10px; align-items: flex-start; max-width: 270px;
}
.mock-float .card-icon { width: 34px; height: 34px; border-radius: 999px; margin: 0; flex: none; background: var(--a-chip); color: var(--a-text); }
.mock-float .card-icon .icon { width: 17px; height: 17px; }
.mock-float b { display: block; font-size: 13px; }
.mock-float small { color: var(--a-soft); font-size: 12px; }
.mf-bottom-left { left: -28px; bottom: 0; }
.mf-top-right { right: -18px; top: -22px; }
@media (max-width: 1300px) { .mf-bottom-left { left: -8px; } .mf-top-right { right: -6px; } }
@media (max-width: 560px) {
  .mock-app { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-float { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: -18px 12px 0 auto; max-width: 92%; }
  .mf-top-right { display: none; }
  .mock-wrap { padding-bottom: 0; }
  .m-hide-sm { display: none; }
}

/* Calendario aule */
.m-cal { display: grid; grid-template-columns: clamp(42px, 12%, 74px) repeat(4, minmax(0, 1fr)); border: 1px solid var(--a-border); border-radius: 14px; overflow: hidden; font-size: 11.5px; }
.m-cal > div { border-bottom: 1px solid var(--a-border); border-right: 1px solid var(--a-border); min-height: 34px; padding: 4px 5px; position: relative; }
.m-cal > div:nth-child(5n) { border-right: 0; }
.m-cal > div:nth-last-child(-n+5) { border-bottom: 0; }
.m-cal .hd { font-weight: 600; color: var(--a-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; min-height: 0; padding: 8px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cal .tm { color: var(--a-muted); }
.m-ev { display: block; border-radius: 8px; padding: 4px 7px; font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ev.a { background: var(--a-blue-bg); color: var(--a-blue); }
.m-ev.b { background: var(--a-yellow-bg); color: var(--a-yellow); }
.m-ev.c { background: var(--a-green-bg); color: var(--a-green); }
.m-ev.d { background: var(--a-chip); color: var(--a-soft); }

/* Login, come la pagina "Accedi" dell'app */
.m-login { background: var(--a-card); border-radius: 16px; box-shadow: var(--a-shadow); margin: 0 12px 12px; padding: 22px 22px 18px; display: grid; gap: 8px; }
.m-login > * { max-width: 340px; width: 100%; margin: 0 auto; }
.m-login .m-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.m-login .m-sub { color: var(--a-muted); font-size: 11.5px; margin-top: -6px; }
.m-label { font-size: 10px; font-weight: 600; color: var(--a-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: -4px !important; }
.m-field { border: 1px solid var(--a-input); border-radius: 999px; padding: 8px 14px; color: var(--a-muted); font-size: 12.5px; background: var(--a-card); box-shadow: var(--a-shadow-sm); }
.m-login .m-btn { padding: 9px 14px; font-size: 12.5px; }
.m-login .sep { display: flex; align-items: center; gap: 10px; color: var(--a-muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.m-login .sep::before, .m-login .sep::after { content: ""; flex: 1; height: 1px; background: var(--a-border); }
.m-2fa { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 11.5px; color: var(--a-soft); }
.m-2fa .icon { width: 13px; height: 13px; }
.m-roles { display: grid; gap: 6px; }
.m-roles div { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 12px; padding: 7px 7px 7px 12px; font-size: 12px; background: var(--a-bg); }
.m-roles div.on { box-shadow: inset 0 0 0 1px var(--a-dark); }

/* ---------- Funzionalità per ruolo ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.toc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text-2); font-weight: 550; font-size: .95rem; }
.toc a:hover { border-color: var(--border-strong); color: var(--text); }
.toc .icon { width: 17px; height: 17px; color: var(--accent); }
.role-block { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 7vw, 80px) 0; border-top: 1px solid var(--border); }
.role-block:first-child { border-top: 0; padding-top: 0; }
.role-block .sticky { position: sticky; top: 100px; align-self: start; }
.role-block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.role-block .lead { font-size: 1.08rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 18px 18px 18px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.feature-list h3 { font-size: 1rem; margin: 0 0 4px; display: flex; align-items: center; gap: 9px; }
.feature-list h3 .icon { color: var(--accent); width: 19px; height: 19px; }
.feature-list p { margin: 0; font-size: .95rem; color: var(--muted); }
.feature-list li.star { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 75%); }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: var(--primary); color: var(--on-primary); margin-left: auto; }
@media (max-width: 920px) {
  .role-block { grid-template-columns: 1fr; }
  .role-block .sticky { position: static; }
}
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* Passi numerati */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 28px 58px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
}
.steps li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 4px; width: 1px; background: var(--border); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 4px 0 4px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative; font-weight: 600; font-size: 1.04rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 18px; }

/* ---------- Banda CTA ---------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.cta-inner {
  display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center;
  background: var(--primary); color: var(--on-primary); border-radius: 24px; padding: clamp(32px, 5vw, 60px);
  position: relative; overflow: hidden; max-width: calc(var(--container) - 2 * var(--gutter));
}
.cta-inner::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 49px; opacity: .14;
  background-image: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 12px);
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: inherit; margin-bottom: 12px; }
.cta-inner p { color: inherit; opacity: .78; margin: 0; max-width: 560px; font-size: 1.08rem; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-inner .btn-primary { background: var(--on-primary); color: var(--primary); }
.cta-inner .btn-primary:hover { opacity: .9; }
.cta-inner .btn-ghost { color: var(--on-primary); background: var(--primary); border-color: rgba(127, 127, 127, .5); }
.cta-inner .btn-ghost:hover { background: var(--primary-hover); color: var(--on-primary); }
@media (max-width: 860px) {
  .cta-inner { grid-template-columns: 1fr; margin: 0 var(--gutter); width: auto; }
  .cta-band .container { padding: 0; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 480px) { .cta-actions .btn { width: 100%; } }

/* ---------- Callout ---------- */
.callout { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--text-2); }
.callout .icon { color: var(--accent); width: 24px; height: 24px; margin-top: 2px; }
.callout p { margin: 0; }
.callout h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--text); }

/* ---------- Modulo demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 920px) { .demo-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 13px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field .err { color: var(--danger); font-size: .9rem; margin: 6px 0 0; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; }
.form-alert.ok { background: var(--ok-soft); color: var(--text); border: 1px solid var(--ok); }
.form-alert.ko { background: var(--danger-soft); color: var(--text); border: 1px solid var(--danger); }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.contact-card h2 { font-size: 1.4rem; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.contact-card dd { margin: 2px 0 0; }
.contact-card dd a { font-weight: 600; }

/* ---------- Testo lungo (guida, privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); background: var(--surface-2); }
.question-list { counter-reset: q; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.question-list > li { counter-increment: q; border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px 18px 70px; position: relative; background: var(--surface); }
.question-list > li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 22px; top: 18px; font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); font-weight: 600; }
.question-list h3 { margin: 0 0 6px; font-size: 1.06rem; }
.question-list p { margin: 0; color: var(--muted); font-size: .98rem; }
.question-list .answer-tag { display: block; margin-top: 10px; font-size: .9rem; color: var(--text-2); }
.question-list .answer-tag strong { color: var(--accent); }
@media (max-width: 560px) { .question-list > li { padding-left: 22px; padding-top: 52px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 28px; background: var(--bg); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-brand p { color: var(--muted); max-width: 360px; margin-top: 18px; }
.footer-col h2 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-2); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-col address + address { margin-top: 16px; }
.footer-small { font-size: .87rem; color: var(--faint); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animazione d'ingresso leggera ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cta-band, .site-footer, .hero-decor { display: none; }
}

/* Nome prodotto lungo nell'header: va a capo sugli schermi piccoli */
@media (max-width: 520px) {
  .brand-product { white-space: normal; font-size: 0.95rem; line-height: 1.15; max-width: 118px; }
}
/* Header più largo del contenuto per far stare nome prodotto e menu */
.site-header .container { max-width: 1380px; }
@media (min-width: 1301px) {
  .header-inner { gap: 16px; }
  .site-nav a:not(.btn) { padding: 8px 9px; }
}

/* ---------- Le arti dell'AFAM ---------- */
.art { display: block; width: 100%; height: auto; }
.art .ln, .hero-decor .ln-faint { stroke: var(--border-strong); stroke-width: 1; }
.hero-decor .ln-faint { stroke: var(--staff); }
.art .s1, .hero-decor .s1 { stroke: var(--brand); stroke-linecap: round; }
.art .s2, .hero-decor .s2 { stroke: var(--brand-deep); stroke-linecap: round; }
.art .f1, .hero-decor .f1 { fill: var(--brand); }
.art .f2, .hero-decor .f2 { fill: var(--brand-deep); }
.hero-decor svg { opacity: .75; }
.arts-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.arts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.art-card { margin: 0; text-align: center; }
.art-card figcaption { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.art-card .art-kind { justify-content: center; }
.art-fig { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 12px 10px; margin-bottom: 12px; }
.arts-features-title { font-size: 1.1rem; margin: 28px 0 14px; padding-top: 24px; border-top: 1px solid var(--border); }
.arts-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.arts-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--muted); }
.arts-features .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
@media (max-width: 760px) { .arts-panel { padding: 18px; } .arts-features { grid-template-columns: 1fr; } }
.section-alt .art-fig { background: var(--bg); }
.art-kind { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.art-kind .icon { width: 16px; height: 16px; }
@media (max-width: 1100px) { .arts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .arts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .arts { grid-template-columns: 1fr; } }
.home .hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.07; }
@media (max-width: 480px) { .art-fig .art { max-width: 220px; margin: 0 auto; } }
.split.top { align-items: start; }

.art .fb { fill: var(--bg-alt); }
.section-alt .art .fb, .hero-decor .fb { fill: var(--bg); }
.art .hd, .hero-decor .hd { stroke: var(--faint); stroke-width: 1; }
.th-d, :root[data-theme="dark"] .th-l { display: none; }
:root[data-theme="dark"] .th-d { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .th-l { display: none; }
  :root:not([data-theme="light"]) .th-d { display: inline; }
}
.site-footer .brand-logo img { width: 180px; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; }
