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

:root {
  --blue:    #1C5FA8;
  --blue-dark: #143F72;
  --orange:  #F47B20;
  --orange-light: #F5A623;
  --black:   #0A0A0A;
  --gray:    #6B7280;
  --light:   #F8F8F6;
  --white:   #FFFFFF;
  --nav-h:   72px;
  --radius:  12px;
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ─── Typography ────────────────────────────────────────── */
.bebas { font-family: 'Bebas Neue', sans-serif; }

h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; line-height: 1; letter-spacing: 0.02em; }
h2 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
p  { line-height: 1.7; color: var(--gray); }

/* ─── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 16px;
  left: 3vw;
  right: 3vw;
  z-index: 100;
  height: 64px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  padding: 0 1.25rem 0 1rem;
  justify-content: space-between;
  gap: 0.5rem;
}

.nav-logo img { height: 56px; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Social icons — desktop only */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
}
.nav-social-icon:hover { background: var(--light); }
.nav-social-icon img { width: 18px; height: 18px; object-fit: contain; }

/* Mobile social items — hidden on desktop */
.nav-mobile-social { display: none; }

/* Nav right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--orange-light); transform: translateY(-1px); }

/* ─── Mobile menu toggle ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--light); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 5vw 8vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.3) 50%,
    rgba(10,10,10,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 2.25rem;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 10rem);
  color: var(--white);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-bottom: 2.25rem;
}

.hero-title span { color: var(--orange); }

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.25rem;
}

.hero-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-date-br { display: none; }

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.26); }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }

.hero-buttons { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero-btn-main { font-size: 1.05rem; padding: 1.1rem 2.4rem; min-width: 22rem; justify-content: center; }
.hero-btn-secondary { font-size: 0.875rem; padding: 0.85rem 1.8rem; opacity: 0.9; }

/* ─── Ticker ─────────────────────────────────────────────── */
.ticker {
  background: var(--blue);
  overflow: hidden;
  padding: 0.9rem 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--white);
  padding: 0 2.5rem;
  opacity: 0.9;
}

.ticker-dot {
  color: var(--orange);
  margin: 0 0.5rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Stats ──────────────────────────────────────────────── */
.stats {
  padding: 6rem 5vw 2rem;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  padding: 3rem 2rem;
  text-align: center;
  border-left: 1px solid #EBEBEB;
}
.stat-item:first-child { border-left: none; }

.stat-km-row {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  color: var(--gray);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 2rem 2rem 1rem;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  color: var(--blue);
  line-height: 1;
  display: block;
}

.stat-number.orange { color: var(--orange); }

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.5rem;
  display: block;
}

/* ─── Section base ────────────────────────────────────────── */
.section {
  padding: 7rem 5vw;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: var(--orange);
  margin: 1.5rem 0;
}

/* ─── About section ─────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p  { font-size: 1.05rem; margin-bottom: 1rem; max-width: 480px; }

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-img-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--orange);
  color: var(--white);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(244,123,32,0.35);
}

.about-img-badge strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  display: block;
  line-height: 1;
}

.about-img-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ─── Video section ─────────────────────────────────────── */
.video-section {
  position: relative;
  background-image: url('Grafiche/istockphoto-1370967510-612x612.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.video-inner {
  position: relative;
  height: 70vh;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.video-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-mute-btn {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.video-mute-btn:hover { background: rgba(0,0,0,0.8); transform: scale(1.08); }

/* ─── CTA section ───────────────────────────────────────── */
.cta-section {
  background: var(--blue);
  padding: 7rem 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "4";
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40vw;
  color: rgba(255,255,255,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: #0E1520;
  color: var(--white);
  padding: 5rem 5vw 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}

.footer-logo img { height: 78px; margin-bottom: 1.5rem; }

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.footer-contacts { list-style: none; }
.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.footer-contacts svg { flex-shrink: 0; margin-top: 2px; }

.footer-staff img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  filter: grayscale(20%);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.social-btn:hover { background: var(--orange); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; fill: var(--white); }

/* ─── Team photo lightbox ───────────────────────────────── */
.footer-team-img {
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), filter 0.3s, box-shadow 0.3s;
}
.footer-team-img:hover {
  transform: scale(1.04);
  filter: grayscale(0%) brightness(1.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.footer-team-img--static {
  cursor: default;
  transition: none;
}
.footer-team-img--static:hover {
  transform: none;
  filter: grayscale(15%);
  box-shadow: none;
}
.team-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}
.team-lightbox.open { opacity: 1; pointer-events: all; }
.team-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  cursor: default;
}
.team-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.team-lightbox-close:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ─── Page header (for inner pages) ───────────────────────── */
.page-hero {
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding: 0 5vw 5vh;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.2) 100%);
}

.page-hero-content { position: relative; z-index: 2; }

.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 8rem);
  color: var(--white);
  line-height: 0.92;
}

