/* ============================================================
   VANIO - Tema CSS Principale
   Stile: Premium | Mediterraneo | Moderno
   ============================================================ */

/* ============================================================
   VARIABILI CSS — Allineate al VANIO Brand Kit v1.0
   Palette, raggi, ombre e font ufficiali (vanio_tokens.json)
   ============================================================ */
:root {
  /* Palette ufficiale brand kit */
  --teal:        #00A8A8;
  --teal-dark:   #007B7F;
  --teal-light:  #BDEEEE;
  --navy:        #0A1B2F;
  --navy-mid:    #15314F;
  --bg:          #F4F6F8;
  --white:       #FFFFFF;
  --border:      #E2E8F0;
  --text-dark:   #0A1B2F;
  --text-mid:    #475569;
  --text-light:  #64748B;
  --grey:        #64748B;
  --success:     #22C55E;
  --warning:     #F59E0B;
  --error:       #EF4444;
  --gold:        #D4AF37;
  --purple:      #8B5CF6;
  --orange:      #F97316;
  --blue:        #2563EB;

  /* Gradiente brand (logo V + bottoni) */
  --grad-teal:   linear-gradient(135deg, #00A8A8, #007B7F);
  --grad-navy:   linear-gradient(135deg, #0A1B2F, #15314F);

  /* Ombre soft del brand kit */
  --shadow-sm:   0 4px 12px rgba(10,27,47,.06);
  --shadow-md:   0 8px 24px rgba(10,27,47,.08);
  --shadow-lg:   0 12px 30px rgba(10,27,47,.10);
  --shadow-soft: 0 12px 30px rgba(10,27,47,.10);

  /* Raggi: bottoni pill, card morbide */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-card: 22px;
  --radius-pill: 999px;

  --font:        'Poppins', 'Inter', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }

ul { list-style: none; }

/* --- TIPOGRAFIA --------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.text-teal    { color: var(--teal); }
.text-navy    { color: var(--navy); }
.text-mid     { color: var(--text-mid); }
.text-light   { color: var(--text-light); }
.text-center  { text-align: center; }
.text-white   { color: var(--white); }

/* --- LAYOUT ------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-2       { gap: 8px; }
.gap-3       { gap: 12px; }
.gap-4       { gap: 16px; }
.gap-6       { gap: 24px; }

/* --- HEADER / NAVBAR --------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: 1300px;
  margin: 0 auto;
}

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

.logo-img { height: 46px; width: auto; display: block; }

.logo-testo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}

.logo-testo span { color: var(--teal); }

.logo-claim {
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.nav-lista {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-lista a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: background .2s, color .2s;
}

.nav-lista a:hover,
.nav-lista a.attivo {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.nav-azioni {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-menu-mobile {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

/* --- PULSANTI (stile pill brand kit) ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(.97); }

/* Primario: gradiente teal del brand */
.btn-primario {
  background: var(--grad-teal);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0,168,168,.28);
}

.btn-primario:hover {
  filter: brightness(1.06);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0,168,168,.38);
  transform: translateY(-1px);
}

/* Secondario: bianco con bordo soft */
.btn-secondario {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondario:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}

.btn-navy {
  background: var(--grad-navy);
  color: var(--white);
  border-color: transparent;
}

.btn-navy:hover {
  filter: brightness(1.12);
  color: var(--white);
}

.btn-bianco {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-bianco:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal-light);
}

/* Oro: per CTA premium */
.btn-gold {
  background: linear-gradient(135deg, #E6C75A, var(--gold));
  color: var(--navy);
  border-color: transparent;
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .8125rem; }
.btn-full { width: 100%; }

/* --- HERO -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0E3460 40%, #14547C 70%, #1a7a8a 100%);
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero/hero-costiera.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: .25;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(11,37,69,.85) 0%,
    rgba(11,37,69,.6) 50%,
    rgba(20,184,166,.15) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--teal); }

.hero-sottotitolo {
  font-size: 1.125rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-azioni {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  position: absolute;
  bottom: 80px;
  right: 0;
  z-index: 3;
  display: flex;
  gap: 16px;
}

.hero-stat {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--white);
  text-align: center;
  min-width: 100px;
}

.hero-stat-numero {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: .75rem;
  opacity: .75;
  margin-top: 4px;
}

/* --- SEZIONE SERVIZI RAPIDI (WIDGET PRENOTA) --------------- */
.widget-prenota {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  margin-top: 40px;
}

.widget-tab {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}

.widget-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: calc(var(--radius-md) - 2px);
  border: none;
  background: none;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-mid);
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.widget-tab-btn.attivo {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}

