/* =============================================
   IPPON ACADEMY — Main Stylesheet
   Colors: #D4251B (red), #111 (black), #fff (white)
   ============================================= */

:root {
  --red: #D4251B;
  --red-dark: #a81c14;
  --black: #111111;
  --dark: #1a1a1a;
  --gray: #2e2e2e;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --font-main: 'Inter', 'Segoe UI', sans-serif;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }
.section--dark { background: var(--dark); color: var(--white); }
.section--red { background: var(--red); color: var(--white); }
.section--gray { background: var(--light-gray); }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: var(--black);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  background: var(--white);
  padding: 3px;
}

.navbar-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.navbar-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.nav-links a:hover { opacity: 1; }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  opacity: 1 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: var(--red-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;

  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(212,37,27,0.15) 100%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll svg { opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--red);
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item .number {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 0.3rem;
}

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

.about-images {
  position: relative;
  height: 500px;
}

.about-img-main {
  position: absolute;
  top: 0; left: 0;
  width: 75%;
  height: 85%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.about-img-secondary {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 55%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border: 4px solid var(--white);
}

.about-year-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--red);
  color: var(--white);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  z-index: 3;
  box-shadow: 0 8px 25px rgba(212,37,27,0.4);
  line-height: 1;
}

.about-year-badge span {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.about-text h2 { margin-bottom: 1.5rem; }

.about-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--light-gray);
  padding: 1.2rem;
  border-radius: 6px;
  border-left: 3px solid var(--red);
}

.value-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.value-card p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ── Disciplines ── */
.disciplines-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.disciplines-header p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.discipline-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.discipline-card:hover {
  background: rgba(212,37,27,0.15);
  border-color: var(--red);
  transform: translateY(-4px);
}

.discipline-icon {
  width: 64px;
  height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
}

.discipline-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.discipline-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ── Teams ── */
.teams-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 2px solid #e5e5e5;
}

.tab-btn {
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.team-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.team-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.team-address svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }

.team-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.team-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #444;
}

.team-contact-item svg { color: var(--red); flex-shrink: 0; }

.team-staff {
  background: var(--light-gray);
  padding: 1.2rem;
  border-radius: 6px;
}

.team-staff h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.staff-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.85rem;
}

.staff-member:last-child { border-bottom: none; }
.staff-member .role { color: var(--red); font-size: 0.75rem; font-weight: 600; }

