/* ==========================================================================
   CUSTOR — STILE UFFICIALE SITO WEB
   Direzione: "Il Raccoglitore del Collezionista" (D238 • R22)
   Design Premium • Fondo Chiaro e Caldo • Accento Olografico Sobrio • Tipografia Adulta
   ========================================================================== */

@import url('../assets/fonts/fonts.css');

:root {
  /* Palette Calda & Chiara del Raccoglitore */
  --bg-body: #FAF7F2;          /* Crema caldo / carta fine */
  --bg-surface: #FFFFFF;       /* Tasca / Card bianca pura */
  --bg-card: #FFFFFF;
  --bg-card-muted: #F3EFEA;    /* Sfondo secondario / scomparto raccoglitore */
  --bg-tag: #EAE4DC;           /* Sfondo per pillole / tag neutri */
  --bg-footer: #EFE9E0;        /* Footer caldo elegante */

  /* Bordi & Divisori */
  --border-subtle: rgba(28, 27, 34, 0.08);
  --border-card: rgba(28, 27, 34, 0.12);
  --border-card-hover: rgba(28, 27, 34, 0.22);
  --border-pocket: rgba(28, 27, 34, 0.14);

  /* Testi ad Alto Contrasto (WCAG AA Compliant) */
  --text-main: #1C1B22;        /* Antracite profondo caldo */
  --text-muted: #575366;       /* Grigio caldo per descrizioni */
  --text-dim: #7C788A;         /* Didascalie e note minori */

  /* Accento Olografico della "C" di Custor (Foil Arcobaleno Sobrio) */
  --accent-foil: linear-gradient(135deg, #FF6080 0%, #FFA24C 22%, #38BDF8 52%, #818CF8 78%, #C084FC 100%);
  --accent-foil-soft: linear-gradient(135deg, rgba(255, 96, 128, 0.12) 0%, rgba(255, 162, 76, 0.12) 25%, rgba(56, 189, 248, 0.12) 60%, rgba(192, 132, 252, 0.12) 100%);

  /* Colori Saturi di Supporto (Non Fluo) */
  --brand-primary: #1C1B22;    /* Nero solido per CTA di massimo contrasto */
  --accent-indigo: #3730A3;    /* Blu zaffiro caldo */
  --accent-indigo-light: #4F46E5;
  --accent-emerald: #047857;   /* Verde smeraldo caldo per success/badge attivi */
  --accent-emerald-bg: #ECFDF5;
  --accent-amber: #B45309;     /* Ambra caldo per match / stelle */
  --accent-amber-bg: #FFFBEB;
  --accent-rose: #BE123C;      /* Corallo nobile */

  /* Tipografia */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Raggi e Ombre Tattili da Raccoglitore */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 18px -2px rgba(28, 27, 34, 0.05), 0 1px 4px rgba(28, 27, 34, 0.03);
  --shadow-card-hover: 0 14px 34px -4px rgba(28, 27, 34, 0.10), 0 3px 8px -1px rgba(28, 27, 34, 0.04);
  --shadow-button: 0 4px 14px rgba(28, 27, 34, 0.12);
  --shadow-button-hover: 0 8px 22px rgba(28, 27, 34, 0.18);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Globale */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Micro-texture puntinata calda e sobria da carta/raccoglitore */
.bg-dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(28, 27, 34, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Container responsive */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TIPOGRAFIA & TITOLI
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

/* Gradiente Holo Arcobaleno applicato con misura */
.gradient-text {
  background: var(--accent-foil);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* Etichetta di sezione in stile sticker da raccoglitore */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(28, 27, 34, 0.04);
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   NAVBAR (SU UNA SOLA RIGA • CHIARA & PULITA)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 14px 0;
  transition: all var(--transition-fast);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(28, 27, 34, 0.12);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-icon {
  transform: scale(1.05) rotate(-2deg);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.brand-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--bg-tag);
  color: var(--text-muted);
  border-radius: var(--radius-full);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 6px 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Selettore Lingua IT | EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(28, 27, 34, 0.04);
}

.lang-btn {
  text-decoration: none;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  color: var(--text-main);
  font-weight: 800;
}

.lang-divider {
  color: var(--border-card);
}

/* Pulsante CTA Navbar */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--brand-primary);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-button);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
  color: #FFFFFF;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 64px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(28, 27, 34, 0.04);
  width: fit-content;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-main);
}

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
}

/* Pulsanti Store Neri Ufficiali */
.hero-badges-wrapper {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.store-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn-text .subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
}

.store-btn-text .title {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #FFFFFF;
}

/* Punti di rassicurazione Hero */
.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.guarantee-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   PHONE MOCKUP (SIMULATORE SCANNER PULITO)
   ========================================================================== */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background: #1C1B22;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 24px 60px -10px rgba(28, 27, 34, 0.35), 0 8px 20px -4px rgba(28, 27, 34, 0.2);
  border: 4px solid #2B2A36;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #000000;
  border-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0F0E14;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 34px 12px 14px;
  position: relative;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
}

