/* ============================================================
   VISCONTEA HOLDING S.R.L. — style.css
   Palette: #0E2341 (blu notte) | #C9A35F (oro) | #FBFAF7 (sfondo) | #0A1A30 (footer)
   Fonts: Playfair Display (titoli) | Montserrat (corpo)
   ============================================================ */

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

:root {
  --blu:     #0E2341;
  --oro:     #C9A35F;
  --sfondo:  #FBFAF7;
  --footer:  #0A1A30;
  --bianco:  #FFFFFF;
  --grigio:  #F5F3EF;
  --testo:   #2C2C2C;
  --testo-light: #6B6B6B;

  --font-titolo: 'Playfair Display', Georgia, serif;
  --font-corpo:  'Montserrat', Arial, sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --pad-section: clamp(60px, 10vw, 100px);

  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(14,35,65,0.08);
  --shadow-hover: 0 12px 40px rgba(14,35,65,0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-corpo);
  font-weight: 300;
  color: var(--testo);
  background-color: var(--sfondo);
  line-height: 1.75;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── TYPOGRAPHY SCALE ───────────────────────────────────────── */
h1 {
  font-family: var(--font-titolo);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-titolo);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
}

h3 {
  font-family: var(--font-titolo);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
}

h4 {
  font-family: var(--font-corpo);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--testo-light);
  font-weight: 300;
}

/* ── LAYOUT HELPERS ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--pad-section) 0;
}

.section--grey {
  background-color: var(--grigio);
}

.section--blu {
  background-color: var(--blu);
}

.section--footer {
  background-color: var(--footer);
}

.text-center { text-align: center; }
.text-white  { color: var(--bianco) !important; }
.text-oro    { color: var(--oro) !important; }

/* ── EYEBROW ────────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 46px;
  height: 2px;
  background: var(--oro);
  flex-shrink: 0;
}

.eyebrow span {
  font-family: var(--font-corpo);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--oro);
}

.eyebrow--center {
  justify-content: center;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-corpo);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-gold {
  border: 2px solid var(--oro);
  color: var(--oro);
  background: transparent;
}

.btn-gold:hover {
  background: var(--oro);
  color: var(--blu);
}

.btn-solid {
  background: var(--oro);
  color: var(--blu);
  border: 2px solid var(--oro);
}

.btn-solid:hover {
  background: transparent;
  color: var(--oro);
}

.btn-ghost {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--bianco);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--oro);
  color: var(--oro);
}

/* ── LINK FRECCIA ───────────────────────────────────────────── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oro);
  transition: gap var(--transition);
}

.link-arrow:hover { gap: 14px; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: var(--blu);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Logo */
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--bianco);
}

.nav__logo-main {
  font-family: var(--font-titolo);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav__logo-sub {
  font-family: var(--font-corpo);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--oro);
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--font-corpo);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--oro);
}

.nav__cta {
  margin-left: 1rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bianco);
  transition: var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--blu);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav__mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav__mobile a {
  font-family: var(--font-titolo);
  font-size: 2rem;
  font-weight: 400;
  color: var(--bianco);
  transition: color var(--transition);
}

.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--oro);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,35,65,0.88) 0%, rgba(14,35,65,0.65) 100%);
  z-index: 1;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  color: var(--bianco);
  padding: 0 var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-corpo);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--oro);
}

.hero__title {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero__title .word.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}

.hero__sub.visible { opacity: 1; }

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.8s, transform 0.7s ease 0.8s;
}

.hero__cta.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-corpo);
}

.hero__scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--oro);
  border-bottom: 2px solid var(--oro);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50%       { transform: rotate(45deg) translateY(8px); opacity: 0.4; }
}

/* ── HERO BLU (pagine interne) ──────────────────────────────── */
.hero--inner {
  min-height: 60vh;
}

.hero--dark {
  min-height: 70vh;
  background: var(--blu);
}

/* ── TICKER ─────────────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  background: var(--oro);
  padding: 14px 0;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  font-family: var(--font-corpo);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--blu);
  padding: 0 2.5rem;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--bianco);
  border-top: 3px solid var(--oro);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--oro);
}

.card__num {
  font-family: var(--font-titolo);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--oro);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-titolo);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--blu);
  margin-bottom: 1rem;
}

.card__text {
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Grid card */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

