/* ===================================================
   RESISTANCE PHYSIO — style.css
   Dr. Michele Castellano Vitaterna
   ===================================================

   INDICE:
   0.  Reset & Base
   1.  Custom Properties (variabili)
   2.  Tipografia
   3.  Utility (container, sezioni, animazioni)
   4.  Bottoni
   5.  Navbar
   6.  Hero
   7.  Problema / Identificazione
   8.  Chi sono (About)
   9.  Servizi
   10. Perché Michele (USP)
   11. Come funziona (Steps)
   12. Testimonianze
   13. FAQ
   14. CTA Finale
   15. Footer
   16. Media queries — Tablet (768px+)
   17. Media queries — Desktop (1024px+)
   =================================================== */


/* ===================================================
   0. RESET & BASE
   =================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}


/* ===================================================
   1. CUSTOM PROPERTIES
   ⚠️ PLACEHOLDER — in attesa del brand manual.
   Sostituire i valori HEX con i colori ufficiali
   quando il brand manual sarà disponibile.
   =================================================== */
:root {
  /* Colori — brand manual ufficiale Resistance Physio */
  --blue:         #0004f4;            /* Blue Primary 100 — blu elettrico */
  --blue-dark:    #00013d;            /* Blue Dark 140 — hero / footer */
  --blue-deepest: #00001b;             /* Blue Dark 150 — testo */
  --white:        #ffffff;
  --bg:           #f4f4f6;             /* sfondo pagina neutro freddo */
  --text:         #00001b;
  --text-muted:   rgba(0, 1, 61, 0.55);

  /* Tipografia — brand manual */
  --font-title:   'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-primary: var(--font-body);

  /* Layout */
  --max-width:   1200px;
  --max-text:    680px;
  --radius:      4px;

  /* Border radius — sistema brutalista-sportivo */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* Effetti */
  --shadow:      0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-md:   0 4px 24px rgba(0, 0, 0, 0.10);
  --transition:  0.28s ease;

  /* Spaziatura sezioni (mobile-first) */
  --section-py:  60px;
}


/* ===================================================
   2. TIPOGRAFIA
   =================================================== */
h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 800;
}

h1 {
  font-size: 2rem; /* mobile — sovrascritto in tablet/desktop */
}

h2 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

p {
  max-width: var(--max-text);
  line-height: 1.7;
}


/* ===================================================
   3. UTILITY
   =================================================== */

/* Contenitore principale */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sezioni */
.section {
  padding: var(--section-py) 0;
}

.section-alt {
  background: var(--bg);
}

.section-dark {
  background: var(--blue);
  color: var(--white);
}

/* ── Floating card — sezioni come blocchi che galleggiano ── */
/* overflow: clip taglia il contenuto ai bordi arrotondati
   senza creare uno scroll container (non rompe position: sticky) */
.hero,
.section,
.footer {
  border-radius: 24px;
  margin: 12px;
  overflow: clip;
}

.footer {
  margin-bottom: 0;
}

/* Titolo di sezione */
.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.section-title h2 {
  color: var(--blue-deepest);
  margin-bottom: 14px;
}

.section-dark .section-title h2 {
  color: var(--white);
}

.section-title p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-dark .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

/* Placeholder foto (nessuna stock photo — solo placeholder con commento descrittivo) */
.photo-placeholder {
  background: rgba(0, 0, 0, 0.05);
  border: 2px dashed rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.8rem;
  text-align: center;
  gap: 10px;
  padding: 24px;
  user-select: none;
}

.photo-placeholder-icon {
  font-size: 2.4rem;
  opacity: 0.5;
  display: block;
}

/* Animazione fade-in + slide-up (legacy — mantenuta per compatibilità) */
.fade-in,
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible,
.animate-on-scroll.animated {
  opacity: 1;
  transform: none;
}

/* ── Sistema animazioni reveal ─────────────────────────── */

/* Slide-up: titoli, step, testi */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Zoom-in: card (problema, servizi, testimonianze) */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal-zoom.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays per card in griglia */
.stagger-1 { transition-delay:   0ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 200ms; }
.stagger-4 { transition-delay: 300ms; }


/* ===================================================
   4. BOTTONI
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  min-height: 50px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* CTA principale — blu elettrico */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

/* Outline bianco — su sfondi scuri */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

/* Outline scuro — su sfondi chiari */
.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--blue);
  color: var(--white);
}

