/* ==========================================================================
   Sito vetrina CLAB SRL — www.clabnet.it
   Token presi dall'app: /opt/clab/repo/frontend/src/index.css (HSL → hex).
   Font self-hostati: nessuna richiesta a server esterni.
   ========================================================================== */

/* Inter — corpo (fontsource, licenza OFL) */
@font-face { font-family:'Inter'; src:url('../fonts/inter-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Inter'; src:url('../fonts/inter-500.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Inter'; src:url('../fonts/inter-600.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'Inter'; src:url('../fonts/inter-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
/* Satoshi — titoli (Fontshare, ITF Free Font License). Pesi disponibili:
   Bold 700 e Black 900; non esiste 800. */
@font-face { font-family:'Satoshi'; src:url('../fonts/satoshi-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('../fonts/satoshi-900.woff2') format('woff2'); font-weight:900; font-display:swap; }

:root {
  /* Primario NEUTRO: il colore lo portano le tessere, non i bottoni */
  --primary:      #0a0a0a;
  --primary-fg:   #ffffff;
  --hover:        #1e293b;
  --accent:       #ff2600;

  /* Palette dei moduli — da HomePage.js dell'app (classi Tailwind → hex) */
  --app-purple:  #a855f7;   /* Prodotti    */
  --app-indigo:  #6366f1;   /* Inventario  */
  --app-teal:    #14b8a6;   /* Clienti     */
  --app-blue:    #3b82f6;   /* Cataloghi   */
  --app-green:   #22c55e;   /* Shop        */
  --app-fuchsia: #c026d3;   /* BigSpin     */
  --app-navy:    #1e3a8a;   /* BigSpin B2B */
  --app-amber:   #f59e0b;   /* Contabilita */
  --app-rose:    #f43f5e;   /* Credit      */
  --app-cyan:    #0891b2;   /* Report      */
  --app-slate:   #475569;   /* Utility     */
  --app-dark:    #1e293b;   /* PXP         */

  /* BigSpin ha un marchio suo: navy + corallo (da bigspin.it, non la
     tessera fucsia del launcher, che e' solo l'icona nel gestionale) */
  --bs-navy:   #0a1f44;
  --bs-coral:  #ff8a80;

  --c: var(--app-slate);    /* colore corrente della sezione/card */
  --background:   #ffffff;
  --surface:      #fafafa;
  --secondary:    #f3f4f6;
  --border:       #e5e7eb;
  --text:         #0a0a0a;
  --muted:        #6b7280;

  --radius-tile: 0.875rem;  /* rounded-2xl delle tessere dell'app */
  --radius-btn:  0.75rem;   /* rounded-xl — convenzione app per bottoni e campi */
  --radius-card: 0.5rem;    /* rounded-lg — contenitori */

  --shadow-sm: 0 1px 2px rgba(10,10,10,.05);
  --shadow-md: 0 4px 12px rgba(10,10,10,.06);

  --gap:      1.25rem;
  --section:  clamp(3rem, 2rem + 4vw, 5.5rem);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .6rem;
}

p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--hover); text-decoration: underline; }
button { -webkit-user-select: none; user-select: none; touch-action: manipulation; font-family: inherit; }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.hero-section + .section { padding-top: 0; }  /* i due padding si sommavano */

.section-tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
  background: var(--secondary); border-radius: 999px; padding: .3rem .75rem;
  margin-bottom: .9rem;
}
.section-heading { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin-bottom: .75rem; }
.section-subheading, .paragraph-lead { font-size: 1.0625rem; color: var(--muted); max-width: 62ch; }
.paragraph-secondary { color: var(--muted); max-width: 68ch; }
.status-title { font-size: 1.25rem; margin-bottom: .75rem; }
.pill-sub { font-size: .8125rem; color: var(--muted); }
/* Bottone spento: si usa <button disabled>, non un link ad ancora vuota —
   quello e' un link morto e il gate lo blocca. */
.btn-muted, .btn:disabled {
  background: var(--secondary); color: var(--muted);
  border-color: var(--border); cursor: not-allowed; box-shadow: none;
}
.btn-muted:hover, .btn:disabled:hover {
  background: var(--secondary); color: var(--muted); transform: none;
}
.tappa-dove { text-decoration: underline; text-underline-offset: 3px; }
.tappa-dove:hover { color: var(--text); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Bottoni: rounded-xl, come nell'app ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: var(--radius-btn);
  font-size: .9375rem; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--hover); color: var(--primary-fg); }
.btn-glass { background: var(--background); color: var(--text); border-color: var(--border); }
.btn-glass:hover { background: var(--secondary); color: var(--text); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d92000; color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--secondary); color: var(--hover); }
.btn-sm { padding: .5rem .85rem; font-size: .875rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; }

.highlight-link { font-weight: 600; font-size: .9375rem; }
.highlight-link::after { content: ' →'; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

.brand-identity { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; min-width: 0; }
.brand-identity:hover { text-decoration: none; color: var(--text); }
.clab-official-logo { flex: 0 0 auto; display: flex; }
.clab-official-logo img { width: 36px; height: 36px; display: block; }
.clab-title { font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; white-space: nowrap; }

.desktop-nav { display: none; align-items: center; gap: .25rem; }
@media (min-width: 900px) { .desktop-nav { display: flex; } }
.nav-link {
  padding: .5rem .8rem; border-radius: var(--radius-btn);
  font-size: .9375rem; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.nav-link:hover { background: var(--secondary); color: var(--text); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn { display: none; }
@media (min-width: 900px) { .header-actions .btn { display: inline-flex; } }

.mobile-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-btn); cursor: pointer;
}
.mobile-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .mobile-toggle { display: none; } }

.mobile-drawer { display: none; border-top: 1px solid var(--border); background: var(--background); padding: .75rem 1rem 1rem; }
.mobile-drawer.open { display: block; }
@media (min-width: 900px) { .mobile-drawer.open { display: none; } }
.mobile-menu-list { list-style: none; margin: 0 0 .75rem; padding: 0; }
.mobile-nav-link { display: block; padding: .7rem .75rem; border-radius: var(--radius-btn); font-weight: 500; color: var(--text); }
.mobile-nav-link:hover { background: var(--secondary); text-decoration: none; }

/* ---------- Hero ---------- */
.hero-section { padding: calc(var(--section) * .9) 0 var(--section); }
.hero-pill-badge {
  display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--muted);
  background: var(--secondary); border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1rem;
}
.hero-headline { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 900; margin-bottom: 1rem; }
.hero-lead { font-size: 1.0625rem; color: var(--muted); max-width: 54ch; margin-bottom: 1.75rem; }
.hero-actions-group { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-actions-group .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-actions-group .btn { flex: 0 0 auto; } }