.page-hero h1 span { color: var(--orange); }

/* ─── Iscriviti page ─────────────────────────────────────── */
.signup-hero-section {
  text-align: center;
  padding: 6rem 5vw 5rem;
  background: var(--white);
}

@keyframes cta-entrance {
  0%   { opacity: 0; transform: scale(0.82); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes cta-glow-build {
  0%   { box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.30), inset 0 -1px 0 rgba(0,0,0,0.12), 0 4px 0px 0px rgba(244,123,32,0); }
  100% {
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.30),
      inset 0 -1px 0 rgba(0,0,0,0.12),
      0 6px 20px rgba(244,123,32,0.30);
  }
}

@keyframes cta-glow-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.30),
      inset 0 -1px 0 rgba(0,0,0,0.12),
      0 6px 20px rgba(244,123,32,0.30);
  }
  50% {
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.30),
      inset 0 -1px 0 rgba(0,0,0,0.12),
      0 6px 26px rgba(244,123,32,0.42);
  }
}

.cta-btn-modulo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(150deg, #FF9B45 0%, #F47B20 50%, #D96212 100%);
  color: white;
  text-decoration: none;
  padding: 1.5rem 3.75rem;
  border-radius: 100px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(0,0,0,0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  opacity: 0;
}

.cta-btn-modulo.glow-active {
  animation:
    cta-entrance   0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    cta-glow-build 1.1s  ease-out forwards,
    cta-glow-pulse 3.5s  ease-in-out 1.1s infinite;
}
.cta-btn-modulo.glow-pulse {
  animation: cta-glow-pulse 3.5s ease-in-out infinite;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 6px 20px rgba(244,123,32,0.30);
}

.cta-btn-modulo:hover {
  transform: scale(1.12) translateY(-2px);
  filter: brightness(1.1);
}

.signup-price {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem 3rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.price-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--white);
}

.price-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.pacco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 4rem auto;
}

.pacco-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border-top: 3px solid var(--orange);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pacco-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.pacco-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pacco-icon svg { fill: var(--white); width: 22px; height: 22px; }
.pacco-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.pacco-card p  { font-size: 0.9rem; }

.programma-section {
  background: var(--light);
  padding: 3rem 5vw 6rem;
}

.programma-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.programma-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.programma-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.programma-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.programma-item p { font-size: 0.875rem; }

.programma-time::after {
  content: '';
  display: block;
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 0.5rem 0 0.6rem;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-section {
  padding: 6rem 5vw 7rem;
}

.faq-container {
  max-width: 780px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid #E8E5E1;
}

.faq-item:first-child {
  border-top: 1px solid #E8E5E1;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--orange); }

.faq-item.open .faq-question { color: var(--orange); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--orange);
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-item.open .faq-answer { grid-template-rows: 1fr; }

.faq-answer-inner {
  min-height: 0;
}

.faq-answer-body {
  padding: 0 0 1.5rem;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-answer-body p + p { margin-top: 0.75rem; }

.faq-answer-body ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.faq-answer-body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-cta {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  color: var(--gray);
  font-size: 1rem;
}
.faq-cta-email-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--gray);
}
.faq-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #F0F4FB;
  border: 1px solid #D0DAEA;
  border-radius: 100px;
  padding: 0.3rem 0.85rem 0.3rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  user-select: none;
}
.faq-email-chip:hover { background: #E3EBF8; border-color: #B0C4E0; }
.faq-email-chip svg { flex-shrink: 0; opacity: 0.7; }
.faq-email-copied {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 6px);
  background: #1C5FA8;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}
.faq-email-chip.copied .faq-email-text { opacity: 0.5; }
.faq-email-chip.copied .faq-email-copied { display: block; }

/* ─── Regolamento ─────────────────────────────────────────── */
.regolamento-section { padding: 6rem 5vw; }

.regolamento-box {
  max-width: 800px;
  margin: 3rem auto 0;
  background: var(--light);
  border-radius: var(--radius);
  padding: 2.5rem;
  border-left: 4px solid var(--blue);
}

.regolamento-box p { margin-bottom: 0.9rem; font-size: 0.95rem; }
.regolamento-box p:last-child { margin-bottom: 0; }
.regolamento-box strong { color: var(--black); font-weight: 600; }

/* ─── Gallery page ───────────────────────────────────────── */
.gallery-section {
  padding: 5rem 5vw 7rem;
  background: var(--light);
  min-height: 80vh;
}

.gallery-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: zoom-in;
  background: #e8e4e0;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.photo-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.35s ease;
  pointer-events: none;
}