/* Focus visibile per accessibilità */
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}


/* ===================================================
   5. NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 48px);
  max-width: 1200px;
  z-index: 1000;
  background: var(--blue-dark);
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  background: var(--blue-dark);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  background: var(--blue);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-mark-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Logo navbar — versione brand completo (color su bg chiaro) */
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-name {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  /* Nascosto su schermi molto piccoli per non affollare la navbar */
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Stato aperto: X */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile — nascosto di default.
   Copre l'intero schermo (top:0) invece di partire sotto la navbar con un
   valore fisso in px: quel valore doveva indovinare l'altezza esatta della
   navbar mobile e disallineava non appena la navbar cambiava padding,
   lasciando uno spazio vuoto/il contenuto della hero visibile sotto il
   pannello. Il padding-top spinge i link sotto la pillola della navbar
   (che resta sopra, avendo z-index più alto), senza dover indovinare nulla. */
.nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--blue-dark);
  padding: 100px 20px 40px;
  gap: 8px;
  z-index: 99;
  overflow-y: auto;
}

.nav-menu.open {
  display: flex;
}

/* Pulsante di chiusura esplicito, visibile in alto nel menu mobile —
   oltre alla X dell'hamburger, per non lasciare nulla da indovinare. */
.nav-menu-close {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
  background: none;
  border: none;
  color: #ffffff;
  opacity: 0.85;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 4px;
  margin-bottom: 8px;
  cursor: pointer;
}

.nav-menu-close span {
  font-size: 1.4rem;
  line-height: 1;
}

.nav-menu-close:hover,
.nav-menu-close:focus-visible {
  opacity: 1;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.75;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  opacity: 1;
  background: none;
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--blue);
  opacity: 1;
}

.nav-cta {
  margin-top: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-cta.btn-primary {
  background: var(--blue);
  color: #ffffff;
  border: none;
}

.nav-cta.btn-primary:hover,
.nav-cta.btn-primary:focus-visible {
  background: #ffffff;
  color: var(--blue-dark);
  border: none;
}


/* ===================================================
   6. HERO
   =================================================== */
.hero {
  min-height: 100vh;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  padding-top: 68px; /* altezza navbar */
  overflow: hidden;
  position: relative;
}

/* Sottile texture di sfondo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0, 4, 244, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  position: relative;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 24px;
}

.hero h1 span {
  color: #ffffff;
  font-weight: 800;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Foto hero — contenitore con ring + ombra profonda per integrarsi sul blu */
.hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15),
              0 24px 48px rgba(0, 0, 64, 0.4);
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
}

/* Bottoni dentro la hero — inversione gerarchia (primary = bianco pieno) */
.hero .btn-primary {
  background: #ffffff;
  color: var(--blue);
  border: none;
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background: rgba(255, 255, 255, 0.90);
  color: var(--blue);
  border: none;
}

.hero .btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.50);
}

.hero .btn-outline:hover,
.hero .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: #ffffff;
}


/* ===================================================
   7. PROBLEMA / IDENTIFICAZIONE
   =================================================== */
.problema-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.problema-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow);
}

.problema-card .card-number {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.problema-card h3 {
  color: var(--blue);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.problema-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 100%;
}


/* ===================================================
   8. CHI SONO (About)
   =================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

/* Foto about */
.about-photo-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
}

/* Tag credenziali */
.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.credential-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--blue);
  color: var(--white);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-content .title-role {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  font-weight: 700;
}

.about-content h2 {
  color: var(--blue-deepest);
  margin-bottom: 24px;
}

.about-quote {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  border-left: 4px solid var(--blue);
  padding-left: 20px;
  margin: 28px 0;
  font-style: italic;
  text-transform: none;
  line-height: 1.4;
}

.about-content p {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.about-content p strong {
  font-weight: 600;
  color: var(--text);
}

/* Striscia statistiche — full-width, centrata sotto la griglia about */
.stats-strip {
  width: 100%;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 32px;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Striscia loghi istituzionali */
.logos-strip {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.logos-strip > p {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 24px;
  max-width: none;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
  align-items: center;
}

/* LOGHI: placeholder testuale — sostituire con img SVG quando disponibili */
.logo-item {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ── 8b. CHI SONO — variante sfondo scuro ─────────────── */
#chi-sono {
  background: var(--blue-dark);
  color: #ffffff;
}

#chi-sono .about-content h2 {
  color: #ffffff;
}

#chi-sono .about-content p,
#chi-sono .about-content p strong {
  color: rgba(255, 255, 255, 0.80);
}

#chi-sono .title-role {
  color: var(--blue);
}

