/* ============================================================================
   Dr. Stefano Cagnina — sito personale
   Sistema visivo: Apple-style in brand APXGP. Tema scelto (14/09/2026): CHIARO,
   fisso con classe .theme-light su <html>; i token scuri restano come base. Font Acherus
   Grotesque auto-ospitato. Token allineati a apxgp-palette.css.
   ============================================================================ */

@font-face {
  font-family: 'Acherus Grotesque';
  src: url('../fonts/acherus-grotesque-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Oro — costante nei due temi */
  --gold: #C3A24B;
  --gold-light: #E6C57E;
  --gold-bronze: #9B6A2E;
  --gold-bright: #F7E0BC;
  --gold-grad: linear-gradient(135deg,#9B6A2E 0%,#C3A24B 42%,#F7E0BC 68%,#C3A24B 100%);

  /* TEMA SCURO (default) */
  --bg: #000000;
  --bg-alt: #06070A;
  --surface: #0E0F11;
  --surface2: #16181B;
  --border: #212327;
  --border-gold: rgba(195,162,75,.38);
  --hairline: #141517;
  --text: #F2F1EE;
  --text-strong: #FFFFFF;
  --text2: #B9B8B4;
  --text3: #6E6D69;
  --accent-ink: #C3A24B;
  --link-ink: #E6C57E;
  --gold-grad-text: linear-gradient(120deg,#FFFFFF 0%,#E6C57E 45%,#C3A24B 82%,#9B6A2E 100%);
  --nav-bg: rgba(0,0,0,.72);
  --nav-menu-bg: rgba(0,0,0,.97);
  --glow: rgba(195,162,75,.16);
  --btn-text: #141517;

  /* Layout */
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 44px);
  --nav-h: 76px;
  --font: 'Acherus Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* TEMA CHIARO (avorio caldo + oro + carbone) */
html.theme-light {
  --bg: #F4F1EA;
  --bg-alt: #ECE8DF;
  --surface: #FCFBF7;
  --surface2: #F2EEE5;
  --border: #E4E0D6;
  --border-gold: rgba(155,106,46,.34);
  --hairline: #E7E2D8;
  --text: #43423D;
  --text-strong: #17181B;
  --text2: #6E6B63;
  --text3: #6E6B63;
  --accent-ink: #8A5D26;
  --link-ink: #8A5D26;
  --gold-grad-text: linear-gradient(120deg,#C3A24B 0%,#9B6A2E 100%);
  --nav-bg: rgba(244,241,234,.82);
  --nav-menu-bg: rgba(244,241,234,.985);
  --glow: rgba(195,162,75,.14);
  --btn-text: #141517;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(195,162,75,.28); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-ink); }
.gold-text {
  background: var(--gold-grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 0.5px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--hairline);
}
.nav.open-mega {
  background: var(--nav-menu-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; opacity: .96; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--text2); letter-spacing: .02em; transition: color .2s ease; }
.nav-links a:hover { color: var(--text-strong); }
.nav-phone { font-size: 14px; color: var(--text2); letter-spacing: .02em; transition: color .2s ease; }
.nav-phone:hover { color: var(--accent-ink); }
.nav:not(.scrolled) .nav-burger span { background: #fff; }
@media (min-width: 761px) {
  .nav:not(.scrolled):not(.open-mega) .nav-links a,
  .nav:not(.scrolled):not(.open-mega) .nav-phone { color: rgba(255,255,255,.82); }
  .nav:not(.scrolled):not(.open-mega) .nav-links a:hover { color: #ffffff; }
}
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right .btn-gold { font-size: 14px; padding: 12px 26px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; width: 26px; height: 20px; position: relative; }
.nav-burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--text); transition: transform .3s ease, opacity .3s ease; }
.nav-burger span:nth-child(1){ top: 2px; } .nav-burger span:nth-child(2){ top: 9px; } .nav-burger span:nth-child(3){ top: 16px; }
.nav-burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2){ opacity: 0; }
.nav-burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn-gold {
  display: inline-block; font-size: 13.5px; letter-spacing: .02em; color: var(--btn-text);
  background: var(--gold); padding: 11px 24px; border-radius: 30px;
  transition: background .25s ease, transform .25s ease;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.link-gold { color: var(--link-ink); font-size: 14px; letter-spacing: .02em; transition: color .2s ease; }
.link-gold:hover { color: var(--gold); }
.link-gold .arr { transition: transform .25s ease; display: inline-block; }
.link-gold:hover .arr { transform: translateX(4px); }

/* ── MEGA-MENU (hover, desktop) ──────────────────────────────────────────── */
.mega {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--nav-menu-bg);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 0.5px solid var(--hairline);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .26s ease, transform .26s ease, visibility .26s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega-inner { padding-top: 32px; padding-bottom: 38px; }
.mega-panel { display: none; }
.mega-panel.active { display: block; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-items: start; }
.mega-head { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.mega-col > a { display: block; font-size: 16px; color: var(--text); padding: 8px 0; transition: color .2s ease, transform .2s ease; }
.mega-col > a:hover { color: var(--accent-ink); transform: translateX(3px); }
.mega-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
.mega-sub { font-size: 15px; color: var(--text2); }
.mega-quote { font-size: 19px; line-height: 1.42; color: var(--text-strong); font-weight: 300; }
.mega-name { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-top: 14px; }
.mega-cta .btn-gold { font-size: 12px; padding: 10px 24px; letter-spacing: .04em; }
@media (max-width: 760px) { .mega { display: none; } }

/* ── HERO (foto a tutta pagina + velo APXGP) ─────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; text-align: left; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: #000; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 55% 28%; transform-origin: 55% 35%; animation: heroZoom 22s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.12); } }
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.93) 0%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.34) 72%, rgba(0,0,0,.6) 100%),
  linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 32%); }
.hero-inner { position: relative; z-index: 1; padding-top: 124px; padding-bottom: 96px; width: 100%; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  font-weight: 300; font-size: clamp(2.6rem, 6.6vw, 4.6rem); line-height: 1.06;
  letter-spacing: -.02em; color: #FFFFFF; margin: 22px 0 0; max-width: 15ch;
}
.hero .gold-text { background: linear-gradient(120deg,#FFFFFF 0%,#F7E0BC 38%,#E6C57E 66%,#C3A24B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(15px, 1.7vw, 18px); color: rgba(242,241,238,.82); max-width: 46ch; margin: 24px 0 0; line-height: 1.62; }
.hero-cta { margin-top: 34px; display: flex; gap: 22px; justify-content: flex-start; align-items: center; flex-wrap: wrap; }
.hero .link-gold { color: var(--gold-light); }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } }

/* ── SECTION BASE ────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 11vw, 132px) 0; }
.section-divider { border-top: 0.5px solid var(--hairline); }
.section-head { max-width: 60ch; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-title { font-weight: 300; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.14; letter-spacing: -.015em; color: var(--text-strong); margin-top: 16px; }
.section-lead { font-size: 16px; color: var(--text2); margin-top: 18px; line-height: 1.65; max-width: 52ch; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ── DISCIPLINES ─────────────────────────────────────────────────────────── */
.disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.disc-card {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 18px;
  padding: 38px 34px; transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.disc-card:hover { border-color: var(--border-gold); transform: translateY(-3px); background: var(--surface2); }
.disc-index { font-size: 12px; letter-spacing: .24em; color: var(--accent-ink); }
.disc-card h3 { font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.01em; color: var(--text-strong); margin-top: 20px; }
.disc-card p { font-size: 15px; color: var(--text2); margin-top: 14px; line-height: 1.6; max-width: 34ch; }
.disc-card .link-gold { margin-top: 24px; display: inline-block; }

/* ── ABOUT / METODO ──────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-portrait { border-radius: 18px; overflow: hidden; border: 0.5px solid var(--border-gold); line-height: 0; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 16%; display: block; }
.about-quote { font-weight: 300; font-size: clamp(1.5rem, 3.1vw, 2.3rem); line-height: 1.32; letter-spacing: -.01em; color: var(--text-strong); }
.about-body { font-size: 16px; color: var(--text2); margin-top: 22px; line-height: 1.68; max-width: 58ch; }
.about-name { margin-top: 20px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.about-creds { list-style: none; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.about-creds li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--text2); line-height: 1.5; }
.about-creds li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ── STUDI ───────────────────────────────────────────────────────────────── */
.studi-strip { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.studi-chip { border: 0.5px solid var(--border); border-radius: 14px; padding: 22px 26px; background: var(--surface); flex: 1 1 220px; }
.studi-chip .city { font-size: 19px; color: var(--text-strong); }
.studi-chip .addr { font-size: 13.5px; color: var(--text3); margin-top: 8px; line-height: 1.5; }
.placeholder-note { font-size: 12.5px; color: var(--text3); margin-top: 22px; letter-spacing: .02em; }

/* ── CONTATTI ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.contact-card {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 16px;
  padding: 26px 22px; text-align: center; transition: border-color .3s ease, transform .3s ease;
}
.contact-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.contact-card .ico { display: block; width: 30px; height: 30px; margin: 0 auto 16px; color: var(--accent-ink); }
.contact-card .ico svg { display: block; width: 100%; height: 100%; }
.contact-card .label { display: block; font-size: 15px; color: var(--text-strong); }
.contact-card .meta { display: block; font-size: 12.5px; color: var(--text3); margin-top: 6px; }

.form { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 680px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; background: var(--surface); border: 0.5px solid var(--border); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-family: inherit; font-size: 15px; font-weight: 300;
  transition: border-color .2s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--border-gold); }
.form textarea { min-height: 120px; resize: vertical; }
.form ::placeholder { color: var(--text3); }
.form-note { font-size: 12px; color: var(--text3); margin-top: 12px; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer { border-top: 0.5px solid var(--hairline); padding: 54px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: 44px; opacity: .9; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--text2); transition: color .2s ease; }
.footer-nav a:hover { color: var(--text-strong); }
.footer-legal { margin-top: 30px; font-size: 11.5px; color: var(--text3); line-height: 1.7; letter-spacing: .01em; }
.footer-legal a { color: var(--text2); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--nav-menu-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 0.5px solid var(--hairline); padding: 8px 0; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 16px var(--pad); border-bottom: 0.5px solid var(--hairline); }
  .nav-right .btn-gold, .nav-phone { display: none; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about-portrait { max-width: 260px; margin: 0 auto; }
  .about-body { margin-left: auto; margin-right: auto; }
  .about-creds { text-align: left; max-width: 58ch; margin-left: auto; margin-right: auto; }
  .disc-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ── DISC SUB-LIST ───────────────────────────────────────────────────────── */
.disc-list { list-style: none; margin: 18px 0 4px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.disc-list li { font-size: 14px; color: var(--text2); position: relative; padding-left: 15px; }
.disc-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ── TRATTAMENTI (con descrizioni brevi) ─────────────────────────────────── */
.treat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.treat-col { background: var(--surface); border: 0.5px solid var(--border); border-radius: 18px; padding: 38px 34px; transition: border-color .3s ease; }
.treat-col:hover { border-color: var(--border-gold); }
.treat-col h3 { font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.01em; color: var(--text-strong); margin-top: 18px; }
.treat-list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.treat-item { display: flex; flex-direction: column; gap: 5px; }
.treat-name { font-size: 16px; color: var(--text-strong); }
.treat-desc { font-size: 14px; line-height: 1.55; color: var(--text2); max-width: 42ch; }
.treat-col .link-gold { margin-top: 30px; display: inline-block; }
@media (max-width: 760px) { .treat-grid { grid-template-columns: 1fr; } }
.treat-tagline { font-style: italic; font-size: 15.5px; color: var(--accent-ink); margin-top: 8px; letter-spacing: .01em; }
.treat-col, .contact-card { box-shadow: 0 16px 38px rgba(0,0,0,.05); }
.about-cta { margin-top: 28px; }

/* ── RECENSIONI ──────────────────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.review-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: 18px; padding: 30px 28px; margin: 0; }
.review-card .stars { color: var(--gold); letter-spacing: 3px; font-size: 14px; }
.review-card blockquote { margin: 16px 0 0; font-size: 16px; line-height: 1.62; color: var(--text); }
.review-card figcaption { margin-top: 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 17px; color: var(--text-strong); position: relative; transition: color .2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--accent-ink); transition: transform .2s ease; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-item > p { margin: 0 0 24px; font-size: 15px; line-height: 1.72; color: var(--text2); max-width: 66ch; }

@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ── CTA BAND (banda a tutta larghezza, stile manuelapili) ───────────────── */
.cta-band { padding: clamp(64px, 9vw, 104px) 0; text-align: center; background: var(--surface2); border-top: 0.5px solid var(--hairline); border-bottom: 0.5px solid var(--hairline); }
.cta-title { font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.015em; color: var(--text-strong); margin: 16px auto 30px; line-height: 1.16; max-width: 22ch; }

/* ── FOOTER a colonne ────────────────────────────────────────────────────── */
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; }
.footer-col p, .footer-col a { font-size: 14px; color: var(--text2); margin: 0 0 10px; }
.footer-col a { display: block; transition: color .2s ease; }
.footer-col a:hover { color: var(--text-strong); }
.footer-col .footer-h { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.footer-col .footer-muted { color: var(--text3); }
.footer-brand .footer-tag { max-width: 32ch; line-height: 1.62; margin-top: 16px; }
.footer-brand .footer-ig { color: var(--accent-ink); margin-top: 8px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px 24px; } }

/* ── PAGINA LEGALE (privacy.html) ────────────────────────────────────────── */
.legal { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 110px); }
.legal-inner { max-width: 800px; }
.legal-updated { font-size: 12.5px; color: var(--text3); margin-top: 18px; letter-spacing: .02em; }
.legal h2 { font-weight: 300; font-size: clamp(1.25rem, 2.2vw, 1.55rem); letter-spacing: -.01em; color: var(--text-strong); margin: 48px 0 14px; padding-top: 28px; border-top: 0.5px solid var(--hairline); }
.legal p, .legal li { font-size: 15.5px; line-height: 1.72; color: var(--text2); }
.legal p + p { margin-top: 12px; }
.legal strong { font-weight: 300; color: var(--text-strong); }
.legal a:not(.link-gold) { color: var(--link-ink); border-bottom: 0.5px solid var(--border-gold); }
.legal ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal-note { margin-top: 18px; padding: 18px 22px; background: var(--surface); border: 0.5px solid var(--border-gold); border-radius: 14px; }
.legal-back { margin-top: 56px; }
.form-privacy { font-size: 12px; color: var(--text3); margin-top: 12px; line-height: 1.55; }
.form-privacy a { color: var(--link-ink); }

/* ── PAGINA 404 ──────────────────────────────────────────────────────────── */
.notfound { min-height: 100vh; display: flex; align-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 0 60px; }
.notfound .container { width: 100%; }
.notfound .section-lead { margin-left: auto; margin-right: auto; }
.notfound-cta { margin-top: 34px; display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ── COME LAVORO (dentro "Chi sono") ─────────────────────────────────────── */
.method { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 6vw, 64px); border-top: 0.5px solid var(--hairline); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.method-step { background: var(--surface); border: 0.5px solid var(--border); border-radius: 18px; padding: 28px 24px; box-shadow: 0 16px 38px rgba(0,0,0,.05); }
.method-n { font-size: 12px; letter-spacing: .24em; color: var(--accent-ink); }
.method-step h3 { font-weight: 300; font-size: 1.3rem; letter-spacing: -.01em; color: var(--text-strong); margin-top: 14px; }
.method-step p:last-child { font-size: 14px; line-height: 1.6; color: var(--text2); margin-top: 10px; }
@media (max-width: 880px) { .method-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .method-grid { grid-template-columns: 1fr; } }

/* Scelta sede nel modulo contatti: stesso aspetto dei campi di testo */
.form select {
  width: 100%; background: var(--surface); border: 0.5px solid var(--border); border-radius: 12px;
  padding: 14px 40px 14px 16px; color: var(--text); font-family: inherit; font-size: 15px; font-weight: 300;
  -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color .2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239B6A2E' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form select:focus { outline: none; border-color: var(--border-gold); }
.form select.vuota { color: var(--text3); }
.form select option { color: var(--text); }
/* Il pulsante <button> non eredita il carattere e ha un bordo di sistema: lo allineo ai link .btn-gold */
button.btn-gold { font-family: inherit; font-weight: 300; border: 0; cursor: pointer; }

/* Formazione divisa in gruppi (Odontoiatria / Medicina estetica) */
.creds-head { margin-top: 26px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); }
.creds-head + .about-creds { margin-top: 12px; }
@media (max-width: 760px) { .creds-head { text-align: left; max-width: 58ch; margin-left: auto; margin-right: auto; } }
/* Con la formazione lunga: foto in alto e "ferma" mentre si scorre (solo da computer) */
@media (min-width: 761px) {
  .about { align-items: start; }
  .about-portrait { position: sticky; top: calc(var(--nav-h) + 28px); }
}

/* ── Accessibilità e rifiniture (revisione finale 24/09/2026) ─────────────── */
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
html.theme-light ::selection { color: var(--text-strong); }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@media (max-width: 760px) {
  .nav-links { visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility .3s; }
  .nav-links.open { visibility: visible; }
  .footer-cols { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
.footer-col a { overflow-wrap: anywhere; }
h2.eyebrow, h3.creds-head { font-weight: inherit; }

/* Modulo contatti: esito invio + trappola anti-spam */
.form-msg:empty { display: none; }
.form-msg { font-size: 14.5px; line-height: 1.55; padding: 14px 18px; border-radius: 12px; border: 0.5px solid var(--border); background: var(--surface); }
.form-msg.ok { border-color: var(--border-gold); color: var(--text-strong); }
.form-msg.err { border-color: #B4533C; color: #8E3A26; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
