/* Caratteri ospitati sul sito: nessuna richiesta a servizi esterni */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("caratteri/schibsted-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("caratteri/schibsted-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("caratteri/hanken-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("caratteri/hanken-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 400; font-display: swap; src: url("caratteri/hanken-grotesk-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 400; font-display: swap; src: url("caratteri/hanken-grotesk-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Layout: banda blu istituzionale (header + apertura) con il logo; sotto, sezioni chiare a colonna ampia, filetti dorati come unico ornamento */
:root {
  --navy: #14213D;        /* blu del logo: sempre blu, in entrambi i temi */
  --navy-2: #1C2D52;
  --gold: #A8741C;        /* oro del logo chiaro */
  --gold-bright: #E0A443; /* oro del logo scuro, sul blu */
  --cream: #F6F3EC;       /* testo chiaro del logo, sul blu */
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --fg: #172036;
  --muted: #56607A;
  --line: #DDE1E9;
  --accent: var(--gold);
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.6vw, 3.9rem);
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1628; --surface: #15203A; --fg: #E9ECF3; --muted: #A3ACC2; --line: #27345A;
    --accent: var(--gold-bright); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1628; --surface: #15203A; --fg: #E9ECF3; --muted: #A3ACC2; --line: #27345A;
  --accent: var(--gold-bright); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.lead { font-size: var(--step-1); color: var(--muted); max-width: 40rem; }

/* Avviso bozza */
.draft {
  background: var(--gold-bright); color: var(--navy);
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; text-align: center;
}
.draft .wrap { padding-block: 0.4rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--navy); color: var(--cream);
  border-bottom: 1px solid rgba(224,164,67,0.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; color: var(--cream); opacity: 0.86; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--gold-bright); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.35rem; border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-gold { background: var(--gold-bright); color: var(--navy); }
.btn-gold:hover { background: #EDB65A; }
.btn-ghost { border-color: rgba(246,243,236,0.45); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.nav .btn { opacity: 1; color: var(--navy); padding: 0.6rem 1.05rem; font-size: 0.95rem; }
.nav .btn:hover { color: var(--navy); }
.menu-toggle { display: none; background: none; border: 1.5px solid rgba(246,243,236,0.45); color: var(--cream); border-radius: 4px; padding: 0.5rem 0.8rem; font: 600 0.95rem var(--font-display); cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid rgba(224,164,67,0.25); }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid rgba(246,243,236,0.1); }
  .nav .btn { margin-top: 0.75rem; border-bottom: 0; }
  .brand img { height: 40px; }
}

/* Apertura */
.hero { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -8rem; top: 50%; transform: translateY(-50%);
  width: 34rem; height: 34rem; max-width: 100%; border-radius: 50%;
  border: 2px dotted rgba(224,164,67,0.28); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding-block: 4.5rem 4rem; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.45fr 1fr; align-items: end; padding-block: 6rem 5rem; } }
.hero .eyebrow { color: var(--gold-bright); }
.hero h1 { font-size: var(--step-4); font-weight: 800; margin-top: 1rem; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p.intro { margin-top: 1.4rem; font-size: var(--step-1); color: rgba(246,243,236,0.82); max-width: 36rem; }
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.offices { display: grid; gap: 1px; background: rgba(224,164,67,0.3); border: 1px solid rgba(224,164,67,0.3); border-radius: 6px; overflow: hidden; }
.office { background: var(--navy-2); padding: 1.3rem 1.4rem; display: grid; gap: 0.3rem; min-width: 0; }
.office h2 { font-size: 1.15rem; font-weight: 700; color: var(--cream); }
.office p { font-size: 0.97rem; color: rgba(246,243,236,0.78); }
.office .since { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); }

/* Sezioni */
section.block { padding-block: 5rem; }
section.block + section.block { border-top: 1px solid var(--line); }
.head { display: grid; gap: 0.8rem; margin-bottom: 2.8rem; }
.head h2 { font-size: var(--step-3); font-weight: 700; }

.values { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.value { border-top: 2px solid var(--accent); padding-top: 1.2rem; display: grid; gap: 0.5rem; }
.value h3 { font-size: var(--step-1); font-weight: 700; }
.value p { color: var(--muted); }

.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area { padding: 1.8rem 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 0.6rem; align-content: start; min-width: 0; background: var(--surface); }
.area h3 { font-size: 1.22rem; font-weight: 700; }
.area p { color: var(--muted); font-size: 1rem; }
.area a { font-family: var(--font-display); font-weight: 600; color: var(--accent); text-decoration: none; font-size: 0.97rem; margin-top: 0.3rem; }
.area a:hover { text-decoration: underline; }

/* Fascia scuola */
.school-band { background: var(--navy); color: var(--cream); }
.school-band .wrap { padding-block: 4.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .school-band .wrap { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.school-band h2 { font-size: var(--step-3); font-weight: 700; margin-top: 0.8rem; }
.school-band .eyebrow { color: var(--gold-bright); }
.school-band p { color: rgba(246,243,236,0.8); margin-top: 1rem; max-width: 34rem; }
.school-band .btn { margin-top: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid rgba(224,164,67,0.45); border-radius: 999px; padding: 0.5rem 1rem; font-family: var(--font-display); font-weight: 500; font-size: 0.97rem; }

/* Team */
.team { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.person { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } }
.portrait {
  width: 7.5rem; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 4px; background: var(--navy);
  display: grid; place-items: center; color: var(--gold-bright); font: 700 1.8rem var(--font-display); position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.studio-photo { margin: 0 0 3rem; }
.studio-photo img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; border-radius: 6px; display: block; }
.studio-photo figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.portrait small { position: absolute; bottom: 0.45rem; left: 0; right: 0; text-align: center; font: 500 0.66rem var(--font-body); color: rgba(246,243,236,0.6); letter-spacing: 0.04em; }
.person-body { display: grid; gap: 0.5rem; min-width: 0; }
.person h3 { font-size: 1.35rem; font-weight: 700; }
.role { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.person p { color: var(--muted); font-size: 1rem; }
.person .where { font-size: 0.92rem; color: var(--fg); }

/* Sentenze */
.rulings { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ruling { display: grid; gap: 0.4rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .ruling { grid-template-columns: 13rem 1fr; } }
.ref { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.ref span { display: block; color: var(--muted); font-weight: 500; }
.ruling h3 { font-size: 1.2rem; font-weight: 700; }
.ruling p { color: var(--muted); font-size: 1rem; margin-top: 0.35rem; }

/* Contatti */
.contact { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.sedi { display: grid; gap: 1.5rem; }
.sede { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; display: grid; gap: 0.35rem; min-width: 0; }
.sede h3 { font-size: 1.2rem; font-weight: 700; }
.sede p { color: var(--muted); font-size: 1rem; }
.sede .reach { color: var(--fg); font-variant-numeric: tabular-nums; word-break: break-word; }
.hours { font-variant-numeric: tabular-nums; }
form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
label { font-family: var(--font-display); font-weight: 600; font-size: 0.93rem; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px; padding: 0.75rem 0.85rem; width: 100%;
}
select:disabled { color: var(--muted); opacity: 0.7; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.row2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.check input { width: auto; margin-top: 0.3rem; accent-color: var(--gold); }
.check a { color: var(--accent); }
.note { font-size: 0.88rem; color: var(--muted); }
.form-ok { border-left: 3px solid var(--accent); padding: 0.8rem 1rem; background: var(--surface); font-size: 0.97rem; }
form .btn-gold { justify-self: start; border: 0; }

/* Pagina scuola */
.page-hero { background: var(--navy); color: var(--cream); }
.page-hero .wrap { padding-block: 4rem 3.5rem; display: grid; gap: 1rem; }
.page-hero .eyebrow { color: var(--gold-bright); }
.page-hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 18ch; }
.page-hero p { color: rgba(246,243,236,0.82); font-size: var(--step-1); max-width: 40rem; }
.crumb { font-size: 0.93rem; }
.crumb a { color: var(--gold-bright); text-decoration: none; }
.actions-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.action { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.7rem; display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.action h3 { font-size: 1.3rem; font-weight: 700; }
.action p { color: var(--muted); font-size: 1rem; }
.who { border-top: 1px solid var(--line); padding-top: 0.8rem; font-size: 0.97rem; }
.who b { font-family: var(--font-display); color: var(--accent); font-weight: 600; display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; }
.more { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.5rem; }
.more div { border-top: 2px solid var(--accent); padding-top: 0.9rem; }
.more h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.more p { color: var(--muted); font-size: 1rem; }
.disclaimer { margin-top: 2.5rem; font-size: 0.93rem; font-style: italic; color: var(--muted); border-left: 2px solid var(--line); padding-left: 1rem; max-width: 50rem; }

/* Piè di pagina */
footer { background: var(--navy); color: rgba(246,243,236,0.78); font-size: 0.93rem; }
footer .wrap { padding-block: 3.5rem 2.5rem; display: grid; gap: 2.2rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
footer h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.7rem; font-weight: 600; }
footer p { line-height: 1.55; }
footer .legal { border-top: 1px solid rgba(246,243,236,0.14); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.86rem; }
footer .legal a { color: rgba(246,243,236,0.78); }
.ph { background: rgba(224,164,67,0.18); color: var(--gold-bright); padding: 0 0.25rem; border-radius: 2px; }
.block .ph, .sede .ph, .prose .ph { color: var(--accent); }

/* Collegamento «vedi tutto» sotto le sezioni della home */
.see-all { margin-top: 2rem; }
.see-all a { font-family: var(--font-display); font-weight: 600; color: var(--accent); text-decoration: none; }
.see-all a:hover { text-decoration: underline; }

/* Pagine interne: schede estese */
.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; gap: 0.8rem 3rem; padding-block: 2.2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .row { grid-template-columns: 17rem 1fr; } }
.row h2 { font-size: var(--step-2); font-weight: 700; }
.row .side { display: grid; gap: 0.6rem; align-content: start; }
.row .side p { font-size: 0.93rem; color: var(--muted); }
.row .side b { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; }
.row .body { display: grid; gap: 0.9rem; max-width: 44rem; min-width: 0; }
.row .body p { color: var(--fg); }
.row .body ul { margin: 0; padding-left: 1.2rem; color: var(--fg); display: grid; gap: 0.3rem; }
.row .body a { font-family: var(--font-display); font-weight: 600; color: var(--accent); text-decoration: none; }
.row .body a:hover { text-decoration: underline; }

/* Team esteso */
.bio { display: grid; gap: 1.5rem 3rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.bio:first-child { border-top: 1px solid var(--line); }
@media (min-width: 760px) { .bio { grid-template-columns: 11rem 1fr; } }
.bio .portrait { width: 11rem; font-size: 2.4rem; }
.bio .body { display: grid; gap: 0.8rem; max-width: 44rem; min-width: 0; }
.bio h2 { font-size: var(--step-2); font-weight: 700; }
.facts { display: grid; gap: 0.35rem; border-top: 1px solid var(--line); padding-top: 0.9rem; font-size: 0.95rem; color: var(--muted); }
.facts span { word-break: break-word; }

/* Sentenze estese */
blockquote { margin: 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 2px solid var(--accent); font-style: italic; color: var(--muted); font-size: 1rem; }
.tag { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.65rem; justify-self: start; }

/* Testi legali */
.prose { max-width: 46rem; display: grid; gap: 1rem; }
.prose h2 { font-size: 1.2rem; font-weight: 700; margin-top: 1rem; }
.prose p, .prose li { color: var(--fg); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.prose .updated { color: var(--muted); font-size: 0.93rem; }
.prose a { color: var(--accent); }

/* Recensioni nella home */
.reviews { display: grid; gap: 1.5rem; max-width: 46rem; }

/* Campo trappola contro lo spam dei moduli */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