.widget-form {
  display: grid;
  grid-template-columns: 1fr 1fr 140px 120px auto;
  gap: 12px;
  align-items: end;
}

/* --- CARD -------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow .25s, transform .25s;
}

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

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-img-tall {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.card-body { padding: 20px; }
.card-body-lg { padding: 28px; }

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.card-titolo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.card-desc {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-prezzo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.card-prezzo-label {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 400;
}

/* Card Servizio (con icona) */
.card-servizio {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-servizio-icona {
  width: 52px;
  height: 52px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  font-size: 1.375rem;
  flex-shrink: 0;
}

/* Card Destinazione */
.card-destinazione {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.card-destinazione img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform .4s ease;
}

.card-destinazione:hover img {
  transform: scale(1.05);
}

.card-destinazione-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(11,37,69,.9) 0%, transparent 100%);
  padding: 24px 20px 20px;
  color: var(--white);
}

.card-destinazione-nome {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-destinazione-desc {
  font-size: .8125rem;
  opacity: .8;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Card Veicolo */
.card-veicolo {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.card-veicolo.selezionato {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,.2);
}

.card-veicolo img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg);
}

.card-veicolo-info {
  padding: 16px;
}

.card-veicolo-nome {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.card-veicolo-spec {
  display: flex;
  gap: 12px;
  font-size: .8125rem;
  color: var(--text-mid);
}

.card-veicolo-spec span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- BADGE STATO ------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.badge-teal     { background: var(--teal-light); color: var(--teal-dark); }
.badge-navy     { background: #DBEAFE; color: var(--navy); }
.badge-success  { background: #DCFCE7; color: #16A34A; }
.badge-warning  { background: #FEF3C7; color: #92400E; }
.badge-error    { background: #FEE2E2; color: #991B1B; }
.badge-gray     { background: #F1F5F9; color: var(--text-mid); }

/* --- FORM -------------------------------------------------- */
.form-gruppo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-controllo {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-controllo:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}

.form-controllo::placeholder { color: var(--text-light); }

.form-controllo.errore { border-color: var(--error); }
.form-controllo.errore:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.15); }

.form-errore {
  font-size: .8125rem;
  color: var(--error);
  margin-top: 4px;
}

select.form-controllo { cursor: pointer; }

textarea.form-controllo {
  resize: vertical;
  min-height: 120px;
}

/* --- STEPPER PRENOTAZIONE ---------------------------------- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.step {
  display: flex;
  align-items: center;
}

.step-cerchio {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  transition: background .3s, border-color .3s, color .3s;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step.attivo .step-cerchio {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(20,184,166,.2);
}

.step.completato .step-cerchio {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.step-linea {
  height: 2px;
  width: 60px;
  background: var(--border);
  flex-shrink: 0;
}

.step.completato + .step .step-linea,
.step.attivo + .step .step-linea {
  background: var(--teal);
}

.step-etichetta {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-light);
}

.step.attivo .step-etichetta { color: var(--teal-dark); }
.step.completato .step-etichetta { color: var(--text-mid); }

/* --- SECTION HEADER --------------------------------------- */
.section-header {
  margin-bottom: 48px;
}

.section-header.center { text-align: center; }

.section-header h2 { margin-bottom: 12px; }

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 560px;
}

.section-header.center p { margin: 0 auto; }

.section-pretitolo {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  display: block;
}

/* --- VANTAGGI / FEATURES ---------------------------------- */
.vantaggi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.vantaggio {
  text-align: center;
  padding: 32px 20px;
}

.vantaggio-icona {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--teal-light), #A7F3D0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  color: var(--teal-dark);
}

.vantaggio h4 {
  color: var(--navy);
  margin-bottom: 8px;
}

.vantaggio p {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --- SEZIONE DARK (CTA) ----------------------------------- */
.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 80px 0;
}

.section-dark h2 { color: var(--white); }
.section-dark p  { color: rgba(255,255,255,.75); }

/* --- FOOTER ----------------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-logo span { color: var(--teal); }

.footer-claim {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

.footer-col h5 {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer-col ul a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: background .2s, color .2s;
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
}

/* --- PINOUT MAPPA ----------------------------------------- */
.pin {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: 2px solid rgba(255,255,255,.5);
}

.pin:hover { transform: rotate(-45deg) scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,.3); }

.pin > span {
  transform: rotate(45deg);
  font-size: .9rem;
}

.pin-ncc       { background: var(--teal); }
.pin-charter   { background: #1D4ED8; }
.pin-hotel     { background: #7C3AED; }
.pin-ristorante{ background: #EA580C; }
.pin-aeroporto { background: var(--navy); }
.pin-stazione  { background: #0EA5E9; }
.pin-porto     { background: #0369A1; }
.pin-marina    { background: #0891B2; }
.pin-spiaggia  { background: #EAB308; }
.pin-pickup    { background: var(--teal); border: 3px solid white; }
.pin-arrivo    { background: var(--white); border: 3px solid var(--teal); }
.pin-driver    { background: var(--success); }
.pin-skipper   { background: #059669; }
.pin-sponsor   { background: var(--gold); }
.pin-premium   { background: var(--navy); border: 2px solid var(--gold); }
.pin-verif     { background: var(--success); }
.pin-daver     { background: var(--text-light); opacity: .75; }

/* --- AREA ACCOUNT ----------------------------------------- */
.account-sidebar {
  width: 260px;
  flex-shrink: 0;
}

.account-nav {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-mid);
  font-size: .9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}

.account-nav-item:hover {
  background: var(--bg);
  color: var(--teal-dark);
}

.account-nav-item.attivo {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-left-color: var(--teal);
}

/* --- MESSAGGI SISTEMA -------------------------------------- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: #DCFCE7; border-color: #86EFAC; color: #15803D; }
.alert-error   { background: #FEE2E2; border-color: #FCA5A5; color: #DC2626; }
.alert-warning { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.alert-info    { background: var(--teal-light); border-color: #5EEAD4; color: var(--teal-dark); }

/* --- UTILITÁ VARIE ---------------------------------------- */
.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0 !important; }
.mb-4    { margin-bottom: 16px; }
.mb-6    { margin-bottom: 24px; }
.mb-8    { margin-bottom: 32px; }
.hidden  { display: none !important; }
.d-block { display: block; }
.w-full  { width: 100%; }
.rounded-full { border-radius: 100px; }

.separatore {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* Pagina interna: hero piccolo */
.hero-pagina {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 120px 0 64px;
  color: var(--white);
}

.hero-pagina h1 { color: var(--white); }
.hero-pagina p  { color: rgba(255,255,255,.75); margin-top: 12px; font-size: 1.0625rem; }

/* --- LOADING SPINNER -------------------------------------- */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(20,184,166,.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .vantaggi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .widget-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-lista { display: none; }
  .btn-menu-mobile { display: flex; }

  /* Menu mobile overlay */
  .nav-mobile {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    flex-direction: column;
    gap: 4px;
  }

  .nav-mobile.aperto { display: flex; }

  .nav-mobile a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    display: block;
  }

  .nav-mobile a:hover { background: var(--bg); color: var(--teal); }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .vantaggi-grid { grid-template-columns: 1fr 1fr; }
  .widget-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .hero-azioni { flex-direction: column; }
  .hero-azioni .btn { width: 100%; justify-content: center; }

  .stepper { gap: 0; }
  .step-linea { width: 30px; }
  .step-etichetta { display: none; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .vantaggi-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 100px 0 60px; }
}

/* --- PWA / APP-LIKE su mobile ----------------------------- */
@media (max-width: 640px) {
  body { padding-bottom: 72px; } /* spazio per nav bottom */

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 998;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
}

.bottom-nav {
  display: none;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-light);
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s;
}

.bottom-nav-item.attivo { color: var(--teal); }

.bottom-nav-item svg, .bottom-nav-item .icon {
  font-size: 1.25rem;
}

/* --- PRINT ------------------------------------------------ */
@media print {
  .header, .footer, .bottom-nav { display: none; }
  .hero { min-height: auto; padding: 20px 0; }
  .hero-bg, .hero-overlay { display: none; }
  .hero-content { color: var(--navy) !important; }
  .btn { display: none; }
}
