/* ==========================================================================
   Rifinitura della home
   Un solo linguaggio per tutte le sezioni chiare: stesso inchiostro e
   stesso verde dei titoli, superfici morbide, profondità leggera,
   micro-interazioni e ingressi allo scroll (gestiti da home-polish.js).
   ========================================================================== */
:root {
  --hp-ink: #11303a;
  --hp-accent: #2c7054;
  --hp-accent-soft: #e4efe6;
  --hp-muted: #53666b;
  --hp-line: #dbe4dd;
  --hp-mint: #f1f6f0;
  --hp-ease: cubic-bezier(.2, .7, .2, 1);
  --hp-shadow: 0 30px 70px -40px rgba(17, 48, 58, .35), 0 2px 6px rgba(17, 48, 58, .04);
}

/* ---- Titoli e occhielli: un unico tono -------------------------------- */
:is(#funzionalita, #moduli, #prova-assistente, #studio, #semplicita, #domande, #contatto) h2,
#funzionalita .panel-copy h3,
#prova-assistente .ai-role-copy h3 { color: var(--hp-ink); }
:is(#funzionalita, #moduli, #prova-assistente, #studio, #semplicita, #domande, #contatto) h2 em { color: var(--hp-accent); }
:is(#funzionalita, #moduli, #prova-assistente, #studio, #semplicita, #domande, #contatto) .eyebrow {
  color: var(--hp-accent);
  letter-spacing: .16em;
}
:is(#funzionalita, #moduli, #prova-assistente, #studio, #domande, #contatto) :is(.section-heading, .catalogue-heading, .faq-layout > div, .contact-copy) > p:not(.eyebrow):not(.role-choice-hint) {
  color: var(--hp-muted);
}

/* ---- Pulsanti a pillola: selezione in inchiostro, non in nero --------- */
.tabs > button,
.ai-role-tabs > button {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s var(--hp-ease);
}
.tabs > button[aria-selected=true],
.ai-role-tabs > button[aria-selected=true] {
  background: var(--hp-ink);
  border-color: var(--hp-ink);
  box-shadow: 0 12px 26px -14px rgba(17, 48, 58, .7);
}
.tabs > button:not([aria-selected=true]):hover,
.ai-role-tabs > button[aria-selected=false]:hover {
  background: var(--hp-accent-soft);
  transform: translateY(-1px);
}

/* ---- Funzionalità: il pannello diventa una superficie viva ------------ */
#funzionalita .product-panel {
  background:
    radial-gradient(120% 90% at 100% 0%, #e2eee4 0%, transparent 55%),
    linear-gradient(160deg, #f8fbf7, #eff5ef);
  border: 1px solid var(--hp-line);
  box-shadow: var(--hp-shadow);
}
#funzionalita .function-symbol {
  background: linear-gradient(160deg, #2c7054, #9cc8ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#funzionalita .function-benefits p {
  border-color: var(--hp-line);
  box-shadow: 0 14px 30px -24px rgba(17, 48, 58, .4);
  transition: transform .3s var(--hp-ease), box-shadow .3s ease, border-color .3s ease;
}
#funzionalita .function-benefits p::before { color: var(--hp-accent); font-weight: 700; }
#funzionalita .function-benefits p:hover {
  transform: translateX(4px);
  border-color: #b9d3c1;
  box-shadow: 0 18px 34px -24px rgba(17, 48, 58, .5);
}
/* Il contenuto del pannello cambia con una dissolvenza breve. */
#funzionalita .product-panel.hp-swap :is(.panel-copy, .function-art) { animation: hp-swap .45s var(--hp-ease); }
@keyframes hp-swap {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---- Moduli -------------------------------------------------------- */
#moduli .module {
  border-color: var(--hp-line);
  transition: border-color .3s ease, box-shadow .35s ease, transform .35s var(--hp-ease), background-color .3s ease;
}
#moduli .module:hover {
  border-color: #bcd4c4;
  box-shadow: var(--hp-shadow);
  transform: translateY(-3px);
}
#moduli .module[open] {
  border-color: #a9c8b3;
  background: linear-gradient(170deg, #fbfdfb, #f2f8f2);
  box-shadow: var(--hp-shadow);
}
#moduli .module h3,
#moduli .module strong { color: var(--hp-ink); }
#moduli .catalogue-more {
  border-color: #cfe0d3;
  background: radial-gradient(120% 140% at 0% 0%, #eaf4ec, #f6faf5 60%);
}

/* ==========================================================================
   Casi d'uso: tre domande, tre risposte
   ========================================================================== */
.home-cases {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(84px, 9vw, 130px) 0 clamp(76px, 8vw, 110px);
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(84, 168, 128, .22), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(46, 110, 92, .28), transparent 70%),
    #0a1f22;
  color: #eef5ef;
}
.home-cases::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
}
.hc-head { max-width: 1060px; }
.hc-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9fd8b4;
}
.hc-kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.home-cases h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -.045em;
  color: #f2f7f2;
}
.home-cases h2 em { font-family: inherit; font-style: normal; font-weight: inherit; color: #9fd8b4; }
.hc-intro { max-width: 560px; margin: 26px 0 0; font-size: 17px; line-height: 1.65; color: rgba(232, 240, 233, .72); }

.hc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(48px, 6vw, 72px);
}
.hc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 24px 22px;
  border-radius: 26px;
  color: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .45s var(--hp-ease), border-color .35s ease, box-shadow .45s ease, background-color .35s ease;
}
.hc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(159, 216, 180, .45);
  box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(159, 216, 180, .12), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.hc-card:focus-visible { outline: 3px solid #9fd8b4; outline-offset: 4px; }
.hc-role { display: flex; align-items: center; gap: 12px; }
.hc-role > i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #0b2120;
  background: linear-gradient(150deg, #c5ecd2, #86c4a0);
}
.hc-role > span { display: flex; flex-direction: column; gap: 2px; }
.hc-role strong { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.hc-role small { font-size: 12px; color: rgba(232, 240, 233, .6); }
.hc-role > b { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: rgba(232, 240, 233, .45); }

/* La domanda: un messaggio inviato. */
.hc-ask {
  align-self: flex-end;
  max-width: 92%;
  padding: 14px 18px;
  border-radius: 20px 20px 6px 20px;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: #0b2120;
  background: #9fd8b4;
  box-shadow: 0 18px 30px -20px rgba(159, 216, 180, .8);
}
/* La risposta: prima i puntini, poi il contenuto. */
.hc-reply { position: relative; display: grid; min-height: 0; }
.hc-typing,
.hc-answer { grid-area: 1 / 1; }
.hc-answer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 6px 20px 20px 20px;
  background: #f7faf6;
  color: #11303a;
}
.hc-answer > small { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #2c7054; }
.hc-text { font-size: 14px; line-height: 1.5; font-weight: 500; }
.hc-typing {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 6px 16px 16px 16px;
  background: rgba(255, 255, 255, .1);
  opacity: 0;
}
.hc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #cfe9d8; animation: hc-dot 1s ease-in-out infinite; }
.hc-typing i:nth-child(2) { animation-delay: .15s; }
.hc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hc-dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }

.hc-spark { width: 100%; height: auto; overflow: visible; }
.hc-spark-area { fill: rgba(44, 112, 84, .1); }
.hc-spark-line { fill: none; stroke: #2c7054; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 0; }
.hc-spark circle { fill: #f7faf6; stroke: #2c7054; stroke-width: 2; }
.hc-spark .hc-spark-last { fill: #2c7054; }
.hc-scale { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: #53666b; margin-top: -4px; }
.hc-list { display: grid; gap: 6px; }
.hc-list > span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e1e9e3;
  font-size: 13px;
  font-weight: 600;
}
.hc-list b {
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  background: #2c7054;
}
.hc-list > span:nth-child(2) b { background: #b8741f; }
.hc-bars { display: grid; gap: 9px; }
.hc-bars > span { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; }
.hc-bars small { font-size: 11px; font-weight: 600; color: #53666b; }
.hc-bars i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #5c9a7d, #2c7054);
  transform-origin: left;
  transform: scaleX(var(--v));
}
.hc-bars > span:last-child i { background: linear-gradient(90deg, #e3b06b, #b8741f); }
.hc-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(232, 240, 233, .7);
}
.hc-foot b {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 400;
  color: #9fd8b4;
  border: 1px solid rgba(159, 216, 180, .35);
  transition: transform .35s var(--hp-ease), background-color .3s ease, color .3s ease;
}
.hc-card:hover .hc-foot b { transform: translate(2px, -2px); background: #9fd8b4; color: #0b2120; }
.hc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 36px;
}
.hc-bottom > p { margin: 0; font-size: 11px; letter-spacing: .06em; color: rgba(232, 240, 233, .5); }
.home-cases .text-link { color: #eef5ef; }
.home-cases .text-link span { color: #9fd8b4; }

/* Sequenza d'ingresso: la scheda, la domanda, i puntini, la risposta. */
.home-cases.hc-play .hc-card { opacity: 0; transform: translateY(40px); }
.home-cases.hc-play .hc-ask { opacity: 0; transform: translateY(12px) scale(.96); transform-origin: right bottom; }
.home-cases.hc-play .hc-answer { opacity: 0; transform: translateY(10px); }
.home-cases.hc-play .hc-spark-line { stroke-dashoffset: 300; }
.home-cases.hc-play .hc-spark circle { opacity: 0; }
.home-cases.hc-play .hc-list > span { opacity: 0; transform: translateX(-8px); }
.home-cases.hc-play .hc-bars i { transform: scaleX(0); }

.home-cases.hc-play.is-in .hc-card {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease calc(var(--i) * .12s), transform 1s var(--hp-ease) calc(var(--i) * .12s), border-color .35s ease, box-shadow .45s ease;
}
.home-cases.hc-play.is-in .hc-card:hover { transform: translateY(-6px); transition: transform .45s var(--hp-ease), border-color .35s ease, box-shadow .45s ease; }
.home-cases.hc-play.is-in .hc-ask {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease calc(.35s + var(--i) * .12s), transform .6s var(--hp-ease) calc(.35s + var(--i) * .12s);
}
.home-cases.hc-play.is-in .hc-typing { animation: hc-typing 1.1s ease calc(.75s + var(--i) * .12s) both; }
@keyframes hc-typing { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }
.home-cases.hc-play.is-in .hc-answer {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease calc(1.65s + var(--i) * .12s), transform .7s var(--hp-ease) calc(1.65s + var(--i) * .12s);
}
.home-cases.hc-play.is-in .hc-spark-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--hp-ease) 2s; }
.home-cases.hc-play.is-in .hc-spark circle { opacity: 1; transition: opacity .3s ease 2.6s; }
.home-cases.hc-play.is-in .hc-list > span {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease calc(2s + var(--j) * .14s), transform .55s var(--hp-ease) calc(2s + var(--j) * .14s);
}
.home-cases.hc-play.is-in .hc-bars i { transform: scaleX(var(--v)); transition: transform 1.1s var(--hp-ease) calc(2.1s + var(--j) * .18s); }

@media (max-width: 1000px) {
  .hc-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 640px) {
  .home-cases { padding: 80px 0 70px; }
  .hc-intro { font-size: 15px; }
  .hc-card { padding: 22px 18px 18px; border-radius: 22px; }
  .hc-ask { font-size: 19px; }
}

/* ---- Prova l'assistente ---------------------------------------------- */
#prova-assistente .ai-panel {
  background:
    radial-gradient(90% 80% at 0% 0%, #e6f1e8 0%, transparent 60%),
    linear-gradient(165deg, #f9fbf8, #f0f5ef);
  border: 1px solid var(--hp-line);
  border-radius: 28px;
  box-shadow: var(--hp-shadow);
}
#prova-assistente .demo-chat {
  box-shadow: 0 50px 90px -50px rgba(17, 48, 58, .55), 0 2px 8px rgba(17, 48, 58, .05);
}
#prova-assistente .ai-boundaries > * { transition: transform .35s var(--hp-ease); }

/* ---- Lo studio: schede con profondità --------------------------------- */
#studio .feature-card {
  transition: opacity .65s, transform .65s, translate .2s linear, box-shadow .4s ease, background-color .3s ease;
}
#studio .feature-card.motion-arrived:hover {
  transform: translateY(-6px);
  box-shadow: var(--hp-shadow);
  transition: transform .45s var(--hp-ease), translate .2s linear, box-shadow .45s ease, background-color .3s ease;
}

/* ---- Domande frequenti ----------------------------------------------- */
#domande .faq-list summary { transition: color .25s ease; }
#domande .faq-list summary:hover { color: var(--hp-accent); }
#domande .faq-list details[open] summary { color: var(--hp-ink); font-weight: 600; }
#domande .faq-list details[open] > :not(summary) { animation: hp-swap .45s var(--hp-ease); }

/* ---- Contatti --------------------------------------------------------- */
#contatto .contact-form {
  border-color: var(--hp-line);
  box-shadow: var(--hp-shadow);
}
#contatto .contact-form :is(input, textarea) {
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
#contatto .contact-form :is(input, textarea):focus {
  outline: none;
  border-color: var(--hp-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(44, 112, 84, .14);
}

/* ==========================================================================
   Ingressi allo scroll: solo per ciò che sta sotto la piega al caricamento.
   Senza JavaScript o con «riduci movimento» tutto resta visibile.
   ========================================================================== */
.hp-rise {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s ease var(--hp-delay, 0s), translate 1s var(--hp-ease) var(--hp-delay, 0s);
}
.hp-rise.hp-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .hp-rise { opacity: 1; translate: none; transition: none; }
  .home-cases.hc-play .hc-card,
  .home-cases.hc-play .hc-ask,
  .home-cases.hc-play .hc-answer,
  .home-cases.hc-play .hc-list > span { opacity: 1; transform: none; }
  .home-cases.hc-play .hc-spark-line { stroke-dashoffset: 0; }
  .home-cases.hc-play .hc-spark circle { opacity: 1; }
  .home-cases.hc-play .hc-bars i { transform: scaleX(var(--v)); }
  .hc-typing { display: none; }
  .hc-card, .hc-card:hover, #moduli .module:hover, .tabs > button:hover { transform: none; }
}

/* ---- Dati sotto controllo: stessa notte verde dei racconti ------------ */
#dati .data-card {
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(84, 168, 128, .2), transparent 65%),
    radial-gradient(60% 70% at 100% 0%, rgba(46, 110, 92, .22), transparent 70%),
    #0a1f22;
  box-shadow: 0 60px 120px -60px rgba(10, 31, 34, .7);
}
#dati .data-points > * { transition: transform .35s var(--hp-ease); }
#dati .data-points > *:hover { transform: translateX(4px); }

