/* Pagina d'attesa – resta online fino al 5 dicembre 2026 */
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/fraunces-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --sangue: #4D0000;
  --sangue-chiaro: #6E1414;
  --notte: #1D2846;
  --oro: #D9AE52;
  --oro-chiaro: #E8C277;
  --crema: #F6EBD9;
  --scuro: #1C0E07;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--crema);
  background: var(--scuro);
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 700; line-height: 1.12; margin: 0; }
a { color: var(--oro-chiaro); }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lo studio con il camino fa da sfondo; il lato sinistro si scurisce per il testo */
.attesa {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background-color: var(--scuro);
  background-image: image-set(url("../img/studio-scrittore.webp") type("image/webp"), url("../img/studio-scrittore.jpg") type("image/jpeg"));
  background-size: cover; background-position: 70% center;
}
.attesa__velo {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,14,7,.94) 0%, rgba(28,14,7,.86) 38%, rgba(28,14,7,.45) 62%, rgba(28,14,7,.15) 100%);
}
.attesa__contenuto {
  position: relative; flex: 1;
  width: min(640px, 100%); padding: 40px clamp(20px, 6vw, 72px) 24px;
  display: flex; flex-direction: column; gap: 22px;
}

.marchio { display: flex; align-items: center; gap: 14px; }
.marchio__logo { width: 30px; height: auto; }
.marchio__nome { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 24px; font-weight: 700; color: var(--oro); line-height: 1.1; }
.marchio__mestiere { margin: 2px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .22em; color: var(--crema); opacity: .85; }

.occhiello { margin: 18px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
h1 { font-size: clamp(36px, 5.4vw, 56px); color: #fff; }
.a-capo { display: block; color: var(--oro); }
.introduzione { margin: 0; font-size: 19px; max-width: 34em; color: rgba(246,235,217,.9); }

.libro {
  display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center;
  padding: 18px; border-radius: 18px;
  background: rgba(246,235,217,.07); border: 1px solid rgba(217,174,82,.35);
  backdrop-filter: blur(3px);
}
.libro__copertina { width: 112px; height: auto; border-radius: 4px; box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.libro h2 { font-size: 24px; color: #fff; }
.libro__sottotitolo { margin: 4px 0 0; font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--oro-chiaro); }
.libro__formati { margin: 8px 0 0; font-size: 15px; opacity: .85; }
.conto {
  display: inline-block; margin: 12px 0 0; padding: 6px 14px; border-radius: 999px;
  background: var(--oro); color: var(--scuro); font-weight: 700; font-size: 16px;
}

.avviso h2 { font-size: 24px; color: #fff; }
.avviso > p { margin: 6px 0 14px; color: rgba(246,235,217,.9); }
.modulo { display: grid; gap: 12px; }
.modulo__riga { display: flex; gap: 10px; }
.modulo input[type="email"] {
  flex: 1; min-width: 0; min-height: 54px; padding: 12px 16px;
  border-radius: 12px; border: 2px solid rgba(246,235,217,.35);
  background: rgba(255,255,255,.95); color: #2B1D14; font: inherit;
}
.modulo input[type="email"]:focus { border-color: var(--oro); outline: none; }
.pulsante {
  min-height: 54px; padding: 12px 26px; border-radius: 12px; border: 0;
  background: var(--sangue); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  transition: background .15s ease;
}
.pulsante:hover, .pulsante:focus-visible { background: var(--sangue-chiaro); }
.consenso { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(246,235,217,.85); cursor: pointer; }
.consenso input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--oro); }
.modulo__esito { margin: 0; min-height: 1.4em; font-weight: 700; color: var(--oro-chiaro); }

.piede { position: relative; padding: 16px clamp(20px, 6vw, 72px) 22px; font-size: 14px; color: rgba(246,235,217,.6); }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .attesa { background-position: 62% center; }
  .attesa__velo { background: linear-gradient(180deg, rgba(28,14,7,.82) 0%, rgba(28,14,7,.9) 45%, rgba(28,14,7,.96) 100%); }
  .attesa__contenuto { padding-top: 28px; }
  .libro { grid-template-columns: 88px 1fr; gap: 16px; padding: 14px; }
  .libro__copertina { width: 88px; }
  .libro h2 { font-size: 21px; }
  .modulo__riga { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
