/* Lo Spazio dell'Incanto. Direzione A, Notte incantata. Mobile first. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }

:root {
  --sfondo: #2a0d1a;
  --riquadro: #3a1626;
  --testo: #fbefe2;
  --testo-2: #d9bfc0;
  --oro: #e8c47e;
  --linea: #5a2f40;
  --titoli: "Cormorant Garamond", Georgia, serif;
  --corpo: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sfondo);
  color: var(--testo);
  font-family: var(--corpo);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { opacity: .85; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }

h1, h2 { font-family: var(--titoli); font-weight: 600; margin: 0; text-align: center; }
h1 { font-size: 44px; line-height: 1.08; }
h2 { font-size: 30px; line-height: 1.2; margin-bottom: 16px; }
p { margin: 0; }

.salta { position: absolute; left: -9999px; top: 0; }
.salta:focus { left: 12px; top: 12px; background: var(--oro); color: var(--sfondo); padding: 8px 14px; border-radius: 999px; z-index: 20; }

/* Fascia BOZZA */
.fascia-bozza { display: none; }
body.bozza .fascia-bozza {
  display: block; position: sticky; top: 0; z-index: 10;
  background: var(--oro); color: var(--sfondo);
  text-align: center; font-weight: 600; font-size: 14px; letter-spacing: .08em;
  padding: 6px 12px;
}

/* Blocchi */
.blocco { padding: 44px 24px; max-width: 640px; margin: 0 auto; }
.centrato { text-align: center; }
.secondario { color: var(--testo-2); }
.piccolo { font-size: 14px; }

/* Apertura */
.apertura {
  display: flex; flex-direction: column; gap: 20px; padding-top: 28px;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, var(--oro) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, var(--testo) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 55%, var(--oro) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 75%, var(--testo) 50%, transparent 51%);
  background-size: 260px 320px;
}
.logo { width: 210px; height: 210px; margin: 0 auto; }
.scadenza { text-align: center; font-size: 15px; color: var(--oro); }
.foto-busta { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(40, 5, 20, .25); }

/* Bottoni a pillola */
.bottone, .bottone-contorno {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 999px; text-decoration: none; font: inherit; cursor: pointer;
}
.bottone {
  min-height: 52px; padding: 0 24px;
  background: var(--oro); color: var(--sfondo); font-weight: 600; border: 0;
}
.bottone-contorno {
  min-height: 48px; padding: 0 16px; flex: 1 1 140px;
  border: 1px solid var(--oro); color: var(--testo); background: transparent;
}

/* Elenchi con stella */
.elenco { list-style: none; margin: 0; padding: 0; }
.elenco li {
  display: flex; gap: 14px; padding: 15px 16px;
  border-bottom: 1px solid var(--linea); background: var(--riquadro);
}
.elenco svg { flex: none; margin-top: 2px; }
.elenco .nota { color: var(--testo-2); font-size: 15px; }
.intro-elenco { margin-bottom: 14px; }

/* Deda */
.foto-deda {
  width: 100%; max-width: 420px; aspect-ratio: 844 / 990; object-fit: cover;
  margin: 0 auto 16px; border-radius: 200px 200px 8px 8px;
}

/* Testimonianze (nascoste finché non ci sono testi veri) */
.testimonianza { padding: 22px; border: 1px dashed var(--oro); background: var(--riquadro); }

/* Abbonamento */
.riquadro-abbonamento {
  border: 1px solid var(--oro); border-radius: 24px; background: var(--riquadro);
  padding: 28px 20px; display: flex; flex-direction: column; gap: 14px; text-align: center;
}
.riquadro-abbonamento h2 { margin: 0; }
.prezzo { font-family: var(--titoli); font-size: 48px; line-height: 1.1; color: var(--oro); }

/* Regali */
.regala { display: flex; flex-direction: column; gap: 14px; }
.regala h2 { margin: 0; }
.regali { display: flex; gap: 10px; }
.regalo {
  flex: 1 1 90px; flex-direction: column; padding: 14px; min-height: 48px;
  background: var(--riquadro);
}

/* Condivisione */
.condividi { display: flex; flex-direction: column; gap: 12px; }
.condividi h2 { margin: 0; }
.condividi .bottoni { display: flex; flex-wrap: wrap; gap: 10px; }
.esito { min-height: 1.5em; text-align: center; font-size: 15px; color: var(--testo-2); word-break: break-all; }

/* Domande */
details { border-bottom: 1px solid var(--linea); padding: 6px 0; }
summary { min-height: 32px; padding: 6px 0; cursor: pointer; font-weight: 600; }
details p { margin-top: 8px; color: var(--testo-2); }
.faq-azione { margin-top: 24px; }

/* Piede */
.piede { display: flex; flex-direction: column; align-items: center; font-size: 14px; }
.piede .logo-piccolo { width: 80px; height: 80px; margin: 0 auto; }
.piede a { padding: 12px; }

/* Segnaposti visibili */
.segnaposto { color: var(--testo-2); }
.da-collegare { cursor: not-allowed; }
.segnaposto-link {
  display: block; font-size: 12px; font-weight: 400; letter-spacing: .03em; opacity: .8;
}

@media (min-width: 700px) {
  h1 { font-size: 56px; }
}

/* Bottone pieno con segnaposto: il testo [da collegare] va sotto */
.bottone.da-collegare { flex-direction: column; padding: 8px 24px; }
.piede a { text-align: center; }

/* Pagine interne (recesso, privacy, conferma) */
.pagina-interna { display: flex; flex-direction: column; gap: 18px; }
.titolo-pagina { font-size: 38px; }
.torna { font-size: 15px; color: var(--testo-2); padding: 8px 0; align-self: flex-start; }
.avviso { background: var(--riquadro); border-left: 3px solid var(--oro); padding: 14px 16px; }
.avviso a { color: var(--oro); }

/* Moduli */
form { display: flex; flex-direction: column; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; }
input[type="text"], input[type="email"] {
  font: inherit; color: var(--testo); background: var(--riquadro);
  border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
input:focus { border-color: var(--oro); }
input[aria-invalid="true"] { border-color: #ff9b9b; }
.aiuto { font-size: 14px; color: var(--testo-2); }
.errore { color: #ffb4b4; min-height: 1.2em; font-size: 15px; }
.errore:empty { min-height: 0; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bottone:disabled { opacity: .6; cursor: wait; }
.riquadro-esito {
  border: 1px solid var(--oro); border-radius: 24px; background: var(--riquadro);
  padding: 24px 20px; display: flex; flex-direction: column; gap: 12px;
}
.riquadro-esito h2 { margin: 0; }

p .segnaposto-link { display: inline; margin-left: 4px; }

.contatto-deda { margin-top: 20px; text-align: center; color: var(--testo-2); }
.contatto-deda a { color: var(--oro); }

/* Testi legali */
.bozza-legale { border: 1px dashed var(--oro); color: var(--oro); padding: 10px 14px; font-weight: 600; font-size: 15px; }
.testo-legale { display: flex; flex-direction: column; gap: 12px; }
.testo-legale h2 { text-align: left; font-size: 24px; margin: 18px 0 0; }
.testo-legale ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.testo-legale .segnaposto { color: var(--oro); }

/* Icone social nel piede */
.social { display: flex; gap: 14px; justify-content: center; margin: 8px 0; }
.piede .icona-social {
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--oro); color: var(--oro); background: var(--riquadro);
  transition: background .2s, color .2s;
}
.piede .icona-social:hover { background: var(--oro); color: var(--sfondo); opacity: 1; }
.piede [data-venditore] { text-align: center; color: var(--testo-2); }
