/* Giornata, sito di presentazione.
   Font servito dal sito stesso: nessuna chiamata a servizi esterni. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope-latin-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: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope-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+0304, U+0308, U+0329, 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;
}

/* Quattro versioni di colore (valori presi da THEMES nel design).
   Versione di partenza: scuro. */
:root,
[data-tema="scuro"] {
  --bg: #121318; --surface: #1B1C25; --text: #EDEBF2; --muted: #A9ABBA; --line: #2B2D3A;
  --accent: #FF7043; --accent-small: #FF8A65; --btn-bg: #B9BCFB; --btn-text: #16173A;
  --shadow: 0 24px 60px rgba(0,0,0,0.5);
  color-scheme: dark;
}
[data-tema="total_white"] {
  --bg: #FFFFFF; --surface: #F5F5F5; --text: #0B0B0B; --muted: #56595F; --line: #E2E2E2;
  --accent: #D9501F; --accent-small: #B93E14; --btn-bg: #0B0B0B; --btn-text: #FFFFFF;
  --shadow: 0 20px 50px rgba(0,0,0,0.12);
  color-scheme: light;
}
[data-tema="standard"] {
  --bg: #FBF8FF; --surface: #F2EEF8; --text: #1B1B21; --muted: #56535F; --line: #E3DFEA;
  --accent: #D9501F; --accent-small: #B93E14; --btn-bg: #515B92; --btn-text: #FFFFFF;
  --shadow: 0 20px 50px rgba(60,50,110,0.14);
  color-scheme: light;
}
[data-tema="sabbia"] {
  --bg: #EAEAE6; --surface: #F4F2EC; --text: #33291C; --muted: #5E5646; --line: #D5D2C6;
  --accent: #D9501F; --accent-small: #B93E14; --btn-bg: #8C4F27; --btn-text: #FFFFFF;
  --shadow: 0 20px 50px rgba(51,41,28,0.16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid #FF7043; outline-offset: 3px; }

.salta {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text);
  font-weight: 700; text-decoration: none;
}
.salta:focus { top: 12px; }

/* ---------- Header ---------- */
.testata {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.testata-dentro {
  max-width: 1200px; margin: 0 auto; padding: 8px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
}
.marchio {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none;
}
.marchio img { width: 32px; height: 32px; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.testata-azioni { display: flex; align-items: center; gap: 16px; }

/* ---------- Pallini delle versioni di colore ---------- */
.pallini { display: none; align-items: center; }
.js .pallini { display: flex; }
.pallino {
  width: 44px; height: 44px; padding: 0; border: 0; background: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pallino span {
  display: block; width: 26px; height: 26px; border-radius: 50%;
}
.pallino[aria-pressed="true"] span { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.riquadro .pallino[aria-pressed="true"] span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }
.pallino-scuro span { background: linear-gradient(135deg,#121318 50%,#FF7043 50%); border: 1px solid #4A4C5C; }
.pallino-total_white span { background: #FFFFFF; border: 1px solid #0B0B0B; }
.pallino-standard span { background: conic-gradient(#2C5F4B 0 25%, #DD7A3E 0 50%, #5B4B8A 0 75%, #C9922B 0); border: 1px solid #CFC9DA; }
.pallino-sabbia span { background: linear-gradient(135deg,#EAEAE6 50%,#8C4F27 50%); border: 1px solid #B9B5A6; }

/* ---------- Pulsanti ---------- */
.bottone {
  display: inline-block; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-text);
}
.bottone-piccolo { padding: 10px 22px; font-size: 16px; }
.bottone-medio { padding: 16px 36px; font-size: 18px; }
.bottone-grande { padding: 18px 44px; font-size: 19px; }

/* ---------- Contenuto ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { scroll-margin-top: 96px; }

.apertura { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 72px 0 0; }
.apertura-testo { flex: 1 1 480px; min-width: 0; }
.apertura-immagine { flex: 1 1 380px; min-width: 0; max-width: 560px; }
h1 {
  margin: 0 0 24px; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04;
  font-weight: 800; letter-spacing: -0.03em;
}
.arancio { color: var(--accent); }
.apertura p { margin: 0 0 16px; font-size: 19px; line-height: 1.65; }
.apertura p.forte { margin-bottom: 32px; font-weight: 700; }
.apertura-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.link-perche { font-size: 17px; font-weight: 700; color: var(--accent-small); }

.blocco { margin-top: 112px; }
h2 {
  margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1;
  font-weight: 800; letter-spacing: -0.02em;
}
.perche h2 { margin-bottom: 40px; }

.riquadri { display: flex; flex-wrap: wrap; gap: 24px; }
.riquadro {
  flex: 1 1 320px; min-width: 0; padding: 28px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
}
.riquadro svg { color: var(--accent-small); display: block; }
.riquadro h3 { margin: 16px 0 8px; font-size: 22px; line-height: 1.25; font-weight: 800; }
.riquadro p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.riquadro p.con-pallini { margin-bottom: 8px; }

.fascia {
  padding: 64px 48px; border-radius: 32px;
  background: var(--surface); border: 1px solid var(--line);
}

.scheda { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; margin-top: 48px; }
.scheda + .scheda { margin-top: 64px; }
.scheda.inversa { flex-direction: row-reverse; }
.scheda-immagine { flex: 1 1 480px; min-width: 0; max-width: 640px; }
.scheda-testo { flex: 1 1 360px; min-width: 0; }
.scheda-testo h3 { margin: 0 0 16px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.scheda-testo p { margin: 0 0 16px; }
.scheda-testo p:last-child { margin-bottom: 0; }

/* ---------- Schermate cliccabili ---------- */
.schermata {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  cursor: zoom-in; text-align: left; color: inherit;
}
.fascia .schermata { background: var(--bg); }
.apertura .schermata { border-radius: 24px; }
.schermata img { display: block; width: 100%; height: auto; }
/* Schermate alte: ritagliate a 520 px, il resto si vede nell'anteprima grande. */
.schermata.alta { max-height: 520px; }
.schermata .vedi-tutto {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; padding-bottom: 16px;
  display: flex; justify-content: center; align-items: flex-end;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.55));
}
.schermata .vedi-tutto span {
  display: block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--text); color: var(--bg);
}

/* ---------- Scarica ---------- */
.scarica { margin-top: 128px; padding: 72px 48px; text-align: center; }
.scarica h2 { margin: 0 0 16px; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.scarica .sotto { margin: 0 0 32px; font-size: 20px; line-height: 1.5; }
.scarica .nota { margin: 16px auto 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.segnaposto {
  margin: 32px auto 0; max-width: 560px; padding: 12px 16px;
  border: 1px dashed var(--muted); border-radius: 12px; font-size: 15px; line-height: 1.5; color: var(--muted);
}
.nota + .segnaposto { margin-top: 12px; }
.nota + .nota { margin-top: 4px; }
.passaggi {
  margin: 32px auto 0; max-width: 560px; padding: 24px 28px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg);
  font-size: 16px; line-height: 1.6;
}
.passaggi h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.passaggi ol { margin: 0 0 16px; padding-left: 22px; }
.passaggi li + li { margin-top: 6px; }
.passaggi p { margin: 0; color: var(--muted); }

/* ---------- Piè di pagina ---------- */
.piede {
  max-width: 1200px; margin: 96px auto 0; padding: 32px 32px 48px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font-size: 15px; color: var(--muted);
}
.piede .forte, .piede a { font-weight: 700; color: var(--text); }

/* ---------- Anteprima grande ---------- */
.anteprima {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 16px 48px;
  border: 0; background: rgba(8,8,12,0.92); overflow: auto;
}
.anteprima::backdrop { background: rgba(8,8,12,0.6); }
.anteprima-dentro { max-width: 1100px; margin: 0 auto; }
.anteprima-barra { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 16px 0; }
.anteprima-chiudi {
  min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 700; cursor: pointer; background: #FFFFFF; color: #0B0B0B;
}
.anteprima img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* ---------- Pagina privacy ---------- */
.testo-stretto { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.testo-stretto h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin-bottom: 16px; }
.testo-stretto .intro { margin: 0 0 40px; font-size: 19px; }
.testo-stretto h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: 0; }
.testo-stretto p, .testo-stretto ul { margin: 0 0 32px; line-height: 1.7; }
.testo-stretto ul { padding-left: 24px; }
.testo-stretto .segnaposto { margin: 0 0 24px; }
.testata-stretta { max-width: 760px; padding: 16px 24px; }

/* ---------- Telefono ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .testata-dentro { padding: 8px 16px; }
  main { padding: 0 16px; }
  .blocco { margin-top: 80px; }
  .apertura { padding-top: 40px; gap: 32px; }
  .scheda { gap: 28px; margin-top: 32px; }
  .scheda + .scheda { margin-top: 48px; }
  .fascia { padding: 40px 20px; border-radius: 24px; }
  .scarica { margin-top: 96px; }
  .piede { padding: 32px 16px 40px; margin-top: 72px; }
}
@media (max-width: 560px) {
  .testata-azioni .bottone { display: none; }
  .scheda-testo h3 { font-size: 24px; }
  .apertura p { font-size: 18px; }
}
