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

:root {
  --terra:   #B85C28;
  --terra-d: #7A3A18;
  --terra-l: #D4783A;
  --verde:   #1D3C1F;
  --verde-m: #2E7D32;
  --verde-l: #4CAF50;
  --verde-p: #E8F5E9;
  --oro:     #C8860A;
  --oro-l:   #F5D78E;
  --crema:   #FAF6F0;
  --notte:   #1A2A4A;
  --mid:     #546E7A;
  --light:   #ECEFF1;
  --testo:   #1A1A1A;
  --r:       10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--crema);
  color: var(--testo);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* &#9472;&#9472; TOPBAR &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 42, 74, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar .logo .mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--terra);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.topbar .logo .name {
  font-size: 14px; font-weight: 600; color: #fff; line-height: 1.2;
}
.topbar .logo .sub {
  font-size: 10px; color: rgba(255,255,255,.5); font-weight: 400;
}
.topbar nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.topbar nav a {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: all .15s;
}
.topbar nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.topbar nav .cta-nav {
  background: var(--terra);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
}
.topbar nav .cta-nav:hover { background: var(--terra-l); }

/* &#9472;&#9472; FOOTER &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; */
footer {
  background: var(--notte);
  padding: 48px 64px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .fn {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.footer-badge {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer-badge span {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
  padding: 4px 10px;
  border-radius: 4px;
}

/* &#9472;&#9472; RESPONSIVE &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; */
@media (max-width: 900px) {
  .topbar nav a:not(.cta-nav) { display: none; }
  .hero { padding: 100px 28px 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { display: none; }
  .portals, .come, .perche, .faq, .cta-final, .strip { padding-left: 28px; padding-right: 28px; }
  .portals-grid { grid-template-columns: 1fr; }
  .come-grid { grid-template-columns: 1fr; }
  .perche-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 40px 28px 28px; }
}
@media (max-width: 520px) {
  .topbar { padding: 0 18px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-ctas { flex-direction: column; }
  .btn-hero-p, .btn-hero-s { width: 100%; justify-content: center; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .cta-final-btns { flex-direction: column; }
  .btn-cf-p, .btn-cf-s { width: 100%; justify-content: center; }
}

/* &#9472;&#9472; ANIMAZIONI SCROLL &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }


/* ── SEZIONI PARALLAX ─────────────────────────────────────────────────── */
.px {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.px-bg {
  position: absolute;
  top: -100px; left: 0; right: 0; bottom: -100px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: opacity .4s;
}
/* Overlay leggero: lascia respirare la foto */
.px-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .18);
}
/* Contenuto centrato — ampio in orizzontale */
.px-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 5vw;
  max-width: 1100px !;
  margin: 0 auto;
  color: #fff;
}
.px-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}
.px-quote {
  font-size: clamp(20px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  max-width: 1100px;
  font-style: italic;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.px-sub {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 14px;
  font-weight: 400;
}
/* Raccordi morbidi alto/basso */
.px::before, .px::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  z-index: 3;
  pointer-events: none;
}
.px::before { top: 0; }
.px::after  { bottom: 0; }

/* iOS Safari: background-attachment:fixed non funziona su touch */
@media (hover: none) and (pointer: coarse) {
  .px-bg { background-attachment: scroll; top: 0; bottom: 0; }
}

/* Raccordi colore per ogni parallax */
/* PX0: dopo portali (crema) → prima di strip (notte) */
.px-0::before { background: linear-gradient(to bottom, var(--crema), transparent); }
.px-0::after  { background: linear-gradient(to top, var(--notte), transparent); }

/* PX1: dopo strip (notte) → prima di come funziona (crema) */
.px-1::before { background: linear-gradient(to bottom, var(--notte), transparent); }
.px-1::after  { background: linear-gradient(to top, var(--crema), transparent); }

/* PX2: dopo come funziona (crema) → prima di perché aderire (#fff) */
.px-2::before { background: linear-gradient(to bottom, var(--crema), transparent); }
.px-2::after  { background: linear-gradient(to top, rgba(255,255,255,.7), transparent); }

/* PX3: dopo perché aderire (#fff) → prima di FAQ (terra) */
.px-3::before { background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent); }
.px-3::after  { background: linear-gradient(to top, var(--terra), transparent); }

@media (max-width: 600px) { .px { height: 280px; } }

/* ── HERO BACKGROUND FOTO ─────────────────────────────────────────────── */
.hero-bg {
  background-image:
    linear-gradient(to bottom, rgba(29,60,31,.72) 0%, rgba(29,60,31,.55) 60%, rgba(29,60,31,.80) 100%),
    url('/immagini/00.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}
@media (hover: none) and (pointer: coarse) {
  .hero-bg { background-attachment: scroll; }
}