/* =========================================================================
   Sito pubblico statico (Home, Privati, E-commerce, Azienda, Al Volo Point...)
   Si appoggia alle variabili e ai componenti di site.css.
   ========================================================================= */

/* ---------- Navigazione con menu a tendina ---------- */
.nav-upper, .btn-upper { text-transform: uppercase; letter-spacing: .04em; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-family: inherit; font-weight: 600; font-size: .95rem;
  color: var(--color-text); background: none; border: 0; cursor: pointer;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -12px; min-width: 190px;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 8px; display: none; flex-direction: column; z-index: 120;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 10px 14px; border-radius: 8px; border-bottom: 0; }
.nav-dropdown-menu a:hover { background: var(--color-bg-grey); }

/* ---------- Hero a tutta larghezza ---------- */
.hero-wide { background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%); color: #fff; padding: 96px 0 88px; }
.hero-wide .container { max-width: 980px; }
.hero-wide h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: .45em; }
.hero-wide .lead { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 62ch; }
.hero-wide p { color: rgba(255,255,255,.9); max-width: 66ch; }
.hero-wide .hero-actions { margin-top: 32px; }
.hero-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.hero-links a { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; border-bottom: 2px solid rgba(255,255,255,.6); padding-bottom: 3px; }
.hero-links a:hover { border-bottom-color: #fff; }

/* ---------- Sezioni di testo ---------- */
.lead-block { max-width: 760px; margin: 0 auto; text-align: center; }
.lead-block h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead-block p { font-size: 1.05rem; }
.eyebrow-label {
  display: inline-block; color: var(--color-primary); font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
}
.note-strip {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-text); border-radius: var(--radius);
  padding: 16px 22px; font-weight: 600; text-align: center; max-width: 760px; margin: 0 auto;
}

/* ---------- Card di scelta (home) ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.choice-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card.choice-card { display: flex; flex-direction: column; }
.choice-card .kicker { color: var(--color-primary); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; margin-bottom: 16px; }
.choice-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.choice-card p { flex: 1; margin-bottom: 20px; }
.choice-card .badge-free { align-self: flex-start; background: var(--color-success); color: #fff; font-weight: 700; font-size: .75rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.link-arrow { color: var(--color-primary); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; }
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Passi numerati (variante orizzontale) ---------- */
.steps-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card { position: relative; }
.step-card .step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }
.step-card p { font-size: .92rem; margin: 0; }

/* ---------- Riga testo + pannello illustrato ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.media-panel {
  min-height: 280px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 22%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-secondary) 30%, var(--color-surface)) 100%);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary);
  border: 1px solid var(--color-divider);
}
.media-panel svg { width: 96px; height: 96px; }
.media-panel img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }

/* ---------- Banda CTA colorata ---------- */
.band {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff; padding: 72px 0; text-align: center;
}
.band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .4em; }
.band p { color: rgba(255,255,255,.92); max-width: 62ch; margin-left: auto; margin-right: auto; }
.band .hero-actions { justify-content: center; }

/* ---------- Moduli di richiesta ---------- */
.form-page { max-width: 720px; margin: 0 auto; }
.form-card { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-card textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .78rem; color: var(--color-text-muted); margin-top: 4px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--color-text-muted); }
.field-check input { width: auto; margin-top: 3px; }
.form-alert { background: color-mix(in srgb, #B3261E 10%, transparent); color: #B3261E; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-size: .9rem; }
.hp-field { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.thanks { text-align: center; max-width: 560px; margin: 0 auto; }
.thanks .card-icon { margin: 0 auto 20px; width: 64px; height: 64px; background: var(--color-success); color: #fff; border-radius: 50%; }

/* ---------- Tracking ---------- */
.tracking-box { max-width: 560px; margin: 0 auto; }
.tracking-box form { display: flex; gap: 10px; }
.tracking-box input { flex: 1; }

/* ---------- Footer esteso ---------- */
.footer-address { color: var(--color-text-muted); font-size: .92rem; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: var(--color-primary); }

@media (max-width: 960px) {
  .choice-grid, .steps-3, .choice-grid-2 { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 760px) {
  .steps-4 { grid-template-columns: 1fr; }
  .tracking-box form { flex-direction: column; }
  .hero-wide { padding: 64px 0; }
}

/* ---------- Titoli di macrosezione piu' grandi ---------- */
.lead-block h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.12; }

/* ---------- Banda viola "Al Volo Point" con mappa (come da mockup) ---------- */
.point-band { position: relative; background: var(--color-primary); color: #fff; padding: 64px 0 72px; overflow: hidden; }
.point-band::before {
  content: ""; position: absolute; top: -8px; left: max(24px, calc(50% - 600px)); width: 88px; height: 88px;
  background: url("/img/logo-marchio.png") no-repeat center / contain; filter: brightness(0) invert(1);
}
.point-band .container { position: relative; padding-top: 44px; }
.point-band h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.1; margin-bottom: 32px; color: #fff; }
.point-band p { color: #fff; font-size: 1.15rem; line-height: 1.6; }
.point-band-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: 40px; align-items: stretch; }
.point-band-text { display: flex; flex-direction: column; }
.point-band-link { margin-top: auto; padding-top: 28px; font-weight: 700; font-size: 1.25rem; color: #fff; }
.point-band-link::before { content: "\2192\00a0"; }
.point-band-link:hover { text-decoration: underline; }

/* ---------- Mappa Point ---------- */
.mappa-point { width: 100%; height: 440px; border-radius: var(--radius); background: #d9d2dc; z-index: 1; }
.mappa-point.alta { height: 560px; }
.point-vuoto { margin-top: 12px; font-size: .95rem; }
.point-layout { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.point-cerca { width: 100%; margin-bottom: 12px; }
.point-elenco { list-style: none; margin: 0; padding: 0; max-height: 508px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.point-item {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-divider); border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px; transition: border-color .15s;
}
.point-item:hover { border-color: var(--color-primary); }
.point-item span { font-size: .85rem; color: var(--color-text-muted); }
.point-nessuno { color: var(--color-text-muted); padding: 8px 2px; }

@media (max-width: 960px) {
  .point-band-grid, .point-layout { grid-template-columns: 1fr; }
  .point-elenco { max-height: 260px; }
}

/* ---------- Footer viola pieno (come da mockup) ---------- */
.site-footer { background: var(--color-primary); border-top: 0; color: #fff; }
html[data-theme="dark"] .site-footer { background: #7A4381; }
.site-footer .footer-brand img { height: 52px; filter: brightness(0) invert(1); }
.site-footer .footer-col h4 { color: #fff; }
.site-footer .footer-col a, .site-footer .footer-address { color: #fff; }
.site-footer .footer-col a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-bottom { border-top-color: rgba(255,255,255,.3); color: #fff; }
.site-footer .footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- Blocco CTA chiaro prima del footer ---------- */
.cta-light { padding: 88px 0 96px; text-align: center; }
.cta-light h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.12; margin-bottom: 20px; }
.cta-light h2 span { color: var(--color-primary); }
.cta-light p { font-size: 1.1rem; max-width: 60ch; margin: 0 auto 28px; }
.cta-light .hero-actions { justify-content: center; margin-top: 0; }