#chi-sono .about-quote {
  color: rgba(255, 255, 255, 0.70);
  border-left-color: var(--blue);
}

#chi-sono .credential-tag {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.20);
}

#chi-sono .stats-strip {
  border-top-color: rgba(255, 255, 255, 0.15);
}

#chi-sono .stat-number {
  color: var(--blue);
}

#chi-sono .stat-label {
  color: rgba(255, 255, 255, 0.60);
}

#chi-sono .logos-strip {
  border-top-color: rgba(255, 255, 255, 0.15);
}

#chi-sono .logos-strip > p {
  color: rgba(255, 255, 255, 0.50);
}

#chi-sono .logo-item {
  color: rgba(255, 255, 255, 0.85);
}

#chi-sono .btn-primary {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

#chi-sono .btn-primary:hover,
#chi-sono .btn-primary:focus-visible {
  background: #ffffff;
  color: var(--blue-dark);
  border-color: #ffffff;
}


/* ===================================================
   9. SERVIZI — layout sticky scroll (intro fisso a sx, card a dx)
   =================================================== */

/* Override floating-card overflow: clip cattura il sticky e lo annulla.
   Su #servizi serve overflow visibile per far funzionare lo stack. */
#servizi {
  overflow: visible;
}

/* Mobile-first: stack verticale, niente sticky */
.servizi-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.servizi-intro {
  width: 100%;
}

.servizi-intro .section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.servizi-intro h2 {
  color: var(--blue-deepest);
  margin-bottom: 16px;
}

.servizi-intro > p:last-child {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 100%;
}

.servizi-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Effetto stack: ogni card sticky con offset crescente */
.servizi-cards .servizio-card {
  position: sticky;
  transition: transform 0.3s ease;
}

.servizi-cards .servizio-card:nth-child(1) { top: 120px; }
.servizi-cards .servizio-card:nth-child(2) { top: 136px; }
.servizi-cards .servizio-card:nth-child(3) { top: 152px; }

/* Stagger override per questa sezione: 0 / 150ms / 300ms */
.servizi-cards .stagger-2 { transition-delay: 150ms; }
.servizi-cards .stagger-3 { transition-delay: 300ms; }

/* Layout legacy grid — non più usato, mantenuto per sicurezza */
.servizi-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.servizio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border-top: 4px solid var(--blue);
  display: flex;
  flex-direction: column;
}

.service-number {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.servizio-card h3 {
  color: var(--blue);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.service-target {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: block;
}

.service-pain {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--blue);
  padding-left: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.servizio-card > p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 32px;
  flex: 1;
  max-width: 100%;
}


/* ── 9b. Servizio card featured (colori invertiti) ─── */

.servizio-card--featured {
  background: var(--blue);
  border-top-color: var(--white);
}

.servizio-card--featured .service-number {
  color: var(--white);
}

.servizio-card--featured h3 {
  color: var(--white);
}

.servizio-card--featured .service-target {
  color: rgba(255, 255, 255, 0.75);
}

.servizio-card--featured .service-pain {
  color: rgba(255, 255, 255, 0.85);
  border-left-color: var(--white);
}

.servizio-card--featured > p {
  color: rgba(255, 255, 255, 0.75);
}

.service-quiz-note {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 100%;
  line-height: 1.6;
}

.servizio-card--featured .btn-primary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.servizio-card--featured .btn-primary:hover,
.servizio-card--featured .btn-primary:focus-visible {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}


/* ===================================================
   10. PERCHÉ MICHELE (USP)
   =================================================== */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.usp-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.usp-number {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  min-width: 48px;
  line-height: 1;
  flex-shrink: 0;
}

.usp-item h3 {
  color: var(--blue);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.usp-item > div > p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 100%;
}


/* ===================================================
   11. COME FUNZIONA — split layout
   =================================================== */

/* Mobile: colonna singola — immagine sopra, step sotto */
.come-funziona-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Immagine placeholder */
.come-funziona-image {
  width: 100%;
}

.come-funziona-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: unset;
  border-radius: var(--radius-lg);
}

