/* Kit «Portalo con te» — palette e font dal DNA stilistico di Donna, non solo mamma */
@font-face { font-family: "League Spartan"; src: url("/font/LeagueSpartan-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "League Spartan"; src: url("/font/LeagueSpartan-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/font/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/font/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/font/Lato-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --lilla: #71629F;
  --lilla-scuro: #5E5088;
  --carta: #FDFAF5;
  --crema: #F1E7DE;
  --beige: #E5D3C8;
  --pesca: #E5BCA7;
  --prugna: #7A3E64;
  --nero: #26191B;
  --testo-tenue: #5B4A4D;
  --raggio: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--nero);
  font: 400 1.0625rem/1.6 "Lato", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--prugna); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--prugna); outline-offset: 2px; }

/* Fascia lilla con bordo di carta strappata, come in copertina */
.testata {
  background: var(--lilla);
  color: var(--carta);
  padding: 40px 16px 72px;
  position: relative;
}
.testata::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 5px; height: 26px;
  background: var(--pesca);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L18 9 L31 15 L47 8 L62 13 L80 6 L96 12 L113 9 L127 16 L144 10 L160 14 L178 7 L193 13 L211 9 L226 15 L242 8 L259 12 L275 6 L290 14 L307 9 L322 15 L340 8 L356 13 L373 7 L388 12 L405 9 L421 16 L437 10 L452 14 L470 7 L486 13 L502 9 L517 15 L534 8 L551 12 L567 6 L583 13 L600 9 L600 26 L0 26 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L18 9 L31 15 L47 8 L62 13 L80 6 L96 12 L113 9 L127 16 L144 10 L160 14 L178 7 L193 13 L211 9 L226 15 L242 8 L259 12 L275 6 L290 14 L307 9 L322 15 L340 8 L356 13 L373 7 L388 12 L405 9 L421 16 L437 10 L452 14 L470 7 L486 13 L502 9 L517 15 L534 8 L551 12 L567 6 L583 13 L600 9 L600 26 L0 26 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  border-top: 0;
  filter: drop-shadow(0 -4px 0 var(--pesca));
}
.testata::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: var(--crema);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L18 9 L31 15 L47 8 L62 13 L80 6 L96 12 L113 9 L127 16 L144 10 L160 14 L178 7 L193 13 L211 9 L226 15 L242 8 L259 12 L275 6 L290 14 L307 9 L322 15 L340 8 L356 13 L373 7 L388 12 L405 9 L421 16 L437 10 L452 14 L470 7 L486 13 L502 9 L517 15 L534 8 L551 12 L567 6 L583 13 L600 9 L600 26 L0 26 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L18 9 L31 15 L47 8 L62 13 L80 6 L96 12 L113 9 L127 16 L144 10 L160 14 L178 7 L193 13 L211 9 L226 15 L242 8 L259 12 L275 6 L290 14 L307 9 L322 15 L340 8 L356 13 L373 7 L388 12 L405 9 L421 16 L437 10 L452 14 L470 7 L486 13 L502 9 L517 15 L534 8 L551 12 L567 6 L583 13 L600 9 L600 26 L0 26 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  border-top: 0;
  filter: drop-shadow(0 -4px 0 var(--pesca));
}
.contenitore { max-width: 980px; margin: 0 auto; }
.stretto { max-width: 680px; margin: 0 auto; }

.occhiello {
  font: 700 0.8125rem/1.4 "Lato", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pesca);
  margin: 0 0 12px;
}
h1, h2 { font-family: "League Spartan", "Lato", sans-serif; font-weight: 800; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--lilla-scuro); }
.non-solo { font: italic 400 0.82em "Lato", sans-serif; color: var(--pesca); }

/* Apertura: copertina + ringraziamento */
.apertura { display: grid; gap: 32px; align-items: center; }
.apertura .copertina {
  width: min(260px, 70%);
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(38, 25, 27, 0.35), 0 2px 6px rgba(38, 25, 27, 0.25);
  transform: rotate(-2deg);
}
.apertura p { font-size: 1.125rem; margin: 16px 0 0; color: var(--carta); }
@media (min-width: 760px) {
  .testata { padding: 64px 24px 96px; }
  .apertura { grid-template-columns: 300px 1fr; gap: 56px; }
  .apertura .copertina { width: 100%; }
}

