/* ===========================
   MENU DIGITALE CALABRIA
   Stile principale
   =========================== */

:root {
  --verde:       #2d6a4f;
  --verde-light: #40916c;
  --verde-pale:  #d8f3dc;
  --arancio:     #e76f51;
  --arancio-dark:#c1440e;
  --oro:         #f4a261;
  --testo:       #1a1a2e;
  --grigio:      #6c757d;
  --sfondo:      #f8f9fa;
  --bianco:      #ffffff;
  --ombra:       0 4px 24px rgba(0,0,0,.10);
  --ombra-hover: 0 8px 32px rgba(0,0,0,.18);
  --radius:      12px;
  --radius-lg:   20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--testo);
  background: var(--sfondo);
  line-height: 1.6;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--testo);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: .2s;
  font-size: .95rem;
}
.nav-links a:hover { background: var(--verde-pale); color: var(--verde); }
.btn-nav {
  background: var(--arancio) !important;
  color: var(--bianco) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
}
.btn-nav:hover { background: var(--arancio-dark) !important; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-text { color: var(--bianco); }
.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #b7e4c7;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--oro); font-style: normal; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--arancio);
  color: var(--bianco);
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: .25s;
  box-shadow: 0 4px 16px rgba(231,111,81,.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--arancio-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231,111,81,.5);
}
.btn-secondary {
  background: rgba(255,255,255,.15);
  color: var(--bianco);
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,.35);
  transition: .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,.25); }

.hero-price-tag {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  padding: 10px 18px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.9);
  font-size: .9rem;
}
.hero-price-tag strong { color: var(--oro); font-size: 1.3rem; }

/* ---- PHONE MOCKUP ---- */
.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  width: 280px;
  background: var(--testo);
  border-radius: 36px;
  padding: 14px 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 2px rgba(255,255,255,.1);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 8px;
  background: #333;
  border-radius: 4px;
}
.phone-screen {
  background: var(--bianco);
  border-radius: 26px;
  overflow: hidden;
  min-height: 480px;
}
.phone-header {
  background: var(--verde);
  padding: 24px 16px 16px;
  text-align: center;
  color: var(--bianco);
}
.phone-header h3 { font-size: 1rem; font-weight: 700; }
.phone-header p { font-size: .7rem; opacity: .8; }
.phone-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.phone-item-img {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-pale);
}
.phone-item-info { flex: 1; }
.phone-item-info b { display: block; font-size: .82rem; color: var(--testo); }
.phone-item-info span { font-size: .72rem; color: var(--grigio); }
.phone-item-price { font-weight: 700; color: var(--verde); font-size: .9rem; }

/* ---- SEZIONI GENERALI ---- */
section { padding: 80px 24px; }
.container { max-width: 1100px; margin: auto; }
.section-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--testo);
}
.section-sub {
  text-align: center;
  color: var(--grigio);
  max-width: 560px;
  margin: 0 auto 56px;
  font-size: 1rem;
}

/* ---- COME FUNZIONA ---- */
#come-funziona { background: var(--bianco); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  background: var(--sfondo);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 52px; height: 52px;
  background: var(--verde);
  color: var(--bianco);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-icon { font-size: 2.4rem; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--grigio); font-size: .92rem; line-height: 1.6; }
.step-arrow {
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--verde-pale);
  z-index: 1;
}

/* ---- VANTAGGI ---- */
#vantaggi { background: var(--sfondo); }
.vantaggi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.vantaggio {
  background: var(--bianco);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--ombra);
  transition: .25s;
}
.vantaggio:hover { transform: translateY(-3px); box-shadow: var(--ombra-hover); }
.v-icon {
  font-size: 2rem;
  flex-shrink: 0;
  background: var(--verde-pale);
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.v-text h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.v-text p { color: var(--grigio); font-size: .9rem; line-height: 1.5; }

/* ---- PRICING ---- */
#prezzi { background: var(--bianco); }
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: auto;
}
.price-card {
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  border: 2px solid transparent;
  background: var(--sfondo);
  transition: .25s;
}
.price-card.featured {
  background: linear-gradient(135deg, var(--verde), var(--verde-light));
  color: var(--bianco);
  border-color: var(--verde);
  box-shadow: 0 16px 48px rgba(45,106,79,.3);
  transform: scale(1.03);
}
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--arancio);
  color: var(--bianco);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.price-label { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 8px; }
.price-amount { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.price-period { font-size: .9rem; opacity: .7; margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 32px; }
.price-features li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.price-card.featured .price-features li { border-color: rgba(255,255,255,.15); }
.price-features li:last-child { border: none; }
.check { color: var(--verde-light); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.price-card.featured .check { color: #b7e4c7; }
.price-note {
  font-size: .8rem;
  opacity: .75;
  margin-top: 16px;
  line-height: 1.5;
}
.btn-buy {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: .25s;
}
.btn-buy-green {
  background: var(--bianco);
  color: var(--verde);
}
.btn-buy-green:hover { background: var(--verde-pale); }
.btn-buy-outline {
  background: transparent;
  color: var(--verde);
  border: 2px solid var(--verde);
}
.btn-buy-outline:hover { background: var(--verde); color: var(--bianco); }

/* ---- PASSIONE CALABRIA ---- */
#passione {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: var(--bianco);
}
.passione-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.passione-text h2 { font-size: 2rem; font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.passione-text h2 em { color: var(--oro); font-style: normal; }
.passione-text p { color: rgba(255,255,255,.85); margin-bottom: 16px; line-height: 1.7; font-size: .98rem; }
.roadmap { display: flex; flex-direction: column; gap: 0; }
.roadmap-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.roadmap-item:last-child { border: none; }
.roadmap-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}
.dot-done { background: var(--verde-light); color: var(--bianco); }
.dot-now { background: var(--arancio); color: var(--bianco); box-shadow: 0 0 0 4px rgba(231,111,81,.3); }
.dot-future { background: rgba(255,255,255,.15); color: rgba(255,255,255,.6); }
.roadmap-content h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.roadmap-content p { font-size: .82rem; color: rgba(255,255,255,.7); }

/* ---- FAQ ---- */
#faq { background: var(--sfondo); }
.faq-list { max-width: 720px; margin: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bianco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombra);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--testo);
  gap: 16px;
}
.faq-q:hover { color: var(--verde); }
.faq-icon { font-size: 1.2rem; flex-shrink: 0; transition: .25s; color: var(--verde); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 24px;
  color: var(--grigio);
  font-size: .92rem;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* ---- CTA FINALE ---- */
#cta-final {
  background: var(--arancio);
  text-align: center;
  color: var(--bianco);
  padding: 80px 24px;
}
#cta-final h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 14px; }
#cta-final p { font-size: 1.1rem; opacity: .9; max-width: 520px; margin: 0 auto 36px; }
.btn-cta-white {
  background: var(--bianco);
  color: var(--arancio);
  padding: 16px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  transition: .25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ---- FOOTER ---- */
footer {
  background: var(--testo);
  color: rgba(255,255,255,.6);
  padding: 40px 24px;
  text-align: center;
}
footer .logo { justify-content: center; margin-bottom: 12px; }
footer p { font-size: .85rem; line-height: 1.8; }
footer a { color: var(--verde-light); text-decoration: none; }
footer a:hover { color: var(--bianco); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .vantaggi-grid { grid-template-columns: 1fr; }
  .pricing-wrap { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .passione-inner { grid-template-columns: 1fr; gap: 40px; }
  .nav-links a:not(.btn-nav) { display: none; }
}