.come-funziona-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
}

/* Colonna step */
.come-funziona-steps {
  width: 100%;
}

/* Titolo sezione — allineato a sinistra nel split layout */
.come-funziona-header {
  margin-bottom: 8px;
}

.come-funziona-header h2 {
  color: var(--blue-deepest);
  margin-bottom: 14px;
}

.come-funziona-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Griglia step */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.12;
  line-height: 1;
  min-width: 64px;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--blue);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 100%;
}


/* ===================================================
   12. TESTIMONIANZE
   =================================================== */
.testimonianze-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonianza-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

/* Marquee — scorrimento infinito orizzontale (sostituisce la griglia statica) */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: marquee-scroll 38s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.testimonianza-card--marquee {
  width: 340px;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}


/* ===================================================
   SMOOTH CURSOR — cursore custom blu elettrico (solo mouse/trackpad)
   =================================================== */
#smooth-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin-left: -3px;
  margin-top: -2px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

body.smooth-cursor-active,
body.smooth-cursor-active * {
  cursor: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #smooth-cursor {
    display: none;
  }
  body.smooth-cursor-active,
  body.smooth-cursor-active * {
    cursor: auto !important;
  }
}


/* ===================================================
   TYPING ANIMATION — effetto macchina da scrivere
   =================================================== */
.typing-cursor::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: typing-blink 0.9s step-end infinite;
}

@keyframes typing-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--blue);
  line-height: 0.6;
  margin-bottom: 16px;
  display: block;
  opacity: 0.8;
}

.testimonianza-card blockquote {
  font-size: 0.97rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 24px;
}

.testimonianza-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Placeholder foto testimone */
.author-photo .photo-placeholder {
  width: 48px;
  height: 48px;
  min-height: unset;
  border-radius: 50%;
  background: #ddd;
  border-color: #ccc;
  font-size: 1rem;
  color: #aaa;
  padding: 0;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ===================================================
   13. FAQ
   =================================================== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

details {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
  padding: 0 20px;
  overflow: hidden;
}

details summary {
  padding: 20px 0;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-deepest);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  user-select: none;
  transition: color var(--transition);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--blue);
  transition: transform var(--transition);
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1;
}

details[open] summary {
  color: var(--blue-dark);
}

details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 40px 24px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-answer p {
  max-width: 640px;
}


/* ===================================================
   14. CTA FINALE
   =================================================== */
.cta-finale {
  text-align: center;
}

.cta-finale h2 {
  color: var(--white);
  margin-bottom: 18px;
}

.cta-finale > .container > div > p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 40px;
  font-size: 1.05rem;
  max-width: 540px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}


/* ===================================================
   15. FOOTER
   =================================================== */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 32px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
  font-size: 0.78rem;
}

.footer-brand .logo-mark-img {
  margin-bottom: 14px;
  width: 32px;
  height: 32px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  max-width: 240px;
  margin-bottom: 8px;
}

.footer-piva {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-links h4 {
  font-family: var(--font-title);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue);
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), border-color var(--transition);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--blue);
}

.footer-logo {
  display: inline-flex;
}


/* ===================================================
   16. MEDIA QUERIES — TABLET (768px+)
   =================================================== */
@media (min-width: 768px) {

  :root {
    --section-py: 88px;
  }

  .container {
    padding: 0 40px;
  }

  /* Navbar desktop */
  .hamburger {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    gap: 28px;
    align-items: center;
    bottom: auto;
    top: auto;
    left: auto;
    right: auto;
    overflow: visible;
  }

  .nav-link {
    font-size: 0.88rem;
    padding: 0;
    border-bottom: none;
  }

  .nav-cta {
    margin-top: 0;
    font-size: 0.88rem;
    padding: 10px 20px;
  }

  /* Pulsante di chiusura: serve solo nel pannello mobile a schermo intero */
  .nav-menu-close {
    display: none;
  }

  /* H1 — tablet */
  h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }

  /* Hero */
  .hero-container {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    padding: 80px 40px 64px;
  }

  .hero-content {
    flex: 1;
  }

  .hero-image {
    flex: 1;
  }

  .hero-photo {
    min-height: 520px;
  }

  .hero-ctas {
    flex-direction: row;
    gap: 16px;
  }

  /* Problema */
  .problema-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
  }

  .about-photo-img {
    min-height: 500px;
  }

  /* Servizi — layout sticky due colonne da tablet in su */
  .servizi-layout {
    flex-direction: row;
    gap: 48px;
  }

  .servizi-intro {
    width: 38%;
    position: sticky;
    top: 100px;
    align-self: flex-start;
  }

  .servizi-intro h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
  }

  .servizi-cards {
    width: 62%;
    gap: 0;
  }

  /* Come Funziona — split 50/50 da tablet in su */
  .come-funziona-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 5%;
  }

  .come-funziona-steps {
    width: 50%;
    order: 1; /* sinistra */
  }

  .come-funziona-image {
    width: 45%;
    order: 2; /* destra */
    position: sticky;
    top: 120px;
  }

  /* USP */
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonianze */
  .testimonianze-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA buttons */
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* ===================================================
   17. MEDIA QUERIES — DESKTOP (1024px+)
   =================================================== */
