:root {
  --black: #060605;
  --black-2: #0d0c09;
  --panel: #12100b;
  --gold: #f5c400;
  --gold-soft: #ffd94d;
  --gold-dim: rgba(245, 196, 0, 0.14);
  --text: #f3efe2;
  --text-dim: #b8b19c;
  --line: rgba(245, 196, 0, 0.35);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}
.container.narrow { width: min(760px, 92%); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 6, 5, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}
.nav-inner {
  width: min(1200px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-name em { color: var(--gold); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.lang-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { background: var(--gold); color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.25rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(245, 196, 0, 0.22), transparent 62%),
    radial-gradient(ellipse 60% 40% at 50% 108%, rgba(245, 196, 0, 0.08), transparent 70%),
    var(--black);
}
.spotlight {
  position: absolute;
  top: -12%;
  width: 220px;
  height: 85%;
  background: linear-gradient(to bottom, rgba(245, 196, 0, 0.16), transparent 75%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(6px);
  pointer-events: none;
}
.spotlight-1 { left: 12%; transform: rotate(-16deg); opacity: 0.7; }
.spotlight-2 { left: 50%; transform: translateX(-50%); opacity: 1; }
.spotlight-3 { right: 12%; transform: rotate(16deg); opacity: 0.7; }

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  max-width: 820px;
}
.hero-logo {
  width: clamp(130px, 18vw, 190px);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold-dim), 0 0 70px rgba(245, 196, 0, 0.28);
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--gold-dim), 0 0 50px rgba(245, 196, 0, 0.22); }
  50% { box-shadow: 0 0 0 3px var(--gold-dim), 0 0 90px rgba(245, 196, 0, 0.38); }
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.hero-payoff {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6.5vw, 4.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
.hero-sub {
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.8rem;
}
.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.75;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 30px rgba(245, 196, 0, 0.35);
}
.btn-gold:hover { box-shadow: 0 6px 40px rgba(245, 196, 0, 0.55); }
.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-ghost:hover { background: var(--gold-dim); }

/* ---------- SECTIONS ---------- */
.section { padding: 6rem 0; }
.section-dark {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245, 196, 0, 0.06), transparent 70%),
    var(--black-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.12;
  text-transform: uppercase;
}
.section-desc {
  color: var(--text-dim);
  margin-top: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CHI SIAMO ---------- */
.stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* ---------- SQUADRE ---------- */
.squad-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.squad-card {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.squad-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 50px rgba(245, 196, 0, 0.12);
}
.squad-media { aspect-ratio: 3 / 2; overflow: hidden; }
.squad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.squad-media-cartoon {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 75% 65% at 50% 40%, rgba(245, 196, 0, 0.18), transparent 75%),
    var(--black-2);
}
.squad-media-cartoon img {
  object-fit: contain;
  padding: 1.4rem;
}
.squad-card:hover .squad-media img { transform: scale(1.04); }
.squad-body {
  padding: 1.6rem 1.7rem 1.9rem;
  text-align: center;
}
.squad-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.squad-tag {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0.3rem 0 0.9rem;
}
.squad-body p:last-child {
  color: var(--text-dim);
  font-size: 0.95rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ---------- SAFEGUARDING / CODICE ---------- */
.lead {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.officer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.6rem;
  margin: 2rem 0;
}
.officer-info { display: flex; flex-direction: column; }
.officer-role {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.officer-name { font-weight: 600; }
.doc-actions { margin-top: 2rem; text-align: center; }

/* ---------- CONTATTI ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem 1.2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 14px 44px rgba(245, 196, 0, 0.12);
}
.contact-icon {
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.contact-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
  word-break: break-word;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0;
  background: var(--black);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); }
.footer-social { display: flex; gap: 1.4rem; }
.footer-social a {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-social a:hover { color: var(--gold); }
.footer-legal { text-align: right; font-size: 0.78rem; color: var(--text-dim); }
.footer-fiscal { opacity: 0.75; }
.footer-credit { opacity: 0.6; }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-legal { text-align: left; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 80vw);
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    background: rgba(8, 8, 6, 0.98);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; }
  .squad-grid { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; text-align: center; }
}