/* ==========================================================================
   Revisione: leggibilità, contrasto e telefoni piccoli
   ========================================================================== */
/* Intestazione: su telefoni stretti logo, «Demo» e menu stanno sempre nello schermo. */
@media (max-width: 400px) {
  .header .nav-wrap { gap: 10px; width: calc(100% - 28px); }
  .header .nav-cta { padding-inline: 14px; gap: 8px; }
  .header .nav-cta span { display: none; }
  .header .brand { gap: 7px; }
}
/* Testi secondari: stesso tono, contrasto almeno 4,5:1. */
.breadcrumbs, .breadcrumbs a, .breadcrumbs li,
.guide-meta, .guide-toc > span, figcaption, .guide-sources > h2,
.form-head > p, .form-note, .privacy-note,
.email-contact > small, .email-contact > p, #catalogue-count,
.module-order, .boundary-number, .ai-disclosure > p, #chat-coverage, .role-choice-hint,
.ease-slide-copy > span, .ease-slide-copy > p, .ease-cinema-heading > p,
.visual-label, .search-result > span, .wizard-person small, .wizard-person em,
.faq-list details > p, .seo-hero-copy > p:first-child, .voice-hero-copy > .eyebrow, .science-grid article > span {
  color: #4b5f63 !important;
}
/* Mai testi sotto gli 11 px; note legali a 12. */
.module-order, .boundary-number, .ease-slide-copy > span, .visual-label,
.search-result > span, .wizard-person small, .wizard-person em, #chat-coverage {
  font-size: 11px !important;
}
.form-head > p, .form-note, .privacy-note, .ai-disclosure > p { font-size: 12px !important; }
/* Aree toccabili di almeno 44 px su touch, senza cambiare l'aspetto. */
@media (pointer: coarse) {
  .text-link, .studio-footer__email, .case-breadcrumb, .contact-privacy-link, .breadcrumbs a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .contact-privacy input[type="checkbox"] { width: 22px; height: 22px; }
}
/* La giornata: numeri dei denti e pallini della barra. */
.ds-teeth span { color: #4b5f63; font-size: 11px; }
.ds-report .ds-done { color: #8a4f12 !important; }
@media (max-width: 820px) { .ds-steps button { width: 32px; height: 44px; } }
.help-visual > .visual-label { color: #a9c9b4 !important; }

/* ==========================================================================
   Apertura: la panoramica
   Un solo momento orchestrato: la lastra si sviluppa, poi arrivano nome,
   messaggio e le tre note cliniche. Tutto il resto resta fermo.
   ========================================================================== */
.launch-hero .launch-atmosphere { background: #020303; }
.launch-art.pano-art { pointer-events: auto; cursor: crosshair; inset: 60px 0 0; }
.launch-art.pano-art canvas { mask-image: linear-gradient(transparent, #000 18%, #000 62%, transparent 86%); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 62%, transparent 86%); }
.launch-name > p {
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: 0 !important;
  text-transform: none;
  color: #a8c2b4 !important;
}
.launch-message > p { font-size: 15px !important; color: #a8c2b4 !important; }
/* Note cliniche, ancorate ai denti dal JavaScript. */
.pano-notes { position: absolute; inset: 0; pointer-events: none; }
.pano-notes p {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 7px;
  border-radius: 30px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: #e6f3ea;
  background: rgba(6, 22, 20, .78);
  box-shadow: inset 0 0 0 1px rgba(159, 216, 180, .35);
  opacity: 0;
  transition: opacity .6s ease;
}
.pano-notes b {
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #0b2120;
  background: #9fd8b4;
}
.launch-hero.is-developed .pano-notes p { opacity: calc(1 - var(--launch-progress, 0) * 4); }
.launch-hero.is-developed .pano-notes p:nth-child(2) { transition-delay: .25s; }
.launch-hero.is-developed .pano-notes p:nth-child(3) { transition-delay: .5s; }
/* Nome e messaggio arrivano quando la lastra è sviluppata. */
@media (prefers-reduced-motion: no-preference) {
  .launch-name > *, .launch-message > * { animation: pano-in 1s cubic-bezier(.2, .7, .2, 1) both; }
  .launch-name > p { animation-delay: 1.7s; }
  .launch-name > h1 { animation-delay: 1.9s; }
  .launch-message > h2 { animation-delay: 2.3s; }
  .launch-message > p { animation-delay: 2.45s; }
  .launch-message > .launch-actions { animation-delay: 2.6s; }
}
@keyframes pano-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .hero .launch-art.pano-art { inset: 40px 0 0; width: auto; }
  .pano-notes p { font-size: 12px; }
  .pano-notes p:nth-child(n+2) { display: none; }
}
/* Un velo scuro dietro al messaggio: si legge anche sopra la lastra. */
.launch-hero .launch-message::before {
  content: '';
  position: absolute;
  inset: -70px -140px -50px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(2, 3, 3, .86), rgba(2, 3, 3, .55) 60%, transparent);
  pointer-events: none;
}
.launch-hero .launch-name::before {
  content: '';
  position: absolute;
  inset: -40px -120px -30px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(2, 3, 3, .8), transparent);
  pointer-events: none;
}

/* ==========================================================================
   Apertura: tipografia e luce
   Nessun oggetto: il nome, il messaggio e una luce verde che respira
   lentamente dietro. Con lo scroll la luce sale e il testo si congeda.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) and (min-height: 521px) {
  .hero.section-wrap.launch-hero { height: 160svh; }
}
.launch-hero .launch-pin { justify-content: center; gap: clamp(28px, 5vh, 56px); padding: 0 24px 4vh; }
.launch-hero .launch-atmosphere { background: #040607; }
.launch-hero .launch-name,
.launch-hero .launch-message {
  position: relative;
  top: auto;
  bottom: auto;
  padding: 0;
  transform: translateY(calc(var(--hero-progress, 0) * -90px));
  opacity: calc(1 - var(--hero-progress, 0) * 1.7);
}
.launch-hero .launch-message { max-width: 620px; transform: translateY(calc(var(--hero-progress, 0) * -50px)); }
.launch-hero .launch-name::before, .launch-hero .launch-message::before { display: none; }
.launch-hero .launch-name > p { font-size: 16px !important; margin-bottom: 22px; color: #9fbcad !important; }
.launch-hero .launch-name #launch-title {
  font-size: clamp(76px, 12vw, 176px);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.06em;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 30%, #cfe6d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  padding-bottom: .04em;
}
.launch-hero .launch-name h1 > span {
  font-size: 15px;
  font-weight: 500;
  margin-top: 26px;
  letter-spacing: .34em;
  color: #9fbcad;
  -webkit-text-fill-color: #9fbcad;
}
.launch-hero .launch-message h2 { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; }
.launch-hero .launch-message > p { font-size: 16px !important; margin-top: 14px; color: #a8c2b4 !important; }
.launch-hero .launch-actions { margin-top: 26px; }
.launch-hero .launch-actions .button { font-size: 14px; min-height: 50px; padding: 14px 26px; }

/* La luce: tre aloni sfumati che si muovono lentamente, solo con transform. */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  opacity: 0;
  animation: aurora-in 2.4s ease .1s forwards;
}
.aurora i:nth-child(1) {
  width: 80vmax; height: 52vmax; left: calc(50% - 40vmax); top: calc(42% - 26vmax);
  background: radial-gradient(closest-side, rgba(84, 168, 128, .5), rgba(46, 110, 92, .22) 50%, transparent);
  --a: aurora-a 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 70vmax; height: 46vmax; left: -18vmax; bottom: -22vmax;
  background: radial-gradient(closest-side, rgba(47, 107, 138, .55), rgba(30, 70, 90, .2) 55%, transparent);
  --a: aurora-b 32s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  width: 64vmax; height: 44vmax; right: -16vmax; bottom: -20vmax;
  background: radial-gradient(closest-side, rgba(159, 216, 180, .42), rgba(84, 168, 128, .16) 55%, transparent);
  --a: aurora-c 29s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: no-preference) {
  .aurora i { animation: aurora-in 2.4s ease .1s forwards, var(--a); }
}
@keyframes aurora-in { to { opacity: 1; } }
@keyframes aurora-a { from { transform: translate(-6%, 0) scale(1); } to { transform: translate(8%, 10%) scale(1.15); } }
@keyframes aurora-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(18%, -12%) scale(1.2); } }
@keyframes aurora-c { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-16%, -14%) scale(.95); } }
/* Con lo scroll la luce sale e si allarga verso la sezione successiva. */
.launch-hero .aurora { transform: translateY(calc(var(--hero-progress, 0) * -18%)) scale(calc(1 + var(--hero-progress, 0) * .25)); }
/* Una grana leggerissima evita le bande di colore nelle sfumature. */
.launch-hero .launch-pin::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .launch-name > p { animation-delay: .5s; }
  .launch-name > h1 { animation: hero-title 1.6s cubic-bezier(.2, .7, .2, 1) .7s both; }
  .launch-message > h2 { animation-delay: 1.3s; }
  .launch-message > p { animation-delay: 1.45s; }
  .launch-message > .launch-actions { animation-delay: 1.6s; }
}
@keyframes hero-title { from { opacity: 0; transform: translateY(24px); letter-spacing: -.02em; } to { opacity: 1; transform: none; letter-spacing: -.06em; } }
@media (max-width: 640px) {
  .launch-hero .launch-name #launch-title { font-size: clamp(60px, 19vw, 92px); }
  .launch-hero .launch-name > p { font-size: 14px !important; }
  .launch-hero .launch-name h1 > span { font-size: 12px; margin-top: 18px; }
  .launch-hero .launch-message h2 { font-size: 23px; }
  .launch-hero .launch-message > p { font-size: 15px !important; }
}
