/* ============================================================
   ENGORILE SKATEBOARDING — Dark theme override per /iscrizioni/
   Carica questo file DOPO il blocco <style> esistente in ogni pagina PHP
   <link rel="stylesheet" href="engorile-dark.css">

   Rev. 2026-09: grigio scuro invece di nero pieno, contrasto testo
   secondario alzato per maggiore leggibilità (richiesta utente).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@400;600&display=swap');

/* ─── TOKEN OVERRIDE ─── */
:root {
  --color-primary-green: #85BE57;
  --color-dark-text:     #F2F0EA;
  --color-light-bg:      #2B2B2B;
  --color-white:         #242424;
  --color-medium-grey:   #9E9E9E;
  --color-dark-bg:       #1A1A1A;
  --color-border-grey:   #3A3A3A;
  --color-alert-warning: #85BE57;
  --font-heading: 'Anton', Impact, 'Arial Black', sans-serif;
  --font-body:    'Barlow Condensed', 'Roboto', sans-serif;
}

/* ─── BODY & LAYOUT ─── */
body {
  background-color: #1A1A1A !important;
  background-image: none !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  color: #F2F0EA !important;
  align-items: flex-start !important;
  padding: 0 !important;
  min-height: 100vh;
}

/* ─── CONTAINER ─── */
.container {
  background: #242424 !important;
  border-radius: 0 !important;
  border: none !important;
  border-top: 3px solid #85BE57 !important;
  box-shadow: none !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 3rem 2.5rem 4rem !important;
  min-height: 100vh;
}

/* ─── HEADER ─── */
.header {
  border-bottom: 1px solid #3A3A3A !important;
  padding-bottom: 2rem !important;
  margin-bottom: 2.5rem !important;
}

.header a {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #9E9E9E !important;
  text-decoration: none !important;
  /* display:flex (non inline-flex) forza il link sulla propria riga, sotto
     non affianco al logo; width:fit-content + margin auto lo ricentra
     (prima "inline-flex" lo teneva sulla stessa riga dell'immagine, e il
     text-align:center dell'header centrava l'accoppiata dei due invece
     che ciascuno singolarmente, sbilanciando entrambi) */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto 1.5rem;
  transition: color 0.2s;
}
.header a:hover { color: #85BE57 !important; }

.logo-img {
  max-width: 160px !important;
  margin: 0.75rem auto 1.25rem !important;
  /* Il logo ha sfondo bianco pieno (nessuna trasparenza): NON invertire i colori
     con un filtro, altrimenti l'intero riquadro diventa un blocco bianco uniforme
     e il disegno del logo sparisce. Va mostrato così com'è. */
}

.header h1 {
  font-family: 'Anton', sans-serif !important;
  font-size: clamp(2rem, 6vw, 3.2rem) !important;
  color: #FFFFFF !important;
  letter-spacing: 0.04em !important;
  text-shadow: none !important;
  line-height: 1 !important;
  margin: 0.5rem 0 1rem !important;
}

.stagione {
  background: transparent !important;
  border: 1.5px solid #85BE57 !important;
  color: #85BE57 !important;
  border-radius: 0 !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.2em !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.2rem !important;
  box-shadow: none !important;
}

/* ─── INTRO ─── */
.intro {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1.05rem !important;
  color: #9E9E9E !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 2.5rem !important;
}

/* ─── SCELTA BOX ─── */
.scelta-box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 2.5rem !important;
}

.scelta-box h2 {
  font-family: 'Anton', sans-serif !important;
  font-size: 1.6rem !important;
  color: #9E9E9E !important;
  border-bottom: 1px solid #3A3A3A !important;
  letter-spacing: 0.15em !important;
  text-shadow: none !important;
  padding-bottom: 1rem !important;
  margin-bottom: 1.5rem !important;
}

/* ─── BOTTONI SCELTA ─── */
.bottoni { gap: 3px !important; }

.btn-scelta {
  background: #2B2B2B !important;
  border: none !important;
  border-top: 3px solid #3A3A3A !important;
  border-radius: 0 !important;
  padding: 2rem 1.5rem !important;
  box-shadow: none !important;
  transition: border-color 0.25s, transform 0.25s !important;
  text-decoration: none !important;
  align-items: flex-start !important;
}

.btn-scelta:hover {
  border-color: #85BE57 !important;
  background: #2B2B2B !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 32px rgba(133,190,87,0.15) !important;
}

.btn-scelta .icona {
  font-size: 2rem !important;
  margin-bottom: 1rem !important;
  color: #85BE57 !important;
}

