/* 1. SETUP & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Roboto:wght@400;900&display=swap');

:root {
    --danger-boxe: #bc0000;
    --dark-bg: #121212;
    --light-bg: #fff;
    
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: white;
    overflow-x: hidden;
}

/* Texture Noise Sottile */
/* Texture Noise Sottile */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: url('GRAINY.webp');
    pointer-events: none; /* Fondamentale: permette i click attraverso la texture */
    z-index: -1;          /* Fondamentale: la mette dietro tutto il contenuto */
}



/* 2. TIPOGRAFIA BRUTALISTA */
/* 2. TIPOGRAFIA BRUTALISTA */
h1, h2, h3, .navbar-brand {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* H1 (il titolo principale) rimane grande */
h1 {
    font-size: clamp(4rem, 15vw, 8rem); 
    line-height: 0.85;
    font-weight: 900; /* Lo rende massiccio quanto l'H2 */
}
/* H2 più piccoli dell'H1 */
h2 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 0.9;
}

/* Classi .display: gestiscile separatamente */
.display-1 { font-size: clamp(3.5rem, 12vw, 6rem); }
.display-2 { font-size: clamp(2.5rem, 8vw, 4rem); }

.fw-black { font-weight: 900; }
.line-height-1 { line-height: 0.85; }

/* Uniforma tutti i titoli h2 alla grandezza massima */
/* Uniforma tutti i titoli h2: flessibili tra mobile e desktop */

#contact-title {
    margin-bottom: 4rem !important;
}

/* 3. NAVBAR & PROGRESS BAR */
.navbar {
    transition: all 0.4s ease;
    background-color: #121212!important;
    padding-bottom: 17px !important;
    margin-bottom: 0 !important;
}

/* Forza le voci della navbar a essere bianche */
.navbar-nav .nav-link {
    color: #ffffff !important;
    opacity: 1 !important; /* Rimuove l'effetto trasparente di default di Bootstrap */
}

