/* Base CSS Variables and Styles */
:root { --navy-950: #041b35; --navy-900: #082b55; --orange-500: #ff6b2c; --orange-400: #ff844d; --blue-600: #1769c2; --text-main: #0b1f38; }
body { font-family: Inter, system-ui, sans-serif; color: var(--text-main); padding-top: 110px; }
.bg-navy { background-color: var(--navy-900); }
.bg-navy-dark { background-color: var(--navy-950); }
.btn-navy:hover { background-color: var(--orange-500) !important; color: white !important; transform: translateY(-2px); transition: 0.2s; }
.text-navy { color: var(--navy-900); }
.text-orange { color: var(--orange-500); }
.text-blue { color: var(--blue-600); }
.bg-soft { background-color: #f8fbfe; }
.legal-content { line-height: 1.75; }
.legal-content h2 { margin: 2rem 0 1rem; color: var(--navy-900); font-size: 1.5rem; font-weight: 700; }
.legal-content li { margin-bottom: .75rem; }
.legal-content a { overflow-wrap: anywhere; }
.btn-orange { background: linear-gradient(135deg, var(--orange-500), var(--orange-400)); color: white; border: none; font-weight: 700; }
.btn-orange:hover { background: var(--orange-400); color: white; transform: translateY(-2px); transition: 0.2s; box-shadow: 0 10px 24px rgba(255, 107, 44, 0.24); }
.btn-outline-light:hover, .card-hover:hover { transform: translateY(-4px); transition: 0.3s; }
.card-hover { transition: 0.3s; box-shadow: 0 10px 30px rgba(5, 35, 68, 0.08); border-color: #e4edf5; }
.eyebrow { font-size: 12px; letter-spacing: 0.2em; font-weight: 900; text-transform: uppercase; color: #385a7e; display: flex; align-items: center; }
.eyebrow::before { content: ""; display: inline-block; width: 34px; height: 2px; background: var(--orange-500); margin-right: 10px; }
.eyebrow-light { color: #d6e9ff; }
.hero-section { background: url('../images/hero.webp') center/cover no-repeat; min-height: 85vh; position: relative; }
.page-hero { background: url('../images/hero.webp') center/cover no-repeat; min-height: 480px; position: relative; display: flex; align-items: center; padding-top: 125px; }
.hero-overlay { background: linear-gradient(90deg, rgba(3, 23, 47, 0.88) 0%, rgba(3, 23, 47, 0.67) 34%, rgba(3, 23, 47, 0.06) 100%); position: absolute; inset: 0; }
.page-hero-overlay { background: linear-gradient(90deg, rgba(3, 23, 47, 0.92), rgba(3, 23, 47, 0.55), rgba(3, 23, 47, 0.22)); position: absolute; inset: 0; }
.territory-band { background: url('../images/paesaggio.png') center/cover no-repeat; position: relative; min-height: 520px; }
.territory-overlay { background: linear-gradient(90deg, rgba(4, 28, 54, 0.91), rgba(4, 28, 54, 0.15)); position: absolute; inset: 0; }
.promotions-panel { background: linear-gradient(135deg, #fff0e3, #fff9f4); border-radius: 2rem; overflow: hidden; }
.promotions-content { padding: clamp(24px, 4vw, 48px); }
.announcement-bar { font-size: 13px; z-index: 1040; position: fixed; top: 0; width: 100%; }
.announcement-socials { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.announcement-social-link { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 20px; border-radius: 4px; }
.announcement-social-link img { display: block; width: 18px; height: 18px; }
.announcement-social-link:hover { background: rgba(255,255,255,.18); }
.announcement-social-link:focus-visible { outline: 2px solid #6ed7ff; outline-offset: 2px; }
@media (max-width: 359px) {
    .announcement-bar { font-size: 11px; }
    .announcement-socials { gap: 4px; }
    .announcement-social-link { width: 20px; }
}
.custom-navbar { top: 34px; background: rgba(5, 35, 68, 0.95); backdrop-filter: blur(10px); }
.hp-field { position: absolute; left: -9999px; }

/* Custom CSS */
.no-link-style {
    text-decoration: none;
    color: inherit;
}

.team-photo-frame { padding: 0; border: 1px solid #7db7ea; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 28px rgba(8,43,85,.16); }
.team-photo-frame img { display: block; width: 100%; height: auto; }

/* Catalogo corsi */
.courses-hero { min-height: 390px; padding: 65px 0; }
.courses-hero-accent { color: #8dccff; }
.courses-hero-description { max-width: 680px; }
.courses-season { display: inline-block; padding: 8px 16px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.course-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.course-filters[hidden], .course-card[hidden] { display: none; }
.course-filter { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid #dce5ef; border-radius: 999px; background: white; color: var(--navy-900); font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.course-filter span { display: inline-grid; place-items: center; min-width: 23px; height: 23px; border-radius: 50%; background: #edf3fa; font-size: 12px; }
.course-filter:hover { background: #eaf3fc; }
.course-filter.is-active { background: var(--navy-900); border-color: var(--navy-900); color: white; }
.course-filter.is-active span { background: rgba(255,255,255,.18); }
.courses-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
.course-card { display: flex; flex-direction: column; align-self: start; background: white; border: 1px solid #dfe8f1; border-radius: 24px; box-shadow: 0 8px 26px rgba(5,35,68,.045); scroll-margin-top: 135px; }
.course-card-main { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.course-card-intro { min-width: 0; margin-bottom: 24px; }
.course-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.course-category { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.course-category-collettivi { color: #155a9f; background: #eaf3ff; }
.course-category-super-baby { color: #a23d17; background: #fff0e6; }
.course-category-stagionale { color: #236656; background: #e8f5ee; }
.course-discipline { color: #586b81; font-size: 12px; }
.course-facts { list-style: none; margin: auto 0 24px; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.course-facts li { display: flex; gap: 12px; }
.course-facts span { flex: 0 0 56px; color: #61758a; font-size: 12px; padding-top: 2px; }
.course-card-footer { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-top: 20px; border-top: 1px solid #edf1f5; }
.course-contact { color: #a23d17; text-decoration: none; font-size: 14px; font-weight: 700; }
.course-contact:hover { color: var(--navy-900); text-decoration: underline; }
.course-contact span { margin-left: 5px; }
.course-price-block { margin-left: auto; text-align: right; }
.course-price-label { display: block; margin-bottom: 2px; color: #61758a; font-size: 11px; }
.course-price { display: block; font-size: 30px; line-height: 1.1; color: var(--navy-900); letter-spacing: -.04em; }
.course-price-pending { font-weight: 700; font-size: 18px; color: var(--navy-900); }
.course-details { border-top: 1px solid #edf1f5; }
.course-details summary { padding: 17px 28px; color: var(--navy-900); font-size: 13px; font-weight: 700; cursor: pointer; border-radius: 0 0 24px 24px; }
.course-details summary:hover { background: #f4f8fc; }
.course-details summary::marker { color: var(--blue-600); }
.course-details-body { border-top: 1px solid #edf1f5; padding: 24px 28px; font-size: 14px; color: #52657a; }
.course-details-body h4 { color: var(--navy-900); }
.course-details-body ul { padding-left: 20px; }
.course-details-body li + li { margin-top: 8px; }
.course-note { padding: 12px; border-radius: 10px; background: #fff4e9; color: #8b451b; }
.course-filter:focus-visible, .course-contact:focus-visible, .course-details summary:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 4px; }
@media (min-width: 992px) {
    .course-card-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 185px; align-items: center; gap: 32px; padding: 32px; }
    .course-card-intro { margin-bottom: 0; }
    .course-facts { margin: 0; gap: 18px; }
    .course-facts li { display: block; }
    .course-facts span { display: block; padding: 0; margin-bottom: 4px; }
    .course-card-footer { flex-direction: column-reverse; align-items: flex-end; flex-wrap: nowrap; justify-content: center; gap: 18px; align-self: stretch; border-top: 0; border-left: 1px solid #edf1f5; padding: 0 0 0 24px; }
    .course-contact { text-align: right; }
    .course-price { font-size: 36px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .custom-navbar .navbar-nav { font-size: 13px !important; gap: 0 !important; }
    .custom-navbar .navbar-nav .btn { font-size: 13px; }
}
@media (max-width: 767.98px) {
    .courses-hero { min-height: 340px; padding: 48px 0; }
    .course-card-main { padding: 24px; }
    .course-details summary { padding: 16px 24px; }
    .course-details-body { padding: 24px; }
    .course-filter { padding: 9px 13px; font-size: 13px; }
}
