/* Melodono · identità: carta da regalo lilla, inchiostro blu notte, nastro lampone, oro.
   Bodoni (tipografia nata a Parma) per i titoli, Figtree per il testo. */
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #1e2140;        /* inchiostro blu notte */
  --ink-soft: #545874;
  --paper: #f3eff8;      /* carta da regalo lilla */
  --paper-deep: #e7e0f1;
  --ribbon: #b8295f;     /* nastro lampone */
  --ribbon-dark: #941f4b;
  --gold: #d9a441;       /* oro del cartellino */
  --white: #fffdfb;
  --line: #d9d0e6;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
a { color: var(--ribbon); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 660px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* Testata */
header.top { padding: 20px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--display); font-style: italic; font-size: 30px; color: var(--ink); text-decoration: none; letter-spacing: -.3px; }
header.top nav a { margin-left: 22px; text-decoration: none; color: var(--ink-soft); font-size: 15px; }
header.top nav a:hover { color: var(--ribbon); }

/* Pulsanti */
.btn { display: inline-block; background: var(--ribbon); color: #fff; border: 0; padding: 16px 30px; border-radius: 6px; font: 600 17px var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ribbon-dark); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Apertura: titolo + cartellino regalo */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -1px; margin: 0 0 22px; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin: 0 0 30px; }
.hero .note { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); }

.tag {
  position: relative; background: var(--white); color: var(--ink);
  padding: 34px 34px 30px 52px; border-radius: 6px 18px 18px 6px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(30, 33, 64, .45);
  transform: rotate(-2.5deg);
}
.tag::before { /* foro del cartellino con il nastro */
  content: ""; position: absolute; left: 18px; top: 34px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--gold);
}
.tag::after { /* nastro */
  content: ""; position: absolute; left: -64px; top: 40px; width: 92px; height: 5px;
  background: var(--ribbon); transform: rotate(-14deg); border-radius: 3px;
}
.tag .to { font-family: var(--display); font-style: italic; font-size: 34px; line-height: 1.1; margin: 0 0 4px; }
.tag .occ { font-size: 14px; color: var(--ink-soft); margin: 0 0 20px; }
.tag .verse { font-family: var(--display); font-size: 21px; line-height: 1.55; margin: 0; }
.tag .verse span { display: block; opacity: 0; transform: translateY(6px); animation: line-in .7s ease forwards; }
.tag .verse span:nth-child(2) { animation-delay: .5s; }
.tag .verse span:nth-child(3) { animation-delay: 1s; }
.tag .verse span:nth-child(4) { animation-delay: 1.5s; }
.tag .bars { display: flex; gap: 4px; align-items: flex-end; height: 22px; margin-top: 22px; }
.tag .bars i { width: 4px; background: var(--gold); border-radius: 2px; animation: bar 1.1s ease-in-out infinite; }
.tag .bars i:nth-child(2n) { animation-delay: .2s; } .tag .bars i:nth-child(3n) { animation-delay: .45s; }
@keyframes line-in { to { opacity: 1; transform: none; } }
@keyframes bar { 0%, 100% { height: 5px; } 50% { height: 22px; } }

/* Sezioni */
section { padding: 72px 0; }
section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.5px; }
section .intro { color: var(--ink-soft); max-width: 34em; margin: 0 0 36px; }
.band { background: var(--ink); color: var(--paper); }
.band .intro, .band p { color: #c9c5dc; }

/* Esempi da ascoltare */
.samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.sample { background: var(--white); border-radius: 6px; padding: 22px; border-left: 4px solid var(--gold); }
.sample h3 { font-family: var(--display); font-weight: 400; font-size: 23px; margin: 0 0 4px; }
.sample p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
audio { width: 100%; }

/* Occasioni: nastri cliccabili, non schede */
.ribbons { display: flex; flex-wrap: wrap; gap: 12px; }
.ribbons a { display: inline-block; padding: 12px 20px; border-radius: 40px; background: var(--white); color: var(--ink); text-decoration: none; font-size: 17px; box-shadow: inset 0 0 0 1.5px var(--line); }
.ribbons a:hover { box-shadow: inset 0 0 0 1.5px var(--ribbon); color: var(--ribbon); }

/* Passaggi (vera sequenza) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-style: italic; font-size: 54px; line-height: 1; color: var(--gold); margin-bottom: 10px; }
.steps h3 { font-family: var(--display); font-weight: 400; font-size: 25px; margin: 0 0 8px; color: var(--paper); }

/* Garanzie */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.promises strong { display: block; font-size: 18px; margin-bottom: 4px; }
.promises span { color: var(--ink-soft); font-size: 15px; }

/* Domande */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-family: var(--display); font-size: 24px; color: var(--ribbon); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-soft); margin: 10px 0 0; }

.closing { text-align: center; }
.closing h2 { margin-bottom: 24px; }

footer { padding: 44px 0 64px; color: var(--ink-soft); font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: var(--ink-soft); margin-right: 16px; }

/* Pagine interne e modulo */
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 50px); line-height: 1.08; margin: 8px 0 8px; }
.box { background: var(--white); border-radius: 8px; padding: 28px; margin: 24px 0; }
form .field { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 6px;
  font: 17px var(--text); background: #fff; color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ribbon); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { font-weight: 400; border-radius: 40px; padding: 9px 16px; cursor: pointer; background: #fff; margin: 0; box-shadow: inset 0 0 0 1.5px var(--line); }
.choices input { position: absolute; opacity: 0; }
.choices label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ribbon); color: var(--ribbon); font-weight: 600; }
.choices label:has(input:focus-visible) { outline: 3px solid var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { margin-top: 5px; }
.trap { position: absolute; left: -5000px; }
.error { color: #a3203a; margin: 10px 0; }
.wait { text-align: center; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--ribbon); border-radius: 50%; margin: 18px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lyrics { white-space: pre-line; font-family: var(--display); font-size: 20px; line-height: 1.65; }

#cookie { position: fixed; bottom: 14px; left: 14px; right: 14px; max-width: 560px; margin: auto; background: var(--white); border-radius: 8px; padding: 16px 18px; box-shadow: 0 12px 34px rgba(30, 33, 64, .18); font-size: 14px; z-index: 50; }
#cookie .row { display: flex; gap: 10px; margin-top: 10px; }
#cookie .btn { padding: 9px 16px; font-size: 14px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .tag { margin: 0 8px 0 28px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  header.top nav { display: none; }
  .hero { padding: 16px 0 56px; }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tag .verse span { animation: none; opacity: 1; transform: none; }
  .tag .bars i { animation: none; height: 12px; }
  html { scroll-behavior: auto; }
}

/* Pulsante fisso su telefono */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; text-align: center;
    background: var(--ribbon); color: #fff; padding: 14px 16px; border-radius: 8px; font: 600 17px var(--text); text-decoration: none;
    box-shadow: 0 8px 24px rgba(30,33,64,.25); transform: translateY(140%); transition: transform .25s ease; }
  .sticky-cta small { display: block; font-weight: 400; font-size: 13px; opacity: .85; }
  .sticky-cta.on { transform: none; }
  body { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