.screen-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.screen-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border-radius: 10px;
}

.screen-scanner-box {
  flex: 1;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(30, 27, 46, 0.8) 0%, rgba(15, 14, 20, 0.95) 100%);
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-foil);
  box-shadow: 0 0 12px rgba(255, 96, 128, 0.8);
  animation: scanLaser 3.2s ease-in-out infinite alternate;
}

@keyframes scanLaser {
  0% { top: 10%; }
  100% { top: 90%; }
}

/* Carta mockata dentro lo schermo */
.mock-card {
  width: 180px;
  height: 250px;
  background: #1E1B2E;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: rotate(-2deg) translateY(0); }
  100% { transform: rotate(1deg) translateY(-6px); }
}

.card-holo-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(56, 189, 248, 0.3) 50%,
    rgba(255, 96, 128, 0.25) 55%,
    transparent 80%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: shineHolo 6s infinite linear;
}

@keyframes shineHolo {
  0% { transform: translateY(-30%) rotate(25deg); }
  50% { transform: translateY(30%) rotate(25deg); }
  100% { transform: translateY(-30%) rotate(25deg); }
}

.mock-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #FFFFFF;
}

.mock-card-art {
  flex: 1;
  margin: 6px 0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 30%, #312E81 0%, #1E1B4B 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.mock-card-bottom {
  font-size: 0.6rem;
  color: #CBD5E1;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

/* Popup match in basso al simulatore */
.scanner-match-popup {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(28, 27, 34, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 0.75rem;
}

.popup-info h5 {
  font-size: 0.72rem;
  color: #FFFFFF;
  margin-bottom: 1px;
}

.popup-info p {
  font-size: 0.65rem;
  color: #6EE7B7;
  font-weight: 700;
}

.screen-nav {
  height: 42px;
  background: rgba(28, 27, 34, 0.85);
  border-radius: 12px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #64748B;
  font-size: 1rem;
}

.screen-nav .active-nav {
  color: #FFFFFF;
}

/* Badge fluttuanti all'esterno del mockup */
.float-card-badge {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  animation: floatSlow 5s ease-in-out infinite alternate;
  z-index: 5;
}

.float-badge-1 {
  top: 12%;
  left: -32px;
}

.float-badge-2 {
  bottom: 16%;
  right: -24px;
  animation-duration: 6s;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.float-icon {
  font-size: 1.4rem;
}

.float-text h6 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.float-text span {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

/* ==========================================================================
   SEZIONE GIOCHI SUPPORTATI (MULTI-TCG CON LOGHI ORIGINALI • D238 R13)
   ========================================================================== */
.tcg-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card-muted);
  position: relative;
}

.tcg-group-block {
  margin-top: 40px;
}

.tcg-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tcg-group-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

.tcg-group-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.tcg-group-badge.badge-active {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid rgba(4, 120, 87, 0.2);
}

.tcg-group-badge.badge-upcoming {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-card);
}

/* Griglia 5 giochi disponibili */
.tcg-active-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

/* Card Raccoglitore per TCG disponibile */
.tcg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Linguetta/tasca in alto alla card */
.tcg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-accent, var(--accent-indigo));
}

.tcg-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.tcg-logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.tcg-card-img {
  max-height: 46px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(28, 27, 34, 0.08));
}

.tcg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tcg-card-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid rgba(4, 120, 87, 0.2);
}

.tcg-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tcg-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Griglia per franchise in arrivo */
.tcg-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.tcg-upcoming-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(28, 27, 34, 0.03);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tcg-upcoming-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border-card-hover);
  box-shadow: 0 4px 12px rgba(28, 27, 34, 0.06);
}

.tcg-pill-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.tcg-pill-logo {
  height: 26px;
  max-width: 65px;
  object-fit: contain;
  filter: grayscale(40%) opacity(0.85);
  transition: filter var(--transition-fast);
  flex-shrink: 0;
}

.tcg-upcoming-pill:hover .tcg-pill-logo {
  filter: grayscale(0%) opacity(1);
}

.tcg-pill-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: normal;
  line-height: 1.25;
}

.tcg-pill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-card-muted);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* Box Disclaimer di Non Affiliazione */
.tcg-disclaimer {
  margin-top: 36px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(28, 27, 34, 0.03);
}

.tcg-disclaimer p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

.tcg-disclaimer strong {
  color: var(--text-main);
}

/* ==========================================================================
   BENTO GRID (TASCHE DEL RACCOGLITORE • BINDER PAGES)
   ========================================================================== */
.section {
  padding: 88px 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

/* Tasca Bento da raccoglitore */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-card-hover);
}

/* Bordo superiore tasca raccoglitore */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 0 0 4px 4px;
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(28, 27, 34, 0.06);
}

