:root {
    --primary-orange: #FF6600;
    --dark-grey: #383535;
    --light-grey: #7e7878;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    background-color: var(--dark-grey);
    overflow-x: hidden;
}

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 5px;
    background: var(--primary-orange); width: 0%; z-index: 2000;
    transition: width 0.1s;
}

nav {
    position: fixed; top: 0; width: 100%; padding: 15px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    transition: 0.3s;
}

.logo-nav {
    display: block;
    height: 50px;
    width: 150px;
    object-fit: contain;
    transition: 0.3s;
}

.nav-links a {
    color: var(--white); text-decoration: none; margin-left: 30px;
    font-weight: 600; text-transform: uppercase; font-size: 0.8rem;
    letter-spacing: 1px; position: relative;
}

.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary-orange);
    transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.parallax-section {
    position: relative; background-attachment: fixed; background-position: center;
    background-repeat: no-repeat; background-size: cover; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); z-index: 1;
}

.content {
    position: relative; z-index: 2; max-width: 800px;
    text-align: center; padding: 20px;
}

.reveal {
    opacity: 0; transform: translateY(50px); transition: all 1s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

.hero-logo-img {
    max-width: 80%; width: 500px; height: auto; margin-bottom: 20px;
    display: inline-block; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

h2 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 900; }

p.story-text {
    font-size: 1.5rem; line-height: 1.6; margin-bottom: 40px; font-weight: 300;
}

.highlight { color: var(--primary-orange); font-weight: 700; }

.text-section {
    background-color: var(--dark-grey); padding: 100px 10%; text-align: center;
}

.whatsapp-link {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-link:hover {
    color: var(--primary-orange);
}

.coach-section {
    background-color: var(--light-grey); padding: 100px 10%; overflow: hidden;
}

.coach-container {
    display: flex; align-items: center; justify-content: center; gap: 80px;
    flex-wrap: wrap; max-width: 1200px; margin: 0 auto;
}

.coach-img-wrapper {
    flex: 1; min-width: 300px; max-width: 450px; position: relative;
}

.coach-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: 0.3s;
    box-shadow: 20px 20px 0 var(--primary-orange);
}

.coach-img-wrapper img:hover {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0 var(--primary-orange);
}

.coach-content { flex: 1; min-width: 300px; text-align: left; }
.coach-content h2 { font-size: 3rem; margin-bottom: 10px; }

.coach-subtitle {
    color: var(--primary-orange); font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 30px; display: block;
}

.coach-bio {
    color: #ccc; line-height: 1.8; margin-bottom: 40px; font-size: 1.1rem;
}

.coach-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    border-top: 1px solid #333; padding-top: 30px;
}

.stat-item h4 { font-size: 2.5rem; color: var(--white); font-weight: 900; margin-bottom: 5px; }
.stat-item p { color: var(--primary-orange); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.gallery-wrapper { 
    background-color: var(--dark-grey); 
    padding: 60px 0; 
    overflow: hidden; 
}

.gallery-container {
    display: flex; 
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: hidden; 
    gap: 20px; 
    padding: 0 20px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior: contain;
}

.gallery-container:active {
    cursor: grabbing;
}

.gallery-item {
    min-width: 400px;
    height: 300px; 
    background-size: cover; 
    background-position: center;
    border-radius: 8px; 
    border-bottom: 4px solid var(--primary-orange);
    flex-shrink: 0; 
    
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.courses-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px; text-align: left; margin-top: 50px;
}

.course-card {
    background: rgba(30,30,30,0.9); border-left: 2px solid var(--primary-orange);
    transition: 0.3s; overflow: hidden; display: flex; flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 102, 0, 0.6);
    border-left: 4px solid var(--primary-orange); 
}

.course-slider-wrapper {
    width: 100%; height: 250px; overflow-x: hidden; overflow-y: hidden; position: relative;
}

.course-slider-track {
    display: flex; height: 100%; width: 100%; overflow-x: auto; scrollbar-width: none;
}
.course-slider-track::-webkit-scrollbar { display: none; }

.course-slider-track img {
    min-width: 100%; height: 100%; object-fit: cover; flex-shrink: 0;
}

.course-info { padding: 30px; display: flex; flex-direction: column; height: 100%; }
.course-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.course-info p { font-size: 1rem; opacity: 0.8; line-height: 1.5; margin-bottom: 20px; }

.course-schedule {
    margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-orange) !important; font-weight: 700; text-transform: uppercase;
    font-size: 0.9rem !important; opacity: 1 !important; letter-spacing: 1px;
}

