@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --bg-dark: #0c0c0e;
  --bg-dark-rgb: 12, 12, 14;
  --bg-card: #151518;
  --bg-card-hover: #1e1e24;
  --primary: #d32f2f;
  --primary-hover: #b71c1c;
  --primary-glow: rgba(211, 47, 47, 0.4);
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b5;
  --text-muted: #707075;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(211, 47, 47, 0.25);
  --bg-alt: #08080a;
  --footer-bg: #070708;
  --scrollbar-thumb: #252528;
  --overlay-dark: rgba(0, 0, 0, 0.8);
  
  --font-display: 'Noto Serif JP', serif;
  --font-sans: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --container-width: 1200px;
  --header-height: 80px;
}

/* Light theme (system preference or manual toggle) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-dark: #f0f0f4;
    --bg-dark-rgb: 240, 240, 244;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f7;
    --primary-glow: rgba(211, 47, 47, 0.15);
    --gold-glow: rgba(212, 175, 55, 0.15);
    --text-primary: #1a1a1e;
    --text-secondary: #5a5a60;
    --text-muted: #9a9aa0;
    --border-color: rgba(0, 0, 0, 0.10);
    --border-accent: rgba(211, 47, 47, 0.18);
    --bg-alt: #e0e0e4;
    --footer-bg: #e0e0e4;
    --scrollbar-thumb: #c0c0c4;
    --overlay-dark: rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="light"] {
  --bg-dark: #f0f0f4;
  --bg-dark-rgb: 240, 240, 244;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f7;
  --primary-glow: rgba(211, 47, 47, 0.15);
  --gold-glow: rgba(212, 175, 55, 0.15);
  --text-primary: #1a1a1e;
  --text-secondary: #5a5a60;
  --text-muted: #9a9aa0;
  --border-color: rgba(0, 0, 0, 0.10);
  --border-accent: rgba(211, 47, 47, 0.18);
  --bg-alt: #e0e0e4;
  --footer-bg: #e0e0e4;
  --scrollbar-thumb: #c0c0c4;
  --overlay-dark: rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-glow);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Brush stroke accent */
.brush-accent {
  position: relative;
}
.brush-accent::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 8px;
  background: rgba(211, 47, 47, 0.15);
  z-index: -1;
  transform: skewX(-15deg);
}

