/* BAIO Studio: stile v2 (scuro, ispirato al sito Framer). Solo Inter. */

/* ---------- Font: Inter self-hosted (latin + latin-ext per ō e simili) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: italic; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: 500; font-display: swap; src: url("/fonts/inter-latin-ext-500-normal.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-ext-600-normal.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-ext-700-normal.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; }

/* Fallback con metriche di Inter: riduce lo spostamento quando il font si carica */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%; }

/* ---------- Variabili ---------- */
:root {
  --bg: #000000;
  --bg-2: #080D19;
  --ui: #0E1424;
  --input: #161D30;
  --dark-300: #1A2235;
  --heading: #FFFFFF;
  --body: rgba(255, 255, 255, .56);
  --body-strong: rgba(255, 255, 255, .64);
  --border: rgba(255, 255, 255, .10);
  --nav: rgba(0, 0, 0, .56);
  --viola: #6267FE;
  --viola-hover: #7B7FFF;
  --viola-btn: #5C61F7;       /* viola dei pulsanti: bianco su questo colore = 4,66:1 (AA) */
  --viola-btn-hover: #4D52E6;
  --viola-chiaro: #B5BAFF;
  --azzurro: #CEE8FF;
  --dorato: #FFE24D;
  --errore: #FF8A80;

  /* tipografia (desktop ≥1200) */
  --fs-h1: 80px;
  --fs-h2: 64px;
  --fs-manifesto: 60px;
  --fs-card: 42px;
  --fs-h3: 28px;
  --fs-l: 20px;
  --fs-m: 18px;
  --fs-s: 16px;
  --fs-xs: 14px;

  /* spaziature */
  --px: 64px;
  --section-y: 64px;
  --hero-pad: 160px 64px 200px 64px;
  --first-pad: 120px 64px 160px 64px;
}
@media (max-width: 1199px) {
  :root {
    --fs-h1: 60px; --fs-h2: 52px; --fs-manifesto: 48px; --fs-card: 34px; --fs-h3: 28px; --fs-l: 18px;
    --hero-pad: 120px 32px 160px 32px;
    --first-pad: 100px 48px 140px 48px;
    --px: 48px;
  }
}
@media (max-width: 809px) {
  :root {
    --fs-h1: 38px; --fs-h2: 40px; --fs-manifesto: 34px; --fs-card: 28px; --fs-h3: 20px; --fs-l: 16px; --fs-m: 16px;
    --hero-pad: 120px 24px 120px 24px;
    --first-pad: 80px 24px 110px 24px;
    --px: 24px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); }
body {
  margin: 0;
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-m);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--viola-chiaro); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -100px; background: var(--viola-btn); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 2000; }
.skip-link:focus { top: 16px; }

/* ---------- Titoli ---------- */
h1, h2, h3 { color: var(--heading); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
h2.title-manifesto { font-size: var(--fs-manifesto); line-height: 1.1; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
h3.title-card { font-size: var(--fs-card); font-weight: 700; line-height: 1.15; letter-spacing: -0.04em; }
.lead { font-size: var(--fs-l); line-height: 1.5; }
.text-m { font-size: var(--fs-m); }
.muted { color: var(--body); }

/* parola in evidenza: Inter Italic, stesso peso e dimensione, Dorato */
em.hl { font-style: italic; font-weight: inherit; color: var(--dorato); }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--section-y) var(--px); position: relative; }
.section-first { padding: var(--first-pad); overflow: hidden; }
.section-last-before { padding-bottom: 96px; }
@media (max-width: 809px) {
  .section { padding: 64px 24px; }
  .section-first { padding: var(--first-pad); }
  .section-last-before { padding-bottom: 96px; }
}
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; margin-bottom: 64px; }
.section-head .lead { max-width: 560px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1199px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 809px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: center;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px;
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; color: var(--heading);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  max-width: 100%;
}
.badge-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dorato); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 18px; border: 0; border-radius: 12px;
  font-size: var(--fs-s); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; text-decoration: none; cursor: pointer;
  color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-sm { padding: 9px 13px; border-radius: 10px; font-size: var(--fs-xs); }
.btn-primary { background: var(--viola-btn); }
.btn-primary:hover { background: var(--viola-btn-hover); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 4px rgba(98, 103, 254, .18); }
.btn-secondary { background: var(--bg-2); }
.btn-secondary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 4px rgba(255, 255, 255, .08); }
.btn:disabled { opacity: .7; cursor: progress; }