/* Schedule */
.schedule-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.schedule-table th {
  background: var(--black);
  color: var(--white);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: #fafafa; }

.schedule-table .day {
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}

.schedule-table .time {
  color: var(--red);
  font-weight: 600;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0.15rem 0.1rem;
}

.tag-judo { background: rgba(212,37,27,0.12); color: var(--red); }
.tag-gym { background: rgba(50,150,50,0.12); color: #2a7a2a; }
.tag-acro { background: rgba(50,100,200,0.12); color: #2050a0; }
.tag-other { background: rgba(150,100,0,0.12); color: #7a5000; }

/* ── Accordion orari ── */
.accordion { display: flex; flex-direction: column; gap: 0.4rem; }

.accordion-item {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.accordion-header:hover { background: #f5f5f5; }
.accordion-header.open  { background: #fafafa; }

.accordion-desc {
  font-size: 0.78rem;
  color: #777;
  flex: 1;
  line-height: 1.3;
}

.accordion-arrow {
  flex-shrink: 0;
  color: #999;
  transition: transform 0.3s ease;
}

.accordion-header.open .accordion-arrow { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body.open { max-height: 600px; }

.accordion-body-inner {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.schedule-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.schedule-pill {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.pill-day { font-weight: 700; color: #222; white-space: nowrap; }
.pill-time { color: var(--red); font-weight: 600; white-space: nowrap; }
.pill-note { color: #888; font-size: 0.72rem; font-style: italic; white-space: nowrap; }

/* ── Gallery ── */
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 0.6s ease;
}

.gallery-item:nth-child(1) img { min-height: 400px; }

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(212,37,27,0.3);
}

.gallery-overlay svg {
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover { opacity: 1; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(212,37,27,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg { color: var(--red); }

.contact-item-text h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.2rem;
}

.contact-item-text p, .contact-item-text a {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-item-text a:hover { color: var(--red); }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--red);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 2rem;
}

.contact-form h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

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

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

.form-group select option { background: var(--gray); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-full { width: 100%; justify-content: center; }

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1rem 0 1.2rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.68);
}

.privacy-check input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--red);
}

.privacy-check a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-check a:hover {
  color: var(--red);
}

/* ── Map ── */
.map-section { padding: 0; }
.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ── Footer ── */
footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 6px;
  background: var(--white);
  padding: 4px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--red); }

.footer-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-partners a {
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.footer-partners a:hover { opacity: 1; }

.footer-partners img {
  height: 90px;
  width: auto;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 10px 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.footer-bottom a { color: var(--red); }

/* ── Cookie / Privacy Banner ── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3000;
  background: rgba(17,17,17,0.96);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  padding: 1rem;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.cookie-banner-text p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  line-height: 1.55;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-link {
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.cookie-link:hover {
  color: var(--white);
}

.cookie-accept {
  border: none;
  background: var(--red);
  color: var(--white);
  border-radius: 6px;
  padding: 0.65rem 1.2rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.cookie-accept:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ── Mobile Nav ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ── Splash Screen ── */
#splash {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#splash.hide {
  opacity: 0;
  pointer-events: none;
}

#splash.gone {
  display: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.splash-logo-wrap {
  animation: splashPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.splash-logo-wrap img {
  width: 180px;
  height: auto;
  border-radius: 12px;
}

.splash-bar {
  width: 0;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  animation: splashBar 1.2s ease 0.6s forwards;
}

.splash-tagline {
  color: rgba(0,0,0,0);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: splashFadeText 0.6s ease 1s forwards;
}

.staff-section {
  padding: 70px 20px;
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 70%, #2b0907 100%);
  text-align: center;
}

.staff-section h2 {
  font-size: 2.4rem;
  margin-bottom: 35px;
  text-transform: uppercase;
  color: var(--white);
}

.staff-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.staff-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 5px 25px;
}

.staff-track::-webkit-scrollbar {
  display: none;
}

.staff-card {
  flex: 0 0 280px;
  min-height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.035) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,0.26);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,37,27,0.5);
  box-shadow: 0 18px 42px rgba(0,0,0,0.42);
}

.staff-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 330px;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  padding-top: 12px;
}

.staff-info {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 22px;
  background: rgba(10,10,10,0.92);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.staff-info h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--white);
}

.staff-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
}

.staff-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.staff-arrow.left {
  left: -18px;
}

.staff-arrow.right {
  right: -18px;
}

.staff-arrow:hover {
  background: #c40000;
}


@media (max-width: 768px) {
  .staff-card {
    flex-basis: 240px;
    min-height: 470px;
  }

  .staff-card img {
    height: 300px;
  }

  .staff-arrow.left {
    left: 5px;
  }

  .staff-arrow.right {
    right: 5px;
  }
}

/* ── Sponsor ── */
.sponsor-section {
  background: var(--white);
  overflow: hidden;
}

.sponsor-header {
  text-align: center;
  margin-bottom: 3rem;
}

.sponsor-header h2 {
  margin-bottom: 0.8rem;
}

.sponsor-header p {
  color: #666;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 520px;
}

.sponsor-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0 1.5rem;
}

.sponsor-slider::before,
.sponsor-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.sponsor-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.sponsor-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.sponsor-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: sponsorSlide 38s linear infinite;
}

.sponsor-slider:hover .sponsor-track {
  animation-play-state: paused;
}

.sponsor-item {
  flex: 0 0 185px;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(212,37,27,0.28);
  box-shadow: 0 12px 34px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.sponsor-item:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: var(--red);
  box-shadow: 0 18px 42px rgba(0,0,0,0.14);
}

