/* --- 1. BASE & UTILS --- */
.disciplina-container, .disciplina-intro { background-color: #0c0c0c; }
.disciplina-container { color: #eeeeee; font-family: sans-serif; line-height: 1.6; }

.hero-sub h1, .hero-motto, .card h3, .ethics-header h2, .btn-back { text-transform: uppercase; }
.card, .btn-back, .card-img-wrapper img { transition: 0.3s ease; }

.main-wrapper, .intro-wrapper { max-width: 1100px; margin: 0 auto; }
.main-wrapper { padding: 0 20px 80px; }

/* --- 2. HERO SECTION --- */
.hero-sub {
    height: 450px;
    background: linear-gradient(rgba(0,0,0,0.4), #0c0c0c), url('../images/hero_teamgym.jpeg') center 35% / cover;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; border-bottom: 3px solid #0d9644; margin-bottom: 60px;
}
.hero-sub h1 { font-size: clamp(2rem, 8vw, 4rem); font-weight: 900; margin: 0; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.hero-sub h1 span { color: #0d9644; }
.hero-motto { color: #0d9644; letter-spacing: 4px; font-weight: bold; margin-top: 10px; font-size: 0.9rem; }

/* --- 3. INTRO & CONTENT GRIDS --- */
.disciplina-intro { padding: 100px 0; position: relative; overflow: hidden; }
.content-grid, .intro-wrapper { display: grid; gap: 50px; align-items: center; }
.content-grid { grid-template-columns: 1fr 1fr; margin-bottom: 80px; }
.intro-wrapper { grid-template-columns: 1fr 1.2fr; gap: 80px; }

/* Visual Elements (Immagini e Frame) */
.frame, .action-img-container { background: #1a1a1a; padding: 12px; border-radius: 15px;}
.action-img-container { max-width: 400px; position: relative; border: 1px solid #333; border-radius: 20px; }
.frame img, .action-img { width: 100%; border-radius: 10px; display: block; }
.frame-accent { position: absolute; top: -20px; left: -20px; width: 100px; height: 100px; border: 2px solid #0d9644; z-index: 1; }

/* Typography Highlights */
.highlight, .highlight-main { border-left: 5px solid #0d9644; padding-left: 25px; color: #fff; line-height: 1.6; }
.highlight { font-size: 1.4rem; }
.highlight-main { font-size: 1.5rem; margin-bottom: 25px; padding-left: 30px; }
.description { font-size: 1.1rem; line-height: 1.8; color: #aaa; margin: 0; }

/* --- 4. DETAILS & CARDS --- */
.section-details { background: #151515; padding: 50px; border-radius: 25px; border: 1px solid #222; margin-bottom: 80px; }
.details-box p { font-size: 1.15rem; color: #ccc; margin: 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, #333, transparent); margin: 30px 0; }

.specialita-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 80px; }
.card { background: #1a1a1a; padding: 40px 25px; border-radius: 20px; text-align: center; border: 1px solid #222; }
.card i { font-size: 2.5rem; color: #0d9644; margin-bottom: 20px; }
.card p { font-size: 0.95rem; color: #999; }
.card.active { border-color: #0d9644; background: #1d1d1d; }

.card-img-wrapper { 
    margin-top: 25px; position: relative; overflow: hidden; border-radius: 12px; 
    border: 1px solid #333; aspect-ratio: 16 / 9; 
}
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* --- 5. ETICA & NAVIGATION --- */
.ethics-glow-box {
    background: linear-gradient(145deg, #1a1a1a, #111);
    padding: 60px; border-radius: 30px; border: 1px solid #0d9644;
    position: relative;
}
.ethics-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.ethics-header i { font-size: 2.5rem; color: #0d9644; }
.ethics-header h2 { color: #0d9644; margin: 0; }
.ethics-glow-box p { font-size: 1.2rem; line-height: 1.8; color: #ddd; }

.back-nav { text-align: center; margin-top: 50px; }
.btn-back { text-decoration: none; color: #777; font-weight: bold; }
.btn-back:hover { color: #0d9644; }

/* --- 6. RESPONSIVE --- */
@media (max-width: 992px) {
    .intro-wrapper { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .intro-visual { order: -1; max-width: 320px; margin: 0 auto; }
    .highlight-main { font-size: 1.2rem; padding-left: 15px; text-align: justify; }
    .description { font-size: 1rem; }
}

@media (max-width: 850px) {
    .content-grid, .specialita-cards { grid-template-columns: 1fr; }
    .hero-sub { height: 300px; }
    .ethics-glow-box { padding: 30px; }
}

@media (max-width: 768px) {
    .card-img-wrapper { margin-top: 15px; }
}