/* ─── THE QUIET MILL — civis-theme.css ───────────────────────
   Veste Civis del gruppo (decisione di Pietro del 10/10/2026): Castoro per titoli e nomi, Inter per testi e interfaccia, monocromo OKLCH,
   bottoni pill, un solo accento per struttura. Qui l'accento è il verde velluto della prima
   camera (stesso tono della v1, public/site.css di main): 40% in chiaro, 78% in scuro,
   contrasto ≥ 4,5:1 su ogni fondo (vedi STATO.md).
   Caricato dopo shared.css. Font self-hosted, licenza OFL (fonts/OFL.txt).
──────────────────────────────────────────────────────────────── */

@font-face { font-family: 'Castoro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/castoro-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: 'Castoro'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/castoro-400-italic.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: 'Castoro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/castoro-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Castoro'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/castoro-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-wght-normal.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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ─── Token: monocromo Civis, verde velluto solo come accento ── */
:root {
  color-scheme: light;
  --paper: oklch(98% 0 0);
  --ink:   oklch(15% 0 0);
  --bg:          var(--paper);
  --bg-mid:      oklch(95.5% 0 0);
  --bg-light:    oklch(92% 0 0);
  --ivory:       var(--ink);
  --ivory-dim:   oklch(40% 0 0);
  --ivory-faint: oklch(45% 0 0);
  --border:      oklch(88% 0 0);
  /* verde velluto della prima camera (v1: oklch 40% .07 160) */
  --accent:      oklch(40% 0.07 160);
  --accent-pale: oklch(40% 0.07 160);
  --error:       oklch(48% 0.16 30);

  --serif:   'Castoro', 'Iowan Old Style', Georgia, serif;
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-lg:   14px;
  --radius-pill: 999px;
  --track-tight: -0.01em;
  --track-label: 0.02em;
  --lh-tight: 1.1;
  --lh-title: 1.2;
  --lh-body:  1.65;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --text-2xs:  clamp(0.6875rem, 0.64rem + 0.15vw, 0.75rem);
  --text-xs:   clamp(0.75rem,   0.71rem + 0.2vw,  0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.76rem + 0.22vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.88rem + 0.29vw, 1rem);
  --text-md:   clamp(1rem,      0.93rem + 0.35vw, 1.125rem);
  --text-lg:   clamp(1.125rem,  1.05rem + 0.35vw, 1.3125rem);
  --text-xl:   clamp(1.25rem,   1.1rem  + 0.5vw,  1.5rem);
  --text-2xl:  clamp(1.625rem,  1.3rem  + 1vw,    2.25rem);
  --text-hero: clamp(2.25rem,   4.6vw,            4rem);

  --page-content-max: 1400px;
  --page-gutter: clamp(1.5rem, 4vw, 4rem);
  --nav-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: oklch(11% 0 0);
    --ink:   oklch(96% 0 0);
    --bg-mid:      oklch(15% 0 0);
    --bg-light:    oklch(19% 0 0);
    --ivory-dim:   oklch(74% 0 0);
    --ivory-faint: oklch(68% 0 0);
    --border:      oklch(28% 0 0);
    --accent:      oklch(78% 0.08 160);
    --accent-pale: oklch(78% 0.08 160);
    --error:       oklch(76% 0.13 30);
  }
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: oklch(11% 0 0);
  --ink:   oklch(96% 0 0);
  --bg-mid:      oklch(15% 0 0);
  --bg-light:    oklch(19% 0 0);
  --ivory-dim:   oklch(74% 0 0);
  --ivory-faint: oklch(68% 0 0);
  --border:      oklch(28% 0 0);
  --accent:      oklch(78% 0.08 160);
  --accent-pale: oklch(78% 0.08 160);
  --error:       oklch(76% 0.13 30);
}

/* Sezioni sempre scure (hero su video o foto, pagina 404): neutre, accento chiaro */
.hero, .page-hero, .error-page {
  --ink:         oklch(97% 0 0);
  --ivory:       oklch(97% 0 0);
  --ivory-dim:   oklch(86% 0 0);
  --ivory-faint: oklch(78% 0 0);
  --accent-pale: oklch(84% 0.08 160);
  --border:      oklch(40% 0 0);
}
/* Piede: fondo scuro nel tema scuro */
html[data-theme="dark"] .footer { background: oklch(8% 0 0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer { background: oklch(8% 0 0); } }

/* ─── Titoli: Castoro, minuscolo normale ───────────────────── */
.hero__title, .page-hero__title, .editorial__heading, .cta-section__title, .sister__title,
.location__heading, .faq__heading, .room-card__name, .privacy-body h2, .footer__brand-name,
.error-page__title, .cat-item__title, .nav__logo, .nav-menu__preview-cap b {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-title);
}
.hero__title em, .page-hero__title em, .editorial__heading em, .cta-section__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-pale);
}
.hero__title, .page-hero__title, .error-page__title { font-size: var(--text-hero); line-height: var(--lh-tight); }
.editorial__heading, .cta-section__title, .sister__title, .location__heading, .faq__heading { font-size: var(--text-2xl); }
.room-card__name, .privacy-body h2, .cat-item__title { font-size: var(--text-xl); }
.footer__brand-name { font-size: var(--text-lg); }

/* ─── Occhielli: unico maiuscolo spaziato ammesso, piccolo ──── */
.kicker, .hero__eyebrow, .page-hero__eyebrow, .ph__caption, .cat-item__label, .footer__col-title,
.footer__brand-sub, .footer__assoc-l, .contact-label, .error-page__eyebrow {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Bottoni: pill Civis, Inter, niente maiuscolo ───────────── */
.btn-cta, .btn-cta-ghost {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--radius-pill);
  min-height: 48px;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-cta { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-cta-ghost { background: transparent; color: var(--ink); border: 1px solid color-mix(in oklch, currentColor 40%, transparent); }
.btn-cta-ghost:hover { border-color: currentColor; }
/* sulle sezioni sempre scure il bottone primario resta chiaro */
.page-hero .btn-cta, .error-page .btn-cta { background: oklch(97% 0 0); color: oklch(11% 0 0); border-color: oklch(97% 0 0); }
.page-hero .btn-cta:hover, .error-page .btn-cta:hover { background: oklch(84% 0.08 160); border-color: oklch(84% 0.08 160); }
.error-page .btn-cta-ghost { color: oklch(97% 0 0); }
