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

:root {
  --white:   #ffffff;
  --fog:     #f0f8f3;
  --soft:    #daeee2;
  --mid:     #b8d8c4;
  --muted:   #6a9a74;
  --text:    #111d14;
  --green:   #2a8a4e;
  --deep:    #1a6a3a;
  --dark:    #0a1a12;
  --dark2:   #0f2418;
  --accent:  #5ddb8c;

  --font-display: 'Raleway', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'DM Sans', sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 0 !important;
  margin: 0 !important;
}

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

/* ─────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 14px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: -0.2px;
  padding: 14px 28px; border-radius: 100px;
  transition: all 0.2s; cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--mid); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

/* ─────────────────────────────────────────────
   LOGO
───────────────────────────────────────────── */
.logo-lockup { display: flex; align-items: center; gap: 11px; }
.logo-lockup .wm {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.8px;
  line-height: 1;
  color: var(--text);
}
.logo-lockup .wm em { font-style: italic; font-weight: 700; color: var(--green); }
.logo-lockup-white .wm { color: #fff; }
.logo-lockup-white .wm em { color: var(--accent); }

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--text); opacity: 0.7;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  background: var(--fog);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--mid);
  border-radius: 100px; padding: 6px 14px 6px 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green); margin-bottom: 28px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 5.5vw, 72px);
  letter-spacing: -2.5px;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 28px;
}
.hero h1 em { color: var(--green); font-style: normal; }

.hero-sub {
  font-size: 18px; font-weight: 300; line-height: 1.65;
  color: var(--muted); max-width: 480px; margin-bottom: 40px;
}

.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  display: flex; align-items: center; gap: 20px;
  margin-top: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.trust-item svg { flex-shrink: 0; }

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-visual svg { width: 100%; max-width: 460px; height: auto; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ─────────────────────────────────────────────
   TRUST STRIP
───────────────────────────────────────────── */
.trust-strip {
  background: var(--dark);
  padding: 20px 0;
}
.trust-strip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.strip-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.strip-item strong { color: rgba(255,255,255,0.85); font-weight: 500; }
.strip-dot { width: 1px; height: 16px; background: rgba(255,255,255,0.15); }

/* ─────────────────────────────────────────────
   SECTION SHARED
───────────────────────────────────────────── */
section { padding: 100px 0; }

.section-header { margin-bottom: 64px; }
.section-header h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 4vw, 52px); letter-spacing: -1.5px;
  line-height: 1.1; color: var(--text); margin-bottom: 16px;
}
.section-header p {
  font-size: 17px; font-weight: 300; color: var(--muted);
  max-width: 560px; line-height: 1.7;
}

/* ─────────────────────────────────────────────
   SERVIZI
───────────────────────────────────────────── */
.servizi { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--soft);
  border: 1px solid var(--soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 40px 36px;
  transition: background 0.2s;
  position: relative;
}
.service-card:hover { background: var(--fog); }

.service-icon {
  width: 48px; height: 48px;
  background: var(--fog);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: background 0.2s;
}
.service-card:hover .service-icon { background: var(--soft); }

.service-card h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; letter-spacing: -0.3px;
  margin-bottom: 10px; color: var(--text);
}
.service-card p {
  font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.65;
}
.service-tag {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green); padding: 3px 8px;
  border: 1px solid var(--mid); border-radius: 100px;
}

.service-card-featured {
  grid-column: 1 / -1;
  background: var(--dark) !important;
  padding: 0 !important;
}
.service-card-featured:hover { background: var(--dark) !important; }

.service-card-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.service-card-featured-left {
  padding: 44px 48px;
  border-right: 1px solid #1a3a24;
}
.service-card-featured-right {
  padding: 44px 48px;
  display: flex; flex-direction: column; gap: 24px;
}

.gl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #5ddb8c;
}

.gl-feature {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
}
.gl-feature-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: rgba(93,219,140,0.08);
  border: 1px solid rgba(93,219,140,0.2);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.gl-feature strong {
  display: block; font-family: var(--font-display);
  font-weight: 700; font-size: 14px; color: #e8f5ee; margin-bottom: 4px;
}
.gl-feature p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.38); line-height: 1.6; }

@media (max-width: 900px) {
  .service-card-featured-inner { grid-template-columns: 1fr; }
  .service-card-featured-left { border-right: none; border-bottom: 1px solid #1a3a24; padding: 32px 28px; }
  .service-card-featured-right { padding: 32px 28px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   PERCHÉ PURESTACK
───────────────────────────────────────────── */
.perche { background: var(--fog); }

.perche-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.perche-left h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 4vw, 52px); letter-spacing: -1.5px;
  line-height: 1.1; color: var(--text); margin-bottom: 24px;
}
.perche-left h2 em { color: var(--green); font-style: normal; }

.perche-left p {
  font-size: 16px; font-weight: 300; color: var(--muted); line-height: 1.75;
  margin-bottom: 36px;
}

.perche-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.stat-box {
  background: var(--white); border: 1px solid var(--soft);
  border-radius: var(--radius); padding: 24px;
}
.stat-box .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 36px; letter-spacing: -1px; color: var(--green); line-height: 1;
}
.stat-box .label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}

.perche-right { display: flex; flex-direction: column; gap: 4px; }

.diff-item {
  background: var(--white); border: 1px solid var(--soft);
  border-radius: var(--radius); padding: 28px 28px 28px 24px;
  display: grid; grid-template-columns: 32px 1fr; gap: 18px;
  align-items: start;
  transition: border-color 0.2s, transform 0.2s;
}
.diff-item:hover { border-color: var(--mid); transform: translateX(4px); }

.diff-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--green); padding-top: 2px;
}
.diff-item h4 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 16px; letter-spacing: -0.2px; margin-bottom: 6px;
}
.diff-item p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .perche-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ─────────────────────────────────────────────
   INFRASTRUTTURA (dark)
