/* ============================================================
   FEDERICA™ — Aperitivo Riviera al tramonto
   palette: aperol, prosecco, plum scuro, crema
   ============================================================ */

:root {
  --aperol: #ff4d00;
  --aperol-chiaro: #ff8a3d;
  --prosecco: #ffd166;
  --plum: #2b0a1e;
  --plum-2: #471433;
  --crema: #fff3e0;
  --rosa: #ff7eb0;
  --ombra: rgba(43, 10, 30, 0.35);
  --display: 'Caprasimo', cursive;
  --body: 'Karla', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--crema);
  background:
    radial-gradient(120% 90% at 50% -10%, #ff6b1a 0%, #e8431f 28%, #a32652 55%, #471433 78%, #2b0a1e 100%)
    fixed var(--plum);
  overflow-x: hidden;
  line-height: 1.55;
}

::selection { background: var(--prosecco); color: var(--plum); }

/* grana pellicola */
.grana {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 24px;
  background: linear-gradient(rgba(43,10,30,.55), transparent);
  backdrop-filter: blur(2px);
}
.logo { font-family: var(--display); font-size: 1.4rem; letter-spacing: .04em; color: var(--prosecco); text-shadow: 2px 2px 0 var(--ombra); }
.logo sup { font-size: .55em; color: var(--crema); }
.topbar-note { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px 6vw 80px;
}
#scena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-testo { position: relative; z-index: 2; max-width: 620px; }
.sopratitolo {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .28em;
  color: var(--prosecco); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.6rem, 11vw, 8.5rem);
  line-height: .92; letter-spacing: .01em;
  text-shadow: 5px 6px 0 var(--ombra);
}
.hero h1 em { font-style: normal; color: var(--prosecco); -webkit-text-stroke: 0; }
.sottotitolo { font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin-top: 14px; font-style: italic; }
.sottotitolo strong { color: var(--rosa); }
.hero-bio { margin-top: 22px; max-width: 46ch; font-size: 1.04rem; opacity: .92; }

.bottone {
  display: inline-block; margin-top: 30px;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .05em;
  color: var(--plum); background: var(--prosecco);
  padding: 14px 30px; border-radius: 999px; text-decoration: none;
  border: 3px solid var(--plum);
  box-shadow: 5px 5px 0 var(--ombra);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.bottone:hover { transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ombra); }
.bottone.grande { font-size: 1.25rem; padding: 18px 40px; background: var(--rosa); }

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; opacity: .7;
  animation: galleggia 2.6s ease-in-out infinite;
}
@keyframes galleggia { 50% { transform: translateX(-50%) translateY(-8px); } }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: var(--prosecco); color: var(--plum);
  border-top: 3px solid var(--plum); border-bottom: 3px solid var(--plum);
  transform: rotate(-1.2deg) scale(1.02);
  font-family: var(--display); font-size: 1.05rem;
  padding: 10px 0;
}
.ticker-track { display: inline-block; animation: scorri 22s linear infinite; }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
.sezione { padding: 110px 6vw; max-width: 1200px; margin: 0 auto; }
.sezione h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05; text-shadow: 4px 4px 0 var(--ombra);
}
.sezione h2 em { font-style: normal; color: var(--prosecco); }
.nota-sezione { margin-top: 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; opacity: .7; }

