/* Solo font di sistema: nessuna richiesta a server esterni */
:root {
  --fondo: #d8d2c8;
  --inchiostro: #161412;
  --tenue: #4a453f;
  --rec: #3e9be0;
  --blu: #17224a;      --blu-titolo: #8fb3ff;
  --terra: #4a2410;    --terra-titolo: #ffad5c;
  --notte: #1f1f1d;    --notte-titolo: #7cc0f2;
  --titoli: Futura, "Futura PT", "Century Gothic", "Avenir Next", Arial, sans-serif;
  --testo: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --margine: clamp(1rem, 2.2vw, 2rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--inchiostro);
  font: 1.0625rem/1.6 var(--testo);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--inchiostro); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--titoli); margin: 0; line-height: 1.1; }

.salta { position: absolute; left: -999px; }
.salta:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Testata */
.testata {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding: 1.1rem var(--margine);
}
.marchio { display: inline-block; line-height: 0; }
.marchio img { height: 1.6rem; width: auto; }
.marchio--piede img { height: 1.9rem; margin: 0 auto; }
.testata ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; margin: 0; padding: 0; }
.testata nav a { font-family: var(--mono); font-size: .95rem; text-decoration: none; }
.testata nav a:hover { text-decoration: underline; text-underline-offset: .35em; }

/* Pulsante a pillola, come riferimento */
.pillola {
  display: inline-block; padding: .55rem 1.4rem;
  border: 1.5px solid var(--inchiostro); border-radius: 999px;
  font-size: .95rem; text-decoration: underline; text-underline-offset: .2em;
  background: transparent;
}
.pillola:hover { background: var(--inchiostro); color: var(--fondo); text-decoration: none; }

/* Apertura: foto incorniciata con titolo centrato */
.apertura { padding: 0 var(--margine); text-align: center; }
.apertura__foto { position: relative; margin: 0; background: #2b2724; }
.apertura__foto > img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }
.apertura__foto::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.apertura__titolo {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
}
.apertura__logo { width: min(70%, 760px); height: auto; }
.apertura__nome {
  font-family: var(--titoli); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 8.5rem); letter-spacing: .01em; line-height: 1;
}
.apertura__sotto { font-family: var(--testo); font-weight: 400; text-transform: uppercase; letter-spacing: .32em; font-size: clamp(.75rem, 1.4vw, 1.05rem); margin-top: 1.4rem; }
.apertura__frase { max-width: 52rem; margin: 1.5rem auto 1.75rem; font-size: 1.15rem; }

/* Presentazione centrata */
.presentazione { max-width: 62rem; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--margine); text-align: center; }
.presentazione h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 2.25rem; }
.presentazione p { margin: 0 auto 1.2rem; max-width: 56rem; font-size: 1.15rem; }
.presentazione__chiusa { font-weight: 600; margin-top: 2rem !important; }

/* Tre riquadri colorati */
.riquadri { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--margine); padding: 0 var(--margine); }
.riquadro { display: flex; flex-direction: column; text-decoration: none; color: #fff; }
.riquadro img { width: 100%; aspect-ratio: 12 / 7; object-fit: cover; }
.riquadro__testo { flex: 1; padding: 1.5rem 1.4rem 2.25rem; }
.riquadro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase; margin-bottom: 1rem; }
.riquadro p { margin: 0; font-size: .98rem; line-height: 1.65; }
.riquadro--blu { background: var(--blu); }     .riquadro--blu h2 { color: var(--blu-titolo); }
.riquadro--terra { background: var(--terra); } .riquadro--terra h2 { color: var(--terra-titolo); }
.riquadro--notte { background: var(--notte); } .riquadro--notte h2 { color: var(--notte-titolo); }
.riquadro:hover h2 { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 3px; }

/* Lo studio: schede come nella sezione notizie */
.schede { padding: clamp(4rem, 9vw, 7rem) var(--margine) 0; }
.schede > h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 2rem; }
.schede__griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--margine); }
.scheda { margin: 0; }
.scheda img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1rem; }
.scheda h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.scheda p { margin: 0; font-size: .98rem; }

/* Prenota */
.prenota { max-width: 46rem; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--margine); text-align: center; }
.prenota h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); text-transform: uppercase; margin-bottom: 2rem; }
.prenota ol { list-style: none; counter-reset: passo; padding: 0; margin: 0 0 1.5rem; }
.prenota li { counter-increment: passo; font-size: 1.15rem; margin-bottom: .9rem; }
.prenota li::before { content: counter(passo); display: block; font-family: var(--titoli); font-weight: 700; font-size: 1.6rem; color: var(--rec); }
.prenota__nota { color: var(--tenue); margin-bottom: 2rem; }

/* Piede */
.piede { margin: 0 var(--margine); padding: 3rem 0 2.5rem; border-top: 1.5px solid var(--inchiostro); text-align: center; }
.piede__link { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; list-style: none; padding: 0; margin: 1.5rem 0; font-family: var(--mono); font-size: .95rem; }
.piede__indirizzo { margin: 0; font-size: .9rem; color: var(--tenue); }

/* 404 */
main.presentazione { min-height: 70vh; }

@media (max-width: 900px) {
  .riquadri, .schede__griglia { grid-template-columns: 1fr; }
  .apertura__foto > img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .testata { justify-content: center; text-align: center; }
  .testata ul { justify-content: center; gap: .4rem 1.25rem; }
  .apertura__foto > img { aspect-ratio: 4 / 5; }
}
