/* ---------------------------------
   FONT IMPORTS
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');
@font-face {
  font-family: 'Dark College';
  font-style: normal;
  font-weight: normal;
  src: url('./fonts/Dark College.otf') format('opentype');
}

/* ---------------------------------
   COLOR VARIABLES & RESET
----------------------------------- */
:root {
  --accent: #DC2B1B;    /* Burnt orange/red */
  --accent-dark: #a4261a;
  --black: #000;
  --white: #fff;
  --border: #e2e8f0;
  --input: #cbd5e1;
  --muted: #475569;
  --alt: #f8fafc;
}

/* ---------------------------------
   BASE TYPOGRAPHY
----------------------------------- */
html, body {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Dark College', serif;
  font-style: normal;
  margin: 0;
}
h1 { font-size: 50px; }
h2 {
  font-family: 'Dark College', serif;
  font-weight: normal;
  font-size: 30px;
  text-transform: uppercase;
  margin: 0 auto 15px auto;
  display: table;
}
h2 strong { color: var(--accent); }

/* Custom HR styling for after h2 elements */
.h2-divider {
  width: 380px;
  height: 10px !important;
  border-top: solid 3px #DC2B1B;
  background-color: #000;
  opacity: 1;
  margin: 0 auto 20px auto;
  border-bottom: none;
  border-left: none;
  border-right: none;
}
h3 { font-size: 30px; }
h4 { font-size: 30px; color: var(--accent); }
.small { font-size: 14px; color: var(--muted); }

hr {
  width: 380px;
  height: 10px !important;
  border-top: solid 3px var(--accent);
  background-color: var(--black);
  opacity: 1;
  margin: 0 auto 20px auto;
}

/* ---------------------------------
   BUTTONS
----------------------------------- */
button {
  font-family: 'Dark College', serif;
}

.btn {
  border-radius: 0;
  border-top: solid 8px var(--accent);
  font-family: 'Dark College', serif;
  font-size: 24px;
  background: var(--black);
  color: var(--white);
  padding: 12px 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  outline: none;
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-width: 0 0 0 0;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---------------------------------
   CONTAINER & SECTIONS
----------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section.alt { background: var(--alt); }

/* ---------------------------------
   NAVBAR
----------------------------------- */
.nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 8px solid var(--accent);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav a { margin: 0 10px; color: var(--black); }
.nav .brand { font-weight: 800; letter-spacing: .3px; font-size: 24px; }
.nav .cta { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; }
.burger { display: none; background: transparent; border: 0; font-size: 22px; }

/* ---------------------------------
   HERO SECTION
----------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 80px 0;
}
.cta-row { margin-top: 18px; display: flex; gap: 12px; justify-content: center; }

/* ---------------------------------
   STATS & CARDS
----------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; }
.stat-num { font-size: 40px; font-weight: 800; }
.stat-sub { color: var(--muted); font-family: 'Oswald', sans-serif; }

/* ---------------------------------
   TWO COLUMN & PRICING
----------------------------------- */
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.pricecard {
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--accent-dark);
}
.pricecard ul { list-style: none; margin: 0; padding: 0; }
.pricecard li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,.15);
}
.pricecard li:last-child { border-bottom: 0; }
.checklist { padding-left: 18px; }
.checklist li { margin: 6px 0; }

.route-actions { display: flex; gap: 10px; margin-top: 10px; }

/* ---------------------------------
   SCHEDULE
----------------------------------- */
.schedule { display: grid; gap: 10px; }
.schedule .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

/* ---------------------------------
   ACCORDION / REGOLAMENTO
----------------------------------- */
.accordion button, .accordion summary {
  font-family: 'Dark College', serif;
  font-size: 20px;
  display: block;
  border: none;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
  border-bottom: 3px solid #DC2B1B;
  background-color: #000;
  padding-bottom: 8px;
  transition: color 0.15s;
}

.accordion summary:hover {
  color: var(--accent);
}

.accordion details {
  border: none;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
}


/* ---------------------------------
   MAP
----------------------------------- */
.map-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}
.map-embed iframe { width: 100%; height: 420px; border: 0; }

/* ---------------------------------
   SPONSORS
----------------------------------- */
.sponsors { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: center; }
.sponsors a {
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex: 0 0 auto;
}
.sponsors a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.sponsors img {
  width: 220px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
}

/* ---------------------------------
   TRAIL MAP
----------------------------------- */
.map-container {
  margin: 20px 0;
}

#trail-map {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.route-info {
  text-align: center;
  margin-bottom: 30px;
}

.route-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

/* Map controls styling */
.map-controls {
  margin-bottom: 10px;
  text-align: center;
}

.map-controls .btn {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border);
  margin: 0 5px;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.map-controls .btn:hover,
.map-controls .btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

#elevation-info {
  background: var(--alt);
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px solid var(--border);
}

/* ---------------------------------
   GALLERY
----------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
}

/* ---------------------------------
   FORMS
----------------------------------- */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea {
  padding: 10px;
  border: 1px solid var(--input);
  border-radius: 12px;
  font: inherit;
  font-size: 18px;
  background: var(--white);
}
.form button {
  justify-self: start;
  border-radius: 0;
  border-top: solid 8px var(--accent);
  font-family: 'Dark College', serif;
  font-size: 24px;
  background: var(--black);
  color: var(--white);
  padding: 12px 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
  cursor: pointer;
}

/* ---------------------------------
   FOOTER
----------------------------------- */
.footer {
  padding: 28px 0;
  border-top: 8px solid var(--black);
  background: var(--accent);
  color: var(--white);
  text-align: center;
  font-size: 1rem;
}
.footer-inner { display: block; }

/* ---------------------------------
   NOTICE / ALERT
----------------------------------- */
.notice {
  background: var(--white);
  border: 1px dashed var(--input);
  border-radius: 16px;
  padding: 17px;
}

/* ---------------------------------
   RESPONSIVE QUERIES
----------------------------------- */
@media (max-width: 960px) {
  h1, .h1 { font-size: 40px; }
  h2, .h2 { font-size: 30px; }
  hr { width: 300px; }
  .two-col { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .sponsors img { width: 200px; }
  .nav nav { display: none; }
  .burger { display: block; }
  .accordion button { font-size: 17px; }
  
  /* Mobile button styling */
  .btn {
    font-size: 18px;
    padding: 10px 24px;
    border-top-width: 6px;
  }
  
  /* Mobile hero styling */
  .hero {
    min-height: 50vh !important;
    height: auto !important;
  }
  .hero-inner {
    padding: 60px 0;
  }
}
@media (max-width: 560px) {
  h1 { font-size: 36px; }
  .gallery { grid-template-columns: 1fr; }
  .sponsors { 
    flex-direction: column; 
    gap: 20px; 
  }
  .sponsors img { 
    width: 240px; 
  }
  
  /* Smaller mobile button styling */
  .btn {
    font-size: 16px;
    padding: 8px 20px;
    border-top-width: 4px;
  }
  
  /* Stack buttons vertically on small screens */
  .cta-row {
    flex-direction: column;
    align-items: center;
  }
  
  /* Smaller mobile hero styling */
  .hero {
    min-height: 40vh !important;
    height: auto !important;
  }
  .hero-inner {
    padding: 40px 0;
  }
}