/* =========================================================
   REC MOVIE — Stylesheet unico del sito
   ========================================================= */

:root {
  --bg-color: #0b0b0b;
  --bg-secondary: #141414;
  --bg-card: #1c1c1c;
  --header-bg: #2a2a2d;
  --text-color: #ffffff;
  --text-muted: #bcbcbc;
  --accent-red: #b90e0c;
  --accent-red-hover: #d6110e;
  --dropdown-bg: #1f1f22;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  animation: fadeInPage 0.5s ease-in-out forwards;
  overflow-x: hidden;
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

::selection { background: var(--accent-red); color: #fff; }

/* Focus visibile per accessibilità da tastiera */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-red-hover);
  outline-offset: 2px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   HEADER / NAVIGAZIONE
   ========================================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  background-color: var(--header-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 3px solid var(--accent-red);
  z-index: 1000;
  height: 110px;
  gap: 1.5rem;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

header.is-scrolled { height: 82px; box-shadow: 0 6px 24px rgba(0,0,0,0.55); }

.brand-group { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.logo-container { display: flex; align-items: center; text-decoration: none; height: 100%; padding: 4px 0; }
.logo-header { height: 92px; max-height: 100%; width: auto; object-fit: contain; transition: height 0.3s ease; }
header.is-scrolled .logo-header { height: 60px; }

.header-socials { display: flex; align-items: center; gap: 0.8rem; border-left: 1px solid rgba(255, 255, 255, 0.2); padding-left: 1rem; }
.social-icon { color: var(--text-color); text-decoration: none; transition: color 0.3s ease, transform 0.2s ease; display: flex; align-items: center; justify-content: center; }
.social-icon svg { width: 22px; height: 22px; fill: currentColor; }
.social-icon:hover { color: var(--accent-red); transform: translateY(-2px); }

nav { margin-left: auto; }
.nav-links { display: flex; list-style: none; gap: 1.2rem; align-items: center; }
.nav-links li { position: relative; }
.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.5rem 0.8rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
}
.nav-links a:hover, .nav-links a.active { color: #ffffff; background-color: rgba(255, 255, 255, 0.1); }
.nav-links a.active { box-shadow: inset 0 -3px 0 var(--accent-red); }

.dropdown-arrow { font-size: 0.7rem; transition: transform 0.3s; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; left: auto;
  background-color: var(--dropdown-bg); min-width: 240px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5); border-radius: 6px;
  border-top: 3px solid var(--accent-red);
  list-style: none; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all 0.3s ease; padding: 0.5rem 0;
}
.dropdown:hover .dropdown-menu, .dropdown.active .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu li a { padding: 0.7rem 1.2rem; font-size: 1rem; font-weight: 500; color: #e0e0e0; display: block; border-radius: 0; }
.dropdown-menu li a:hover, .dropdown-menu li a.active { background-color: var(--accent-red); color: #ffffff; box-shadow: none; }

.hamburger { display: none; background: none; border: none; color: var(--text-color); font-size: 1.8rem; cursor: pointer; margin-left: auto; }

/* =========================================================
   HERO (home + pagine interne) — sfondo cinematografico via CSS
   ========================================================= */
.hero, .page-hero {
  position: relative;
  text-align: center;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(185, 14, 12, 0.28), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(185, 14, 12, 0.14), transparent 60%),
    linear-gradient(180deg, #050505 0%, #0f0f10 55%, #050505 100%);
  overflow: hidden;
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -120px 100px -60px rgba(0,0,0,0.9), inset 0 0 160px rgba(0,0,0,0.6);
  pointer-events: none;
}
.hero > *, .page-hero > * { position: relative; z-index: 1; }

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 150px 1.5rem 3rem 1.5rem;
}

.hero-content { max-width: 900px; margin-top: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }

.logo-hero {
  max-width: 480px;
  width: 100%;
  height: auto;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.9));
}

.hero-content h1 { font-size: 3rem; margin-bottom: 1.2rem; line-height: 1.2; font-weight: 800; }
.highlight-red, .highlight { color: var(--accent-red-hover); }
.hero-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 1.8rem; max-width: 700px; }

.page-hero { padding: 165px 8% 4rem 8%; border-bottom: 2px solid var(--accent-red); }
.page-hero h1 { font-size: 2.8rem; margin-bottom: 1rem; font-weight: 800; }
.page-hero h1 span { color: var(--accent-red-hover); }
.page-hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 1.8rem auto; }

.badge {
  display: inline-block;
  background-color: var(--accent-red);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* =========================================================
   BOTTONI
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background-color: var(--accent-red);
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(185, 14, 12, 0.4);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background-color: var(--accent-red-hover); transform: translateY(-3px); }

