/* =============================================
   FERMENTO — Landing Page v3
   Mobile-first, vanilla CSS
   ============================================= */

/* ===== VARIABILI ===== */
:root {
  --bg:           #0C0C14;
  --bg-alt:       #14141F;
  --accent:       #E8A020;
  --accent-hover: #F5B23A;
  --text:         #F5F5F0;
  --text-muted:   #A0A0AA;
  --border:       #1F1F2A;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ol, ul { list-style: none; }

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.035"/></svg>');
  pointer-events: none;
  z-index: 9998;
}

/* ===== TIPOGRAFIA ===== */
h1 {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.07;
}
h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { line-height: 1.65; }

/* ===== CONTAINER & SECTIONS ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 56px 0; }

/* ===== SECTION KICKER ===== */
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  opacity: 0.9;
}
.section-kicker::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title { margin-bottom: 8px; }
.section-title:last-child { margin-bottom: 32px; }
.section-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 40px;
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }
[data-reveal][data-delay="6"] { transition-delay: 0.48s; }

/* ===== BOTTONI ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s, color 0.18s, border-color 0.18s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #08080F;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(232, 160, 32, 0.32);
}
.btn-primary:active { transform: none; box-shadow: none; }
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(245, 245, 240, 0.25);
  background: rgba(245, 245, 240, 0.04);
}
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ===== HEADER ===== */
.header-cta {
  display: none;
  padding: 8px 16px;
  font-size: 13px;
  flex-shrink: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: relative;
}
.logo {
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-muted);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.main-nav ul { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 5px;
  transition: color 0.18s, background 0.18s;
  letter-spacing: 0.01em;
}
.main-nav a:hover { color: var(--text); background: rgba(245, 245, 240, 0.06); }

/* ===== HERO ===== */
.hero {
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.07) 0%, transparent 62%);
  pointer-events: none;
  animation: heroGlow 7s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.hero-content { max-width: 600px; }
.hero-kicker    { animation: fadeUp 0.7s 0.05s ease both; }
.hero h1        { animation: fadeUp 0.7s 0.15s ease both; }
.hero-sub       { animation: fadeUp 0.7s 0.25s ease both; }
.hero-ctas      { animation: fadeUp 0.7s 0.35s ease both; }
.hero-visual    { animation: fadeUp 0.8s 0.45s ease both; }
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 { margin-bottom: 18px; }
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-screenshot-wrap {
  border-radius: 10px;
  border: 1px solid rgba(232, 160, 32, 0.3);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(232, 160, 32, 0.08),
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(232, 160, 32, 0.05);
}
.hero-screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== PILLARS ===== */
.pillars { background: var(--bg); }
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.pillar {
  background: var(--bg-alt);
  padding: 32px;
  transition: background 0.2s;
  position: relative;
}
.pillar:hover { background: rgba(232, 160, 32, 0.04); }
.pillar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}
.pillar:hover::before { transform: scaleY(1); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.65;
  display: block;
  margin-bottom: 20px;
}
.pillar h3 { font-size: 17px; color: var(--text); margin-bottom: 10px; }
.pillar p  { color: var(--text-muted); font-size: 16px; line-height: 1.65; }

/* ===== BIRA AI — layout centrato ===== */
.bira { background: var(--bg-alt); }

.bira-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}
.bira-header .section-kicker {
  justify-content: center;
}
.bira-header .section-kicker::before { display: none; }
.bira-intro {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
  margin-top: 8px;
}

/* Wrapper che centra il mockup */
.bira-mockup-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

/* ===== BIRA MOCKUP — riproduce la UI reale dell'app ===== */
.bira-mockup {
  width: 100%;
  max-width: 520px;
  background: #0C0C14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(232,160,32,0.08),
    0 32px 64px rgba(0,0,0,0.6),
    0 0 80px rgba(232,160,32,0.07);
}

/* Header barra */
.bm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.bm-hdr-left {
  display: flex;
  align-items: center;
  gap: 9px;
}
.bm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(232,160,32,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
}
.bm-hdr-info { display: flex; flex-direction: column; gap: 1px; }
.bm-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.2;
}
.bm-status {
  font-size: 10px;
  color: rgba(74,222,128,0.8);
  line-height: 1.2;
}
.bm-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(134,239,172,0.9);
  border: 1px solid rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.08);
  padding: 3px 8px;
  border-radius: 20px;
}

