/* Importiamo i font usati nel template */
@import url('https://fonts.googleapis.com/css?family=Muli:300,400,500,600,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700&display=swap');

/* --- INIZIO STILE HERO --- */

.hero-section {
    /* Immagine di sfondo */
    background-image: url('/img/Palestra/IMG_1913.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* ALTEZZA MAGGIORATA: 150vh significa 1.5 volte l'altezza dello schermo.
       Questo crea lo spazio per lo scorrimento mentre il testo sta fermo. */
    height: 300vh; 
    width: 100%;
    
    /* Necessario per il posizionamento del velo scuro */
    position: relative; 
}

/* Il velo scuro sopra l'immagine */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* CONTENITORE ADESIVO (STICKY)
   Questo blocco rimarrà fisso in alto (top: 0) mentre la sezione scorre */
.hero-sticky-content {
    position: -webkit-sticky; /* Per compatibilità Safari */
    position: sticky;
    top: 0;
    
    /* Occupa tutta l'altezza della finestra per centrare il contenuto */
    height: 100vh; 
    
    /* Flexbox per centrare verticalmente il contenuto interno */
    display: flex;
    align-items: center;
    
    /* Assicura che stia sopra il velo scuro */
    z-index: 2; 
    width: 100%;
}

/* Stile del testo (preso dal tuo template) */
.hi-text {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s;
}

.hi-text span {
    color: #f4c269;
    font-size: 16px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 10px;
}

.hi-text h1 {
    color: #ffffff;
    font-size: 70px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 75px;
    margin-bottom: 30px;
}

.hi-text h1 strong {
    color: #f4c269;
}



/*--- ChoseUs Section ---*/

/*--- ChoseUs Section ---*/

.choseus-section {
    background: #0a0a0a;
    padding-bottom: 70px;
}

.cs-item {
    text-align: center;
    margin-bottom: 30px;
}

.cs-item:hover span {
    background: #f4c269;
    color: #ffffff;
}

.cs-item span {
    height: 90px;
    width: 90px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    
    /* MODIFICA: Usiamo Flexbox per centrare l'immagine dentro il cerchio */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    color: #f4c269;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}


.icon-img {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s; 
}


.cs-item:hover .icon-img {

    filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 2px #ffffff);

    transform: scale(1.1);
}


.cs-item h4 {
	color: #ffffff;
	font-size: 22px;
	font-weight: 600;
	margin-top: 24px;
	margin-bottom: 16px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
}

.cs-title{
    text-align: center;
    color: #ffffff;
    font-family: "Oswald", sans-serif;
    font-weight: 700;

}

.cs-title span{
    color: #f4c269;
}

/* --- PRICING SECTION & CAROUSEL --- */

.pricing-section {
    background: #151515;
    padding-top: 80px;
    padding-bottom: 80px;
}

.ps-item {
    text-align: center;
    background: #0a0a0a;
    padding: 40px 20px;
    border: 1px solid transparent;
    transition: all 0.3s;
    /* Importante per il carosello: */
    margin-bottom: 10px; 
}

.ps-item:hover, .ps-item.popular {
    border-color: #f4c269;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
}

/* Stili Tipografici */
.ps-item h3 {
    color: #f4c269;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.pi-price h2 {
    color: #ffffff;
    font-size: 36px; /* Un po' più piccolo per farci stare "10 Ingressi" */
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.pi-price span {
    color: #f4c269;
    font-size: 40px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    display: block;
}

.ps-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.ps-item ul li {
    color: #c4c4c4;
    font-size: 16px;
    line-height: 36px;
}

.ps-item ul li strong {
    color: #ffffff;
    font-weight: 700;
}

.pricing-btn {
    width: 100%;
    display: block;
    text-align: center;
    background: #333;
    color: #fff;
    padding: 12px 0;
    border: none;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
}

.ps-item:hover .pricing-btn, .ps-item.popular .pricing-btn {
    background: #f4c269;
    color: #fff;
}

/* --- STILE DELLE FRECCE DEL CAROSELLO --- */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    color: #888 !important;
    font-size: 60px !important; /* Grandezza freccia */
    transition: 0.3s;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    color: #f4c269 !important; /* Arancione al passaggio del mouse */
}

.owl-carousel .owl-nav button.owl-prev {
    left: -40px; /* Sposta la freccia sinistra fuori dal container */
}

.owl-carousel .owl-nav button.owl-next {
    right: -40px; /* Sposta la freccia destra fuori dal container */
}

/* Pallini di navigazione (opzionale) */
.owl-dots {
    text-align: center;
    margin-top: 20px;
}
.owl-dot span {
    background: #444 !important;
}
.owl-dot.active span {
    background: #f4c269 !important;
}
/* Stile per il contenitore del prezzo vecchio */
.pi-price span.old-price {
    color: #888888;           /* Colore grigio */
    font-size: 20px;          /* Dimensione ridotta */
    font-weight: 400;
    position: relative;       /* Necessario per posizionare la riga sopra */
    display: inline-block;    /* FONDAMENTALE: la riga sarà lunga quanto il testo */
    margin-bottom: 0;
    
    /* Rimuoviamo la cancellatura standard se l'avevi messa */
    text-decoration: none;    
}
.pi-price span.old-price::before {
    content: "";              /* Crea un elemento vuoto */
    position: absolute;       /* Lo posiziona liberamente sopra il testo */
    
    /* Posizionamento e dimensioni */
    width: 110%;              /* Lunghezza: il 110% della larghezza del testo */
    height: 2px;              /* Spessore della riga */
    top: 50%;                 /* Posizionato a metà altezza */
    left: -5%;                /* Spostato leggermente a sinistra per centrarlo */
    
    background-color: #f4c269; /* Colore della riga (Arancione del tuo tema) */
    /* Oppure usa #888888 se la vuoi grigia come il testo */
    
    /* Rotazione */
    transform: rotate(-15deg); /* Ruota la riga di -15 gradi (puoi cambiare questo valore) */
}
/* Adattamento mobile per le frecce */
@media (max-width: 768px) {
    .owl-carousel .owl-nav button.owl-prev { left: 0; }
    .owl-carousel .owl-nav button.owl-next { right: 0; }
}

/* La navbar fissa in partenza è trasparente con una leggera sfumatura per leggerezza */
.navbar.fixed-top {
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, padding 0.3s ease;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    padding: 20px 0; /* Spaziatura iniziale un po' più ampia */
}

/* 3. CLASSE PER QUANDO SI SCORRE (DOPO LA HERO) */
.navbar.scrolled {
    background-color: #0a0a0a !important; /* Sfondo solido molto scuro */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); /* Ombreggiatura forte */
    padding: 10px 0; /* La navbar si rimpicciolisce leggermente per eleganza */
}

/* Assicuriamoci che su mobile le icone abbiano spazio verticale se vanno a capo */
@media (max-width: 991px) {
    .custom-icons-nav {
        margin-top: 15px;
        justify-content: center; /* Centra le icone su mobile */
    }
}
/* Opzionale: se vuoi che diventi nera quando scorri nella Home, 
   servirebbe un piccolo script JS, ma per ora lasciamola trasparente */
.nv-s{
    text-align: center;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: larger;
    
}

.nv-s:hover{
    color: #f4c269;
}

/* --- GALLERY SECTION --- */
.gallery-section {
    background: #0a0a0a; /* Stesso sfondo scuro del resto del sito */
    padding-bottom: 50px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px; /* Angoli leggermente arrotondati */
    height: 300px; /* Altezza fissa per tutte le celle */
    border: 1px solid #333; /* Bordo sottile opzionale */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fondamentale: taglia l'immagine per riempire il box senza deformarla */
    transition: all 0.5s;
}

/* Effetto zoom quando passi sopra col mouse */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- TESTIMONIAL / RECENSIONI SECTION --- */
.testimonial-section {
    background: #151515; /* Leggermente più chiaro dello sfondo nero per staccare */
    padding-top: 80px;
    padding-bottom: 80px;
}

.testimonial-item {
    background: #0a0a0a;
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #333; /* Bordo sottile */
    transition: all 0.3s;
    margin-bottom: 30px;
    height: 100%; /* Per allineare le altezze */
}

.testimonial-item:hover {
    border-color: #f4c269; /* Diventa arancione al passaggio del mouse */
    transform: translateY(-5px); /* Leggero effetto sollevamento */
}

.ti-author {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ta-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #f4c269;
    flex-shrink: 0;
}

.ta-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ta-text h5 {
    color: #ffffff;
    font-weight: 700;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-size: 18px;
}

.ta-text span {
    display: block;
    font-size: 12px;
    color: #f4c269;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ti-rating {
    font-size: 12px;
    color: #f4c269; /* Colore Oro/Arancione */
}

.ti-rating i {
    margin-right: 2px;
}

.testimonial-item p {
    font-size: 15px;
    color: #c4c4c4;
    line-height: 24px;
    margin: 0;
    font-style: italic;
}

/* --- FOOTER SECTION --- */
.footer-section {
    background: #0a0a0a; /* Sfondo scuro coerente */
    border-top: 1px solid #333; /* Linea sottile di separazione */
    padding-top: 60px;
    padding-bottom: 20px;
    margin-top: auto; /* Se usi flexbox nel body, questo spinge il footer giù */
    font-family: "Oswald", sans-serif;
}

.footer-logo {
    height: 80px; /* Stessa altezza della navbar */
    width: auto;
    display: block;
}

.footer-widget h4 {
    color: #f4c269; /* Colore Oro/Arancione */
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center; /* Allinea icone e testo */
    margin-bottom: 15px;
    color: #c4c4c4;
    font-size: 16px;
}

/* Stile delle icone */
.footer-contact i {
    color: #f4c269;
    font-size: 18px;
    width: 30px; /* Larghezza fissa per allineare il testo verticalmente */
    text-align: center;
    margin-right: 10px;
}

/* Link dell'indirizzo e hover */
.address-link {
    text-decoration: none;
    color: #c4c4c4;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.address-link:hover, .footer-contact li:hover {
    color: #ffffff;
}

/* Icone Social rotonde */
.footer-social a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background: #1e1e1e;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #f4c269;
    color: #000;
}

/* Copyright e testo legale */
.copyright-text {
    border-top: 1px solid #1f1f1f;
    margin-top: 40px;
    padding-top: 20px;
}

.copyright-text p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.ip-text {
    font-size: 12px;
    color: #666; /* Leggermente più scuro per dare meno enfasi alla nota legale */
}


/* --- PAGE HEADER (Per pagine interne come Chi Siamo) --- */
.page-header {
    background-image: url('/img/Palestra/IMG_1913.jpg'); /* Usiamo una foto della palestra scura */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0 80px 0;
    position: relative;
    margin-bottom: 0;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Più scuro per leggere il titolo */
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h2 {
    font-size: 48px;
    color: #ffffff;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.header-breadcrumb a, .header-breadcrumb span {
    color: #f4c269;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    margin: 0 5px;
}

.header-breadcrumb span:last-child {
    color: #c4c4c4;
}

/* --- ABOUT SECTION --- */
.about-text span {
    color: #f4c269;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    font-family: "Oswald", sans-serif;
}

.about-text h2 {
    color: #ffffff;
    font-size: 36px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.about-text .lead {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 15px;
}

.about-text p {
    color: #c4c4c4;
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 20px;
}

.about-img {
    border: 5px solid #1f1f1f;
    border-radius: 2px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    transition: all 0.5s;
}

.about-img:hover img {
    transform: scale(1.05);
}

/* --- TEAM SECTION --- */
.team-section {
    background: #0a0a0a;
}

.team-img-container {
    position: relative;
    border: 2px solid #f4c269; /* Cornice dorata */
    padding: 10px;
    display: inline-block;
    background: #151515;
}

.team-img {
    width: 100%;       /* Occupa tutta la larghezza del box */
    height: auto;      /* L'altezza si calcola in automatico (NIENTE PIÙ TAGLI) */
    display: block;    /* Rimuove spazi vuoti sotto l'immagine */
    object-fit: contain; /* Assicura che l'immagine intera sia visibile */
    max-height: 400px;
    filter: grayscale(20%);
    transition: all 0.4s;
}

.team-img-container:hover .team-img {
    filter: grayscale(0%); /* Colore al passaggio del mouse */
}

.team-role {
    background: #f4c269;
    color: #000;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 20px;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

.team-text h3 {
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 32px;
    margin-bottom: 5px;
}

.team-text .subtitle {
    display: block;
    color: #f4c269;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.team-text p {
    color: #c4c4c4;
    margin-bottom: 15px;
    line-height: 1.6;
}

.team-skills {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.team-skills li {
    background: #1f1f1f;
    padding: 8px 15px;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #333;
}

.team-skills li i {
    color: #f4c269;
    margin-right: 8px;
}

/* Stile speciale per la lista a destra */
.team-text.text-lg-end .team-skills li i {
    margin-right: 0;
    margin-left: 8px;
}

.team-divider {
    border-top: 1px solid #333;
    margin: 60px 0;
    opacity: 0.5;
}

/* --- CONTACT SECTION --- */
.contact-section {
    background: #0a0a0a;
    padding-top: 80px;
    padding-bottom: 80px;
}

.contact-title {
    text-align: left; /* Allinea a sinistra invece che al centro */
}

/* Info Widget (Icone e Testo) */
.contact-widget .cw-item {
    background: #151515;
    padding: 25px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.contact-widget .cw-item:hover {
    border-color: #f4c269;
}

.contact-widget .ci-icon {
    height: 50px;
    width: 50px;
    background: #f4c269;
    border-radius: 50%;
    line-height: 50px;
    text-align: center;
    color: #000;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-widget .ci-text span {
    color: #f4c269;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    font-family: "Oswald", sans-serif;
}

.contact-widget .ci-text p {
    color: #c4c4c4;
    margin-bottom: 0;
    font-size: 16px;
}

/* Stile del Form */
.contact-form input,
.contact-form textarea {
    width: 100%;
    height: 50px;
    background: #151515;
    border: 1px solid #333;
    color: #c4c4c4;
    padding-left: 20px;
    font-size: 15px;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: all 0.3s;
}

.contact-form textarea {
    height: 120px;
    padding-top: 15px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f4c269;
    outline: none;
    color: #fff;
}

.contact-form button {
    cursor: pointer;
    width: auto;
    padding: 12px 30px;
}

/* Mappa */
.map-container {
    border: 2px solid #f4c269;
    padding: 5px;
    background: #151515;
}

/* Mobile Adjustments per Team */
@media (max-width: 991px) {
    .team-row {
        text-align: center !important;
    }
    .team-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 30px;
        text-align: center !important;
    }
    .team-skills {
        justify-content: center !important;
    }
    .team-img-container {
        max-width: 400px;
        width: 100%;
        
    }
}

/* Mappa */
.map-container {
    border: 2px solid #f4c269;
    padding: 5px;
    background: #151515;
    width: 100%; /* Aggiungi questo per sicurezza */
}

/* Forza l'iframe a riempire il contenitore */
.map-container iframe {
    width: 100%;
    display: block; /* Rimuove spazi bianchi extra sotto l'iframe */
}

/* --- MEDIA QUERIES PER MOBILE --- */

@media (max-width: 991px) {
    /* Regole per Tablet e Mobile orizzontale */
    .hi-text {
        text-align: center;
        margin-bottom: 30px;
    }

    .hi-text h1 {
        font-size: 48px;
        line-height: 55px;
    }
    
    /* Riduciamo un po' anche qui (opzionale) */
    .hi-text span {
        font-size: 14px; 
    }
}

@media (max-width: 576px) {
    /* Regole per Smartphone verticali */
    .hero-section {
        height: 120vh; 
    }
    
    .hi-text h1 {
        font-size: 36px;
        line-height: 45px;
    }
    
    /* QUI MODIFICHI LA GRANDEZZA DELLA SCRITTA "100% Elite..." */
    .hi-text span {
        font-size: 12px;  /* Molto più piccola (standard è 16px) */
        letter-spacing: 2px; /* Riduciamo leggermente la spaziatura lettere */
        margin-bottom: 5px; /* Meno spazio sotto la scritta */
    }
}

.team-img-container {
        max-width: 100%; 
        width: 100%;
        margin-bottom: 25px; /* Aumentiamo un po' lo spazio sotto per il TAG */
        
        /* IMPORTANTE: Rimuovi eventuali 'height' o 'overflow: hidden' se presenti qui */
        height: auto; 
        overflow: visible; 
    }
    
    /* Questo serve per il rettangolino "OWNER & HEAD COACH" */
    .team-role {
        bottom: -20px; /* Spostiamo il tag un po' più giù se serve */
    }
