/* ==========================================================================
   GP Studio — foglio di stile unico
   Token e componenti ripresi dal design hi-fi "GP Studio v2".
   Nessuna media query: il layout è fluido (grid auto-fit + clamp).
   ========================================================================== */

:root {
  /* colori */
  --ink: #14161c;
  --txt: #3b4150;
  --txt-2: #5c6376;
  --muted: #8b93a3;
  --brand: #2b3a8f;
  --brand-dark: #1f2a63;
  --brand-light: #eef0f8;
  --brand-hover: #eaedf8;
  --green: #1d7a5f;
  --whatsapp: #25d366;
  --whatsapp-ink: #06331b;
  --err: #b3261e;
  --err-bg: #fdf1f0;
  --err-ink: #8c1d18;
  --surface: #ffffff;
  --body: #fbfbfd;
  --tint: #f4f6fc;
  --tint-2: #f6f7fb;
  --bd: rgba(31, 42, 99, .07);
  --bd-soft: #eceff5;
  --bd-strong: #c8cede;
  --bd-input: rgba(31, 42, 99, .16);

  /* gradienti */
  --grad-btn: linear-gradient(135deg, #2f3f99 0%, #1f2a63 100%);
  --grad-banner: linear-gradient(135deg, #2b3a8f 0%, #1a2352 100%);
  --grad-hero: radial-gradient(120% 90% at 85% 0%, #eaeefb 0%, #fbfbfd 55%, #fbfbfd 100%);

  /* ombre */
  --sh-sm: 0 22px 50px -34px rgba(31, 42, 99, .45);
  --sh-md: 0 26px 60px -34px rgba(31, 42, 99, .5);
  --sh-lg: 0 40px 80px -40px rgba(31, 42, 99, .5);
  --sh-hover: 0 40px 70px -30px rgba(31, 42, 99, .5);
  --sh-btn: 0 14px 30px -14px rgba(31, 42, 99, .6);
  --sh-btn-hover: 0 22px 40px -16px rgba(31, 42, 99, .55);

  /* raggi */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-3xl: 32px;
  --pill: 999px;

  /* movimento */
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* misure */
  --container: 1180px;
  --gutter: 24px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--body);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* opzione accessibilità: testo più grande */
body.testo-grande { font-size: 20px; }

h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, sans-serif;
  margin: 0;
  letter-spacing: -.01em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--brand-dark); }

input, select, textarea, button { font-family: inherit; font-size: 17px; color: inherit; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(43, 58, 143, .1);
}
::placeholder { color: var(--muted); }

main { flex: 1; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute; 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: 12px; top: -60px; z-index: 60;
  background: var(--surface); color: var(--brand); font-weight: 700;
  padding: 12px 18px; border-radius: var(--r-sm); box-shadow: var(--sh-md);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Animazioni
   -------------------------------------------------------------------------- */
@keyframes rise  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-40px, 30px, 0) scale(1.12); } }

.rise      { animation: rise .8s var(--ease) both; }
.rise--d1  { animation-delay: .08s; }
.rise--d2  { animation-delay: .16s; }
.rise--d3  { animation-delay: .24s; }
.rise--d4  { animation-delay: .32s; }

