/* ==========================================================================
   ELENA MACARIO CRUSSI - SITO PERSONALE
   Style inspirato da Accademia Bushido
   ========================================================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-display: Georgia, serif;

  /* Dark Theme (Default) */
  --bg-primary: #0d0f14;
  --bg-secondary: #12141c;
  --bg-alt: #161922;
  --bg-card: #1a1d27;
  --bg-glass: rgba(18, 20, 28, 0.85);
  --bg-glass-strong: rgba(18, 20, 28, 0.95);

  --text-primary: #e8e6e3;
  --text-secondary: #b0aca5;
  --text-muted: #706c66;

  --primary: #4a7c8a;
  --primary-hover: #5a939f;
  --gold: #c9a84c;
  --gold-hover: #d4b85e;

  --border-color: rgba(201, 168, 76, 0.15);
  --border-hover: rgba(201, 168, 76, 0.35);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

[data-theme="light"] {
  --bg-primary: #f5f3f0;
  --bg-secondary: #eae7e3;
  --bg-alt: #e2dfd9;
  --bg-card: #ffffff;
  --bg-glass: rgba(245, 243, 240, 0.85);
  --bg-glass-strong: rgba(245, 243, 240, 0.95);

  --text-primary: #1a1d27;
  --text-secondary: #4a4a4a;
  --text-muted: #777;

  --primary: #3a6a78;
  --primary-hover: #2a5a68;
  --gold: #a8861c;
  --gold-hover: #b8962c;

  --border-color: rgba(58, 106, 120, 0.15);
  --border-hover: rgba(58, 106, 120, 0.35);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--gold-hover); }

img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- UTILITY ---------- */
.text-gold { color: var(--gold); }
.text-uppercase { text-transform: uppercase; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #d4a843);
  color: #0d0f14;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
  color: #0d0f14;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: all 0.3s ease;
}
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}
.nav-cta {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), #d4a843);
  color: #0d0f14;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
  color: #0d0f14;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.theme-icon-moon { display: block; }
.theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: block; }

/* Mobile Menu */
.menu-trigger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.menu-trigger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.menu-trigger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-trigger.active span:nth-child(2) { opacity: 0; }
.menu-trigger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(74, 124, 138, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-photo {
  width: 240px;
  height: 240px;
  object-fit: cover;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.3));
  border-radius: 50%;
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- SECTIONS ---------- */
.section-padding {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- WELCOME / CHI SONO GRID ---------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.welcome-text p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  text-align: justify;
}
.welcome-text li {
  text-align: justify;
}
.philosophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.philosophy-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.philosophy-card p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  text-align: justify;
}

/* ---------- DISCIPLINES / CARDS GRID ---------- */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.discipline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: var(--shadow-sm);
}
.discipline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.card-img-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg-secondary));
}
.card-icon-placeholder {
  font-size: 3.5rem;
  z-index: 2;
  position: relative;
}
.card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-card));
}
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(201, 168, 76, 0.5);
  z-index: 2;
}
.card-content {
  padding: 20px;
}
.card-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.card-subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}
.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}
.card-teacher {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  transition: all 0.25s ease;
}
.card-link:hover {
  gap: 10px;
  color: var(--gold-hover);
}

/* ---------- DOWNLOADS / LISTS ---------- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.download-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.download-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.download-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  cursor: default;
}
a.download-item:hover {
  background: rgba(201, 168, 76, 0.05);
  cursor: pointer;
}
.download-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.08);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
}
.download-details {
  flex: 1;
  min-width: 0;
}
.download-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.download-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.download-action {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ---------- BANK INFO ---------- */
.bank-info-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.bank-info-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}
.bank-info-text h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.bank-info-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ---------- FORM ---------- */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23706c66' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-submit {
  text-align: center;
  margin-top: 24px;
}
.form-success {
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

/* ---------- LOCATIONS / CONTATTI ---------- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.location-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.location-icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  margin-bottom: 16px;
}
.location-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.address {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.location-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.location-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  transition: all 0.25s ease;
}
.location-map-btn:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.footer-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-photo {
    width: 260px;
    max-height: 220px;
    border-radius: 50%;
  }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    padding: 80px 30px 30px;
    transition: right 0.35s ease;
    z-index: 999;
    border-left: 1px solid var(--border-color);
  }
  .nav-menu.active { right: 0; }
  .nav-links {
    flex-direction: column;
    gap: 4px;
  }
  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }
  .nav-cta { display: none; }
  .menu-trigger { display: flex; }
  .theme-toggle { display: flex; }

  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }

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

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

  .bank-info-box { flex-direction: column; }

  .section-padding { padding: 50px 0; }
  .section-header h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .disciplines-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
}