.sponsor-item img {
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
}

@keyframes sponsorSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 1rem));
  }
}

@media (max-width: 768px) {
  .sponsor-track {
    gap: 1.4rem;
    animation-duration: 34s;
  }

  .sponsor-item {
    flex-basis: 150px;
    width: 150px;
    height: 150px;
    padding: 1.25rem;
  }

  .sponsor-item img {
    max-height: 66px;
  }

  .sponsor-slider::before,
  .sponsor-slider::after {
    width: 45px;
  }
}

@media (max-width: 420px) {
  .sponsor-item {
    flex-basis: 135px;
    width: 135px;
    height: 135px;
  }

  .sponsor-item img {
    max-height: 58px;
  }
}

@keyframes splashPop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes splashBar {
  from { width: 0; }
  to   { width: 180px; }
}

@keyframes splashFadeText {
  from { color: rgba(0,0,0,0); }
  to   { color: rgba(0,0,0,0.45); }
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-images { height: 350px; margin-bottom: 2rem; }

  .team-grid { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

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

@media (max-width: 640px) {
  .section { padding: 4rem 0; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; }

  .form-row { grid-template-columns: 1fr; }

  .about-values { grid-template-columns: 1fr; }

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

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-accept {
    width: 100%;
  }
}


/* ── Legal Pages: Privacy / Cookie Policy ── */
.legal-page {
  padding-top: 90px;
  background: var(--white);
  color: var(--black);
}

.legal-container {
  max-width: 850px;
}

.legal-container h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.legal-container h2 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.legal-container p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-container a {
  color: var(--red);
  font-weight: 700;
}

.legal-updated {
  font-size: 0.9rem;
  color: #777 !important;
  margin-bottom: 2rem !important;
}

.legal-back {
  margin-top: 3rem;
}

/* ── Sovvenzioni / Trasparenza ── */
.subsidies-page {
  padding-top: 90px;
  background:
    radial-gradient(circle at top left, rgba(212,37,27,0.08), transparent 32%),
    linear-gradient(180deg, #f6f6f6 0%, #ffffff 100%);
  color: var(--black);
}

.subsidies-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.subsidies-archive {
  position: sticky;
  top: 110px;
  background: #111111;
  color: #fff;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.subsidies-archive h2 {
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.subsidies-archive ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subsidies-archive li {
  margin-bottom: 1.1rem;
}

.subsidies-archive strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.subsidies-archive a {
  display: block;
  color: #D4251C;
  font-size: 0.92rem;
  line-height: 1.4;
  padding-left: 1rem;
}

.subsidies-archive a:hover {
  color: #fff;
}

.subsidies-content {
  min-width: 0;
}

.subsidies-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  margin-bottom: 2rem;
  box-shadow: 0 16px 42px rgba(0,0,0,0.08);
  border: 1px solid #ececec;
}

.subsidies-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e3e3e3;
}

.subsidies-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.subsidies-card p {
  color: #444;
  line-height: 1.75;
}

.subsidies-meta {
  margin: 1.2rem 0 1.8rem;
  padding: 1rem;
  background: #f7f7f7;
  border-radius: 12px;
  border-left: 4px solid var(--red);
}

.subsidies-meta p {
  margin: 0.25rem 0;
  font-size: 0.92rem;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2.5rem;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 600px;
}

.legal-table th,
.legal-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9e9e9;
  font-size: 0.95rem;
}

.legal-table th {
  background: #f3ece5;
  color: #222;
  font-weight: 900;
}

.legal-table td:last-child,
.legal-table th:last-child {
  text-align: right;
  font-weight: 800;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.subsidies-signature {
  margin-top: 3rem;
  text-align: right;
}

.subsidies-signature p {
  margin-bottom: 0.3rem;
}

.subsidies-signature strong {
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .subsidies-layout {
    grid-template-columns: 1fr;
  }

  .subsidies-archive {
    position: static;
  }
}