/* Equalization Academy - stile comune delle pagine pubbliche (3.0.6)
   Stessi caratteri, dimensioni, colori e spaziature su tutte le pagine. */

.eh { width: min(92%, 1680px); margin: 0 auto; padding: 24px 0 48px; min-height: calc(100vh - 250px); color: #e9ecef; font-size: clamp(1rem, .92rem + .25vw, 1.25rem); line-height: 1.7; }
.eh p { margin: 0 0 1em; }
.eh a { color: #8fd3dd; }
.eh a:hover { color: #fff; }
.eh a.btn, .eh a.btn:hover { color: #212529; }
.eh h1, .eh h2, .eh h3 { font-family: inherit; }

/* Pagina: il corpo si allunga con il contenuto, cosi' la barra del menu resta sempre in alto */
html { height: auto !important; }
body.bg-img { height: auto !important; min-height: 100vh; overflow-x: hidden; }
nav.navbar { position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
nav.navbar .navbar-brand img { max-width: min(60vw, 340px); height: auto; }
.eh img, .eh iframe { max-width: 100%; }

/* Titolo di pagina */
.eh-page-title { text-align: center; margin: 12px 0 30px; }
.eh-page-title h1 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.8rem); font-weight: 700; color: #fff; margin: 0 0 6px; letter-spacing: .01em; }
.eh-page-title p { color: #c3cad4; font-size: 1.15rem; margin: 0; }

/* Logo e immagini grandi */
.eh img.eh-logo { display: block; width: 100%; max-width: 800px; margin: 16px auto 28px; }
.eh-hero { display: block; width: 100%; max-width: clamp(300px, 62vw, 1150px); margin: 0 auto 28px; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.eh-img { display: block; width: 100%; max-width: clamp(300px, 62vw, 1150px); margin: 0 auto 28px; border-radius: 12px; }

/* Introduzione centrata */
.eh-intro { max-width: min(100%, 1300px); margin: 0 auto 36px; text-align: center; }
.eh-intro p { text-wrap: pretty; }
.eh-intro .lead-line { font-size: 1.5rem; font-weight: 600; color: #fff; line-height: 1.35; margin-bottom: .6em; }

/* Riquadri */
.eh-section { background: rgba(20, 22, 26, .62); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 28px 30px; margin: 0 0 28px; }
.eh h2 { font-size: clamp(1.4rem, 1.1rem + .8vw, 2.1rem); font-weight: 700; color: #fff; margin: 0 0 18px; letter-spacing: .01em; }
.eh h3 { font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0 0 6px; }
.eh-tag { display: inline-block; font-size: .82rem; font-weight: 600; color: #8fd3dd; background: rgba(0,168,181,.15); border-radius: 999px; padding: 2px 10px; margin: 0 0 10px; }
.eh-tag.free { color: #9be7b4; background: rgba(39,174,96,.18); }
.eh-list { margin: 0 0 1em; padding-left: 1.2em; }
.eh-list li { margin: 0 0 .35em; }

/* Griglie di schede */
.eh-banners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 44px; }
.eh-banners img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.eh-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.eh-topic { background: rgba(255,255,255,.05); border-radius: 10px; padding: 16px 18px; }
.eh-topic ul { margin: 8px 0 0; padding-left: 1.1em; }
.eh-topic li { margin: 2px 0; }

/* Righe separate da una linea (tecniche, abilita' a secco, video) */
.eh-tech, .eh-skill, .eh-row { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.eh-tech:first-of-type, .eh-skill:first-of-type, .eh-row:first-of-type { border-top: 0; padding-top: 4px; }
.eh-steps { margin: 0; padding-left: 1.2em; }
.eh-steps li { margin: 0 0 .5em; }
.eh-skill { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; }
.eh-skill .pics { display: flex; gap: 10px; justify-content: center; }
.eh-skill .pics img { max-width: 100%; max-height: 170px; border-radius: 10px; background: #fff; padding: 6px; }
.eh-skill .pics.two img { max-width: 48%; }

/* Persone (Andrea, staff, istruttori) */
.eh-person { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.eh-person + .eh-person { margin-top: 0; }
.eh-person .photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.eh-person .role { color: #8fd3dd; font-weight: 600; margin: 0 0 12px; }
.eh-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1300px; margin: 0 auto 28px; }
.eh-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.eh-timeline { list-style: none; margin: 0; padding: 0; }
.eh-timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.eh-timeline li:first-child { border-top: 0; }
.eh-timeline .when { color: #8fd3dd; font-weight: 600; }
.eh-highlight { text-align: center; font-size: 1.3rem; font-weight: 600; color: #fff; margin: 8px 0 20px; }
.eh-highlight span { display: block; color: #8fd3dd; font-size: 1.6rem; }
.eh-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.eh-langs span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border-radius: 999px; padding: 4px 12px; }
.eh-langs img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }

/* Video */
.eh-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.eh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.eh-videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.eh-videos h3 { margin-top: 12px; }
.eh-videos p { color: #c3cad4; margin: 0; }

/* Corsi */
.eh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 0 0 18px; }
.eh-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.eh-card h3 { font-size: 1.35rem; }
.eh-card .what { font-size: 1.15rem; font-weight: 600; color: #8fd3dd; margin: 0 0 8px; }
.eh-card .meta { color: #c3cad4; margin: 0 0 6px; }
.eh-card .meta b { color: #fff; font-weight: 600; }
.eh-card .bottom { margin-top: auto; padding-top: 10px; }
.eh-card details { margin-top: 10px; }
.eh-card summary { cursor: pointer; color: #8fd3dd; font-weight: 600; }
.eh-card summary:hover { color: #fff; }
.eh-card details ol { margin: 10px 0 0; padding-left: 1.2em; font-size: .97rem; }
.eh-card details ol ul { padding-left: 1.1em; margin: 2px 0 8px; color: #c3cad4; }

/* Pulsante principale e note */
.eh-cta { text-align: center; margin: 26px 0 8px; }
.eh-cta .btn { font-weight: 600; padding: 10px 26px; }
.eh-note { text-align: center; color: #c3cad4; margin: 8px 0 0; }

/* Moduli (contatti, richiesta info) */
.eh-form { max-width: 640px; margin: 0 auto; }
.eh-form label { display: block; font-weight: 600; color: #fff; margin: 0 0 4px; }
.eh-form .form-control { background: rgba(255,255,255,.95); border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.eh-form textarea.form-control { min-height: 220px; }
.eh-alert { border-radius: 10px; padding: 12px 16px; margin: 0 auto 20px; max-width: 640px; }
.eh-alert.ok { background: rgba(39,174,96,.2); color: #b9f1cc; }
.eh-alert.err { background: rgba(235,87,87,.2); color: #ffc9c9; }

/* Workshop */
.eh-ws { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.eh-ws img { width: 100%; border-radius: 10px; }
.eh-ws dl { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; margin: 10px 0 16px; }
.eh-ws dt { color: #c3cad4; font-weight: 400; }
.eh-ws dd { margin: 0; color: #fff; }

@media (max-width: 768px) {
  .eh { width: auto; padding: 18px 14px 40px; }
  .eh img.eh-logo { max-width: 86vw; }
  .eh-hero, .eh-img { max-width: 100%; }
  .eh-page-title h1 { font-size: 1.8rem; }
  .eh-banners { grid-template-columns: repeat(2, 1fr); }
  .eh-section { padding: 20px 18px; }
  .eh h2 { font-size: 1.5rem; }
  .eh-intro .lead-line { font-size: 1.25rem; }
  .eh-skill, .eh-person, .eh-ws, .eh-videos { grid-template-columns: 1fr; }
  .eh-person .photo { max-width: 240px; margin: 0 auto; display: block; }
  .eh-timeline li { grid-template-columns: 1fr; gap: 0; }
  .eh-ws dl { grid-template-columns: 1fr; }
}
.eh-initials { display: flex; align-items: center; justify-content: center; font-size: 4rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #00a8b5, #2f80ed); }

/* 3.0.7: workshop passati */
.eh-sec-title { font-size: clamp(1.3rem, 1.05rem + .7vw, 1.8rem); font-weight: 700; color: #fff; margin: 8px 0 16px; }
.eh-past { list-style: none; margin: 0; padding: 0; }
.eh-past li { display: grid; grid-template-columns: 260px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.eh-past li:first-child { border-top: 0; }
.eh-past .when { color: #8fd3dd; font-weight: 600; }
@media (max-width: 768px) { .eh-past li { grid-template-columns: 1fr; gap: 2px; } }

/* 3.0.7: tabella "Equalization on Freediving" (prima immagine) */
.eh-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); }
.eh-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .95em; line-height: 1.35; background: rgba(12,14,18,.55); }
.eh-table th, .eh-table td { border: 1px solid rgba(255,255,255,.22); padding: 12px 10px; text-align: center; vertical-align: middle; color: #f1f3f5; }
.eh-table thead th { font-weight: 700; color: #fff; background: rgba(255,255,255,.06); }
.eh-table tbody th { font-weight: 700; color: #fff; text-align: center; min-width: 170px; }
.eh-table tbody th, .eh-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #24272d; }
.eh-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.03); }
@media (max-width: 768px) { .eh-table { font-size: .85em; } .eh-table tbody th { min-width: 130px; } }