.icon-cyan    { background: #E0F2FE; }
.icon-emerald { background: #ECFDF5; }
.icon-indigo  { background: #EEF2FF; }
.icon-purple  { background: #FAF5FF; }
.icon-amber   { background: #FFFBEB; }
.icon-rose    { background: #FFF1F2; }

.bento-card h3 {
  font-size: 1.38rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.bento-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.bento-banner-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-top: 24px;
  box-shadow: 0 4px 14px rgba(28, 27, 34, 0.08);
  border: 1px solid var(--border-card);
}

/* Demo interattiva match fiera */
.trade-match-demo {
  margin-top: 22px;
  background: var(--bg-card-muted);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
}

.match-banner-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--accent-amber-bg);
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.match-banner-demo h5 {
  font-size: 0.86rem;
  color: var(--accent-amber);
  margin-bottom: 1px;
}

.match-banner-demo span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.trade-cards-row {
  display: flex;
  gap: 10px;
}

.trade-mini-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px;
  position: relative;
  text-align: center;
}

.trade-mini-card.is-match {
  border: 2px solid var(--accent-amber);
  background: #FFFDF8;
}

.match-star-tag {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-amber);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.mini-card-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.mini-card-price {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

/* ==========================================================================
   TABELLA COMPARATIVA
   ========================================================================== */
.comparison-section {
  background: var(--bg-card-muted);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  background: var(--bg-card-muted);
  color: var(--text-main);
}

.comparison-table .highlight-col {
  background: #FFFDF8;
  font-weight: 600;
  color: var(--text-main);
}

.comparison-table th.highlight-col {
  background: #FDF9F0;
  color: var(--accent-indigo);
  border-left: 2px solid var(--accent-indigo);
  border-right: 2px solid var(--accent-indigo);
}

.comparison-table td.highlight-col {
  border-left: 2px solid var(--accent-indigo);
  border-right: 2px solid var(--accent-indigo);
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: 900;
  font-size: 1.15rem;
  margin-right: 8px;
}

.cross-icon {
  color: var(--accent-rose);
  font-weight: 900;
  font-size: 1.15rem;
  margin-right: 8px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-card-hover);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 380px;
  padding: 0 24px 22px;
}

.faq-answer p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   DOWNLOAD FINAL CTA BOX
   ========================================================================== */
.cta-box {
  background: #1C1B22;
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 48px rgba(28, 27, 34, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-foil);
}

.cta-box h2 {
  color: #FFFFFF;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.cta-box p {
  color: #CBD5E1;
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.cta-box .store-buttons {
  justify-content: center;
}

/* ==========================================================================
   FOOTER (CALDO & SOBRIO • PRIVACY E TERMINI SOLO QUI)
   ========================================================================== */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 36px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(28, 27, 34, 0.08);
}

.footer-brand {
  max-width: 380px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
}

.footer-nav {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   PAGINE INTERNE (GUIDA, PRIVACY, TERMINI)
   ========================================================================== */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.legal-article,
.guide-article {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}

.legal-article h2,
.guide-article h2 {
  font-size: 1.5rem;
  margin: 32px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.legal-article h2:first-of-type,
.guide-article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-article p,
.guide-article p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-article ul,
.guide-article ul {
  margin: 12px 0 20px 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.guide-search-wrapper {
  max-width: 600px;
  margin: 0 auto 36px;
}

.guide-search-input {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-search-input:focus {
  border-color: var(--text-main);
  box-shadow: 0 4px 16px rgba(28, 27, 34, 0.12);
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINT A 992PX PER RIGA SINGOLA NAVBAR)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-desc {
    margin: 0 auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .hero-guarantee {
    justify-content: center;
  }

  .phone-mockup-wrapper {
    margin-top: 20px;
  }

  .bento-card.col-8,
  .bento-card.col-6,
  .bento-card.col-4 {
    grid-column: span 12;
  }

  /* Mobile Menu Toggle */
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-body);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-card);
    box-shadow: 0 12px 30px rgba(28, 27, 34, 0.1);
    gap: 16px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .float-card-badge {
    display: none;
  }

  .legal-article,
  .guide-article {
    padding: 28px 20px;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .cta-box h2 {
    font-size: 2rem;
  }
}

/* Accessibilità: Riduzione Movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   GUIDA UTENTE & MANUALE (PAGINA GUIDA)
   ========================================================================== */
.page-header {
  padding: 64px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.guide-search-wrapper {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.guide-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--text-dim);
  pointer-events: none;
}

.guide-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-search-input:focus {
  border-color: var(--text-main);
  box-shadow: 0 4px 18px rgba(28, 27, 34, 0.12);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 0 0 4px 4px;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-card-hover);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.guide-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.guide-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.guide-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.guide-card-summary {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.guide-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex: 1;
}

.guide-steps-list li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-main);
  position: relative;
  padding-left: 20px;
}

.guide-steps-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent-indigo);
  font-weight: bold;
  font-size: 1.2rem;
}

.guide-tip-box {
  background: var(--accent-amber-bg);
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #78350F;
}

.guide-tip-box span:first-child {
  font-size: 1rem;
  line-height: 1.2;
}