main { padding: 24px 16px 56px; }
.sezione { margin: 40px 0; }

/* Cosa contiene il kit */
.contenuto { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.contenuto li {
  background: var(--carta);
  border-radius: var(--raggio);
  padding: 16px 18px;
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center;
}
.contenuto img { width: 64px; border-radius: 6px; }
.contenuto strong { font-family: "League Spartan", sans-serif; font-size: 1.15rem; display: block; color: var(--nero); }
.contenuto span { color: var(--testo-tenue); font-size: 0.98rem; }

/* Modulo */
.modulo {
  background: var(--carta);
  border-radius: var(--raggio);
  border-top: 6px solid var(--lilla);
  padding: 28px 20px;
  box-shadow: 0 10px 30px rgba(113, 98, 159, 0.15);
}
@media (min-width: 760px) { .modulo { padding: 36px 40px; } }
.campo { margin: 20px 0 0; }
.campo label { display: block; font-weight: 700; margin-bottom: 6px; }
.campo input {
  width: 100%;
  font: inherit;
  padding: 14px 14px;
  border: 2px solid var(--beige);
  border-radius: 10px;
  background: #fff;
  color: var(--nero);
}
.campo input:focus { border-color: var(--lilla); outline: none; }
.consenso { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin: 22px 0 0; align-items: start; font-size: 0.98rem; }
.consenso input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lilla); }
.nota { font-size: 0.9rem; color: var(--testo-tenue); margin: 16px 0 0; }
.nascosto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errore { color: #A12E3A; font-size: 0.95rem; margin: 6px 0 0; }
.errore:empty { display: none; }

.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  margin: 26px 0 0;
  padding: 18px 22px;
  border: 0; border-radius: 999px;
  background: var(--prugna);
  color: var(--carta);
  font: 800 1.15rem/1.2 "League Spartan", sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 #5C2E4B;
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.bottone:hover { background: #6B3657; }
.bottone:active { transform: translateY(3px); box-shadow: 0 3px 0 #5C2E4B; }
.bottone[disabled] { opacity: .7; cursor: wait; }
.bottone.secondario { background: var(--lilla); box-shadow: 0 6px 0 var(--lilla-scuro); width: auto; }

/* Pagina download */
.griglia { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 20px 0 0; }
@media (min-width: 640px) { .griglia { grid-template-columns: repeat(5, 1fr); } }
.griglia.sfondi { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .griglia.sfondi { grid-template-columns: repeat(4, 1fr); } }
.griglia a { display: block; border-radius: 10px; overflow: hidden; background: var(--carta); text-decoration: none; color: var(--nero); }
.griglia a span { display: block; padding: 8px 10px; font-size: 0.85rem; font-weight: 700; }
.consiglio { background: var(--carta); border-left: 5px solid var(--pesca); border-radius: 8px; padding: 14px 16px; margin: 16px 0 0; font-size: 0.98rem; }
.diploma { display: grid; gap: 24px; align-items: center; }
.diploma img { width: min(240px, 70%); margin: 0 auto; box-shadow: 0 8px 24px rgba(38,25,27,.18); }
@media (min-width: 640px) { .diploma { grid-template-columns: 240px 1fr; } .diploma img { width: 100%; } }

/* Privacy */
.testo h2 { margin: 36px 0 8px; font-size: 1.35rem; }
.testo p, .testo li { max-width: 68ch; }

footer {
  background: var(--lilla);
  color: var(--carta);
  text-align: center;
  padding: 28px 16px;
  font-size: 0.92rem;
}
footer a { color: var(--carta); }
footer .firma { font-family: "League Spartan", sans-serif; font-weight: 800; letter-spacing: .04em; font-size: 1.05rem; }
