/* ==========================================================================
   LUMINA — light stays · base.css
   Colori, caratteri, reset, tipografia e pulsanti.
   Per cambiare l'aspetto di tutto il sito parti da qui (blocco :root).
   ========================================================================== */

/* ---------- Caratteri ----------------------------------------------------
   Il sito usa Tw Cen MT (testi) e Helvetica Neue Thin (titoli) se sono
   installati sul dispositivo del visitatore; altrimenti passa ai caratteri
   di riserva indicati in --font-body e --font-display (Roboto). */
@font-face {
  font-family: 'Lumina Helvetica Thin';
  src: local('Helvetica Neue Thin'), local('HelveticaNeue-Thin');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'Lumina Tw Cen';
  src: local('Tw Cen MT'), local('TwCenMT-Regular');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Roboto è incluso nel sito (cartella assets/fonts) e fa da carattere di riserva
   su tutti i dispositivi. Licenza Apache 2.0 / SIL OFL. */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-latin-100-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-latin-700-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ---------- Variabili (colori, caratteri, misure) ----------------------- */
:root {
  /* Colori principali */
  --background: #fdfcf9;          /* sfondo pagina */
  --foreground: #282a27;          /* testo */
  --primary: #343932;             /* pulsanti scuri */
  --primary-foreground: #ffffff;  /* testo sui pulsanti scuri */
  --accent: #ece9e1;              /* sfondo al passaggio del mouse */
  --border: #dcd9d0;              /* linee sottili */
  --input: #a09f96;               /* bordo dei pulsanti "vuoti" */
  --ring: #55594f;                /* contorno di focus da tastiera */
  --text-soft: #606258;           /* paragrafi */
  --muted-foreground: #62645c;    /* testi piccoli */

  /* Fasce colorate */
  --band-light: #f2f0e9;          /* "Scegli la tua casa" */
  --band-warm: #efede4;           /* prenotazione e chiusura */
  --band-contact: #eeebe1;        /* fascia titolo della pagina Contatti */
  --band-footer: #faf9f5;         /* piè di pagina */
  --photo-bg: #e8dfd0;            /* sfondo mentre le foto si caricano */

  /* Caratteri */
  --font-body: 'Lumina Tw Cen', 'Tw Cen MT', 'Century Gothic', 'Roboto', sans-serif;
  --font-display: 'Lumina Helvetica Thin', 'Helvetica Neue Thin', 'Helvetica Neue', Helvetica, 'Roboto', sans-serif;

  /* Misure */
  --radius: 1.6px;
  --page-pad: 4.1%;               /* margine laterale di header e footer */
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 115px;      /* spazio per l'header fisso quando si salta a un'ancora */
}
body { margin: 0; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
summary { cursor: pointer; }
[hidden] { display: none !important; }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 6px;
}

/* ---------- Pagina ------------------------------------------------------- */
body.lumina-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
main { flex: 1; }
main:focus { outline: none; }

/* ---------- Tipografia --------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 100;
  letter-spacing: -.035em;
  line-height: 1.16;
}
em { font-weight: 400; }
p {
  margin: 22px 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.3px;
  line-height: 1.6;
}

/* Larghezza del contenuto centrale */
.wrap {
  width: min(1320px, calc(100% - 128px));
  margin-inline: auto;
}
@media (max-width: 1050px) { .wrap { width: calc(100% - 64px); } }
@media (max-width: 760px)  { .wrap { width: calc(100% - 40px); } }

/* Solo per lettori di schermo */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Link "Vai al contenuto" (compare con il tasto Tab) */
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  padding: 14px;
  background: #282a27;
  color: #fff;
}
.skip-link:focus { top: 10px; }

/* ---------- Pulsanti ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4286;
  white-space: nowrap;
  transition: all .15s;
  outline: none;
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 90%, transparent); }

.btn-outline {
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
}
.btn-outline:hover { background: var(--accent); color: var(--foreground); }

.btn-ghost:hover { background: var(--accent); }

.btn-icon { width: 36px; padding: 0; }

/* Link con sottolineatura ("Scrivici un ciao", "Contatta l'host"...) */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding-bottom: 7px;
  border-bottom: 1px solid #8a8b80;
  font-size: 15px;
}

/* ---------- Movimento ridotto -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Roboto variabile (peso 200 usato nei titoli dei banner) */
@font-face {
  font-family: 'RobotoVar';
  src: url('../fonts/roboto-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Titoli dei banner: stessa famiglia dei titoli (Helvetica Neue) ma in versione Light, un po' piu' spessa della Thin.
   Dove Helvetica Neue non e' installata si passa a Roboto variabile (peso 200). */
@font-face {
  font-family: 'Lumina Helvetica Light';
  src: local('Helvetica Neue Light'), local('HelveticaNeue-Light');
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}
:root {
  --font-display-banner: 'Lumina Helvetica Light', 'Lumina Helvetica Thin', 'Helvetica Neue Thin', 'Helvetica Neue', Helvetica, 'RobotoVar', 'Roboto', sans-serif;
}