.link-chiaro { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--viola-chiaro); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link-chiaro:hover { color: #fff; }
.link-bianco { color: #fff; text-underline-offset: 4px; }

/* ---------- Navigazione ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 24px var(--px); pointer-events: none; }
.header-inner {
  pointer-events: auto; margin: 0 auto; width: fit-content; max-width: 100%;
  display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: var(--nav); border: 1px solid var(--border); border-radius: 12px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav ul { display: flex; gap: 8px; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--body); text-decoration: none; transition: color .2s ease; }
.nav ul a:hover { color: #fff; }
.menu-toggle { display: none; }
@media (max-width: 809px) {
  .site-header { padding: 0; background: #000; border-bottom: 1px solid var(--border); }
  .header-inner { width: 100%; height: 64px; padding: 0 24px; justify-content: space-between; background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; position: relative; }
  .logo img { height: 36px; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: #000; border-bottom: 1px solid var(--border); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 0; min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-cta { margin-top: 20px; min-height: 48px; font-size: var(--fs-s); }
}

/* ---------- Aloni ---------- */
.glow { position: absolute; pointer-events: none; }
.glow span { position: absolute; inset: 0; margin: auto; border-radius: 50%; animation: glow-spin 18s linear infinite; }
.glow .g1 { width: 400px; height: 400px; filter: blur(70px); opacity: .8; background: conic-gradient(from 0deg, #6267FE 0deg, #B5BAFF 120deg, #3A3FD6 240deg, #6267FE 360deg); }
.glow .g2, .glow .g3 { width: 300px; height: 300px; filter: blur(32px); background: conic-gradient(from 0deg, #FFE24D 0deg, #6267FE 180deg, #CEE8FF 360deg); }
.glow .g3 { mix-blend-mode: screen; animation-direction: reverse; opacity: .7; }
@keyframes glow-spin { to { transform: rotate(360deg); } }
.glow-off span { animation-play-state: paused; }

/* alone nelle card: 500×500 in un angolo */
.glow-tl, .glow-tr, .glow-bl, .glow-br { width: 500px; height: 500px; opacity: .55; transition: opacity .3s ease; }
.glow-tl { left: -260px; top: -400px; }
.glow-tr { right: -260px; top: -400px; }
.glow-bl { left: -260px; bottom: -400px; }
.glow-br { right: -260px; bottom: -400px; }
.card:hover > .glow { opacity: .85; }

/* alone dell'hero: grande, dietro al titolo, compare dopo 1s */
.glow-hero { left: 50%; top: 52%; width: 1200px; height: 800px; max-width: none; transform: translate(-50%, -50%); opacity: 0; animation: glow-in 1.6s ease 1s forwards; }
.glow-hero .g1 { width: 900px; height: 600px; border-radius: 50%; }
@keyframes glow-in { to { opacity: .55; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); padding: var(--hero-pad); }
.hero-body { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.hero-body h1 { max-width: 1100px; }
.h1-line { display: inline; }
@media (min-width: 1200px) { .h1-line { display: block; } }
.lead-hero { max-width: 560px; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: var(--fs-xs); }
.trust li + li::before { content: "·"; margin: 0 12px; color: var(--body); }
@media (max-width: 809px) {
  .hero-body { gap: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .trust { flex-direction: column; align-items: center; }
  .trust li + li::before { display: none; }
}

/* ---------- Frase «scelto» ---------- */
.statement-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.statement-stage { position: relative; display: grid; place-items: center; width: 100%; padding: 40px 0 64px; }
.statement-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 300px; font-weight: 700; letter-spacing: -0.06em; line-height: 1; color: var(--viola); user-select: none; pointer-events: none; white-space: nowrap; }
.statement h2 { position: relative; max-width: 14ch; }
@media (max-width: 1199px) { .statement-word { font-size: 220px; } }
@media (max-width: 809px) { .statement-word { font-size: 120px; } .statement-stage { padding: 24px 0 48px; } }

/* ---------- Card ---------- */
.card {
  position: relative; overflow: hidden;
  background: var(--ui); border: 1px solid var(--border); border-radius: 24px; padding: 48px 24px;
  transition: background-color .3s ease;
}
.card:hover { background: var(--dark-300); }
.card > :not(.glow) { position: relative; }
.card-plain { padding: 32px; text-align: left; }
.card-plain h3 { margin-bottom: 8px; }
.card-plain p, .card-start p { color: var(--body-strong); }

/* ---------- Chi sono ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.portrait { position: relative; }
.glow-portrait { left: 50%; bottom: -260px; width: 500px; height: 500px; transform: translateX(-50%); opacity: .6; }
.ph { background: var(--ui); border: 1px solid var(--border); color: var(--body); display: grid; place-items: center; text-align: center; padding: 24px; font-size: var(--fs-s); font-weight: 500; border-radius: 24px; aspect-ratio: 4 / 3; }
.ph-portrait { position: relative; aspect-ratio: 4 / 5; }
.portrait-img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; border: 1px solid var(--border); }
.about-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.about-text .badge { align-self: flex-start; }
.about-text h2 { font-size: var(--fs-h2); }
@media (max-width: 809px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .ph-portrait, .portrait-img { max-width: 420px; } }

/* ---------- Il problema ---------- */
.problem h2 { text-align: center; max-width: 960px; margin: 0 auto 64px; }

/* ---------- Servizi (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.service p { color: var(--body-strong); max-width: 480px; }
.service-wide { grid-column: 1 / -1; }
.num { font-size: var(--fs-m); font-weight: 600; color: var(--viola-hover); letter-spacing: -0.02em; }
.services-link { text-align: center; margin-top: 32px; }
@media (max-width: 809px) { .bento { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Da dove parti tu ---------- */
.card-start { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 16px; padding: 32px; }
.pill { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: var(--fs-xs); font-weight: 500; color: var(--heading); }
.card-link { margin-top: auto; }

/* ---------- Come lavoro ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--border); }
.step { position: relative; }
.step-num { display: block; font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--viola); background: var(--bg); width: fit-content; padding-right: 20px; margin-bottom: 24px; }
.step h3 { margin-bottom: 12px; }
.method-note { margin: 64px 0 32px; font-size: var(--fs-l); color: var(--heading); max-width: 640px; }
@media (max-width: 809px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; } .steps::before { display: none; } .method-note { margin: 48px 0 24px; } }

/* ---------- Lavori ---------- */
.work { padding: 0 0 32px; display: flex; flex-direction: column; text-align: left; }
.work:hover { background: var(--dark-300); }
.work .carousel { padding: 16px 16px 0; }
.work-info { padding: 24px 24px 0; }
.work-type { font-size: var(--fs-xs); font-weight: 500; color: var(--viola-chiaro); }
.work-info h3 { margin: 4px 0 12px; }
.work-info p { color: var(--body-strong); }
.work-info .work-type { color: var(--viola-chiaro); }
.work-did { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: var(--fs-s); }
.work-did strong { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--body); margin-bottom: 4px; }
.carousel-viewport { overflow: hidden; border-radius: 16px; }
.carousel-track { display: flex; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.slide { flex: 0 0 100%; min-width: 0; }
.slide .ph { border-radius: 0; border: 0; background: var(--bg-2); }
.carousel-ui { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.carousel-dots { display: flex; }
.carousel-dot { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.carousel-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--border); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.carousel-dot[aria-current="true"]::before { background: var(--dorato); box-shadow: none; }
.carousel-pause { min-height: 44px; background: none; border: 0; padding: 0 4px; font-size: var(--fs-xs); font-weight: 500; color: var(--body-strong); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.carousel-pause:hover { color: #fff; }

/* ---------- Contatti ---------- */
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 64px 48px; align-items: start; }
.contact-card:hover { background: var(--ui); }
.contact-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact-text .badge { align-self: flex-start; }
.contact-text h2 { font-size: var(--fs-h2); }
.form-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 24px; padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: var(--fs-s); font-weight: 500; color: var(--heading); margin-bottom: 8px; }
.field .optional { font-weight: 400; color: var(--body); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-s); letter-spacing: -0.02em; color: #fff;
  background: var(--input); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-height: 48px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--body); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--viola); box-shadow: 0 0 0 3px rgba(98, 103, 254, .25); }
.field [aria-invalid="true"] { border-color: var(--errore); }
.field-error { margin-top: 6px; font-size: var(--fs-xs); font-weight: 500; color: var(--errore); }
.field-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 20px; min-height: 65px; }
.form-note { font-size: var(--fs-xs); margin-bottom: 20px; }
.form-note a { color: #fff; text-underline-offset: 3px; }
.form-submit { width: 100%; min-height: 48px; }
.form-error { font-size: var(--fs-s); font-weight: 500; color: var(--errore); margin-bottom: 16px; }
.form-error a { color: var(--errore); }
.form-done { font-size: var(--fs-l); line-height: 1.45; color: var(--heading); }
.form-done:focus { outline: none; }
@media (max-width: 1199px) { .contact-card { gap: 40px; padding: 48px 32px; } }
@media (max-width: 809px) { .contact-card { grid-template-columns: minmax(0, 1fr); padding: 40px 20px; } .form-box { padding: 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--border); padding: 64px var(--px) 56px; }
.footer-logo { height: 32px; width: auto; }
.footer-data { margin-top: 24px; font-size: var(--fs-xs); color: var(--body); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; font-size: var(--fs-xs); }
.footer-links a, .link-btn { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); text-underline-offset: 4px; }
.footer-links a:hover, .link-btn:hover { color: #fff; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; text-decoration: underline; }

/* ---------- Torna su ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ui); color: #fff; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; transition: background-color .2s ease; }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--dark-300); }
@media (max-width: 809px) { .to-top { right: 16px; bottom: 16px; } }

/* ---------- Comparsa allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: var(--reveal-delay, 0s); }
.reveal.reveal-in { opacity: 1; transform: none; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow span { animation: none; }
  .glow-hero { animation: none; opacity: .55; }
  .carousel-track { transition: none; }
  .btn, .card { transition: none; }
  .reveal { transform: none; transition: opacity .5s ease-out; transition-delay: var(--reveal-delay, 0s); }
}

/* ---------- Stampa ---------- */
@media print {
  .site-header, .menu-toggle, .nav, .glow, .skip-link, .cookie-banner, .form-box, .btn, .to-top, .carousel-ui { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  h1, h2, h3, .badge, .card, .lead { color: #000 !important; background: none !important; }
  em.hl { color: #000; }
  .statement-word { display: none; }
  .hero { padding-top: 24px; }
}

/* ---------- Ritocchi responsive ---------- */
.about { overflow-x: clip; }
.logo { min-height: 44px; }
.cf-turnstile { max-width: 100%; overflow: hidden; }
@media (max-width: 809px) {
  .badge { text-align: left; }
  .hero-body .badge { align-items: flex-start; }
  .contact-card { padding: 28px 12px; }
  .form-box { padding: 20px 16px; }
}

/* ---------- Banner cookie ---------- */
.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 1500; width: min(480px, calc(100% - 48px)); background: var(--ui); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.cookie-banner:focus { outline: none; }
.cookie-banner:focus-visible { outline: 2px solid var(--viola-chiaro); outline-offset: 2px; }
.cookie-title { color: var(--heading); font-weight: 600; font-size: var(--fs-s); margin-bottom: 8px; padding-right: 40px; }
.cookie-text { font-size: var(--fs-xs); color: var(--body-strong); }
.cookie-text a { color: #fff; text-underline-offset: 3px; }
.cookie-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 12px; color: var(--body-strong); cursor: pointer; }
.cookie-close:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { flex: 1 1 0; min-width: 110px; min-height: 44px; }
.cookie-custom { min-height: 44px; padding: 0 8px; background: none; border: 0; color: var(--body-strong); font-size: var(--fs-xs); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cookie-custom:hover { color: #fff; }
.cookie-panel { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cookie-panel[hidden] { display: none; }
.cookie-switch { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 44px; height: 28px; margin: 0; cursor: pointer; }
.cookie-track { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--input); border: 1px solid var(--border); transition: background-color .2s ease; }
.cookie-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cookie-switch input:checked + .cookie-track { background: var(--viola); }
.cookie-switch input:checked + .cookie-track::after { transform: translateX(18px); }
.cookie-switch input:focus-visible + .cookie-track { outline: 2px solid var(--viola-chiaro); outline-offset: 3px; }
.cookie-switch-text { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); color: var(--body-strong); }
.cookie-switch-text strong { color: var(--heading); font-weight: 600; }
body.cookie-open .to-top { display: none; }
@media (max-width: 809px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px 16px; } }
@media (prefers-reduced-motion: reduce) { .cookie-track, .cookie-track::after { transition: none; } }

/* ---------- Raccordo morbido tra hero e fascia (niente stacco netto) ---------- */
.section-first { overflow: visible; overflow-x: clip; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, transparent, #000); }
.statement-inner { z-index: 3; }
input, textarea, select { font-family: inherit; }
@media (max-width: 809px) { .badge-dot { margin-top: 0; } .hero-body .badge { align-items: center; } }

/* ---------- Pagine legali e 404 ---------- */
.legal-main { padding: 140px var(--px) 96px; min-height: 70vh; }
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 8px; }
.legal h2 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin: 48px 0 12px; }
.legal p, .legal li { font-size: var(--fs-m); color: var(--body-strong); margin-bottom: 16px; }
.legal ul { list-style: disc; padding-left: 24px; }
.legal a, .link-btn-inline { color: #fff; text-underline-offset: 4px; }
.legal-date { font-size: var(--fs-xs) !important; color: var(--body) !important; margin-bottom: 32px !important; }
.legal-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; margin: 16px 0 24px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--body-strong); }
.legal-table th { color: var(--heading); font-weight: 600; }
.legal-table tr:last-child td { border-bottom: 0; }
.link-btn-inline { display: inline; min-height: 0; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.notfound { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 48px; }