@media (min-width: 1024px) {

  :root {
    --section-py: 108px;
  }

  .container {
    padding: 0 40px;
  }

  /* H1 — desktop */
  h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
  }

  /* Hero */
  .hero-container {
    padding: 100px 40px 64px;
  }

  .hero-sub {
    font-size: 1.1rem;
  }

  /* Testimonianze — 3 colonne su desktop */
  .testimonianze-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* About */
  .about-photo-img {
    min-height: 560px;
  }

  /* Sezione title spacing più generosa */
  .section-title {
    margin-bottom: 64px;
  }

}


/* ===================================================
   18. MEDIA QUERIES — MOBILE (max 767px)
   Fix sticky servizi + floating card più piccole
   =================================================== */
@media (max-width: 767px) {

  /* Marquee testimonianze — card più strette per far intravedere quella successiva */
  .testimonianza-card--marquee {
    width: 82vw;
    max-width: 320px;
  }

  .marquee-track {
    animation-duration: 26s;
  }

  /* Floating navbar — pill più compatta su mobile */
  .navbar {
    top: 8px;
    width: calc(100% - 24px);
    border-radius: 16px;
    padding: 8px 16px;
  }

  /* body padding-top rimosso: la hero parte direttamente sotto la navbar floating */

  /* Floating card: bordi e margini ridotti */
  .hero,
  .section,
  .footer {
    border-radius: 16px;
    margin: 8px;
  }

  .footer {
    margin-bottom: 0;
  }

  /* Servizi — stack verticale, niente sticky su mobile */
  .servizi-layout {
    flex-direction: column;
  }

  .servizi-intro {
    position: static;
    width: 100%;
  }

  .servizi-cards {
    width: 100%;
    gap: 0;
  }

  /* Come Funziona — rimuovi sticky sull'immagine */
  .come-funziona-image {
    position: static;
  }
}


/* ===================================================
   HOVER CARD — micro-interazione unificata
   Cattura tutte le card via attributo selector
   =================================================== */
[class*="card"] {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[class*="card"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}


/* ===================================================
   ACCESSIBILITÀ — focus visibile globale
   =================================================== */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Rimuove outline su click (mantienilo solo per tastiera) */
:focus:not(:focus-visible) {
  outline: none;
}


/* ===================================================
   WIDGET WHATSAPP (solo landing)
   z-index 90: sotto il menu mobile (99), cosi' quando il menu
   e' aperto il widget resta coperto.
   =================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.wa-widget {
  position: fixed;
  left: 20px; /* a sinistra: in basso a destra c'e' il pulsante preferenze cookie di iubenda */
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}
.wa-widget > * { pointer-events: auto; }