/* Modern Glassmorphism */
.glass {
  background: rgba(21, 21, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

:root[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .glass {
    background: rgba(255, 255, 255, 0.7);
  }
}

/* Scroll Animation classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(var(--bg-dark-rgb), 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: bold;
  box-shadow: 0 0 15px var(--primary-glow);
  font-family: var(--font-display);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
  box-shadow: 0 0 8px var(--primary-glow);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.5);
}

/* Mobile Menu Trigger */
.menu-trigger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-trigger span {
  width: 28px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(211, 47, 47, 0.05);
}

.theme-icon-sun,
.theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon,
:root:not([data-theme]) .theme-icon-moon {
  display: block;
}

:root[data-theme="light"] .theme-icon-sun {
  display: block;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 95vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(var(--bg-dark-rgb), 0.4) 0%, rgba(var(--bg-dark-rgb), 0.95) 90%),
              linear-gradient(to bottom, rgba(var(--bg-dark-rgb), 0.2) 0%, rgba(var(--bg-dark-rgb), 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 850px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-sans);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 16px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 24px;
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 15px var(--gold-glow);
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.5);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

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

/* ==========================================================================
   PHILOSOPHY & WELCOME
   ========================================================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.welcome-text h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--gold);
}

.welcome-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.philosophy-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(21, 21, 24, 0.8) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.philosophy-card::before {
  content: '武';
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 12rem;
  font-family: var(--font-display);
  color: rgba(211, 47, 47, 0.04);
  font-weight: bold;
  pointer-events: none;
}

.philosophy-card h4 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.philosophy-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-primary);
}

/* ==========================================================================
   DISCIPLINES (CORSI)
   ========================================================================== */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.discipline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.discipline-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: 0 15px 35px rgba(211, 47, 47, 0.15);
}

.card-img-wrapper {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.discipline-card:hover .card-img {
  transform: scale(1.08);
}

.card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(21, 21, 24, 0.95) 100%);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-subtitle {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-teacher {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.card-link i {
  transition: var(--transition-fast);
}

.card-link:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   EVENTI (uses same card pattern as disciplines)
   ========================================================================== */
.eventi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.eventi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.eventi-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: 0 15px 35px rgba(211, 47, 47, 0.15);
}

/* ==========================================================================
   INTERACTIVE DETAILS DRAWER / MODAL
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: -600px;
  width: 100%;
  max-width: 550px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 2001;
  padding: 40px;
  overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer.active {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.drawer-header {
  margin-bottom: 30px;
}

.drawer-header h3 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.drawer-subtitle {
  color: var(--gold);
  font-size: 1rem;
}

.drawer-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  list-style: none;
}

.drawer-tabs-nav li {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.drawer-tabs-nav li.active {
  border-color: var(--primary);
  color: var(--text-primary);
}

.drawer-tab-content {
  display: none;
  flex-grow: 1;
}

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

.drawer-info-block {
  margin-bottom: 24px;
}

.drawer-info-block h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-info-block p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.drawer-info-block ul {
  list-style: none;
  padding-left: 5px;
}

.drawer-info-block li {
  font-size: 0.95rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.drawer-info-block li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.drawer-video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 6px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition-fast);
}

.drawer-video-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(211, 47, 47, 0.05);
}

.drawer-video-btn svg {
  fill: currentColor;
}

/* ==========================================================================
   DOCENTI (STAFF)
   ========================================================================== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.teacher-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.teacher-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.teacher-avatar-container {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  position: relative;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.teacher-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
}

.teacher-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.teacher-role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 10px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 50px;
}

/* Accordion for assistant black belts */
.black-belts-accordion {
  max-width: 800px;
  margin: 40px auto 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.accordion-header {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-header h4 {
  font-size: 1.15rem;
  font-family: var(--font-sans);
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.black-belts-accordion.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.2);
}

.black-belts-accordion.active .accordion-content {
  max-height: 500px; /* arbitrary height to slide down */
}

.accordion-inner {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.black-belt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

.black-belt-name {
  color: var(--text-primary);
  font-weight: 500;
}

.black-belt-grade {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   LOCATIONS (DOVE SIAMO)
   ========================================================================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 35px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.location-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.location-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(211, 47, 47, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.location-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.location-card .address {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.location-card p {
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.location-map-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}

.location-map-btn:hover {
  color: var(--text-primary);
}

.location-photo-btn {
  color: var(--primary);
  margin-top: 8px;
}

.location-photo-btn:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   SEGRETERIA & DOWNLOAD HUB
   ========================================================================== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.download-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.download-category h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.download-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.download-icon {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 2px;
}

.download-details {
  flex-grow: 1;
}

.download-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.download-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.download-action {
  color: var(--text-muted);
  font-size: 0.9rem;
  align-self: center;
  transition: var(--transition-fast);
}

.download-item:hover .download-action {
  color: var(--primary);
  transform: translateY(2px);
}

/* Bank info box */
.bank-info-box {
  max-width: 700px;
  margin: 50px auto 0 auto;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(var(--bg-dark-rgb), 0.8) 100%);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.bank-info-icon {
  font-size: 2.2rem;
  color: var(--gold);
}

.bank-info-text h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.bank-info-text p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   CONTACTS SECTION
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-info-col h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-info-col > p {
  font-size: 1rem;
  margin-bottom: 35px;
}

.info-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.info-link-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.info-link-item:hover .info-link-icon {
  background: var(--primary);
  color: var(--text-primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.info-link-content h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.info-link-content p, .info-link-content a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.social-icon:hover {
  background: #3b5998; /* Facebook color as default, or replace */
  color: var(--text-primary);
  border-color: #3b5998;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form-card > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1);
}

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

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox-label input {
  margin-top: 3px;
}

.form-checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.form-btn {
  width: 100%;
  margin-top: 8px;
}

/* Form success message */
.form-status {
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.3);
  color: #81c784;
}
.form-status.error {
  display: block;
  background: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.3);
  color: #e57373;
}

/* Comment button */
.comment-btn {
  width: 100%;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
}

/* ==========================================================================
   ORARI DRAWER (SCHEDULE)
   ========================================================================== */
.orari-content {
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 20px;
}

.orari-disciplina {
  margin-bottom: 32px;
}

.orari-disciplina-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.orari-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.karate-badge {
  background: var(--primary);
}

.taiji-badge {
  background: #2e7d32;
}

.iaido-badge {
  background: #1565c0;
}

.orari-sede {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.orari-sede-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.orari-giorno {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
}

.orari-giorno + .orari-giorno {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.orari-giorno-label {
  font-weight: 600;
  color: var(--text-primary);
}

.orari-orario {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.orari-livello {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 480px) {
  .orari-giorno {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0;
  }
  .orari-livello {
    text-align: left;
  }
}

/* ==========================================================================
   COMMENT MODAL
   ========================================================================== */
.comment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.comment-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.comment-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.comment-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.comment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.comment-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.comment-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  padding-right: 30px;
}

.comment-status {
  padding: 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

.comment-status.success {
  display: block;
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.3);
  color: #81c784;
}

.comment-status.error {
  display: block;
  background: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.3);
  color: #e57373;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 40px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-details {
  line-height: 1.6;
}

/* ==========================================================================
   IAIDO GALLERY (CAROUSEL)
   ========================================================================== */
.iaido-gallery,
.karate-gallery,
.taiji-gallery {
  margin-top: 10px;
}

.gallery-viewport {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-viewport img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.gallery-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  line-height: 1;
}

.gallery-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(211, 47, 47, 0.1);
}

.gallery-counter {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 70px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gallery-fs {
  margin-left: 8px;
}

.gallery-fs svg {
  display: block;
}

/* ==========================================================================
   FULLSCREEN OVERLAY
   ========================================================================== */
.gallery-fs-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.gallery-fs-overlay.active {
  display: flex;
}

.gallery-fs-overlay img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  display: block;
}

.gallery-fs-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.8rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
  line-height: 1;
  padding: 4px;
}

.gallery-fs-close:hover {
  color: #fff;
}

.gallery-fs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 3rem;
  width: 56px;
  height: 80px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  padding: 0;
}

.gallery-fs-nav:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.gallery-fs-prev {
  left: 16px;
}

.gallery-fs-next {
  right: 16px;
}

.gallery-fs-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 10;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .disciplines-grid,
  .eventi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.15rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  /* Navigation mobile styling */
  .menu-trigger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    flex-direction: column;
    gap: 0;
    transition: var(--transition-smooth);
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active .nav-links {
    left: 0;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 16px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .nav-cta-wrapper {
    display: none; /* or move to inside mobile nav */
  }
  
  .navbar .container {
    justify-content: space-between;
  }
  
  .disciplines-grid,
  .eventi-grid {
    grid-template-columns: 1fr;
  }
  
  .teachers-grid {
    grid-template-columns: 1fr;
  }
  
  .accordion-inner {
    grid-template-columns: 1fr;
  }
  
  .locations-grid {
    grid-template-columns: 1fr;
  }
  
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .welcome-text div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .drawer {
    max-width: 100%;
    padding: 30px 20px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
  }

  .card-img-wrapper {
    height: 180px;
  }

  .card-content {
    padding: 20px;
  }

  .card-content h3 {
    font-size: 1.3rem;
  }

  .location-card {
    padding: 24px;
  }

  .download-category {
    padding: 24px;
  }

  .contact-form-card {
    padding: 24px;
  }

  .teacher-card {
    padding: 24px 16px;
  }

  .teacher-avatar-container {
    width: 90px;
    height: 90px;
  }

  .philosophy-card {
    padding: 24px;
  }

  .bank-info-box {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .welcome-text div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .container {
    padding: 0 16px;
  }

  .drawer-tabs-nav li {
    font-size: 0.8rem;
    padding: 10px 4px;
  }
}