/* Area messaggi */
.bm-messages {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bm-msg { display: flex; flex-direction: column; }
.bm-msg-user  { align-items: flex-end; }
.bm-msg-assistant { align-items: flex-start; }

.bm-bubble-user {
  max-width: 84%;
  background: rgba(232,160,32,0.1);
  color: rgba(255,251,235,0.9);
  border-radius: 14px 14px 3px 14px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
}
.bm-assistant-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 4px;
}
.bm-bubble-assistant {
  max-width: 90%;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  border-radius: 3px 14px 14px 14px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.55;
}
.bm-bubble-assistant b {
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

/* Tool call row */
.bm-toolcall {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  border-radius: 5px;
  padding: 4px 9px;
  margin: 0 2px;
}
.bm-toolcall::before {
  content: '⚙';
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.bm-tool-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.38);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bm-tool-ok {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(74,222,128,0.65);
  flex-shrink: 0;
}

/* Input bar */
.bm-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.bm-input-field {
  flex: 1;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: var(--font-sans);
}
.bm-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #08080F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ===== BIRA BOTTOM — modalità + avvisi + disclaimer ===== */
.bira-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.mode-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  transition: background 0.2s;
}
.mode-card:hover { background: rgba(232, 160, 32, 0.03); }
.mode-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  display: block;
  margin-bottom: 6px;
}
.mode-card h3 { font-size: 16px; margin-bottom: 5px; color: var(--text); }
.mode-card p  { color: var(--text-muted); font-size: 15px; line-height: 1.55; }

.bira-avvisi-box {
  border: 1px solid rgba(232, 160, 32, 0.2);
  background: rgba(232, 160, 32, 0.04);
  border-radius: 10px;
  padding: 18px 20px;
}
.avvisi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.bira-avvisi-box p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.bira-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.45;
  letter-spacing: 0.03em;
  align-self: end;
}

/* ===== FUNZIONALITA — lista editoriale ===== */
.features { background: var(--bg); }

.features-list {
  border-top: 1px solid var(--border);
  max-width: 860px;
  margin: 0 auto;
}

.frow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 20px 0 20px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.07s cubic-bezier(0.2, 0, 0, 1);
}
.frow::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.07s cubic-bezier(0.2, 0, 0, 1);
}
.frow:hover { background: rgba(232, 160, 32, 0.04); }
.frow:hover::before { transform: scaleY(1); }

.frow-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.frow-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
}

/* ===== PER CHI — statement ===== */
.perchi { background: var(--bg-alt); }
.perchi-lead {
  font-size: 22px;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.65;
  font-weight: 400;
}
.perchi-lead strong { color: var(--accent); font-weight: 600; }
/* Badges come lista orizzontale */
.badges {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.badge {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s;
  gap: 10px;
}
.badge:last-child { border-bottom: none; }
.badge:hover { background: rgba(232, 160, 32, 0.04); color: var(--text); }
.badge::before {
  content: '✓';
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}

/* ===== IL PERCORSO — workflow ===== */
.workflow { background: var(--bg); }
.workflow-steps {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  position: relative;
}
/* Linea verticale connettore */
.workflow-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 48px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    rgba(232, 160, 32, 0.08) 100%
  );
}
.wstep {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 40px;
  position: relative;
}
.wstep:last-child { padding-bottom: 0; }
.wstep-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.wstep-body { padding-top: 8px; }
.wstep-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.wstep-body p  { font-size: 16px; color: var(--text-muted); line-height: 1.65; }

/* ===== DEMO ===== */
.demo { background: var(--bg-alt); }
.demo-frame { max-width: 800px; margin: 0 auto; }
.demo-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 1px solid rgba(232, 160, 32, 0.25);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  letter-spacing: 0.03em;
}
.demo-placeholder::before {
  content: '▶';
  font-size: 24px;
  color: var(--accent);
  opacity: 0.35;
}

