/* ═══════════════════════════════════════════════
   ETNA ZERO TREMILA — global.css
   Foglio di stile condiviso da tutte le pagine
   ═══════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Palette */
  --lava:   #100c0b;
  --crater: #1e1311;
  --deep:   #2a1a15;
  --ash:    #5a4840;
  --pumice: #b8a89e;
  --snow:   #f2ece8;
  --ember:  #d94f2b;
  --glow:   #f07d30;
  --gold:   #e8b84b;
  --sky:    #6fa8bf;
  --white:  #ffffff;

  /* Typography scale */
  --fs-hero: clamp(72px, 13vw, 160px);
  --fs-h2:   clamp(38px, 6vw, 72px);
  --fs-h3:   clamp(22px, 3vw, 32px);

  /* Misc */
  --radius:     4px;
  --transition: 0.18s ease;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--lava);
  color: var(--snow);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── LAYOUT HELPERS ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── TYPOGRAPHY HELPERS ── */
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.tag {
  display: inline-block;
  border: 1px solid var(--ash);
  border-radius: 40px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  color: var(--pumice);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--ember);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: #c44426; }

.btn-ghost {
  color: var(--pumice);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { color: var(--snow); }
.btn-ghost::after { content: '↓'; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: linear-gradient(to bottom, rgba(16,12,11,0.95) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--ember); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pumice);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--ember);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: #c44426; }

/* Pulsante hamburger: compare solo su mobile. */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), background var(--transition);
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ''; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after  { top: 7px; }
nav.is-open .nav-toggle-bar { background: transparent; }
nav.is-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
nav.is-open .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 40px;
  text-decoration: none;
  color: var(--pumice);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.15s, background 0.15s;
}
.lang-link:hover { color: var(--white); }
.lang-link.active {
  background: var(--ember);
  color: var(--white);
}
.lang-flag {
  display: flex;
  line-height: 0;
}
.lang-flag svg {
  display: block;
  width: 18px;
  height: 13px;
  border-radius: 2px;
}

/* ── FOOTER ── */
footer {
  background: var(--crater);
  border-top: 1px solid var(--deep);
  padding: 60px 0 36px;
}

.footer-logo {
  text-align: center;
  margin-bottom: 40px;
}
.footer-logo img {
  height: 80px;
  width: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--deep);
}

.footer-brand p {
  font-size: 13px;
  color: var(--pumice);
  margin-top: 12px;
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px;
  color: var(--pumice);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--snow); }

.footer-powered {
  text-align: center;
  margin-bottom: 40px;
  font-size: 16px;
  color: var(--pumice);
}
.footer-powered a {
  color: var(--snow);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-powered a:hover { color: var(--ember); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: var(--ash);
}

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

.section-header { margin-bottom: 56px; }
.section-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 12px;
}
.section-header p {
  margin-top: 20px;
  color: var(--pumice);
  max-width: 520px;
  font-size: 15px;
}

/* ── MARQUEE STRIP ── */
.strip {
  background: var(--ember);
  padding: 14px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.strip-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.strip-dot { color: rgba(255,255,255,0.4); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  /* Tendina a tutta larghezza sotto la barra. */
  nav.is-open { background: var(--lava); }
  nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 8px 20px 24px;
    background: var(--lava);
    border-bottom: 1px solid var(--deep);
  }
  nav.is-open .nav-links > li > a:not(.nav-cta):not(.lang-link) {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--deep);
  }
  nav.is-open .lang-switch { padding: 16px 0; gap: 10px; }
  nav.is-open .lang-link {
    gap: 8px;
    padding: 10px 20px;
    font-size: 15px;
  }
  nav.is-open .lang-flag svg { width: 24px; height: 17px; }
  nav.is-open .nav-cta {
    display: block;
    text-align: center;
    font-size: 16px;
    padding: 14px 22px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