/* Forza lo stato di hover/focus */
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link:focus {
    color: #ffffff !important;
}
.navbar.scrolled {
padding: 10px 100px !important;
    background-color: #121212 !important;
    
    /* Supporto per Safari */
    -webkit-backdrop-filter: blur(10px);
    
    /* Standard per tutti gli altri browser */
    backdrop-filter: blur(10px);
}
.nav-list-custom { gap: 40px; }
.nav-list-custom a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    position: relative;
    transition: 0.3s;
}
.nav-list-custom a:hover { color: #fff; }
.nav-list-custom a:hover::after { width: 100%; }
.nav-list-custom a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 50%;
    background-color: var(--danger-boxe);
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.scroll-progress-container {
    position: absolute;
    bottom: -1px;
    left: 0; width: 100%; height: 0px;
    background: rgba(255, 255, 255, 0.1);
}
.scroll-progress-bar {
    height: 100%;
    background: var(--danger-boxe);
    width: 0%;
    box-shadow: 0 0 10px rgba(188, 0, 0, 0.7);
}

/* 4. HERO SECTION */
/* 1. HERO SECTION: Ora è il contenitore di riferimento */
.hero-boxing {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Cambiato: allinea verso l'alto */
    padding-top: 4%;           /* Spazio minimo dalla navbar */
    padding-bottom: 5%;  
    gap: 1rem;                   /* Spazio dinamico tra elementi */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('allenamentopalestra.webp');
    background-size: cover;
    background-position: center;
}

.hero-boxing .container {
    padding-top: 20px;
}

/* 5. DISCIPLINE (EFFETTO INVERSIONE) */
#disciplines {
    background: linear-gradient(180deg, #ffffff 0%, #fff 100%);
    color: #000;
}

.discipline-item {
    border-color: #121212 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.discipline-item:hover {
    background-color: #121212 !important;
    color: #fff !important;
}

.discipline-item:hover .text-muted { color: #fff !important; }

.image-wrapper {
    overflow: hidden;
    box-shadow: 10px 10px 0px #121212;
    background: #ffffff;
}

.custom-clip {
    filter: grayscale(100%) contrast(1.2);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    transition: all 0.6s ease;
}

.discipline-item:hover .custom-clip {
    filter: grayscale(0%) contrast(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: scale(1.1);
}

.btn-link {
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-link:hover { padding-left: 10px; color: var(--danger-boxe) !important; }

/* 6. COMPONENTI & MARQUEE */
.btn-danger {
    background-color: var(--danger-boxe);
    border: none;
    border-radius: 0 !important;
    transition: 0.3s;
}
.btn-danger:hover { transform: skewX(-5deg); background: #e60000; }



    /* Forza le immagini ad avere la stessa altezza e coprire lo spazio */
    .custom-img-gym {
        height: 250px;
        object-fit: cover;
        width: 100%;
    }
    /* Effetto zoom leggero quando passi il mouse */
    .card:hover .custom-img-gym {
        filter: brightness(0.8);
        transition: 0.3s;
    }

 .card-featured {
    max-width: 250px;
}

    /* Sfondo e font */
    #pricing {
        font-family: 'Arial Black', sans-serif;
    }

  #pricing p {
    margin-top: 2rem !important;    /* Spazio sopra */
    margin-bottom: 4rem !important; /* Spazio sotto */
}

    /* Effetto elevazione sulle card */
    .pricing-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        z-index: 2;
    }

    .pricing-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }

    .pricing-card.bg-danger {
    z-index: 2;
    position: relative; /* Necessario per far funzionare lo z-index */
}

.map-frame {
    border: 0;
}

    /* Badge per il piano più popolare */
    .most-popular-badge {
        position: absolute;
        top: -15px;
        right: 20px;
        background: #ffffff;
        color: #dc3545;
        padding: 5px 15px;
        font-size: 0.8rem;
        font-weight: bold;
        text-transform: uppercase;
    }

    /* Icone Check personalizzate senza dipendere da plugin esterni */
    .check-list li::before {
        content: "✓";
        margin-right: 10px;
        font-weight: bold;
    }
    .check-yes::before { color: #dc3545; } /* Rosso per i piani base */
    .check-white::before { color: #ffffff; } /* Bianco per il piano rosso */
  




.scrolling-text {
    background: var(--danger-boxe);
    color: white;
    white-space: nowrap;
    overflow: hidden;
    padding: 10px 0;
    width: 100%;
    transform: rotate(-2deg);
    margin-bottom: 5%; 
    margin-top: 5%;
    z-index: 10;
    font-size: clamp(1rem, 3vw, 2rem);
}

.scrolling-text span {
    display: inline-block;
    animation: scrollText 30s linear infinite;
}
@keyframes scrollText {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Spotlight Mouse */
.spotlight {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at var(--x) var(--y), rgba(188, 0, 0, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Reveal Animation */


/* --- SEZIONE CONTATTI CUSTOM --- */

.form-custom {
    width: 100%;
    background: transparent !important;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Linea sottile bianca spenta */
    color: #ffffff !important; /* Testo bianco puro */
    padding: 12px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 0;
    outline: none;
}

/* Rende il placeholder bianco sporco */
.form-custom::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Quando l'utente clicca per scrivere */
.form-custom:focus {
    border-bottom: 2px solid var(--danger-boxe); /* La linea diventa rossa */
    padding-left: 10px; /* Piccolo movimento fluido */
}

.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

/* Effetto per il bottone INVIA SFIDA */
#contact .btn-danger {
    box-shadow: 0 10px 20px #121212;
}

/* Focus chiaro per la navigazione da tastiera */
:focus-visible {
    outline: 3px solid var(--danger-boxe) !important;
    outline-offset: 5px;
}



/* Label visivamente pulite ma leggibili */
label {
    margin-bottom: 5px;
    display: block;
    color: #fff;
}

/* Nascondere elementi solo visivamente (per screen reader) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Container principale */
.contact-link-wrapper {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Animazione Box Icona */
.icon-box {
    width: 55px;
    height: 55px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
}

.contact-link-wrapper:hover .icon-box {
    background: var(--danger-boxe);
    border-color: var(--danger-boxe);
    transform: rotate(-10deg) scale(1.1); /* Rotazione "cattiva" */
}

.contact-link-wrapper:hover .icon-inner {
    color: white !important; /* L'icona diventa bianca sul rosso */
    transform: scale(1.2);
}

/* Animazione Link Testuale */
.dynamic-contact-link {
    color: white;
    text-decoration: none;
text-transform: uppercase;
    font-weight: 900;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--danger-boxe);
    transition: width 0.3s ease;
}

.contact-link-wrapper:hover .dynamic-contact-link {
    color: var(--danger-boxe);
}

.contact-link-wrapper:hover .link-underline {
    width: 100%;
}

/* Effetto per i non vedenti/ipovedenti (Focus) */
.dynamic-contact-link:focus-visible {
    outline: none;
    background: #121212;
    padding: 5px;
}

/* Riduce drasticamente lo spazio tra le righe del titolo */
.line-height-tight {
    line-height: 0.8 !important; 
    letter-spacing: -3px; /* Avvicina le lettere per un look più "aggressivo" */
}

/* Rende lo span rosso un blocco solido che occupa spazio */
.text-danger.d-block {
    margin-top: 5px;
}




/* Icone più piccole e cattive per non distrarre dal titolo */
.icon-box-mini {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.contact-link-wrapper:hover .icon-box-mini {
    background: var(--danger-boxe);
    border-color: var(--danger-boxe);
    transform: skewX(-10deg); /* Inclinazione dinamica */
}

/* Riduciamo il padding della sezione per renderla più densa */
#contact {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.e404 {
    margin-bottom: 2rem;
}

/* Footer Styles */
footer.bg-dark {
    border-top: 2px solid #333; /* Aggiunge una separazione pulita dal contenuto */
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

footer nav a {
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

/* Feedback al passaggio del mouse */
footer nav a:hover {
    color: var(--bs-danger) !important; /* Usa il rosso del tuo brand */
    text-decoration: underline;
}








/* APERTURA Media Query Tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {

      .navbar-toggler {
        display: block !important;
        border: 1px solid #fff !important; /* Temporaneo: vedi se appare il bordo */
        margin-right: 1%;
    }

    /* Forza il menu a essere invisibile di default */
    .navbar-collapse {
        display: none !important;
    }

    /* Forza il menu ad apparire quando ha la classe 'show' */
    .navbar-collapse.show {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #121212 !important;
        z-index: 9999;
        padding: 20px;
        border-top: 1px solid #333;
    }



} /* CHIUSURA Media Query Tablet */



/* 1. APERTURA della query */
@media screen and (max-width: 768px) { 
    .navbar-toggler {
        display: block !important;
        border: 1px solid #fff !important; /* Temporaneo: vedi se appare il bordo */
        margin-right: 3%;
        padding: 0.25rem 0.5rem;
    }

    /* Forza il menu a essere invisibile di default */
   .navbar-collapse {
        background-color: #121212;
        padding: 20px;
        border-top: 1px solid #333;
        margin-top: 15px;
    }

    /* Forza il menu ad apparire quando ha la classe 'show' */
    .navbar-collapse.show {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #121212 !important;
        z-index: 9999;
        padding: 20px;
        border-top: 1px solid #333;
    }


    /* 2. APERTURA del selettore specifico */
    .header {
        display: block; 
    } /* 3. CHIUSURA del selettore */

    .menu {
        width: 100%;
    }


    /* Stile per il menu mobile aperto */
.navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        font-size: 1.2rem !important;
        padding: 10px 0 !important;
    }


/* Assicura che l'icona sia visibile */

    /* 1. Riduci il font del titolo principale per non rompere il layout */
    .display-1 {
        font-size: 3rem !important;
        line-height: 0.9 !important;
    }


    /* 4. Sistema le card delle discipline (colonne strette) */
    .custom-img-gym {
        height: 200px !important;
    }

    /* 5. Aggiusta le sezioni con padding troppo generoso */
    #contact {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* 6. Centra il form e i titoli nelle sezioni mobile */
    .text-end.d-none.d-md-block {
        display: none !important; /* Nasconde il testo descrittivo lungo su mobile */
    }
    
  
  #disciplines .d-flex {
        text-align: center !important;
    }



/* Centra le card delle discipline e dei prezzi */
    #disciplines .row, 
    #pricing .row {
        justify-content: center !important;
    }

    #disciplines article, 
    #pricing article {
        display: flex;
        justify-content: center;
        width: 100%; /* Assicura che occupino la larghezza corretta */
    }

    

    .card {
        width: 100%;
        max-width: 350px; /* Evita che le card diventino giganti su tablet/mobile largo */
        margin-left: auto;
        margin-right: auto;
    }

h2, 
    .display-2, 
    .display-3 {
        width: 100%;
        justify-content: center !important;
    }

 
#pricing .container > p {
        padding-left: 5px;
        padding-right: 15px;
    }

    section.py-5.bg-black.text-white {
        padding-left: 20px; /* Regola a tuo piacimento */
    }
} /* 4. CHIUSURA finale della Media Query */

/* Forza la visibilità del bottone su mobile e tablet */
/* Forza il tasto a comparire sotto i 992px (limite di lg) */