/* ── SPLIT LAYOUT ───────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split__img:hover img {
  transform: scale(1.04);
}

.split__img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--oro);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.split__img:hover::after { opacity: 0.4; }

/* ── CTA SECTION ────────────────────────────────────────────── */
.cta-section {
  background: var(--blu);
  padding: 80px var(--pad-x);
  text-align: center;
}

.cta-section h2 {
  color: var(--bianco);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ── MISSION QUOTE ──────────────────────────────────────────── */
.quote-section {
  background: var(--grigio);
  padding: var(--pad-section) var(--pad-x);
  text-align: center;
}

.quote-section blockquote {
  font-family: var(--font-titolo);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  color: var(--blu);
  max-width: 800px;
  margin: 1.5rem auto 0;
  line-height: 1.65;
  position: relative;
}

.quote-section blockquote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--oro);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  line-height: 1;
  font-family: var(--font-titolo);
}

/* ── VALORI EDITORIAL ───────────────────────────────────────── */
.valore-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(14,35,65,0.08);
}

.valore-block:last-child { border-bottom: none; }

.valore-num {
  font-family: var(--font-titolo);
  font-size: 6rem;
  font-weight: 500;
  color: var(--oro);
  opacity: 0.18;
  line-height: 1;
  text-align: right;
}

.valore-content h3 {
  color: var(--blu);
  margin-bottom: 1.25rem;
}

/* ── GRAFICO SVG ────────────────────────────────────────────── */
.chart-section {
  background: var(--grigio);
  padding: var(--pad-section) var(--pad-x);
}

.chart-container {
  max-width: 800px;
  margin: 0 auto;
}

.chart-svg {
  width: 100%;
  overflow: visible;
}

.chart-bar {
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1), y 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chart-note {
  font-size: 0.75rem;
  color: var(--testo-light);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* ── STATS SECTION ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.stat-item {
  padding: 3rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  width: 36px;
  height: 36px;
  color: var(--oro);
  margin: 0 auto 1rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ── TEAM PLACEHOLDER ───────────────────────────────────────── */
.team-card {
  text-align: center;
  padding: 2rem;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grigio), #ddd);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--oro);
  overflow: hidden;
}

.team-avatar svg {
  width: 50px;
  height: 50px;
  color: #bbb;
}

.team-name {
  font-family: var(--font-titolo);
  font-size: 1.15rem;
  color: var(--blu);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1rem;
}

/* ── PARTECIPATE CARD ───────────────────────────────────────── */
.partecipata-card {
  background: var(--sfondo);
  border: 1px solid rgba(14,35,65,0.1);
  border-top: 3px solid var(--oro);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.partecipata-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.partecipata-icon {
  width: 64px;
  height: 64px;
  background: var(--grigio);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partecipata-icon svg {
  width: 28px;
  height: 28px;
  color: var(--oro);
}

.partecipata-title {
  font-family: var(--font-titolo);
  font-size: 1rem;
  color: var(--blu);
  margin-bottom: 0.5rem;
}

.partecipata-settore {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 0.75rem;
}

.partecipata-note {
  font-size: 0.82rem;
  color: var(--testo-light);
  line-height: 1.6;
}

/* ── CONTACT SECTION ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.contact-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--oro);
}

.contact-info-value {
  font-size: 1rem;
  color: var(--testo);
  font-weight: 400;
}

.contact-note {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--testo-light);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(14,35,65,0.1);
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--testo);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-corpo);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--testo);
  background: var(--bianco);
  border: 1px solid rgba(14,35,65,0.15);
  border-bottom: 2px solid rgba(14,35,65,0.15);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--oro);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-gdpr {
  font-size: 0.75rem;
  color: var(--testo-light);
  line-height: 1.6;
  margin-top: 1rem;
}

.form-success {
  display: none;
  background: rgba(201,163,95,0.12);
  border-left: 3px solid var(--oro);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--testo);
}

.form-success.visible { display: block; }

/* ── APPROCCIO 3 COL ────────────────────────────────────────── */
.approccio-col {
  text-align: center;
  padding: 2rem 1rem;
}

.approccio-col svg {
  width: 48px;
  height: 48px;
  color: var(--oro);
  margin: 0 auto 1.5rem;
}

.approccio-col h3 {
  color: var(--blu);
  margin-bottom: 1rem;
}

/* ── ATTIVITÀ NUMBERED ──────────────────────────────────────── */
.attivita-block {
  padding: var(--pad-section) 0;
}

.attivita-num {
  font-family: var(--font-titolo);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--oro);
  margin-bottom: 0.5rem;
}

.attivita-sub {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(14,35,65,0.08);
}

.attivita-sub:last-child { border-bottom: none; }

.attivita-sub-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 0.5rem;
}

.bullet-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bullet-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--testo-light);
}