footer {
    background-color: #000;
    padding-top: 60px;
    padding-bottom: 20px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: center;    
    align-items: center;       
    flex-wrap: wrap;
    gap: 80px;                 
    width: 100%;
    max-width: 1200px;         
    margin-bottom: 60px;       
}

.contacts-col {
    text-align: left;           
    min-width: 250px;
}

.footer-col h4 { color: var(--primary-orange); margin-bottom: 15px; font-size: 1.1rem; letter-spacing: 1px; }
.footer-col p { margin-bottom: 8px; color: #ccc; font-size: 1rem; }
.footer-col a { color: #fff; text-decoration: none; margin-right: 15px; font-weight: bold; font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary-orange); text-decoration: underline; }

.social-links { margin-top: 25px; }

.map-col {
    flex: 1;                    
    max-width: 600px;           
    min-width: 300px;
}

.map-container {
    width: 100%;
    height: 300px;              
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border: 1px solid #333;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}


.footer-copyright {
    width: 100%;
    text-align: center;
    border-top: 1px solid #222; 
    padding-top: 20px;
    margin-top: 0;
}

.footer-copyright p {
    font-size: 0.8rem;
    color: #555;                
    text-transform: uppercase;
    letter-spacing: 1px;
}


@media (max-width: 900px) {
    .footer-content {
        flex-direction: column; 
        gap: 40px;
        text-align: center;
    }

    .contacts-col { text-align: center; } 
    
    .map-col { width: 90%; }    
    
    .social-links { 
        display: flex; 
        justify-content: center; 
        gap: 10px;
    }
    .social-links a { margin: 0 5px; }
}

.pricing-grid.compact-grid {
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: rgba(30, 30, 30, 0.6); 
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    width: 100%;
    max-width: 350px; 
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 40, 0.9);
    border-color: var(--primary-orange);
}

.featured-card {
    border: 2px solid var(--primary-orange);
    background: rgba(255, 102, 0, 50);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.15);
    z-index: 2;
}
.featured-card:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 25px;
    font-style: italic;
}

.price-list-container {
    margin-bottom: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    flex-grow: 1; 
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.price-row:last-child {
    border-bottom: none;
}

.price-label {
    text-align: left;
    font-size: 0.95rem;
    color: #ccc;
}

.price-amount {
    font-weight: 700;
    color: var(--primary-orange);
    font-size: 1.1rem;
}


.cta-btn {
    width: 100%;
    margin-top: auto;
}

.btn-featured {
    background-color: var(--white);
    color: var(--primary-orange);
}
.btn-featured:hover {
    background-color: var(--primary-orange);
    color: var(--white);
}

@media (max-width: 768px) {
    .pricing-grid.compact-grid { flex-direction: column; align-items: center; }
    .featured-card { transform: scale(1); margin: 10px 0; }
}

.hamburger-menu, .mobile-menu-overlay {
    display: none;
}


@media (max-width: 900px) {
    
    
    nav {
        justify-content: center; 
        padding: 15px 20px;      
    }

    .desktop-links {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 6px;
        position: absolute;      
        left: 20px; 
        cursor: pointer;
        z-index: 2000;
    }

    .hamburger-menu span {
        width: 30px;
        height: 3px;
        background-color: var(--white);
        border-radius: 2px;
        transition: 0.3s;
    }

    
    .mobile-menu-overlay {
        display: flex;           
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;           
        background-color: rgba(0, 0, 0, 0.95); 
        z-index: 3000;          
        
      
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }

     .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-links-list a {
        color: var(--white);
        font-size: 2rem;
        font-weight: 800;
        text-decoration: none;
        margin: 20px 0;
        text-transform: uppercase;
        display: block;
        transition: 0.3s;
    }

    .mobile-links-list a:hover {
        color: var(--primary-orange);
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 3rem;
        color: var(--primary-orange);
        cursor: pointer;
    }
}

@media (max-width: 900px) {

    #inizio.parallax-section {
        height: 100vh !important; 
        min-height: 100vh !important;
        background-attachment: scroll !important; 
        
        background-position: center center !important;
        background-size: cover !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; 
        align-items: center !important;   
        
        padding: 0 20px !important;
    }
    
    .hero-logo-img {
        width: 250px;  
        max-width: 80%;
        margin-bottom: 20px;
    }
    
    #inizio .story-text {
        font-size: 1.1rem;
        padding: 0 10px;
    }


    section:not(#inizio).parallax-section {
        min-height: 35vh !important; 
        
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;

        display: flex;
        align-items: center;
        justify-content: center;
    }