/* ===== PERCHE — 2x2 grid ===== */
.perche { background: var(--bg); }
.perche-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.perche-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.perche-card:hover { border-color: rgba(232, 160, 32, 0.3); }
/* Numero fantasma decorativo */
.perche-card::after {
  content: attr(data-num);
  position: absolute;
  right: 16px;
  bottom: -8px;
  font-family: var(--font-mono);
  font-size: 80px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.perche-card strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.perche-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ===== COME INIZIARE ===== */
.iniziare { background: var(--bg-alt); }
.iniziare-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}
.iniziare-visual {
  width: 100%;
}
.iniziare-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
@media (min-width: 1024px) {
  .iniziare-photo {
    height: 100%;
  }
}
.iniziare-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.iniziare-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.istep {
  background: var(--bg);
  padding: 28px 28px 28px 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: background 0.2s;
}
.istep:hover { background: rgba(232, 160, 32, 0.03); }
.istep-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 28px;
}
.istep-body h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.istep-body p  { font-size: 16px; color: var(--text-muted); line-height: 1.6; }

/* ===== CTA FINALE ===== */
.cta-finale {
  background: var(--bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-finale::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(232, 160, 32, 0.08) 0%, transparent 68%);
  pointer-events: none;
}
.cta-finale-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-finale h2 { font-size: 30px; margin-bottom: 10px; }
.cta-sub {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.footer-brand {
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 12px;
}
footer p {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.55;
}

/* ===== LOGO CON ICONA ===== */
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 22px; height: 22px; flex-shrink: 0; border-radius: 5px; }

/* ===== HERO VIDEO BG ===== */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* ===== PILLARS HEADER CON FOTO ===== */
.pillars-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.pillars-header .section-desc { margin-bottom: 0; }
.pillars-header-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pillars-header-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.pillars-header-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(12,12,20,0.55) 100%);
  pointer-events: none;
}

/* ===== PER CHI — LAYOUT CON FOTO ===== */
.perchi-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.perchi-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.perchi-icon-wrap {
  width: 168px;
  height: 168px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(232,160,32,0.22);
  box-shadow: 0 0 60px rgba(232,160,32,0.18), 0 8px 32px rgba(0,0,0,0.5);
}
.perchi-icon-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== CTA FINALE — VIDEO BG ===== */
.cta-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.09;
  z-index: 0;
  pointer-events: none;
}

/* ===== CTA APP ICON ===== */
.cta-app-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.cta-app-icon img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(232,160,32,0.35);
  box-shadow: 0 0 40px rgba(232,160,32,0.14), 0 4px 20px rgba(0,0,0,0.4);
}

/* ===== BEER TUBE ===== */
.beer-tube-wrap {
  background: var(--bg);
  border-top: 1px solid rgba(232,160,32,0.12);
  border-bottom: 1px solid rgba(232,160,32,0.12);
  overflow: hidden;
}
.beer-tube {
  height: 54px;
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,0.055) 0%,
      rgba(255,255,255,0.01)  10%,
      transparent             28%,
      transparent             72%,
      rgba(0,0,0,0.28)        100%
    ),
    rgba(0,0,0,0.3);
  box-shadow:
    inset 0 6px 16px rgba(0,0,0,0.65),
    inset 0 -4px 8px  rgba(0,0,0,0.32);
  overflow: hidden;
  position: relative;
}
.beer-liquid {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  animation: beerFill 8s cubic-bezier(0.22, 0, 0.08, 1) 0.7s both;
  /* colore base ambrato + variazione verticale luce/ombra */
  background:
    linear-gradient(to bottom,
      rgba(255,240,160,0.52) 0%,
      rgba(255,210,65,0.18)  18%,
      transparent            34%,
      transparent            66%,
      rgba(70,28,0,0.42)     100%
    ),
    #C48018;
}
/* riflesso vetro sul bordo superiore */
.beer-liquid::before {
  content: '';
  position: absolute;
  top: 7px; left: 0; right: 0;
  height: 10px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.22) 0%, transparent 100%);
}
/* bordo anteriore schiumoso — alone sfumato e morbido */
.beer-liquid::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -12px; bottom: -12px;
  width: 80px;
  background:
    radial-gradient(
      ellipse 55% 80% at 12% 40%,
      rgba(255,240,180,0.92) 0%,
      rgba(248,200,60,0.65)  22%,
      rgba(232,162,28,0.38)  48%,
      rgba(210,140,10,0.12)  72%,
      transparent            90%
    );
  filter: blur(7px);
}
/* bolle che salgono */
.beer-bubbles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.55) 1px,   transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.35) 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(255,255,255,0.45) 1px,   transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.3)  2px,   transparent 3px),
    radial-gradient(circle, rgba(255,255,255,0.4)  1px,   transparent 1.5px);
  background-size: 29px 22px, 43px 34px, 21px 28px, 37px 16px, 17px 38px;
  animation: bubblesRise 2.6s linear 2s infinite;
}
@keyframes bubblesRise {
  from { background-position: 6px 70px, 18px 70px, 10px 70px, 26px 70px, 3px 70px; }
  to   { background-position: 6px -16px, 18px -24px, 10px -19px, 26px -9px, 3px -28px; }
}
@keyframes beerFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ===== WORKFLOW HEADER CON FOTO ===== */
.workflow-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.workflow-header .section-desc { margin-bottom: 0; }
.workflow-header-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.workflow-header-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.workflow-header-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(12,12,20,0.55) 100%);
  pointer-events: none;
}