/* elementi rivelati allo scroll: nascosti solo se JS è attivo */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-visible { animation: rise .85s var(--ease) both; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Topbar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--brand-dark);
  color: #dfe4f2;
  font-size: 15px;
}
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  align-items: center; justify-content: space-between;
  padding-top: 9px; padding-bottom: 9px;
}
.topbar__group { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.topbar__sep { color: #8f9bc7; }
.topbar__contatti { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.topbar__tel {
  display: inline-flex; align-items: center; gap: 10px;
}
.topbar__tel a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar__mail { color: #dfe4f2; text-decoration: none; }
.topbar__mail:hover { color: #fff; }

.wa-badge {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: var(--whatsapp); color: var(--whatsapp-ink);
  font-weight: 700; font-size: 14px;
  padding: 4px 11px 4px 8px; border-radius: var(--pill);
}
.wa-badge:hover { color: var(--whatsapp-ink); filter: brightness(1.06); }
.wa-badge svg { width: 16px; height: 16px; display: block; }
.wa-badge--lg { font-size: 15px; padding: 6px 14px 6px 10px; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(31, 42, 99, .08);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.site-header__logo { display: flex; align-items: center; text-decoration: none; }
.site-header__logo img { height: 46px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav__link {
  padding: 10px 14px; border-radius: var(--pill);
  text-decoration: none; font-weight: 600; color: var(--ink);
  background: transparent;
  transition: background .25s, color .25s;
}
.nav__link:hover { background: var(--brand-hover); color: var(--brand); }
.nav__link[aria-current="page"] { color: var(--brand); background: var(--brand-light); }
.nav .btn { margin-left: 10px; }

/* --------------------------------------------------------------------------
   Bottoni
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; text-align: center;
  border: none; cursor: pointer;
  font-weight: 700; font-family: 'Poppins', system-ui, sans-serif;
  padding: 13px 22px; border-radius: var(--pill);
  transition: transform .3s var(--ease), box-shadow .3s, background .25s, border-color .25s;
  min-height: 44px;
}
.btn:hover { transform: translateY(-3px); }

.btn--primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: var(--sh-btn);
}
.btn--primary:hover { color: #fff; box-shadow: var(--sh-btn-hover); }

.btn--outline {
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--bd-strong);
}
.btn--outline:hover {
  color: var(--ink); border-color: var(--brand);
  box-shadow: 0 18px 34px -20px rgba(31, 42, 99, .5);
}

.btn--white { background: #fff; color: var(--brand-dark); }
.btn--white:hover { background: #e7eaf6; color: var(--brand-dark); box-shadow: 0 22px 40px -18px rgba(0,0,0,.45); }

.btn--lg { padding: 18px 30px; font-size: 19px; }
.btn--sm { padding: 12px 20px; }

.link-arrow {
  margin-top: auto; padding-top: 24px;
  background: none; border: none; text-align: left;
  color: var(--brand); font-weight: 700;
  font-family: 'Poppins', system-ui, sans-serif;
  text-decoration: none; align-self: flex-start;
}
.link-arrow:hover { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   Griglie e card
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr));
  gap: var(--gap, 26px);
  align-items: start;
}

.card {
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  background: var(--surface);
  padding: 26px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card--xl { border-radius: var(--r-xl); box-shadow: var(--sh-md); padding: 30px; }
.card--hover:hover { transform: translateY(-8px); box-shadow: var(--sh-hover); }
.card__title { font-size: 21px; font-weight: 600; }
.card__text { margin-top: 10px; color: var(--txt-2); }

.tile {
  display: block; width: 44px; height: 44px; border-radius: var(--r-md);
  box-shadow: 0 14px 26px -12px rgba(43, 58, 143, .8);
}
.tile--caf { background: linear-gradient(140deg, #3a4bb0, #1f2a63); }
.tile--patronato { background: linear-gradient(140deg, #24956f, #145c47); box-shadow: 0 14px 26px -12px rgba(29, 122, 95, .8); }
.tile--immigrazione { background: linear-gradient(140deg, #2b3a8f, #131a3f); box-shadow: 0 14px 26px -12px rgba(19, 26, 63, .8); }

.list-sep { display: grid; gap: 10px; }
.list-sep li { border-top: 1px solid var(--bd-soft); padding-top: 10px; }

.eyebrow {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600; font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--pill {
  display: inline-block;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(31, 42, 99, .1);
  box-shadow: 0 10px 24px -18px rgba(31, 42, 99, .6);
  padding: 9px 16px; border-radius: var(--pill);
  margin-bottom: 18px;
}

.sezione { padding-top: 84px; padding-bottom: 84px; }
.sezione--stretta { padding-top: 60px; padding-bottom: 84px; }

.titolo-sezione { font-size: clamp(28px, 3vw, 36px); font-weight: 700; }
.titolo-pagina { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; line-height: 1.15; margin-top: 16px; }
.sottotitolo { margin-top: 14px; font-size: 20px; color: var(--txt); max-width: 40em; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); }
.hero__orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero__orb--1 {
  top: -140px; right: -80px; width: 460px; height: 460px;
  background: radial-gradient(circle at 30% 30%, rgba(43, 58, 143, .22), rgba(43, 58, 143, 0) 70%);
  animation: drift 18s ease-in-out infinite;
}
.hero__orb--2 {
  bottom: -180px; left: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle at 60% 40%, rgba(29, 122, 95, .16), rgba(29, 122, 95, 0) 70%);
  animation: drift 24s ease-in-out infinite reverse;
}
.hero__inner {
  position: relative;
  padding-top: 92px; padding-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px; align-items: start;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; font-weight: 700; max-width: 15em; }
.hero__testo { margin-top: 22px; font-size: 21px; line-height: 1.55; max-width: 34em; color: var(--txt); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__nota { margin-top: 20px; color: var(--txt-2); font-size: 17px; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 34px 32px 28px;
  animation: rise .9s var(--ease) .3s both, floaty 7s ease-in-out 1.2s infinite;
}
.hero-card h2 { font-size: 22px; font-weight: 600; }
.passi { margin-top: 20px; display: grid; gap: 20px; }
.passi li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.passi__n {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, #e6eafa, #d5dcf5);
  color: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hero-card__piede {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid #e9ecf3; color: var(--txt-2); font-size: 16px;
}

.avviso {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  background: var(--brand-light); border: 1px solid rgba(31, 42, 99, .12);
  border-radius: var(--r-md); padding: 14px 18px; margin-top: 26px;
  color: var(--brand-dark); font-size: 17px;
}
.avviso strong { font-family: 'Poppins', system-ui, sans-serif; }

/* --------------------------------------------------------------------------
   Checklist documenti
   -------------------------------------------------------------------------- */
.checklist {
  background: var(--tint-2);
  border: 1px solid #e4e7ee;
  border-radius: var(--r-2xl);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: 0 30px 70px -40px rgba(31, 42, 99, .45);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px; align-items: start;
}
.checklist h2 { font-size: 32px; font-weight: 700; }
.checklist__intro { margin-top: 14px; font-size: 19px; color: var(--txt); }
.checklist__voci { margin-top: 18px; display: grid; gap: 2px; }
.checklist__voci li {
  border-top: 1px solid var(--bd-soft);
  display: grid; grid-template-columns: 8px 1fr; gap: 14px;
  align-items: start; padding: 13px 0;
}
.checklist__punto {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Banner CTA
   -------------------------------------------------------------------------- */
.banner {
  max-width: var(--container); margin: 0 auto 80px;
  border-radius: var(--r-3xl);
  background: var(--grad-banner); color: #fff;
  box-shadow: 0 40px 80px -44px rgba(31, 42, 99, .9);
}
.banner__inner {
  padding: 62px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 30px;
  align-items: center; justify-content: space-between;
}
.banner h2 { font-size: 32px; font-weight: 700; }
.banner p { margin-top: 10px; font-size: 20px; color: #d7dcf0; }

.banner--tint {
  background: var(--tint); color: var(--ink);
  border: 1px solid rgba(31, 42, 99, .06);
  border-radius: var(--r-2xl); box-shadow: none;
  margin-bottom: 70px;
}
.banner--tint .banner__inner { padding: 54px var(--gutter); gap: 26px; }
.banner--tint h2 { font-size: 28px; }
.banner--tint p { color: var(--txt); font-size: 19px; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Blocchi Servizi
   -------------------------------------------------------------------------- */
.page-header { position: relative; overflow: hidden; background: radial-gradient(110% 90% at 90% 0%, #eaeefb 0%, #fbfbfd 60%); }
.page-header__inner { padding-top: 74px; padding-bottom: 66px; }

.servizio { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.servizio__testa { flex: 0 1 240px; min-width: 200px; }
.servizio__testa h2 { margin-top: 20px; font-size: 32px; font-weight: 700; }
.servizio__testa p { margin-top: 10px; color: var(--txt-2); }
.servizio__schede {
  flex: 1 1 520px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.form {
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  background: var(--surface);
  padding: 34px;
  display: grid; gap: 26px;
}
.form fieldset { border: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.form fieldset + fieldset { border-top: 1px solid var(--bd-soft); padding-top: 24px; }
.form legend {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600; font-size: 20px; padding: 0 0 6px;
}
.campo { display: grid; gap: 8px; font-weight: 600; }
.campo--2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.obbl { color: var(--err); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="password"],
.form select,
.form textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--bd-input);
  border-radius: var(--r-md);
  background: var(--surface);
  font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  min-height: 46px;
}
.form select { padding: 14px; }
.form textarea { resize: vertical; }

.select-standalone {
  margin-top: 8px; width: 100%;
  padding: 14px; border: 1.5px solid var(--bd-input);
  border-radius: var(--r-md); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  min-height: 46px;
}

.fasce { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.fascia-btn {
  position: relative;
  padding: 16px; border-radius: var(--r-sm); cursor: pointer;
  text-align: left; font-weight: 700;
  border: 1.5px solid var(--bd-strong);
  background: var(--surface); color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
  min-height: 44px;
}
/* Il radio copre l'intera etichetta: resta focalizzabile e cliccabile ovunque,
   ma non è visibile (l'aspetto "bottone" è dato dall'etichetta). */
.fascia-btn input[type="radio"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.fascia-btn span { font-weight: 400; font-size: 16px; display: block; }
.fascia-btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
/* stato selezionato anche senza JavaScript */
.fascia-btn:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
/* il radio è visivamente nascosto: il focus va mostrato sull'etichetta */
.fascia-btn:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

.consensi { border-top: 1px solid var(--bd-soft); padding-top: 24px; display: grid; gap: 14px; }
.consenso { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.consenso input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--brand); }

.alert {
  border-radius: var(--r-sm); padding: 14px 16px; font-weight: 600;
}
.alert--errore { background: var(--err-bg); border: 1.5px solid var(--err); color: var(--err-ink); }
.alert--errore ul { margin-top: 8px; display: grid; gap: 4px; list-style: disc; padding-left: 20px; }
.alert--ok { background: #f2f9f6; border: 1.5px solid var(--green); color: #12503c; }

.form__nota { color: var(--txt-2); font-size: 16px; margin: -10px 0 0; }

.esito {
  border: 1.5px solid var(--green);
  background: #f2f9f6;
  border-radius: var(--r-md);
  padding: 36px;
}
.esito__segno {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff;
}
.esito h2 { margin-top: 20px; font-size: 30px; font-weight: 700; }
.esito p { margin-top: 12px; }
.esito__lead { font-size: 19px; color: var(--txt); }
.esito__dettaglio { color: var(--txt-2); }

.aside { display: grid; gap: 20px; }
.aside h3 { font-size: 20px; font-weight: 600; }
.aside .card--tint {
  background: var(--tint);
  border: 1px solid rgba(31, 42, 99, .06);
  box-shadow: none;
}
.riga-orario { display: flex; justify-content: space-between; gap: 16px; }
.riga-orario--chiuso { color: var(--txt-2); }

/* --------------------------------------------------------------------------
   Contatti
   -------------------------------------------------------------------------- */
.mappa { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--bd); box-shadow: var(--sh-sm); background: var(--surface); }
.mappa iframe { display: block; width: 100%; height: 340px; border: 0; }
.mappa__placeholder {
  height: 340px;
  background: repeating-linear-gradient(135deg, #eef0f6 0 12px, #f7f8fb 12px 24px);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.mappa__placeholder span {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; color: #6b7387;
  background: #fff; border: 1px solid #dfe3ea; padding: 10px 14px; border-radius: 6px;
}
/* Mappa con caricamento su clic (consenso preventivo ai cookie di Google) */
.mappa__consenso {
  height: 340px;
  background: repeating-linear-gradient(135deg, #eef0f6 0 12px, #f7f8fb 12px 24px);
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px;
}
.mappa__consenso-testo { font-weight: 600; }
.mappa__nota { font-size: 15px; color: var(--txt-2); max-width: 34em; }
.orari-lista { margin-top: 12px; display: grid; gap: 8px; font-size: 19px; }
.orari-lista li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--bd-soft); padding-bottom: 8px; }
.orari-lista li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   Privacy
   -------------------------------------------------------------------------- */
.prosa { max-width: 820px; margin: 0 auto; }
.prosa__blocchi { margin-top: 40px; display: grid; gap: 30px; font-size: 18px; color: var(--txt); }
.prosa__blocchi h2 { font-size: 23px; font-weight: 600; color: var(--ink); }
.prosa__blocchi p { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Area riservata
   -------------------------------------------------------------------------- */
.login { max-width: 460px; margin: 0 auto; padding: 80px var(--gutter) 100px; }
.login h1 { font-size: 32px; font-weight: 700; }
.login p.sub { margin-top: 10px; color: var(--txt-2); }
.login .form { margin-top: 30px; padding: 30px; gap: 20px; }

.dash__testa {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: baseline; justify-content: space-between;
}
.dash__testa h1 { font-size: 34px; font-weight: 700; }
.dash__testa p { margin-top: 6px; color: var(--txt-2); }

.tabs { margin-top: 28px; display: flex; gap: 6px; border-bottom: 1px solid #e4e7ee; flex-wrap: wrap; }
.tabs a {
  background: none; border: none; border-bottom: 3px solid transparent;
  color: var(--txt-2); padding: 12px 18px; cursor: pointer;
  font-weight: 700; font-family: 'Poppins', system-ui, sans-serif;
  text-decoration: none;
}
.tabs a:hover { color: var(--brand); }
.tabs a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }

.kpi { padding: 20px 22px; }
.kpi p { color: var(--txt-2); }
.kpi strong {
  display: block; font-family: 'Poppins', system-ui, sans-serif;
  font-size: 30px; font-weight: 700; margin-top: 4px; color: var(--ink);
}

.tabella {
  margin-top: 26px;
  border: 1px solid var(--bd); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); background: var(--surface);
  overflow-x: auto;
}
.tabella__riga {
  display: grid; grid-template-columns: 1.3fr 1.4fr 1fr .9fr 1.3fr;
  gap: 16px; min-width: 900px; padding: 16px 22px;
  border-bottom: 1px solid #f0f2f7; align-items: center;
}
.tabella__riga--testa {
  padding: 14px 22px; background: var(--tint-2);
  border-bottom: 1px solid #e4e7ee;
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600;
  font-size: 15px; color: var(--txt);
}
.tabella__riga:last-child { border-bottom: none; }
.tabella__meta { color: var(--txt-2); font-size: 15px; }

.badge { font-size: 15px; font-weight: 700; padding: 5px 10px; border-radius: var(--pill); white-space: nowrap; }
.badge--confermato { color: #155e45; background: #e6f4ee; }
.badge--nuovo { color: #8a5300; background: #fdf3e2; }
.badge--annullato { color: var(--err-ink); background: var(--err-bg); }

.azioni { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.azione-link {
  background: none; border: none; cursor: pointer;
  color: var(--brand); font-weight: 700; font-size: 15px; text-decoration: underline;
  padding: 4px 0;
}
.azione-link--pericolo { color: var(--err); }

.riga-orari { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr auto; gap: 12px; align-items: center; }
.riga-orari input { padding: 10px 12px; border: 1.5px solid rgba(31, 42, 99, .14); border-radius: 12px; width: 100%; }
.riga-orari label { font-weight: 600; }

.elenco-chiusure { margin-top: 16px; display: grid; gap: 10px; }
.elenco-chiusure li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0f2f7; padding-bottom: 10px; align-items: center; }
.elenco-chiusure li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: #c9cddb;
  margin-top: auto; border-radius: 36px 36px 0 0;
}
.site-footer__grid {
  padding-top: 54px; padding-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 36px;
}
.site-footer h4 {
  font-size: 16px; font-weight: 600; color: #fff;
  letter-spacing: .06em; text-transform: uppercase;
}
.site-footer ul { margin-top: 14px; display: grid; gap: 10px; }
.site-footer a { color: #c9cddb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: 20px; color: #fff; }
.site-footer__brand-sub { margin-top: 4px; color: #9aa1b4; }
.site-footer__claim { margin-top: 16px; }
.site-footer__bar { border-top: 1px solid #2a2d38; }
.site-footer__bar-inner {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; color: var(--muted); font-size: 15px;
}
.site-footer__contatti li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Stampa
   -------------------------------------------------------------------------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card, .form, .hero-card { box-shadow: none; border-color: #ccc; }
}
