/* EventPass — pagine pubbliche, scanner, area partner */

@font-face { font-family: "Shippori Mincho"; font-weight: 500; font-display: swap;
  src: url("fonts/shippori-mincho-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Shippori Mincho"; font-weight: 700; font-display: swap;
  src: url("fonts/shippori-mincho-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap;
  src: url("fonts/zen-kaku-gothic-new-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-display: swap;
  src: url("fonts/zen-kaku-gothic-new-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-display: swap;
  src: url("fonts/zen-kaku-gothic-new-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #F3F4F1;
  --card: #FFFFFF;
  --ink: #1C2230;
  --indigo: #2B3A55;
  --muted: #5E6573;
  --line: #D8DBD5;
  --field: #C4C9C1;
  --sun: #BC002D;
  --ok: #2E6A4F;
  --warn: #8C5E0C;
  --err: #A3271F;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: .005em; }
[hidden] { display: none !important; }

/* ---------- Testata ---------- */
.site-head {
  max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: relative; z-index: 2;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { max-height: 48px; width: auto; }
.brand-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.site-dates { margin: 0; color: var(--muted); font-size: .95rem; }

main { display: block; }

/* ---------- Hero con il sole ---------- */
.hero {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) 1.5rem clamp(2.5rem, 6vw, 4.5rem);
  overflow: visible;
}
.sun {
  position: absolute; z-index: 0;
  width: clamp(220px, 40vw, 460px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sun);
  right: clamp(-90px, -4vw, 0px); top: clamp(.5rem, 3vw, 2rem);
  animation: sunrise 1.6s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes sunrise {
  from { transform: translateY(18%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.hero-text { position: relative; z-index: 1; max-width: 40rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  max-width: 12ch;
  text-wrap: balance;
}
.tagline { font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin: 1rem 0 0; max-width: 32ch; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2.25rem 0 0; }
.facts div { min-width: 9rem; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: .15rem 0 0; font-weight: 500; max-width: 28ch; }
.desc { margin-top: 1.5rem; max-width: 60ch; color: var(--indigo); }

/* ---------- Registrazione ---------- */
.register {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem clamp(3rem, 7vw, 5rem);
  display: grid; gap: 2rem;
}
@media (min-width: 900px) {
  .register { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 4rem; align-items: start; }
  .register-intro { position: sticky; top: 2rem; }
}
.register-intro h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 16ch; }
.register-intro p { color: var(--muted); max-width: 42ch; }
.onsite-note, .closed-note {
  border-left: 3px solid var(--sun); padding: .5rem 0 .5rem 1rem; color: var(--ink) !important; font-weight: 500;
}

.reg-form {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.field { display: block; margin-bottom: 1.1rem; }
.field label, .field .lbl { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .35rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--field); border-radius: 4px;
  transition: border-color .15s;
}
input:hover, select:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
input[aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: .9rem; margin: .35rem 0 0; }
.form-alert { background: #FBEDEB; color: var(--err); padding: .75rem 1rem; border-radius: 4px; margin: 0 0 1.25rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.optional { margin: .25rem 0 1.25rem; }
.optional summary { cursor: pointer; color: var(--indigo); font-weight: 500; padding: .35rem 0; }
.optional[open] summary { margin-bottom: .75rem; }

.family { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0 0; padding: 1.25rem 0 0; }
.family legend { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; padding: 0 .5rem 0 0; }
.hint { color: var(--muted); font-size: .95rem; margin: .25rem 0 1rem; }
.family-row {
  display: grid; gap: 0 .75rem; padding: 1rem; margin-bottom: .75rem;
  background: var(--paper); border-radius: 4px;
}
@media (min-width: 640px) { .family-row { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } }
.family-row .field { margin-bottom: .6rem; }

.consents { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .1rem; flex: none; accent-color: var(--ink); }
.check a { margin-left: .25rem; }
.optional-tag { font-style: normal; color: var(--muted); font-size: .85rem; margin-left: .25rem; }

/* ---------- Pulsanti ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.6rem; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; border: 1px solid var(--ink); width: 100%; margin-top: .5rem; }
.btn-primary:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-small { min-height: 42px; padding: .55rem 1.2rem; width: auto; margin-top: 0; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--field); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-link { background: none; border: 0; padding: .4rem 0; color: var(--indigo); font: 500 .95rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Fascia convenzioni ---------- */
.perks {
  max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
}
.perks h2 { font-size: 1.35rem; }
.perks-intro { color: var(--muted); margin: .4rem 0 1.5rem; max-width: 60ch; font-size: .95rem; }
.perk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.perk { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; background: var(--paper); }
.perk img { width: 52px; height: 52px; object-fit: contain; flex: none; background: #fff; border-radius: 50%; padding: 6px; }
.perk-discount { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--sun); margin: 0; line-height: 1.1; }
.perk-title { margin: .1rem 0 0; font-weight: 500; line-height: 1.35; }
.perk-partner { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }
.perk-partner a { color: inherit; }

/* ---------- Grazie ---------- */
.thanks { position: relative; max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 1.5rem 4rem; }
.sun-small { width: 120px; right: auto; left: 1.5rem; top: clamp(1rem, 4vw, 2.5rem); opacity: .95; }
.thanks h1 { position: relative; font-size: clamp(2rem, 5vw, 3rem); margin-top: 5.5rem; }
.lead { font-size: 1.15rem; max-width: 46ch; }
.steps { padding-left: 1.25rem; margin: 1.5rem 0; }
.steps li { margin-bottom: .5rem; padding-left: .25rem; }

/* ---------- Pass ---------- */
.pass-page { max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.5rem 2.5rem; }
.pass-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.banner-ok, .banner-info { padding: .9rem 1.1rem; border-radius: 4px; font-weight: 500; margin: 0 0 1.5rem; }
.banner-ok { background: #E4F0E9; color: var(--ok); }
.banner-info { background: #E7EAF0; color: var(--indigo); }
.pass-list { display: grid; gap: 1.25rem; margin: 2rem 0 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pass-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem; text-align: center;
}
.pass-event { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.pass-qr { position: relative; display: grid; place-items: center; margin: 1.25rem auto 1rem; width: 236px; height: 236px; }
.pass-sun { position: absolute; inset: 0; border-radius: 50%; background: var(--sun); }
.pass-qr .qr { position: relative; width: 168px; height: 168px; background: #fff; padding: 4px; border-radius: 4px; }
.qr svg { display: block; width: 100%; height: 100%; }
.pass-name { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin: .25rem 0 0; }
.pass-code { color: var(--muted); margin: .2rem 0 1rem; font-size: .95rem; }
.pass-code span { color: var(--ink); font-weight: 700; letter-spacing: .12em; }

/* ---------- Coupon ---------- */
.coupons { max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.5rem 4rem; border-top: 1px solid var(--line); }
.coupons h2 { font-size: 1.6rem; }
.coupon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.coupon { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; }
.coupon-head { display: flex; gap: 1rem; align-items: center; }
.coupon-head img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.coupon-desc { color: var(--indigo); font-size: .95rem; margin: .75rem 0 0; }
.coupon form { margin-top: 1rem; }
.coupon-status { color: var(--muted); font-size: .95rem; margin: 1rem 0 0; }
.coupon-locked .perk-discount, .coupon-sold_out .perk-discount, .coupon-used .perk-discount { color: var(--muted); }
.coupon-ticket { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--field); }
.qr-small { width: 112px; height: 112px; flex: none; }
.coupon-code { font-weight: 700; font-size: 1.25rem; letter-spacing: .1em; margin: 0; }
.coupon-valid { color: var(--muted); font-size: .9rem; margin: .15rem 0 .25rem; }
.coupon-terms { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.coupon-terms summary { cursor: pointer; color: var(--indigo); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--card); }
.foot-group, .foot-meta { max-width: var(--wrap); margin: 0 auto; padding: 1.75rem 1.5rem 0; }
.foot-group h2 { font-family: var(--sans); font-weight: 500; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; }
.logo-row img { max-height: 44px; max-width: 160px; width: auto; display: block; }
.logo-row a { display: block; }
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.foot-meta { padding-bottom: 2rem; color: var(--muted); font-size: .9rem; }
.foot-meta p { margin: .3rem 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot-group + .foot-meta { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.foot-note { max-width: 70ch; }

/* ---------- Pagine strumento (login scanner/partner) ---------- */
.tool-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.tool-box { width: 100%; max-width: 26rem; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2rem; }
.tool-event { margin: 0 0 .25rem; color: var(--muted); font-size: .95rem; }
.tool-box h1 { font-size: 1.8rem; margin-bottom: 1.25rem; }

/* ---------- Scanner e area partner ---------- */
.scanner-page { background: var(--ink); color: #fff; min-height: 100vh; }
.scanner-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.scanner-gate { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.scanner-count { margin: .1rem 0 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.scanner-count strong { color: #fff; }
.btn-link.light, .btn-ghost.light { color: #fff; }
.btn-ghost.light { border-color: rgba(255,255,255,.35); width: 100%; }
.scanner-main { max-width: 30rem; margin: 0 auto; padding: 1.25rem; display: grid; gap: 1.25rem; }
.camera { position: relative; aspect-ratio: 1; background: #0E121A; border-radius: 10px; overflow: hidden; }
.camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera-frame { position: absolute; inset: 16%; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.camera-msg { position: absolute; inset: auto 0 0 0; margin: 0; padding: .75rem; text-align: center; font-size: .9rem; background: rgba(0,0,0,.45); }
.result { border-radius: 10px; padding: 1.25rem 1.25rem 1.1rem; text-align: center; }
.result.ok { background: #2E8A5E; }
.result.repeat { background: #B7791F; }
.result.error { background: var(--err); }
.result-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.8rem; }
.result-name { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 700; }
.result-msg { margin: .25rem 0 0; }
.manual label { display: block; font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: .4rem; }
.manual-row { display: flex; gap: .5rem; }
.manual-row input { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.manual .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.partner-summary { background: rgba(255,255,255,.06); border-radius: 10px; padding: 1rem 1.25rem; }
.partner-summary h2 { font-size: 1.05rem; margin: .5rem 0 .75rem; }
.partner-summary table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.partner-summary th, .partner-summary td { text-align: left; padding: .4rem .25rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.partner-summary th:not(:first-child), .partner-summary td:not(:first-child) { text-align: right; }
.recent { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.recent li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.recent span { letter-spacing: .08em; font-weight: 700; }

/* ---------- Errori ---------- */
.page-error { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.error-box { text-align: center; max-width: 30rem; }
.error-code { font-family: var(--serif); font-weight: 700; font-size: 4rem; margin: 0; color: var(--sun); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-head, .site-foot, .coupons, .btn-ghost, .hint, .lead { display: none !important; }
  body { background: #fff; }
  .pass-card { break-inside: avoid; border: 1px solid #999; }
}

/* ---------- Scelta degli eventi figli ---------- */
.choices { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0 0; padding: 1.25rem 0 0; }
.choices legend { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; padding: 0 .5rem 0 0; }
.choice {
  display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; margin-bottom: .6rem;
  border: 1px solid var(--field); border-radius: 6px; cursor: pointer; background: #fff;
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: #F7F8F6; box-shadow: inset 4px 0 0 var(--sun); }
.choice input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--ink); }
.choice.is-closed { opacity: .55; cursor: not-allowed; }
.choice-body { display: flex; flex-direction: column; gap: .1rem; }
.choice-name { font-weight: 700; }
.choice-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.choice-status { color: var(--indigo); font-size: .9rem; font-weight: 500; margin: 0; }
.choices.has-error .choice { border-color: var(--err); }

/* ---------- Prenotazioni nell'area personale ---------- */
.events-block { max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.5rem 2.5rem; border-top: 1px solid var(--line); }
.events-block h2 { font-size: 1.6rem; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.event-item { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; }
.event-item .event-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.event-item h3 { font-size: 1.25rem; }
.event-form { margin-top: 1rem; }
.member-list { list-style: none; margin: 0 0 .75rem; padding: 0; }
.member-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding: .5rem 0; }
.member-list .check { margin: 0; }
.member-status { font-size: .85rem; font-weight: 700; white-space: nowrap; margin: 0; }
.status-confirmed { color: var(--ok); }
.status-waitlist { color: var(--warn); }
.status-none { color: var(--muted); font-weight: 400; }
.event-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.booking-msgs { list-style: none; padding: 0; margin: 1.25rem 0; }
.booking-msgs li { padding: .7rem 1rem; border-radius: 4px; margin-bottom: .5rem; font-weight: 500; }
.booking-confirmed { background: #E4F0E9; color: var(--ok); }
.booking-waitlist { background: #F6EEDC; color: var(--warn); }
.booking-closed { background: #E7EAF0; color: var(--indigo); }

/* ---------- Totem ---------- */
.kiosk { font-size: 1.2rem; }
.kiosk-head { display: flex; gap: 1rem; align-items: center; padding: 1.25rem 2rem; background: var(--card); border-bottom: 1px solid var(--line); }
.kiosk-head .brand-mark { width: 28px; height: 28px; }
.kiosk-event { margin: 0; color: var(--muted); font-size: 1rem; }
.kiosk-head h1 { font-size: 1.8rem; }
.kiosk-main { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.kiosk-intro { font-size: 1.25rem; margin: 0 0 1.25rem; }
.kiosk input:not([type="checkbox"]):not([type="radio"]), .kiosk select { min-height: 60px; font-size: 1.2rem; }
.kiosk .btn-primary { min-height: 64px; font-size: 1.2rem; }
.kiosk .check input { width: 26px; height: 26px; }
.kiosk-result { font-size: 1.3rem; color: #fff; margin: 0 0 1.5rem; }
.kiosk .pass-card .result-label { font-family: var(--sans); font-size: 1.1rem; }
.result-label.status-ok { color: var(--ok); }
.result-label.status-repeat { color: var(--warn); }
.result-label.status-error { color: var(--err); }
.kiosk-reset { text-align: center; }
.kiosk-staff { margin-top: 3rem; color: var(--muted); font-size: .9rem; }
.kiosk-staff summary { cursor: pointer; }
.kiosk-staff .manual-row { margin-top: .75rem; }
.kiosk-staff input { min-height: 44px !important; font-size: 1rem !important; }
.scanner-page select { color: var(--ink); }

/* Pagina dedicata a un evento figlio */
.landing-tag { display: inline-block; margin: 0 0 1rem; padding: .35rem .9rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem; }

/* ---------- Logo dell'evento nella testata della pagina ---------- */
.brand img { max-height: 56px; }
.hero.has-logo { display: grid; gap: 1.5rem; align-items: center; }
.hero-logo {
  display: grid; place-items: center; width: 100%; max-width: 280px; justify-self: center;
  aspect-ratio: 1; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--line);
  padding: 12%; animation: sunrise 1.6s cubic-bezier(.2, .7, .1, 1) both;
}
.hero-logo img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero.has-logo { grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 3rem; }
  .hero.has-logo .hero-text { grid-row: 1; grid-column: 1; }
  .hero-logo { grid-row: 1; grid-column: 2; max-width: 440px; }
}

/* ---------- Sesso e anno di nascita nel modulo ---------- */
select { appearance: auto; }
.gender { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.gender legend { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .35rem; padding: 0; }
.gender-opts { display: flex; gap: .5rem; }
.pick { flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .5rem .75rem;
  border: 1px solid var(--field); border-radius: 4px; background: #fff; cursor: pointer; font-weight: 500; }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
@media (min-width: 640px) { .family-row { grid-template-columns: 1fr 1fr 7rem 7rem auto; } }