/* ---------- stats ---------- */
.stat-griglia {
  margin-top: 50px;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stat-card {
  background: rgba(255, 243, 224, .07);
  border: 2px solid rgba(255, 243, 224, .25);
  border-radius: 22px; padding: 30px 24px;
  backdrop-filter: blur(4px);
  transform: rotate(-.6deg);
  transition: transform .2s ease;
}
.stat-card:nth-child(even) { transform: rotate(.8deg); }
.stat-card:hover { transform: rotate(0) translateY(-6px); }
.stat-card.evidenza { background: var(--prosecco); color: var(--plum); border-color: var(--plum); box-shadow: 6px 6px 0 var(--ombra); }
.stat-num { font-family: var(--display); font-size: clamp(2.8rem, 6vw, 4.2rem); display: block; line-height: 1; }
.stat-label { display: block; margin-top: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.stat-sub { display: block; margin-top: 6px; font-size: .82rem; font-style: italic; opacity: .8; }

/* ---------- lulu ---------- */
.lulu-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 820px) { .lulu-grid { grid-template-columns: 1fr; } }

.chat { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.msg {
  padding: 12px 18px; border-radius: 20px; max-width: 85%;
  font-size: .98rem; box-shadow: 3px 3px 0 var(--ombra);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.msg.visibile { opacity: 1; transform: none; }
.msg.fede { align-self: flex-end; background: var(--rosa); color: var(--plum); border-bottom-right-radius: 4px; }
.msg.lulu-msg { align-self: flex-start; background: var(--crema); color: var(--plum); border-bottom-left-radius: 4px; }

.lulu-card {
  background: var(--plum-2); border: 3px solid var(--prosecco);
  border-radius: 22px; padding: 30px;
  transform: rotate(1.5deg);
  box-shadow: 8px 8px 0 var(--ombra);
  position: sticky; top: 100px;
}
.lulu-card h3 { font-family: var(--display); color: var(--prosecco); font-size: 1.4rem; margin-bottom: 16px; }
.lulu-card ul { list-style: none; }
.lulu-card li { padding: 8px 0; border-bottom: 1px dashed rgba(255,243,224,.25); }

/* ---------- catalogo ---------- */
.card-griglia {
  margin-top: 50px;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.esemplare {
  background: var(--crema); color: var(--plum);
  border-radius: 24px; padding: 30px 26px;
  border: 3px solid var(--plum);
  box-shadow: 7px 7px 0 var(--ombra);
  transition: transform .18s ease;
  position: relative;
}
.esemplare:nth-child(odd) { transform: rotate(-1deg); }
.esemplare:nth-child(even) { transform: rotate(1.1deg); }
.esemplare:hover { transform: rotate(0) translateY(-8px) scale(1.02); }
.esemplare-emoji { font-size: 2.4rem; display: block; }
.esemplare h3 { font-family: var(--display); font-size: 1.45rem; margin: 12px 0 10px; color: #c2330a; }
.esemplare p { font-size: .96rem; }
.pagella {
  display: block; margin-top: 16px; padding-top: 12px;
  border-top: 2px dashed rgba(43,10,30,.3);
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.esemplare:last-child { background: var(--prosecco); }

/* ---------- cuore ---------- */
.cuore-box {
  background: rgba(255, 126, 176, .12);
  border: 3px dashed var(--rosa);
  border-radius: 28px; padding: clamp(30px, 6vw, 60px);
  max-width: 760px; margin: 0 auto; text-align: center;
}
.cuore-box h2 { margin-bottom: 24px; }
.cuore-box p { font-size: 1.12rem; margin-bottom: 18px; }
.cuore-box .firma { font-style: italic; opacity: .75; font-size: .95rem; margin-bottom: 0; }

/* ---------- candidatura ---------- */
.candidatura { text-align: center; }
.form-cuore {
  margin: 50px auto 0; max-width: 620px; text-align: left;
  display: flex; flex-direction: column; gap: 14px;
}
.check {
  background: rgba(255,243,224,.08);
  border: 2px solid rgba(255,243,224,.3);
  border-radius: 14px; padding: 14px 18px;
  display: flex; gap: 12px; align-items: center;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
  font-size: .98rem;
}
.check:hover { background: rgba(255,243,224,.15); }
.check input { width: 20px; height: 20px; accent-color: var(--aperol); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--prosecco); background: rgba(255,209,102,.15); }
.form-cuore .bottone { align-self: center; margin-top: 20px; }

.esito {
  margin: 30px auto 0; max-width: 560px;
  font-family: var(--display); font-size: 1.3rem; color: var(--prosecco);
  animation: appari .5s ease;
}
@keyframes appari { from { opacity: 0; transform: scale(.9); } }

/* ---------- footer ---------- */
.footer {
  text-align: center; padding: 60px 6vw 40px;
  border-top: 3px solid rgba(255,243,224,.2);
  font-size: .9rem;
}
.footer-mini { margin-top: 10px; font-size: .78rem; opacity: .6; }

/* ---------- cuoricini coriandoli ---------- */
.cuoricino {
  position: fixed; z-index: 60; pointer-events: none;
  font-size: 1.6rem; animation: cade 2.8s ease-in forwards;
}
@keyframes cade {
  from { transform: translateY(-10vh) rotate(0); opacity: 1; }
  to { transform: translateY(110vh) rotate(540deg); opacity: .2; }
}

/* reveal allo scroll */
.rivela { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.rivela.visibile { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .topbar-note { display: none; }
  .hero { padding-top: 90px; }
  .sezione { padding: 80px 6vw; }
  .lulu-card { position: static; transform: none; }
}