.photo-item:hover img { transform: scale(1.06) translateZ(0); }
.photo-item:hover::after { background: rgba(0,0,0,0.18); }

/* ─── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  z-index: 1;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.26); }

/* ─── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.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; }

/* ─── Empty page placeholder ─────────────────────────────── */
.empty-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  padding: 4rem 5vw;
}

.empty-page h2 { color: var(--blue); }
.empty-page p  { font-size: 1.1rem; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img img { height: 400px; }
  .about-img-badge { left: auto; right: 1rem; bottom: -1.5rem; }
  .about-text .btn { display: block; text-align: center; width: fit-content; margin-left: auto; margin-right: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Hero buttons: larghezza piena simmetrica */
  .hero-content { width: 100%; }
  .hero-buttons { align-items: stretch; width: 100%; }
  .hero-btn-main { min-width: 0; width: 100%; justify-content: center; }
  .hero-btn-secondary { width: auto; align-self: flex-start; }
  /* Vai a capo prima di Piazza Gerbidi */
  .hero-date-br { display: inline; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0;
  }
  .nav-links.open li { border-bottom: 1px solid #F0F0F0; }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-links.open a {
    color: var(--black);
    font-size: 0.95rem;
    display: block;
    padding: 0.85rem 0;
  }
  .nav-links.open a:hover { color: var(--orange); }
  .nav-links.open a::after { display: none; }
  /* Show mobile social items */
  .nav-mobile-social { display: block; }
  .nav-mobile-social a {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
  }
  .nav-mobile-social a img { width: 18px; height: 18px; object-fit: contain; }

  /* Spazio extra prima del primo social */
  .nav-mobile-social:has(a[href*="instagram"]) {
    margin-top: 0.5rem;
  }

  /* Instagram — gradiente brand */
  .nav-mobile-social a[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .nav-mobile-social a[href*="instagram"] img {
    filter: brightness(0) saturate(100%) invert(30%) sepia(80%) saturate(700%) hue-rotate(280deg) brightness(0.85);
  }

  /* Facebook — gradiente azzurro→blu (dal reference) */
  .nav-mobile-social a[href*="facebook"] {
    background: linear-gradient(135deg, #00c6ff 0%, #0078ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .nav-mobile-social a[href*="facebook"] img {
    filter: brightness(0) saturate(100%) invert(41%) sepia(100%) saturate(600%) hue-rotate(195deg) brightness(1.1);
  }

  /* Hide desktop socials on mobile */
  .nav-socials { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .stats { padding: 2rem 5vw 1rem; }
  .section { padding: 4rem 5vw; }
  .cta-section::before { font-size: 162vw; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 1.5rem 1rem; }
  .stat-item:nth-child(2) { border-left: 1px solid #EBEBEB; padding-left: 2.5rem; }
  .stat-item:nth-child(3) { border-left: none; }
  .stat-number { font-size: 2.4rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .programma-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Footer: seconda riga a capo su mobile */
  .footer-sep-desktop { display: none !important; }
  .footer-sep-mobile  { display: inline !important; }

  /* Nav: evidenzia pagina corrente nel burger menu */
  .nav-links a.nav-active { color: var(--blue) !important; font-weight: 700; }

  /* Iscriviti: bottone Vai al modulo al 75% */
  .cta-btn-modulo {
    padding: 1.125rem 2.8125rem;
    font-size: 1.0125rem;
  }

  /* Iscriviti: meno spazio tra sezioni (items 7 & 8) */
  .section-a-venire { padding-top: 1.5rem !important; padding-bottom: 1rem !important; }
  .programma-section { padding-top: 1.5rem; }

  /* Galleria: bottone altezza +100% rispetto all'originale desktop */
  .btn-galleria-full { padding: 1.33rem 2.5rem !important; font-size: 1.1rem !important; }

  /* FAQ: meno spazio tra ultima domanda e copia email */
  .faq-cta { margin-top: 1.5rem; padding-top: 1rem; }

  /* Footer team block: foto sopra, testo sotto */
  .footer-team-block {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    gap: 1rem !important;
  }
  .footer-team-block .footer-team-img {
    width: 100% !important;
    height: 220px !important;
  }
  .footer-team-block > div {
    margin-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 13vw, 5rem); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}