/* ===== PERCHE INNER CON FOTO ===== */
.perche-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.perche-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.perche-visual img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.perche-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(12,12,20,0.5) 100%);
  pointer-events: none;
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 52px; }
  h2 { font-size: 34px; }
  .hero-sub { font-size: 20px; }
  section { padding: 72px 0; }

  .hero { padding: 80px 0 64px; }

  .pillars-grid { grid-template-columns: repeat(3, 1fr); }

  .bira-bottom { grid-template-columns: repeat(3, 1fr); }
  .bira-disclaimer { grid-column: 1 / -1; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .badges {
    flex-direction: row;
    max-width: none;
    border: none;
    border-radius: 0;
    gap: 10px;
  }
  .badge {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 14px;
  }

  .perche-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-finale h2 { font-size: 36px; }

  .pillars-header {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .pillars-header-visual img { height: 300px; }

  .workflow-header {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .workflow-header-visual img { height: 300px; }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  h1 { font-size: 66px; }
  h2 { font-size: 38px; }
  section { padding: 88px 0; }

  .hero {
    padding: 96px 0 80px;
    min-height: calc(100vh - 58px - 54px);
    justify-content: center;
  }
  .hero .container {
    flex: 1;
    display: flex;
    align-items: center;
  }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    width: 100%;
  }
  .hero-content { flex: 0 0 auto; max-width: 480px; }
  .hero-visual  { flex: 1; min-width: 0; }

  .frow {
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: baseline;
  }

  .cta-finale h2 { font-size: 42px; }
  .cta-finale { padding: 96px 0; }

  .iniziare-inner {
    flex-direction: row;
    align-items: stretch;
    gap: 72px;
  }
  .iniziare-visual {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
  }
  .iniziare-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .iniziare-content {
    flex: 1;
    min-width: 0;
  }

  .perchi-inner {
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
  }
  .perchi-icon-wrap { width: 192px; height: 192px; border-radius: 36px; }

  .perche-inner {
    grid-template-columns: 1fr 280px;
    gap: 64px;
    align-items: start;
  }
  .perche-visual { align-self: end; }
  .perche-visual img { height: 480px; }
}

@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}

/* ============================================
   LARGE DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
  h1 { font-size: clamp(66px, 5vw, 80px); }
  h2 { font-size: clamp(38px, 3vw, 48px); }
  .hero-sub { font-size: clamp(19px, 1.4vw, 22px); }
  .hero-content { max-width: 540px; }
  .container { max-width: 1240px; }
}

/* ============================================
   MOBILE NAV (max 767px)
   ============================================ */
@media (max-width: 767px) {
  .hamburger { display: flex; }
  .main-nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: rgba(12, 12, 20, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    display: none;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 6px 0; }
  .main-nav a {
    display: block;
    padding: 13px 24px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .main-nav ul li:last-child a { border-bottom: none; }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}