/* ---------- Superfici ---------- */
.squircle-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 1.5rem;
}
.info-card {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem;
  padding: .65rem 0; border-bottom: 1px solid var(--border);
}
.info-label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.info-val { font-size: .9375rem; font-weight: 600; text-align: right; }
.info-icon { color: var(--primary); margin-bottom: .5rem; }

/* ---------- Griglie di card ---------- */
.pillars-grid, .tour-cards-grid, .contact-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--gap); margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .tour-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }  /* 4 pilastri: 2+2, mai un orfano */
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .tour-cards-grid { grid-template-columns: repeat(4, 1fr); }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }  /* 5 tessere: 3+2 */
  .contact-grid { grid-template-columns: repeat(3, 1fr); }  /* 3 canali: telefono, WhatsApp, email */
}

.pillar-card, .tour-card, .contact-grid .info-card {
  background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 1.4rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pillar-card:hover, .tour-card:hover { border-color: #c9cfd8; box-shadow: var(--shadow-md); }
.pillar-icon, .b2b-icon { color: var(--primary); margin-bottom: .75rem; display: block; }
.tile-title { font-size: 1.125rem; margin-bottom: .5rem; }
.tile-desc { color: var(--muted); font-size: .9375rem; margin-bottom: .85rem; }

/* Contatti: la card diventa un blocco verticale, non label+valore in riga */
.contact-grid .info-card { flex-direction: column; align-items: flex-start; gap: .25rem; border-bottom: 1px solid var(--border); }
.contact-grid .info-val { text-align: left; font-size: 1rem; }
.contact-lead { font-size: 1.0625rem; color: var(--muted); max-width: 62ch; margin-bottom: 0; }

/* Categorie merceologiche: leggibili, non grigio su bianco */

/* ---------- Tappe ---------- */
.tour-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tour-tab-btn {
  padding: .5rem .9rem; border-radius: var(--radius-btn); border: 1px solid var(--border);
  background: var(--background); color: var(--muted); font-size: .875rem; font-weight: 600; cursor: pointer;
}
.tour-tab-btn:hover { background: var(--secondary); color: var(--text); }
.tour-tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.tour-card { display: flex; flex-direction: column; }
.tour-card-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.tour-city { font-size: 1.25rem; margin: 0; }
.tour-status-banner { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; white-space: nowrap; }
.tour-status-banner.banner-planned { background: #e7edfb; color: var(--primary); }
.tour-status-banner.banner-past { background: var(--secondary); color: var(--muted); }
.tour-region { font-size: .9375rem; font-weight: 600; color: var(--accent); margin-bottom: .9rem; }
.tour-info-row { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .7rem; }
.tour-info-row .info-val { text-align: left; font-weight: 500; font-size: .9375rem; }
.tour-card-footer {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
}


/* ---------- Azienda ---------- */

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: var(--section); padding: var(--section) 0 1.5rem; }
.footer-main-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .footer-main-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-main-grid { grid-template-columns: 1.3fr 1fr 1.6fr; gap: 2.5rem; } }
.footer-title { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: .85rem; }
/* Il marchio si scrive "C lab": e' l'unico titolo del footer che non va maiuscolizzato. */
.footer-title.is-brand { text-transform: none; letter-spacing: -.01em; font-size: .9375rem; }
.footer-desc { color: var(--muted); font-size: .9375rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: .45rem; font-size: .9375rem; }
.footer-menu a { color: var(--muted); }
.footer-menu a:hover { color: var(--primary); }
.legal-data-box p { margin: 0 0 .3rem; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.legal-data-box strong { color: var(--text); }

.footer-bottom-bar {
  display: flex; flex-direction: column; gap: .6rem; align-items: center; text-align: center;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-size: .8125rem; color: var(--muted);
}
.footer-bottom-bar p { margin: 0; }
@media (min-width: 640px) { .footer-bottom-bar { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-sub-links { display: flex; align-items: center; gap: .5rem; }
.footer-sub-links a { color: var(--muted); }
.footer-sub-links a:hover { color: var(--primary); }

/* ---------- Torna su ---------- */
.scroll-top {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: var(--radius-btn);
  background: var(--text); color: #fff; border: 0; font-size: 1.1rem; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; z-index: 40;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* Intestazione delle pagine interne (l'header e' sticky, non fisso) */
.page-intro { padding-top: calc(var(--section) * .6); }
.page-intro + .section { padding-top: 0; }

/* Titolo di sottosezione: staccato da cio' che lo precede */
.section > .container > .status-title { margin-top: 2.5rem; }


/* ==========================================================================
   Colore: ogni sezione/card porta il suo, dalla palette dei moduli dell'app.
   ========================================================================== */
.c-purple  { --c: var(--app-purple);  }
.c-indigo  { --c: var(--app-indigo);  }
.c-teal    { --c: var(--app-teal);    }
.c-blue    { --c: var(--app-blue);    }
.c-green   { --c: var(--app-green);   }
.c-fuchsia { --c: var(--app-fuchsia); }
.c-navy    { --c: var(--app-navy);    }
.c-amber   { --c: var(--app-amber);   }
.c-rose    { --c: var(--app-rose);    }
.c-cyan    { --c: var(--app-cyan);    }
.c-slate   { --c: var(--app-slate);   }
.c-accent  { --c: var(--accent);      }

/* Tessera colorata: la firma visiva del launcher dell'app */
.tile-icon-box {
  width: 52px; height: 52px; border-radius: var(--radius-tile);
  background: var(--c); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--c) 55%, transparent);
}
.tile-icon-box svg { width: 26px; height: 26px; }

/* Etichetta di sezione: tinta del colore corrente */
.section-tag { color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }

/* La card eredita il colore su bordo, link e hover */
.pillar-card { border-top: 3px solid var(--c); }
.pillar-card:hover, .tour-card:hover {
  border-color: color-mix(in srgb, var(--c) 45%, var(--border));
  border-top-color: var(--c);
  box-shadow: var(--shadow-md);
}
.pillar-card .highlight-link { color: var(--c); }

/* Categorie merceologiche: pastiglia colorata invece del grigio */

/* Tappe: il colore distingue in programma da conclusa */
.tour-card { border-top: 3px solid var(--c); }
.tour-status-banner.banner-planned { background: color-mix(in srgb, var(--accent) 14%, #fff); color: #b81c00; }
.tour-region { color: var(--c); }

/* Contatti: ogni recapito la sua tessera */
.contact-grid .info-card { border-top: 3px solid var(--c); }
.contact-grid .info-label { color: var(--c); font-weight: 600; }

/* BigSpin usa il fucsia che ha gia' dentro l'app */
.bs-spin { color: var(--bs-coral); }

/* Sfondo dell'hero: sfumatura tenue, come la home dell'app */
.hero-section { background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 100%); }

/* Riquadro prossima tappa */

/* ==========================================================================
   Hero a scena: card scura, marchio silver, badge di vetro.
   Solo CSS — nessuna libreria, nessun JS, nessun sequestro dello scroll:
   il testo dell'H1 e' visibile anche senza JavaScript.
   ========================================================================== */

.hero-stage {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding: clamp(2rem, 1.2rem + 3.4vw, 3.75rem) clamp(1.25rem, .5rem + 3vw, 3.25rem);
  background: linear-gradient(145deg, var(--app-dark) 0%, var(--primary) 100%);
  box-shadow:
    0 40px 100px -20px rgba(10,10,10,.45),
    0 20px 40px -20px rgba(10,10,10,.35),
    inset 0 1px 2px rgba(255,255,255,.16),
    inset 0 -2px 4px rgba(0,0,0,.55);
}

/* Griglia di fondo, sfumata al centro */
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
}

/* Grana della pellicola — SVG inline: nessuna richiesta esterna */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Luce fissa da in alto a sinistra: da' spessore alla superficie */
.hero-sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(900px circle at 12% -8%, rgba(255,255,255,.10) 0%, transparent 55%),
    linear-gradient(110deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 42%);
}

.hero-stage-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center; }
@media (min-width: 980px) { .hero-stage-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }

.hero-mark {
  margin: 0; order: -1; display: flex; align-items: center; gap: .9rem;
  font-size: clamp(3.5rem, 1.5rem + 11vw, 9.5rem);  /* dimensione di riferimento, vedi sotto */
}
/* Il logo ha lo sfondo scuro suo (#0A0E1A) che sulla card quasi sparisce:
   l'anello chiaro lo stacca senza schiarirlo. */
.hero-logo {
  flex: 0 0 auto; width: .72em; height: .72em; border-radius: .16em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 18px 36px -12px rgba(0,0,0,.85);
}
@media (min-width: 980px) { .hero-mark { order: 0; justify-content: flex-end; } }

.hero-wordmark {
  display: inline-block;
  font-family: 'Satoshi', 'Inter', sans-serif; font-weight: 900;
  font-size: 1em;   /* eredita da .hero-mark: stessa taglia del logo accanto */
  line-height: .84; letter-spacing: -.045em;
  color: #fff;
  padding-right: .08em;      /* la crenatura negativa sborda dopo l'ultima lettera */
  transform: translateZ(0);  /* evita il taglio del testo su WebKit */
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.55)) drop-shadow(0 4px 8px rgba(0,0,0,.4));
}
@media (forced-colors: active) {
  .hero-wordmark { -webkit-text-fill-color: currentColor; color: CanvasText; filter: none; }
}