.btn-white {
  background-color: #ffffff;
  color: var(--accent-red);
  font-size: 1.1rem;
  padding: 1.1rem 2.6rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.btn-white:hover { background-color: #f0f0f0; color: #000000; transform: translateY(-3px); }

/* =========================================================
   SEZIONI GENERICHE
   ========================================================= */
.section { padding: 4.5rem 8%; }
.bg-darker { background-color: var(--bg-secondary); }
.section-title { text-align: center; font-size: 2.3rem; margin-bottom: 2.8rem; }
.section-title span { color: var(--accent-red); }

/* Servizi (home) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.service-card {
  background-color: var(--bg-card);
  padding: 2.2rem;
  border-radius: 8px;
  border-top: 3px solid var(--accent-red);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(185, 14, 12, 0.3); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: #fff; }
.service-card p { color: var(--text-muted); font-size: 0.98rem; flex-grow: 1; }
.card-link-text { display: inline-block; margin-top: 1rem; color: var(--accent-red); font-weight: 600; font-size: 0.9rem; }

/* Corso Banner (home) */
.course-banner {
  background: linear-gradient(145deg, #b90e0c 0%, #830a08 100%);
  color: #ffffff;
  padding: 5rem 8%;
  text-align: center;
  position: relative;
  border-top: 2px solid #e01210;
  border-bottom: 2px solid #e01210;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}
.course-badge {
  display: inline-block;
  background-color: #ffffff;
  color: var(--accent-red);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.course-banner h2 { font-size: 3rem; margin-bottom: 1.2rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.course-banner p { font-size: 1.3rem; max-width: 850px; margin: 0 auto 2.5rem auto; color: #fce8e8; line-height: 1.7; }
.course-highlights { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; list-style: none; }
.course-highlights li { background: rgba(0,0,0,0.25); padding: 0.6rem 1.4rem; border-radius: 6px; font-weight: 600; font-size: 1.05rem; border: 1px solid rgba(255,255,255,0.2); }

/* Chi Siamo */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* =========================================================
   PAGINE SERVIZIO — componenti condivisi
   ========================================================= */

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-red);
  position: relative;
  transition: transform 0.3s ease;
}
.step-card:hover { transform: translateY(-4px); }
.step-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-red-hover);
  margin-bottom: 0.6rem;
}
.step-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: #fff; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Features (griglia semplice) */
.features-section { background-color: var(--bg-secondary); padding: 4.5rem 8%; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.feature-item { background-color: var(--bg-color); padding: 1.8rem; border-radius: 6px; border: 1px solid #232323; }
.feature-item h4 { color: var(--accent-red-hover); font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Features (box con icona nel titolo) */
.features-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.feature-box { background: #18181b; padding: 1.8rem; border-radius: 8px; border: 1px solid #2a2a2d; transition: border-color 0.3s ease; }
.feature-box:hover { border-color: var(--accent-red); }
.feature-box h4 { color: var(--accent-red-hover); font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.feature-box p { color: var(--text-muted); font-size: 0.95rem; }

/* Podcast */
.pod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.pod-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(185, 14, 12, 0.6);
  box-shadow: 0 0 14px rgba(185, 14, 12, 0.18);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.pod-card:hover { box-shadow: 0 0 24px rgba(214, 17, 14, 0.4); border-color: var(--accent-red-hover); }
.pod-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: #fff; }
.pod-card p { color: var(--text-muted); font-size: 0.95rem; }

.tech-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.spec-item { background: var(--bg-card); padding: 1.5rem; border-radius: 6px; text-align: center; border: 1px solid #2a2a2d; }
.spec-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.spec-item h4 { color: #fff; font-size: 1.1rem; margin-bottom: 0.4rem; }
.spec-item p { color: var(--text-muted); font-size: 0.88rem; }

.portfolio-wrapper { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.portfolio-info { text-align: center; max-width: 800px; }
.portfolio-info h3 { font-size: 1.8rem; color: #ffffff; margin-bottom: 0.8rem; }
.portfolio-info p { color: var(--text-muted); font-size: 1.05rem; }

.video-card-small {
  width: 100%;
  max-width: 680px;
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 20px rgba(185, 14, 12, 0.25);
  transition: transform 0.3s;
}
.video-card-small:hover { transform: translateY(-4px); }
.video-container { position: relative; width: 100%; padding-top: 56.25%; background-color: #000; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Cortometraggi */
.cinema-phases { display: flex; flex-direction: column; gap: 2rem; max-width: 900px; margin: 0 auto; }
.phase-card {
  background: var(--bg-card);
  padding: 2.2rem;
  border-radius: 8px;
  border-left: 5px solid var(--accent-red);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.phase-icon { font-size: 2.5rem; line-height: 1; }
.phase-content h3 { font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; }
.phase-content p { color: var(--text-muted); font-size: 0.98rem; }

/* Reel per aziende — griglia reel Instagram */
.reels-portfolio-section { padding: 4.5rem 8%; }
.reels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; justify-content: center; align-items: start; }
.reel-card {
  background-color: #121212;
  border-radius: 12px;
  padding: 0.5rem;
  border: 2px solid var(--accent-red);
  box-shadow: 0 4px 20px rgba(185, 14, 12, 0.25);
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.reel-card:hover { transform: translateY(-5px); border-color: var(--accent-red-hover); box-shadow: 0 8px 25px rgba(214, 17, 14, 0.4); }
.reel-card iframe { border-radius: 8px; width: 100%; max-width: 328px; height: 520px; border: none; }

/* Videoclip — griglia video YouTube */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.video-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--accent-red);
  box-shadow: 0 4px 15px rgba(185, 14, 12, 0.2);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.video-card:hover { border-color: var(--accent-red-hover); transform: translateY(-6px); box-shadow: 0 8px 25px rgba(185, 14, 12, 0.4); }
.video-embed-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background-color: #000; border-bottom: 2px solid var(--accent-red); }
.video-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.video-info h3 { font-size: 1.3rem; font-weight: 700; color: #ffffff; margin-bottom: 0.3rem; }
.video-meta { color: var(--accent-red-hover); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.8rem; }
.video-info p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* CTA */
.cta-box, .cta-section {
  text-align: center;
  padding: 4.5rem 8%;
  background-color: var(--bg-secondary);
  border-top: 1px solid #222;
}
.cta-box h2, .cta-section h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.cta-box p, .cta-section p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 1rem 2.5rem;
  background-color: var(--accent-red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 15px rgba(185, 14, 12, 0.4);
}
.cta-btn:hover { background-color: var(--accent-red-hover); transform: translateY(-3px); }

/* =========================================================
   MODULI (form)
   ========================================================= */
.content-section { padding: 4.5rem 8%; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }

.info-box h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.info-box h2 span { color: var(--accent-red-hover); }
.info-box p { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 1.05rem; }

.form-box {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: 8px;
  border-top: 4px solid var(--accent-red);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.form-box h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.form-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.booking-section { padding: 165px 5% 5rem 5%; max-width: 900px; margin: 0 auto; width: 100%; }
.booking-section h1 { font-size: 2.8rem; margin-bottom: 0.5rem; text-align: center; }
.booking-section h1 span { color: var(--accent-red-hover); }
.booking-section p.subtitle { text-align: center; color: var(--text-muted); font-size: 1.15rem; margin-bottom: 3rem; }

.booking-form {
  background-color: var(--bg-card);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  border-top: 3px solid var(--accent-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; width: 100%; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; margin-bottom: 0; }
.form-group label { font-weight: 600; font-size: 0.95rem; color: var(--text-color); }

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}
.form-group select option { background-color: var(--bg-secondary); color: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-red); }

.course-highlights.checklist { margin-top: 2rem; list-style: none; display: block; }
.course-highlights.checklist li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; color: #fff; background: none; border: none; padding: 0; font-weight: 500; }
.course-highlights.checklist li::before { content: "✓"; color: var(--accent-red-hover); font-weight: bold; }

.btn-submit, .submit-btn {
  width: 100%;
  padding: 1.1rem;
  background-color: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}
.btn-submit:hover, .submit-btn:hover { background-color: var(--accent-red-hover); transform: translateY(-2px); }

/* =========================================================
   FOOTER
   ========================================================= */
footer { background-color: #050505; border-top: 1px solid #222; padding: 3.5rem 8% 2rem 8%; }
.footer-contacts { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.8rem; padding-bottom: 2.5rem; border-bottom: 1px solid #1f1f1f; margin-bottom: 2rem; }
.contact-block h3 { font-size: 1.4rem; color: #ffffff; margin-bottom: 0.3rem; }
.contact-block p { color: var(--text-muted); font-size: 0.95rem; }
.contact-links-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.contact-pill { display: flex; align-items: center; gap: 0.6rem; color: #ffffff; text-decoration: none; font-size: 1.05rem; font-weight: 600; background-color: var(--bg-card); padding: 0.8rem 1.5rem; border-radius: 6px; border: 1px solid #333; transition: border-color 0.3s, color 0.3s, transform 0.2s; }
.contact-pill:hover { border-color: var(--accent-red); color: var(--accent-red-hover); transform: translateY(-2px); }
.footer-copyright { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Torna su */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--accent-red);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--accent-red-hover); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .content-section { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 868px) {
  header { justify-content: space-between; gap: 0; height: 88px; }
  .logo-header { height: 68px; }
  .hamburger { display: block; }
  .header-socials { display: none; }
  nav { margin-left: 0; }
  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%;
    background-color: var(--header-bg); flex-direction: column;
    align-items: flex-start; padding: 1rem 0; gap: 0; display: none;
    border-bottom: 3px solid var(--accent-red);
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 1rem 2rem; width: 100%; }
  .dropdown-menu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border-top: none; background: rgba(0,0,0,0.2); }
  .hero { padding-top: 110px; }
  .logo-hero { max-width: 300px; margin-bottom: 1.2rem; }
  .hero-content h1 { font-size: 2rem; }
  .course-banner h2 { font-size: 2.2rem; }
  .footer-contacts { flex-direction: column; align-items: flex-start; }
  .page-hero { padding-top: 130px; }
  .page-hero h1 { font-size: 2.1rem; }
  .phase-card { flex-direction: column; gap: 0.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .booking-form { padding: 1.8rem 1.2rem; }
  .booking-section { padding-top: 120px; }
  .video-grid { grid-template-columns: 1fr; }
}