/* --- Pulsante tondo --- */
.wa-float {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.wa-float.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-float:hover,
.wa-float:focus-visible { transform: translateY(0) scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Onda che pulsa intorno al tondo mentre c'e' la nuvoletta */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  opacity: 0;
}
.wa-widget.is-nudging .wa-float::before { animation: wa-ring 1.8s ease-out 3; }
@keyframes wa-ring {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Icona: WhatsApp da chiuso, X da aperto */
.wa-float .wa-icon,
.wa-float .wa-icon-close { position: absolute; transition: transform 0.25s ease, opacity 0.2s ease; }
.wa-float .wa-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.wa-widget.is-open .wa-float .wa-icon { opacity: 0; transform: rotate(90deg) scale(0.6); }
.wa-widget.is-open .wa-float .wa-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.wa-widget.is-open .wa-float { background: #128C7E; }

/* Pallino rosso "1" */
.wa-badge {
  position: absolute;
  top: -2px;
  right: -2px; /* resta in alto a destra del tondo anche col widget a sinistra */
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: #ff3b30;
  color: #fff;
  font: 700 12px/20px var(--font-body);
  text-align: center;
  border: 2px solid #fff;
  box-sizing: content-box;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}
.wa-widget.has-badge .wa-badge { transform: scale(1); }

/* --- Nuvoletta --- */
.wa-bubble {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
  box-shadow: var(--shadow-md);
  margin-left: 6px;
  max-width: 260px;
  transform-origin: bottom left;
  animation: wa-pop 0.45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.wa-bubble[hidden] { display: none; }
.wa-bubble.is-leaving { animation: wa-out 0.2s ease forwards; }
.wa-bubble-text {
  background: none;
  border: 0;
  padding: 12px 6px 12px 16px;
  font: 400 15px/1.35 var(--font-body);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.wa-bubble-text strong { color: #128C7E; font-weight: 700; }
.wa-bubble-close {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 6px 10px 6px 4px;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.wa-bubble-close:hover { color: var(--text); }

/* --- Mini-chat --- */
.wa-panel {
  width: 340px;
  max-width: calc(100vw - 32px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 1, 61, 0.25);
  transform-origin: bottom left;
  animation: wa-pop 0.35s cubic-bezier(.34, 1.4, .64, 1) both;
}
.wa-panel[hidden] { display: none; }
.wa-panel.is-leaving { animation: wa-out 0.2s ease forwards; }
.wa-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  background: #075E54;
  color: #fff;
}
.wa-panel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}
.wa-panel-who { flex: 1; min-width: 0; }
.wa-panel-name { margin: 0; font: 700 16px/1.2 var(--font-body); }
.wa-panel-role { margin: 2px 0 0; font: 400 13px/1.2 var(--font-body); opacity: 0.8; }
.wa-panel-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}
.wa-panel-close:hover { background: rgba(255, 255, 255, 0.12); }
.wa-panel-body {
  padding: 18px 16px 14px;
  min-height: 120px;
  background-color: #ECE5DD;
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-msg {
  position: relative;
  max-width: 88%;
  padding: 10px 12px;
  background: #fff;
  color: #111b21;
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  font: 400 15px/1.45 var(--font-body);
  display: none;
}
.wa-msg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 10px solid #fff;
  border-left: 8px solid transparent;
}
.wa-panel.show-msg .wa-msg { display: block; animation: wa-msg-in 0.3s ease both; }
.wa-typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 0 10px 10px 10px;
}
.wa-panel.show-msg .wa-typing { display: none; }
.wa-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: wa-dot 1s infinite ease-in-out;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }
.wa-panel-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 10px 4px;
  background: #F0F2F5;
}
.wa-panel-form textarea {
  flex: 1;
  resize: none;
  border: 0;
  border-radius: 20px;
  padding: 10px 14px;
  font: 400 16px/1.35 var(--font-body); /* 16px: evita lo zoom automatico su iPhone */
  color: #111b21;
  background: #fff;
  max-height: 110px;
  outline: none;
}
.wa-panel-form textarea:focus-visible { box-shadow: 0 0 0 2px #25D366; }
.wa-send {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.wa-send:hover { background: #1ebe5a; transform: scale(1.05); }
.wa-send:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wa-panel-note {
  margin: 0;
  padding: 2px 16px 10px;
  background: #F0F2F5;
  font: 400 12px/1.3 var(--font-body);
  color: #667781;
  text-align: center;
}

@keyframes wa-pop {
  0%   { opacity: 0; transform: translateY(10px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wa-out {
  to { opacity: 0; transform: translateY(6px) scale(0.92); }
}
@keyframes wa-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wa-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 767px) {
  .wa-widget { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { width: 52px; height: 52px; }
  .wa-bubble { max-width: 230px; }
  .wa-bubble-text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float .wa-icon, .wa-float .wa-icon-close, .wa-badge { transition: none; }
  .wa-bubble, .wa-panel, .wa-bubble.is-leaving, .wa-panel.is-leaving,
  .wa-panel.show-msg .wa-msg, .wa-typing span,
  .wa-widget.is-nudging .wa-float::before { animation: none; }
}

/* Link legali iubenda nel footer */
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