───────────────────────────────────────────── */
.infra {
  background: var(--dark);
  padding: 100px 0;
}
.infra .eyebrow { color: var(--accent); }
.infra h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 4vw, 52px); letter-spacing: -1.5px;
  line-height: 1.1; color: #fff; margin-bottom: 16px;
}
.infra .section-header p { color: rgba(255,255,255,0.45); }

.infra-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: #1a3a24; border: 1px solid #1a3a24;
  border-radius: var(--radius-lg); overflow: hidden;
}
.infra-card {
  background: var(--dark2);
  padding: 36px 28px;
}
.infra-card-icon {
  width: 40px; height: 40px;
  border: 1px solid #1a4a2a;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.infra-card h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; color: #e8f5ee; margin-bottom: 8px;
}
.infra-card p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.38); line-height: 1.6; }

.infra-bar {
  margin-top: 48px;
  background: var(--dark2);
  border: 1px solid #1a3a24;
  border-radius: var(--radius);
  padding: 28px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.infra-bar-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.infra-bar-item .val {
  font-family: var(--font-display); font-weight: 900;
  font-size: 28px; letter-spacing: -0.5px; color: var(--accent); line-height: 1;
}
.infra-bar-item .lbl {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.infra-bar-sep { width: 1px; height: 36px; background: #1a3a24; }

@media (max-width: 900px) {
  .infra-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .infra-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   PREZZI
───────────────────────────────────────────── */
.prezzi { background: var(--white); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.price-card {
  border: 1px solid var(--soft); border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  background: var(--white);
}
.price-card:hover { border-color: var(--mid); transform: translateY(-4px); }

.price-card.featured {
  background: var(--dark);
  border-color: var(--dark);
}

.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}

.price-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.price-card.featured .price-name { color: var(--accent); }

.price-amount {
  font-family: var(--font-display); font-weight: 900;
  font-size: 48px; letter-spacing: -2px; line-height: 1;
  color: var(--text); margin-bottom: 4px;
}
.price-card.featured .price-amount { color: #e8f5ee; }
.price-amount span { font-size: 18px; letter-spacing: 0; font-weight: 500; }

.price-period {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); margin-bottom: 28px;
}
.price-card.featured .price-period { color: rgba(255,255,255,0.4); }

.price-desc {
  font-size: 14px; font-weight: 300; color: var(--muted);
  margin-bottom: 28px; line-height: 1.6;
}
.price-card.featured .price-desc { color: rgba(255,255,255,0.45); }

.price-divider {
  height: 1px; background: var(--soft); margin-bottom: 24px;
}
.price-card.featured .price-divider { background: #1a3a24; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-features li {
  display: flex; align-items: start; gap: 10px;
  font-size: 14px; font-weight: 300; color: var(--text); line-height: 1.5;
}
.price-card.featured .price-features li { color: rgba(255,255,255,0.7); }
.price-check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.price-card.featured .price-check { color: var(--accent); }

.price-cta { margin-top: 36px; }
.price-cta .btn { width: 100%; justify-content: center; }
.price-card.featured .btn-outline {
  border-color: rgba(255,255,255,0.2); color: #fff;
}
.price-card.featured .btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

/* ─────────────────────────────────────────────
   EU COMMITMENT
───────────────────────────────────────────── */
.eu-section {
  background: var(--fog);
  padding: 80px 0;
  border-top: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
}
.eu-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.eu-left { display: flex; flex-direction: column; gap: 20px; }
.eu-flag {
  width: 56px; height: 56px;
  background: #003399;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.eu-left h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -1.5px;
  line-height: 1.1; color: var(--text);
}
.eu-left h2 em { color: var(--green); font-style: normal; }
.eu-left p { font-size: 16px; font-weight: 300; color: var(--muted); line-height: 1.75; }

.eu-commitments { display: flex; flex-direction: column; gap: 16px; }
.eu-item {
  background: var(--white); border: 1px solid var(--soft);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
}
.eu-item-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--fog); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.eu-item h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 3px;
}
.eu-item p { font-size: 13px; font-weight: 300; color: var(--muted); }

@media (max-width: 900px) {
  .eu-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ─────────────────────────────────────────────
   CTA FINALE
───────────────────────────────────────────── */
.cta-section {
  background: var(--dark);
  padding: 120px 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(42,138,78,0.15) 0%, transparent 70%);
}
.cta-section h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(36px, 5vw, 68px); letter-spacing: -2px;
  line-height: 1.05; color: #fff; margin-bottom: 20px;
  position: relative;
}
.cta-section h2 em { color: var(--accent); font-style: normal; }
.cta-section p {
  font-size: 18px; font-weight: 300; color: rgba(255,255,255,0.45);
  max-width: 520px; margin: 0 auto 44px; line-height: 1.65; position: relative;
}
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid #1a3a24;
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .tagline {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-top: 8px; margin-bottom: 20px;
}
.footer-brand p {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 260px;
}
.footer-col h5 {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1a3a24; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.2);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ─────────────────────────────────────────────
   LANGUAGE SWITCHER
───────────────────────────────────────────── */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  margin-right: 12px;
}
.lang-btn {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 6px;
  cursor: pointer; background: transparent;
  color: var(--muted); transition: all 0.15s;
  text-decoration: none; display: inline-block;
  border: none;
}
.lang-btn:hover { color: var(--green); }
.lang-btn.active {
  background: var(--soft); color: var(--green); font-weight: 500;
}
nav.scrolled .lang-btn { color: var(--muted); }
nav.scrolled .lang-btn.active { background: var(--soft); color: var(--green); }
.lang-sep { color: var(--mid); font-size: 10px; }