.bullet-list li::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--oro);
  flex-shrink: 0;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--footer);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand .nav__logo-main {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  display: block;
  font-family: var(--font-titolo);
  color: var(--bianco);
}

.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
}

.footer__col-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--oro); }

.footer__contact-item {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ── CANVAS NODI ────────────────────────────────────────────── */
.nodes-canvas-wrap {
  position: relative;
  width: 100%;
  height: 500px;
}

.nodes-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.7s ease-out;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── SECTION TITLE ──────────────────────────────────────────── */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  color: var(--blu);
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin: 0 auto;
}

.section-header.center .eyebrow {
  justify-content: center;
}

/* ── IMPEGNO SECTION ────────────────────────────────────────── */
.impegno-section {
  background: var(--blu);
  padding: var(--pad-section) var(--pad-x);
  text-align: center;
}

.impegno-section h2 {
  color: var(--bianco);
  margin-bottom: 1.5rem;
}

.impegno-section p {
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 3rem; }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta { display: none; }

  .nav__hamburger { display: flex; }

  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse { direction: ltr; }

  .valore-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .valore-num {
    font-size: 4rem;
    text-align: left;
  }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

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

  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .attivita-block .split { flex-direction: column; }

  .hero__cta { flex-direction: column; }
  .hero__cta .btn { text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════════════════════════
   ANIMAZIONI PREMIUM — Viscontea Holding
   ═══════════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ──────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, #C9A35F, #e8c885, #C9A35F);
  background-size: 200% 100%;
  z-index: 10000;
  animation: progressShimmer 2s linear infinite;
  pointer-events: none;
}

@keyframes progressShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Custom Cursor ────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #C9A35F;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.3s ease;
  mix-blend-mode: normal;
  will-change: left, top;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(201, 163, 95, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
  will-change: left, top;
}

.cursor.cursor--hover {
  width: 14px;
  height: 14px;
  background: #e8c885;
}

.cursor-follower.cursor--hover {
  width: 54px;
  height: 54px;
  border-color: rgba(201, 163, 95, 0.85);
}

/* Nascondi su touch */
@media (hover: none) {
  .cursor, .cursor-follower { display: none !important; }
}

/* ── Card 3D Tilt ─────────────────────────────────────────── */
.card, .partecipata-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card.tilt-active, .partecipata-card.tilt-active {
  transition: none;
}

/* ── Magnetic Button ──────────────────────────────────────── */
.btn {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease !important;
  will-change: transform;
  display: inline-block;
}

.btn.magnetic-active {
  transition: none !important;
}

/* ── Section Heading Shimmer reveal ─────────────────────────── */
.section-heading-anim {
  background: linear-gradient(90deg, var(--blu) 0%, var(--blu) 40%, #C9A35F 50%, var(--blu) 60%, var(--blu) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading-anim.shimmer-go {
  animation: headingShimmer 1.2s ease forwards;
}

@keyframes headingShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -50% 0; }
}

/* ── Eyebrow line grow ────────────────────────────────────── */
.eyebrow span::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1.5px;
  background: #C9A35F;
  vertical-align: middle;
  margin-right: 0;
  transition: width 0.6s ease, margin-right 0.6s ease;
}

.eyebrow.eyebrow-visible span::before {
  width: 28px;
  margin-right: 12px;
}

/* ── Reveal – enhanced delay classes ─────────────────────── */
.reveal-delay-4 { transition-delay: 0.6s !important; }
.reveal-delay-5 { transition-delay: 0.75s !important; }

/* ── Smooth scrollbar hint ────────────────────────────────── */
html {
  scroll-behavior: smooth;
}
