/* ============================================================================
   GIFFIT — Stile condiviso della landing (home del sito).
   Estratto da index.html: fonte unica, niente duplicazione tra lingue.
   ============================================================================ */
    /* Font Inter caricato via <link rel="preload"> in <head> sopra
       (asincrono + display:swap) — niente @import qui che bloccherebbe
       il render fino al download del CSS dei font. */

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

    html { scroll-behavior: smooth; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: #FEFDFB;
      color: #1F2937;
      line-height: 1.6;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── Coriandoli decorativi (festoso, palette logo) ─── */
    /* 8 forme assolute sparse sullo sfondo: cerchi/quadrati/stelle nelle
       palette teal/pink/yellow/green, opacity 30%, leggera animazione float
       lentissima. Coerenti col logo (che già contiene confetti). */
    .confetti {
      position: fixed;
      pointer-events: none;
      z-index: 0;
      animation: confettiFloat 14s ease-in-out infinite;
      opacity: 0.5;
    }
    .confetti.c1 { top: 8%;  left: 6%;  animation-delay: -2s; }
    .confetti.c2 { top: 18%; right: 9%; animation-delay: -5s; }
    .confetti.c3 { top: 42%; left: 4%;  animation-delay: -8s; }
    .confetti.c4 { top: 58%; right: 5%; animation-delay: -1s; }
    .confetti.c5 { top: 72%; left: 12%; animation-delay: -7s; }
    .confetti.c6 { top: 86%; right: 14%; animation-delay: -3s; }
    .confetti.c7 { top: 30%; right: 20%; animation-delay: -9s; }
    .confetti.c8 { top: 65%; left: 22%; animation-delay: -4s; }
    @keyframes confettiFloat {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-22px) rotate(15deg); }
    }
    @media (max-width: 720px) {
      /* Su mobile riduco i coriandoli per non sovraffollare */
      .confetti.c5, .confetti.c6, .confetti.c7, .confetti.c8 { display: none; }
    }

    /* ── Scroll reveal (sezioni entrano da sotto) ───── */
    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.in-view {
      opacity: 1;
      transform: translateY(0);
    }
    /* prefers-reduced-motion → niente animazioni */
    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; transition: none; }
      .confetti { animation: none; }
      html { scroll-behavior: auto; }
    }

    /* ── Decorative background blobs ────────────────── */
    .bg-blob {
      position: fixed;
      border-radius: 50%;
      filter: blur(80px);
      pointer-events: none;
      z-index: 0;
      animation: float 8s ease-in-out infinite;
    }
    .bg-blob.b1 {
      width: 400px; height: 400px;
      background: rgba(236, 72, 153, 0.12);
      top: -100px; right: -100px;
      animation-delay: 0s;
    }
    .bg-blob.b2 {
      width: 350px; height: 350px;
      background: rgba(99, 102, 241, 0.10);
      bottom: 10%; left: -80px;
      animation-delay: -3s;
    }
    .bg-blob.b3 {
      width: 300px; height: 300px;
      background: rgba(20, 184, 166, 0.10);
      top: 50%; right: -60px;
      animation-delay: -5s;
    }
    @keyframes float {
      0%, 100% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-30px) scale(1.05); }
    }

    /* ── Hero section ──────────────────────────────── */
    .hero {
      position: relative;
      z-index: 1;
      text-align: center;
      /* Respiro generoso dal top: scala da 48px su mobile a 96px su desktop.
         Prima era 16px → logo "incollato" alla barra del browser. */
      padding: clamp(48px, 6vw, 96px) 24px 8px;
    }
    .hero-logo {
      width: 440px;
      max-width: 86vw;
      height: auto;
      margin-bottom: 8px;
      animation: logoIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
      filter: drop-shadow(0 12px 32px rgba(20, 184, 166, 0.25));
    }
    @keyframes logoIn {
      from { opacity: 0; transform: scale(0.5) translateY(24px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .hero-tagline {
      font-size: clamp(1.1rem, 3vw, 1.5rem);
      font-weight: 700;
      color: #14B8A6;
      letter-spacing: 0.5px;
      margin-bottom: 18px;
      animation: fadeUp 0.8s 0.3s both;
    }
    /* Claim emozionale principale.
       text-wrap: balance → bilancia automaticamente le righe evitando "widow"
       (parole orfane su l'ultima riga). Supporto: Safari 17.4+, Chrome 114+,
       Firefox 121+. Su browser più vecchi: degrade gracefully (wrap normale). */
    .hero-claim {
      font-size: clamp(1.6rem, 4.4vw, 2.4rem);
      font-weight: 900;
      color: #1F2937;
      max-width: 22ch;
      margin: 0 auto 28px;
      line-height: 1.18;
      letter-spacing: -0.5px;
      text-wrap: balance;
      animation: fadeUp 0.8s 0.5s both;
    }
    .hero-claim em {
      font-style: normal;
      background: linear-gradient(135deg, #14B8A6, #0891B2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ── Store badges ─────────────────────────────── */
    .store-badges {
      display: flex;
      gap: 14px;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      margin-top: 20px;
      margin-bottom: 24px;
      animation: fadeUp 0.8s 0.9s both;
    }
    .store-badge {
      display: flex;
      align-items: center;
      gap: 12px;
      background: #111827;
      color: white;
      border-radius: 14px;
      padding: 12px 22px 12px 16px;
      text-decoration: none;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 4px 16px rgba(0,0,0,0.12);
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: default;
      position: relative;
      overflow: hidden;
    }
    .store-badge:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    }
    /* Quando il badge diventa <a> live (URL store valorizzato), il cursor
       passa a pointer e l'hover ha un'ombra leggermente più accentuata. */
    a.store-badge.is-live {
      cursor: pointer;
      text-decoration: none;
      color: white;
    }
    a.store-badge.is-live:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 28px rgba(20, 184, 166, 0.30);
      border-color: rgba(20, 184, 166, 0.55);
    }
    a.store-badge.is-live:active {
      transform: translateY(-1px);
    }
    .store-badge ion-icon {
      font-size: 28px;
      color: white;
      flex-shrink: 0;
    }
    .store-badge .badge-text {
      display: flex;
      flex-direction: column;
      line-height: 1.2;
    }
    .store-badge .badge-soon {
      font-size: 0.65rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #14B8A6;
    }
    .store-badge .badge-store {
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: 0.2px;
    }
    .store-badge .badge-pulse {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #14B8A6;
      animation: badgePulse 2s ease-in-out infinite;
    }
    @keyframes badgePulse {
      0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5); }
      50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(20, 184, 166, 0); }
    }
    @media (max-width: 480px) {
      .store-badges { flex-direction: column; align-items: center; }
      .store-badge { width: 220px; }
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ── Indicatore "scorri giù" ────────────────────── */
    .scroll-cue {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      margin-top: 30px;
      padding: 6px 12px;
      background: none;
      border: none;
      cursor: pointer;
      color: #14B8A6;
      font-family: inherit;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.4px;
      animation: fadeUp 0.8s 1.1s both;
      transition: opacity 0.4s ease, visibility 0.4s ease;
    }
    .scroll-cue ion-icon {
      font-size: 1.4rem;
      animation: scrollBounce 1.8s ease-in-out infinite;
    }
    /* Quando l'utente ha scrollato lo nascondiamo: ha già capito che c'è altro. */
    .scroll-cue.is-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    @keyframes scrollBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(6px); }
    }
    @media (prefers-reduced-motion: reduce) {
      .scroll-cue ion-icon { animation: none; }
    }

    /* ── Feature cards (app style) ──────────────────── */
    .features {
      position: relative;
      z-index: 1;
      max-width: 960px;
      margin: 0 auto;
      padding: 0 24px 40px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }
    .card {
      position: relative;
      border-radius: 24px;
      padding: 32px 26px 30px;
      color: white;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
      animation: fadeUp 0.8s both;
      min-height: 320px;
      display: flex;
      flex-direction: column;
    }
    .card:nth-child(1) { animation-delay: 0.6s; }
    .card:nth-child(2) { animation-delay: 0.75s; }
    .card:nth-child(3) { animation-delay: 0.9s; }
    .card:hover {
      transform: translateY(-6px) scale(1.02);
    }
    /* Lead text + bullet list (espande le card da pure tag → contenuto vero). */
    .card-lead {
      font-size: 1rem;
      font-weight: 600;
      opacity: 0.95;
      margin-bottom: 14px;
      line-height: 1.4;
    }
    .card-bullets {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .card-bullets li {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 0.92rem;
      line-height: 1.4;
      opacity: 0.92;
    }
    .card-bullets li ion-icon {
      flex-shrink: 0;
      font-size: 18px;
      margin-top: 1px;
      color: rgba(255,255,255,0.85);
    }
    .card-bullets li span {
      flex: 1;
    }

    /* ── Card icon containers (matching app exactly) ── */
    /* App uses a 40x40 relative container, all elements absolute from center */
    .card-icon-wrap {
      position: relative;
      width: 68px;
      height: 68px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .card-icon-main {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .card-icon-main ion-icon {
      font-size: 34px;
      color: white;
    }
    /* Shared absolute overlay style (like app's animatedIcon) */
    .anim-abs {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    /* ── Wishlist - Pink ────────────────────────────── */
    .card.wishlist { background: #EC4899; }
    .card.wishlist:hover {
      box-shadow: 0 16px 48px rgba(236, 72, 153, 0.35), 0 4px 12px rgba(0,0,0,0.1);
    }
    .card.wishlist .card-glow {
      background: radial-gradient(circle at 80% 20%, rgba(253, 224, 71, 0.25) 0%, transparent 60%);
    }
    /* Gift breathing + bounce */
    .card.wishlist .card-icon-main {
      animation: giftBreath 3s ease-in-out infinite;
    }
    @keyframes giftBreath {
      0%, 100% { transform: scale(1); }
      30% { transform: scale(1.12); }
      60% { transform: scale(0.96); }
    }
    /* Satellite gifts - positioned from center like app (-28px left, +28px right) */
    .gift-sat {
      z-index: 1;
      color: rgba(255, 255, 255, 0.95);
      font-size: 20px;
      animation: satFade 3s ease-in-out infinite;
    }
    .gift-sat.left {
      transform: translate(calc(-50% - 28px), -50%) rotate(-8deg) scale(0.8);
    }
    .gift-sat.right {
      transform: translate(calc(-50% + 28px), -50%) rotate(8deg) scale(0.8);
    }
    @keyframes satFade {
      0%, 100% { opacity: 0.7; }
      50% { opacity: 1; }
    }
    /* Sparkle - positioned -22px above center */
    .gift-sparkle {
      z-index: 3;
      color: #FDE047;
      font-size: 18px;
      transform: translate(-50%, calc(-50% - 22px));
      animation: sparkleRotate 4s linear infinite;
    }
    @keyframes sparkleRotate {
      from { transform: translate(-50%, calc(-50% - 22px)) rotate(0deg) scale(1); }
      50% { transform: translate(-50%, calc(-50% - 22px)) rotate(180deg) scale(1.2); }
      to { transform: translate(-50%, calc(-50% - 22px)) rotate(360deg) scale(1); }
    }
    /* Yellow glow behind sparkle */
    .gift-glow {
      z-index: 0;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: #FDE047;
      opacity: 0.3;
      filter: blur(6px);
      transform: translate(-50%, calc(-50% - 22px));
      animation: glowPulse 3s ease-in-out infinite;
    }
    @keyframes glowPulse {
      0%, 100% { transform: translate(-50%, calc(-50% - 22px)) scale(1); opacity: 0.3; }
      50% { transform: translate(-50%, calc(-50% - 22px)) scale(1.8); opacity: 0.1; }
    }

    /* ── Eventi - Indigo ───────────────────────────── */
    .card.events { background: #6366F1; }
    .card.events:hover {
      box-shadow: 0 16px 48px rgba(99, 102, 241, 0.35), 0 4px 12px rgba(0,0,0,0.1);
    }
    .card.events .card-glow {
      background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    }
    /* Calendar pulse + shake (matching app: calendarPulse + calendarShake) */
    .card.events .card-icon-main {
      animation: calPulseShake 2.5s ease-in-out infinite;
    }
    @keyframes calPulseShake {
      0%, 100% { transform: scale(1) translateX(0); }
      15% { transform: scale(1.06) translateX(-2px); }
      30% { transform: scale(1) translateX(2px); }
      45% { transform: scale(1.06) translateX(-1px); }
      60% { transform: scale(1) translateX(0); }
    }
    /* Flash highlight behind calendar (app: white 45px circle) */
    .cal-highlight {
      z-index: 0;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: #FFFFFF;
      animation: calFlash 3s ease-in-out infinite;
    }
    @keyframes calFlash {
      0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
      50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.4; }
    }
    /* Colored dots overlapping calendar (app: translateX/Y from center) */
    .cal-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      z-index: 3;
      animation: dotPulse 2s ease-in-out infinite;
    }
    /* App positions: d1(-8,3) d2(8,2) d3(0,8) d4(-5,11) */
    .cal-dot.d1 {
      background: #EC4899;
      transform: translate(calc(-50% - 8px), calc(-50% + 3px));
      animation-delay: 0s;
    }
    .cal-dot.d2 {
      background: #3B82F6;
      transform: translate(calc(-50% + 8px), calc(-50% + 2px));
      animation-delay: 0.3s;
    }
    .cal-dot.d3 {
      background: #FDE047;
      transform: translate(calc(-50% + 0px), calc(-50% + 8px));
      animation-delay: 0.6s;
    }
    .cal-dot.d4 {
      background: #34D399;
      transform: translate(calc(-50% - 5px), calc(-50% + 11px));
      animation-delay: 0.9s;
    }
    @keyframes dotPulse {
      0%, 100% { opacity: 0.7; }
      50% { opacity: 1; }
    }

    /* ── Amici - Teal/Primary ──────────────────────── */
    .card.friends { background: #14B8A6; }
    .card.friends:hover {
      box-shadow: 0 16px 48px rgba(20, 184, 166, 0.35), 0 4px 12px rgba(0,0,0,0.1);
    }
    .card.friends .card-glow {
      background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    }
    /* People icon subtle tilt (app: 6deg rotation + scale) */
    .card.friends .card-icon-main {
      animation: peopleTilt 4s ease-in-out infinite;
    }
    @keyframes peopleTilt {
      0%, 100% { transform: scale(1) rotate(0deg); }
      25% { transform: scale(1.04) rotate(3deg); }
      75% { transform: scale(1.04) rotate(-3deg); }
    }
    /* Concentric waves from center (app: 3 waves scaling 0.6→1.3/1.8/2.2) */
    .people-wave {
      border: 2.5px solid rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      width: 68px;
      height: 68px;
      z-index: 0;
      animation: waveExpand 3s ease-out infinite;
    }
    .people-wave.w1 { animation-delay: 0s; }
    .people-wave.w2 { animation-delay: 0.8s; }
    .people-wave.w3 { animation-delay: 1.6s; }
    @keyframes waveExpand {
      0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.8; }
      100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
    }
    /* Glow pulsante (app: waveGlow) */
    .people-glow {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      z-index: 0;
      animation: peopleGlowPulse 2.5s ease-in-out infinite;
    }
    @keyframes peopleGlowPulse {
      0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
      50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.25; }
    }

    /* Card inner elements */
    .card-glow {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .card-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 12px;
    }
    .card-header .card-icon-wrap {
      margin-bottom: 0;
      flex-shrink: 0;
    }
    .card h3 {
      font-size: 1.8rem;
      font-weight: 800;
      letter-spacing: 0.5px;
      text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }
    .card p {
      font-size: 1.05rem;
      color: rgba(255, 255, 255, 0.7);
      font-weight: 500;
      letter-spacing: 0.1px;
    }

    /* ── Section "Come funziona" ───────────────────── */
    .how {
      position: relative;
      z-index: 1;
      max-width: 1080px;
      margin: 0 auto;
      padding: 40px 24px 60px;
    }
    .how-header {
      text-align: center;
      margin-bottom: 40px;
    }
    .section-title {
      font-size: clamp(1.6rem, 4vw, 2.2rem);
      font-weight: 900;
      color: #1F2937;
      letter-spacing: -0.4px;
      margin-bottom: 8px;
    }
    .section-subtitle {
      font-size: clamp(1rem, 2.5vw, 1.15rem);
      color: #6B7280;
      font-weight: 500;
    }
    .how-steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }
    .how-step {
      position: relative;
      text-align: center;
      padding: 28px 20px 24px;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(20, 184, 166, 0.12);
      box-shadow: 0 4px 18px rgba(20, 184, 166, 0.08);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    }
    .how-step:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 28px rgba(20, 184, 166, 0.15);
    }
    .how-step-num {
      position: absolute;
      top: -16px;
      left: 50%;
      transform: translateX(-50%);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: linear-gradient(135deg, #14B8A6, #0891B2);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      font-size: 1rem;
      box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
    }
    .how-illu {
      width: 160px;
      height: 160px;
      margin: 16px auto 16px;
    }
    .how-illu svg {
      width: 100%;
      height: 100%;
    }
    .how-step-title {
      font-size: 1.15rem;
      font-weight: 800;
      color: #1F2937;
      margin-bottom: 8px;
    }
    .how-step-text {
      font-size: 0.95rem;
      color: #6B7280;
      line-height: 1.5;
      max-width: 28ch;
      margin: 0 auto;
    }
    @media (max-width: 720px) {
      .how-steps {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
      }
    }

    /* ── Section FAQ ───────────────────────────────── */
    .faq {
      position: relative;
      z-index: 1;
      max-width: 760px;
      margin: 0 auto;
      padding: 40px 24px 60px;
    }
    .faq-header {
      text-align: center;
      margin-bottom: 32px;
    }
    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .faq-item {
      background: rgba(255, 255, 255, 0.65);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 18px;
      border: 1px solid rgba(20, 184, 166, 0.12);
      overflow: hidden;
      transition: box-shadow 0.3s, border-color 0.3s;
    }
    .faq-item[open] {
      box-shadow: 0 6px 24px rgba(20, 184, 166, 0.10);
      border-color: rgba(20, 184, 166, 0.30);
    }
    .faq-item summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 22px;
      cursor: pointer;
      list-style: none;
      gap: 12px;
      transition: background 0.2s;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary:hover {
      background: rgba(20, 184, 166, 0.04);
    }
    .faq-q {
      font-size: 1rem;
      font-weight: 700;
      color: #1F2937;
      flex: 1;
      letter-spacing: -0.1px;
    }
    .faq-chev {
      font-size: 22px;
      color: #14B8A6;
      flex-shrink: 0;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .faq-item[open] .faq-chev {
      transform: rotate(180deg);
    }
    .faq-a {
      padding: 0 22px 20px;
      font-size: 0.95rem;
      color: #4B5563;
      line-height: 1.6;
      animation: faqSlide 0.3s ease;
    }
    .faq-a a {
      color: #14B8A6;
      font-weight: 600;
      text-decoration: none;
    }
    .faq-a a:hover { text-decoration: underline; }
    .faq-a strong { color: #1F2937; font-weight: 700; }
    @keyframes faqSlide {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ── Divider ────────────────────────────────────── */
    .divider {
      position: relative;
      z-index: 1;
      max-width: 800px;
      margin: 0 auto;
      padding: 0 24px;
    }
    .divider hr {
      border: none;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(20, 184, 166, 0.2), transparent);
    }

    /* ── Legal links ────────────────────────────────── */
    .legal {
      position: relative;
      z-index: 1;
      max-width: 800px;
      margin: 0 auto;
      padding: 40px 24px;
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .legal-card {
      display: flex;
      align-items: center;
      gap: 12px;
      background: white;
      border: 1px solid #E5E7EB;
      border-radius: 14px;
      padding: 16px 24px;
      text-decoration: none;
      color: #1F2937;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      transition: box-shadow 0.2s, transform 0.2s;
      font-size: 0.95rem;
      font-weight: 600;
    }
    .legal-card:hover {
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
      transform: translateY(-2px);
    }
    .legal-card ion-icon {
      font-size: 1.3rem;
      color: #14B8A6;
    }

    /* ── Final CTA (prima del footer) ───────────────── */
    .final-cta {
      position: relative;
      z-index: 1;
      max-width: 720px;
      margin: 0 auto;
      padding: 60px 24px 40px;
      text-align: center;
    }
    .final-cta-title {
      font-size: clamp(1.6rem, 4vw, 2.2rem);
      font-weight: 900;
      color: #1F2937;
      letter-spacing: -0.4px;
      margin-bottom: 8px;
      background: linear-gradient(135deg, #14B8A6, #0891B2, #EC4899);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .final-cta-sub {
      font-size: clamp(1rem, 2.5vw, 1.15rem);
      color: #6B7280;
      font-weight: 500;
      margin-bottom: 24px;
    }

    /* ── Footer ─────────────────────────────────────── */
    footer {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 40px 24px 48px;
      color: #9CA3AF;
    }
    .footer-inner {
      max-width: 480px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    .footer-logo {
      width: 140px;
      height: auto;
      opacity: 0.9;
      margin-bottom: 4px;
    }
    .footer-tagline {
      font-size: 0.95rem;
      font-weight: 700;
      color: #14B8A6;
      letter-spacing: 0.3px;
      margin-bottom: 8px;
    }
    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      align-items: center;
      font-size: 0.9rem;
    }
    .footer-dot {
      color: #D1D5DB;
      font-weight: 700;
    }
    .footer-copy {
      font-size: 0.78rem;
      color: #9CA3AF;
      margin-top: 8px;
      line-height: 1.5;
    }
    .footer-copy span[aria-label] { color: #EF4444; }
    footer a {
      color: #14B8A6;
      text-decoration: none;
      font-weight: 600;
    }
    footer a:hover { text-decoration: underline; }

    /* ── Conferma email overlay ─────────────────────── */
    .confirm-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      z-index: 100;
      justify-content: center;
      align-items: center;
      padding: 24px;
    }
    .confirm-overlay.active { display: flex; }

    .confirm-card {
      background: white;
      border-radius: 28px;
      padding: 52px 36px 44px;
      max-width: 420px;
      width: 100%;
      text-align: center;
      box-shadow: 0 24px 64px rgba(0,0,0,0.25);
      animation: confirmIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    @keyframes confirmIn {
      from { opacity: 0; transform: scale(0.8) translateY(24px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .confirm-icon {
      width: 92px;
      height: 92px;
      border-radius: 50%;
      background: linear-gradient(135deg, #14B8A6 0%, #0891B2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 28px;
      font-size: 42px;
      color: white;
      font-weight: 700;
      box-shadow: 0 8px 32px rgba(20, 184, 166, 0.3);
      animation: pulse 2.5s ease-in-out infinite;
    }
    @keyframes pulse {
      0%, 100% { box-shadow: 0 8px 32px rgba(20, 184, 166, 0.3); }
      50% { box-shadow: 0 8px 32px rgba(20, 184, 166, 0), 0 0 0 16px rgba(20, 184, 166, 0.08); }
    }
    .confirm-card h2 {
      font-size: 1.7rem;
      font-weight: 800;
      color: #1F2937;
      margin-bottom: 12px;
    }
    .confirm-card .subtitle {
      font-size: 1.05rem;
      color: #6B7280;
      margin-bottom: 36px;
      line-height: 1.7;
    }
    .confirm-cta {
      display: inline-block;
      background: linear-gradient(135deg, #14B8A6, #0891B2);
      color: white;
      font-size: 1.05rem;
      font-weight: 700;
      padding: 15px 40px;
      border-radius: 16px;
      text-decoration: none;
      letter-spacing: 0.3px;
      box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
      transition: transform 0.15s, box-shadow 0.15s;
      cursor: pointer;
      border: none;
    }
    .confirm-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(20, 184, 166, 0.45);
    }
    .confirm-card.error .confirm-icon {
      background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
      box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
      animation: none;
    }

    /* ── Responsive ─────────────────────────────────── */
    @media (max-width: 680px) {
      .features { grid-template-columns: 1fr; max-width: 380px; }
      .card { min-height: 180px; }
    }
    @media (max-width: 480px) {
      .hero { padding: 12px 16px 2px; }
      .hero-logo { width: 320px; }
      .features { padding: 20px 16px 36px; }
      .confirm-card { padding: 40px 24px 36px; }
    }

/* ── Selettore lingua globale (flottante in alto a destra) ──────────────── */
.lang-switcher {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.lang-switcher a {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6B7280;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switcher a:hover { background: rgba(20, 184, 166, 0.10); color: #0891B2; }
.lang-switcher a[aria-current="true"] {
  background: linear-gradient(135deg, #14B8A6, #0891B2);
  color: #FFFFFF;
}
/* Su mobile il selettore con 5 lingue, restando `fixed`, andava a capo e
   copriva il logo dell'hero. Lo portiamo nel flusso (static): diventa una
   barra centrata in cima che occupa il proprio spazio e spinge giù l'hero.
   Nessuna sovrapposizione, qualunque sia il numero di lingue o la larghezza. */
@media (max-width: 480px) {
  .lang-switcher {
    position: static;
    top: auto;
    right: auto;
    margin: 10px auto 2px;
    width: max-content;
    max-width: calc(100% - 16px);
    justify-content: center;
    gap: 2px;
    padding: 4px;
  }
  .lang-switcher a { font-size: 0.72rem; padding: 3px 8px; }
}