/* Badge di vetro: sono "In breve", non piu' un pannello a parte */
.hero-badges {
  position: relative; z-index: 3; display: grid; grid-template-columns: 1fr; gap: .75rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3rem);
}
@media (min-width: 760px) { .hero-badges { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

.hero-badge {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .9rem 1.1rem; border-radius: var(--radius-tile);
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.012) 100%);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 25px 50px -12px rgba(0,0,0,.55),
    inset 0 1px 1px rgba(255,255,255,.18),
    inset 0 -1px 1px rgba(0,0,0,.4);
  transition: transform .35s cubic-bezier(.25,1,.5,1);
}
.hero-badge:hover { transform: translateY(-.35rem); }
.hero-badge-label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero-badge-value { font-size: 1rem; font-weight: 600; color: #fff; }

.hero-more { position: relative; z-index: 3; display: inline-block; margin-top: 1.5rem; color: rgba(255,255,255,.82); }
.hero-more:hover { color: #fff; }

/* Desktop con schermo basso (il caso normale su un portatile): la card deve
   stare nel viewport senza far scrollare. Si comprime il ritmo verticale —
   margini della sezione, imbottitura della card, corpo del titolo — invece di
   tagliare contenuto. Sopra i 900px di altezza resta tutto come prima. */
@media (min-width: 1000px) and (max-height: 900px) {
  .hero-section { padding: 1.75rem 0 2rem; }
  .hero-stage { padding: 2.25rem clamp(1.25rem, .5rem + 3vw, 3.25rem); }
  .hero-headline { font-size: clamp(1.9rem, 1rem + 2.3vw, 2.9rem); margin-bottom: .75rem; }
  .hero-pill-badge { margin-bottom: .75rem; }
  .hero-lead { margin-bottom: 1.25rem; }
  .hero-badges { margin-top: 1.5rem; }
  .hero-badge { padding: .7rem 1rem; }
  .hero-more { margin-top: 1rem; }
  .hero-mark { font-size: clamp(3rem, 1rem + 7vw, 7rem); }
}

/* Adattamenti dei componenti esistenti al fondo scuro */
.hero-stage .hero-pill-badge { background: rgba(255,255,255,.10); color: rgba(255,255,255,.82); }
.hero-stage .hero-lead { color: rgba(255,255,255,.74); }
.hero-stage .btn { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .3s cubic-bezier(.25,1,.5,1); }
.hero-stage .btn-white { box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 12px 24px -6px rgba(0,0,0,.5), inset 0 -2px 5px rgba(0,0,0,.06); }
.hero-stage .btn-glass { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero-stage .btn-glass:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.hero-stage .btn-white:hover, .hero-stage .btn-glass:hover { transform: translateY(-2px); }
.hero-stage .btn-white:active, .hero-stage .btn-glass:active { transform: translateY(1px); }