.courses-grid, 
    .pricing-grid.compact-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        
        width: 100vw;
        margin-left: -50vw;
        left: 50%;
        position: relative;

        padding: 20px 25px 40px 25px !important; 
        gap: 20px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 25px;  
        justify-content: flex-start !important; 
    }

    .course-card, 
    .pricing-card {
        min-width: 85vw;
        max-width: 85vw;
        margin: 0 !important;
        scroll-snap-align: start !important; 
        flex-shrink: 0;
    }
    
    .pricing-card {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    
    .courses-grid::-webkit-scrollbar, 
    .pricing-grid.compact-grid::-webkit-scrollbar { display: none; }

    #tariffe.parallax-section .content {
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }
}

@media (max-width: 900px) {

    #filosofia.text-section {
        padding-top: 40px !important;   
        padding-bottom: 40px !important; 
    }
    
    #filosofia h2 {
        font-size: 1.8rem !important;  
        margin-bottom: 15px !important;
    }
    
    #filosofia p.story-text {
        font-size: 0.95rem !important;  
        line-height: 1.4 !important; 
        margin-bottom: 0 !important;
    }

    section:not(#inizio).parallax-section .content {
        padding: 0 15px; 
    }

    section:not(#inizio).parallax-section h2 {
        font-size: 1.4rem !important;   
        line-height: 1.2 !important;     
        margin-bottom: 10px !important;
    }

    section:not(#inizio).parallax-section span {
        font-size: 1.4rem !important;
        padding: 0 5px !important;
    }

    section:not(#inizio).parallax-section .story-text {
        font-size: 0.9rem !important;  
        margin-top: 5px !important;
        margin-bottom: 0 !important;
        font-weight: 600 !important;  
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }
}

@media (max-width: 900px) {

    .coach-section {
        padding: 40px 20px !important; 
    }

    .coach-container {
        gap: 30px !important; 
        text-align: center !important; 
    }

    .coach-img-wrapper {
        width: 75% !important;
        max-width: 320px !important;
        height: 420px !important; 
        margin: 0 auto 25px auto !important;
        overflow: hidden !important;
        border-radius: 4px !important;
        box-shadow: 12px 12px 0 var(--primary-orange) !important;
    }

    .coach-img-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: top center !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .coach-content h2 {
        font-size: 2rem !important;  
        margin-bottom: 5px !important;
    }

    .coach-subtitle {
        margin-bottom: 15px !important;
        font-size: 0.9rem !important;
    }

    .coach-bio {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 25px !important;
    }

    .coach-stats {
        padding-top: 20px !important;
        gap: 15px !important; 
    }

    .stat-item h4 {
        font-size: 1.8rem !important;
    }
}

.footer-copyright p a {
    color: inherit !important; 
    text-decoration: none !important;
    pointer-events: none !important; 
}

.footer-copyright p {
    color: #555 !important; 
}

@media screen and (min-width: 901px) and (max-width: 1366px) {

    .parallax-section {
        background-attachment: scroll !important; 
        background-position: center center !important;
        background-size: cover !important;
    }

    #inizio.parallax-section {
        background-attachment: scroll !important;
        background-position: center center !important;
    }
}

@media (max-width: 900px) {
    
    .gallery-wrapper h2 {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }

    .gallery-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        left: auto !important;
        position: relative;
        padding: 0 15px !important;
        gap: 15px !important;
    }

    .gallery-item {
        min-width: 80vw !important; 
        width: 80vw !important;
        height: 250px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        border-radius: 8px !important;
        box-shadow: 0 5px 10px rgba(0,0,0,0.15) !important;
    }
}

@media (max-width: 900px) {
    .course-card {
        box-shadow: 0 15px 30px rgba(255, 102, 0, 0.5) !important;
        border-left: 4px solid var(--primary-orange) !important;
        transform: none !important; 
    }
}

.price-table {
    width: 100%;
    max-width: 720px;
    margin-top: 60px;
    border-top: 2px solid var(--primary-orange);
    padding-top: 30px;
}

.price-table-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-orange);
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
}

.price-line span {
    color: #ccc;
    text-align: left;
}

.price-line strong {
    color: var(--primary-orange);
    font-size: 1.3rem;
    font-weight: 800;
    white-space: nowrap;
}

.price-line small {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.price-line {
    padding-left: 10px;
    padding-right: 10px;
}

#tariffe-corsi .content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