.btn-scelta .titolo {
  font-family: 'Anton', sans-serif !important;
  font-size: 1.4rem !important;
  color: #FFFFFF !important;
  letter-spacing: 0.04em !important;
  text-shadow: none !important;
  margin-bottom: 0.5rem !important;
}

.btn-scelta .prezzo {
  font-family: 'Anton', sans-serif !important;
  font-size: 2.4rem !important;
  color: #85BE57 !important;
  text-shadow: none !important;
  margin-bottom: 0.75rem !important;
  line-height: 1 !important;
}

.btn-scelta .descrizione {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.85rem !important;
  color: #9E9E9E !important;
  letter-spacing: 0.05em !important;
  line-height: 1.5 !important;
}

/* ─── INFO BOX ─── */
.info-box {
  background: #2B2B2B !important;
  border: none !important;
  border-left: 3px solid #85BE57 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.5rem 2rem !important;
  margin-top: 2rem !important;
}

.info-box h3 {
  font-family: 'Anton', sans-serif !important;
  font-size: 1rem !important;
  color: #85BE57 !important;
  letter-spacing: 0.15em !important;
  margin-bottom: 1rem !important;
}

.info-box ul {
  color: #9E9E9E !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.04em !important;
  line-height: 2 !important;
}

.info-box ul strong {
  color: #F2F0EA !important;
  font-weight: 700 !important;
}

/* ─── FOOTER ─── */
.footer {
  background: transparent !important;
  border-top: 1px solid #3A3A3A !important;
  margin-top: 3rem !important;
  padding-top: 2rem !important;
  padding-bottom: 0 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  color: #9A9A9A !important;
}

.footer p { color: #9A9A9A !important; margin-bottom: 0.3rem !important; }
.footer a { color: #85BE57 !important; text-decoration: none !important; }
.footer a:hover { text-decoration: underline !important; }

/* ─── FORM ELEMENTS (acquista-tessera / acquista-corso) ─── */
label {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #9E9E9E !important;
  display: block !important;
  margin-bottom: 0.4rem !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  background: #2B2B2B !important;
  border: 1px solid #3A3A3A !important;
  border-radius: 0 !important;
  color: #F2F0EA !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1rem !important;
  padding: 0.75rem 1rem !important;
  width: 100% !important;
  transition: border-color 0.2s !important;
}

input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: #85BE57 !important;
  background: #2B2B2B !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #85BE57 !important;
  width: 1.1rem !important;
  height: 1.1rem !important;
}

/* Submit / CTA buttons */
input[type="submit"],
button[type="submit"],
.btn-submit,
.btn-primary,
button.btn {
  background: #85BE57 !important;
  color: #1A1A1A !important;
  border: none !important;
  border-radius: 0 !important;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%) !important;
  font-family: 'Anton', sans-serif !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 1rem 2.5rem !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.2s !important;
  width: auto !important;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.btn-submit:hover {
  background: #A8D97A !important;
  transform: translateY(-2px) !important;
}

/* Riepilogo / totale */
.riepilogo,
.totale,
.price-box,
.resoconto {
  background: #2B2B2B !important;
  border-left: 3px solid #85BE57 !important;
  border-radius: 0 !important;
  color: #F2F0EA !important;
}

/* Alert / errori */
.alert-danger, .error {
  background: rgba(220,53,69,0.15) !important;
  border-color: #dc3545 !important;
  color: #ff8891 !important;
  border-radius: 0 !important;
}

.alert-success, .success {
  background: rgba(133,190,87,0.15) !important;
  border-color: #85BE57 !important;
  color: #A8D97A !important;
  border-radius: 0 !important;
}

/* Sezione tutore / minorenni */
.sezione-tutore,
#sezione-tutore {
  background: #2B2B2B !important;
  border-left: 3px solid #85BE57 !important;
  border-radius: 0 !important;
}

/* Opzioni corso radio */
.opzione-corso,
.scelta-corso {
  background: #2B2B2B !important;
  border: 1px solid #3A3A3A !important;
  border-radius: 0 !important;
  transition: border-color 0.2s !important;
}
.opzione-corso:hover,
.scelta-corso:hover,
.opzione-corso.selected,
.scelta-corso.selected {
  border-color: #85BE57 !important;
  background: #2B2B2B !important;
}

/* Headings nelle pagine form */
h1, h2, h3, h4 {
  font-family: 'Anton', sans-serif !important;
  text-shadow: none !important;
}
h1 { color: #FFFFFF !important; }
h2 { color: #F2F0EA !important; }
h3 { color: #85BE57 !important; }
