/*
 Theme Name:   Understrap Child
 Theme URI:    https://understrap.com
 Description:  Understrap Child Theme
 Author:       the Understrap Contributors
 Author URI:   https://github.com/understrap/understrap-child/graphs/contributors
 Template:     understrap
 Version:      1.2.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  understrap-child
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/

/*
 Theme Name:   Understrap Child
 ... (lascia la tua intestazione qui intatta) ...
*/

/* ==========================================================================
   IL PALLONE D'ORO CAMP - STILE GLOBALE E COMPLETO
   ========================================================================== */

:root {
    --primary-gold: #d4af37;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #f8f9fa;
}

/* Forza lo sfondo nero su tutto il sito */
body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: var(--dark-bg) !important;
    color: var(--text-light) !important;
    overflow-x: hidden;
}

/* Typography & Utilities */
.text-gold {
    color: var(--primary-gold) !important;
}

.bg-gold {
    background-color: var(--primary-gold) !important;
    color: #000 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-padding {
    padding: 80px 0;
}

/* ==========================================================================
   EFFETTO ORO ANIMATO (404 Style)
   ========================================================================== */

/* Animazione del gradiente che scorre (effetto luce metallica) */
@keyframes shine-gold {
    to {
        background-position: 200% center;
    }
}

/* Classe per applicare l'effetto ai testi */
.text-gold-animated {
    background: linear-gradient(to right, #B8860B, #F9F295, #E0AA3E, #B8860B) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    animation: shine-gold 4s linear infinite;
    display: inline-block;
}

/* Bottoni (Ora sono lingotti d'oro animati) */
.btn-cta {
    background: linear-gradient(to right, #B8860B, #F9F295, #E0AA3E, #B8860B) !important;
    background-size: 200% auto !important;
    color: #050505 !important;
    font-weight: 900;
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none !important;
    /* Tolto il bordo per far rendere il gradiente */
    display: inline-block;
    text-decoration: none;
    animation: shine-gold 4s linear infinite;
    /* Animazione attiva */
}

.btn-cta:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 25px rgba(224, 170, 62, 0.4);
    text-decoration: none;
    color: #000 !important;
}

/* ==========================================================================
   SEZIONI SPECIFICHE (Cards, Creators, Numeri)
   ========================================================================== */

/* Stats Cards */
.stat-card {
    background: var(--card-bg) !important;
    border: 1px solid #333 !important;
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold) !important;
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

/* Sponsor Benefits (I numeri sfumati dietro) */
.benefit-step {
    position: relative;
    z-index: 1;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -20px;
    left: 10px;
    z-index: -1;
}

/* Creators Section */
.creator-card {
    background: linear-gradient(145deg, #1a1a1a, #222) !important;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.creator-header {
    /* Ora la testata dei creator ha il gradiente animato! */
    background: linear-gradient(to right, #B8860B, #F9F295, #E0AA3E, #B8860B) !important;
    background-size: 200% auto !important;
    color: #000 !important;
    padding: 15px;
    font-weight: 900;
    text-align: center;
    animation: shine-gold 4s linear infinite;
}

.social-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: #fff;
}

.social-stat:last-child {
    border-bottom: none;
}

/* ==========================================================================
   HEADER E FOOTER GLOBALI
   ========================================================================== */

/* Navbar Globale */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .8) !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Allinea il Logo al centro verticale */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* Rimuove i margini indesiderati di WordPress dai Menu */
.navbar-nav {
    margin-bottom: 0 !important;
}

/* Allinea i testi del menu al centro verticale */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, .8) !important;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100%;
    /* Prende tutta l'altezza disponibile */
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

/* "Snellisce" il bottone CTA solo quando si trova nella Navbar */
.navbar .btn-cta {
    padding: 10px 25px !important;
    /* Più piccolo rispetto al bottone della Hero */
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile: spaziatura voci menu e bottone centrato (Fullscreen Menu) */
@media (max-width: 991px) {
    .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 65vh;
        /* Fa in modo che il gruppo menu+bottone occupi buona parte dello schermo */
        width: 100%;
        padding-top: 20px;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        font-size: 1.6rem;
        /* Testo molto più grande e leggibile */
        padding-top: 18px !important;
        padding-bottom: 18px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Separatore elegante */
        justify-content: center;
        text-align: center;
        width: 80%;
        /* Per non far toccare la linea ai bordi e dare un look più premium */
        margin: 0 auto;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Allineamento e stile del bottone all'interno del menu aperto */
    .navbar-collapse .btn-cta {
        display: flex;
        width: fit-content;
        margin: 30px auto 30px !important;
        font-size: 1.2rem;
        padding: 15px 40px !important;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* Footer Globale */
.contact-box {
    background: #fff !important;
    color: #000 !important;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-box h3 {
    color: #000 !important;
}

.footer-logos img {
    max-height: 50px;
    margin: 0 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-logos img:hover {
    opacity: 1;
}

/* ==========================================================================
   FORM DI ISCRIZIONE (Dark Mode & Gold Focus)
   ========================================================================== */

.camp-form-control {
    background-color: #151515;
    border: 1px solid #333;
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.camp-form-control:focus {
    background-color: #1a1a1a;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    color: #fff;
    outline: none;
}

/* Stile per la tendina (Select) */
select.camp-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d4af37' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.camp-form-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.camp-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-gold);
    cursor: pointer;
}

/* Box PDF */
.pdf-download-box {
    background: linear-gradient(145deg, #111, #1a1a1a);
    border: 1px solid #333;
    border-top: 4px solid var(--primary-gold);
    border-radius: 20px;
    padding: 40px;
}

.wpcf7 form.sent .wpcf7-response-output {
    display: none !important;
}

/* ==========================================================================
   HOMEPAGE: COUNTDOWN, GAMIFICATION E SILHOUETTES
   ========================================================================== */

/* Countdown Timer */
.countdown-box {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.countdown-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

/* Card Bloccate (Gamification Location) */
.card-locked {
    background: #0a0a0a !important;
    border: 1px dashed #333 !important;
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.card-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px);
    border-radius: 15px;
    pointer-events: none;
}

/* Effetto "Chi è quel Pokémon?" (Silhouettes) */
.silhouette-img {
    filter: brightness(0);
    /* Rende l'immagine completamente nera */
    transition: all 0.5s ease;
    opacity: 0.8;
}

.creator-card-mystery {
    background: linear-gradient(145deg, #111, #1a1a1a);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.creator-card-mystery:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.creator-card-mystery:hover .silhouette-img {
    /* Al passaggio del mouse la sagoma nera fa un bagliore dorato */
    filter: brightness(0) drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
    transform: scale(1.05);
}

/* Social Proof Bar */
.social-proof-bar {
    background: #000;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 30px 0;
}

.social-proof-icon {
    font-size: 2.5rem;
    color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 20px;
}

.social-proof-icon:hover {
    opacity: 1;
    color: var(--primary-gold);
    transform: translateY(-5px);
}

/* ==========================================================================
   PAGINA FONDATORI (Profili e Card)
   ========================================================================== */

.founder-card {
    background: linear-gradient(145deg, #111, #1a1a1a);
    border: 1px solid #333;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.founder-img-wrapper {
    position: relative;
    border-bottom: 2px solid var(--primary-gold);
}

/* Sfumatura scura in fondo all'immagine per far leggere bene i nomi */
.founder-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(17, 17, 17, 1), transparent);
}

.founder-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-gold);
    color: #000;
    padding: 5px 15px;
    font-weight: 900;
    border-radius: 50px;
    z-index: 2;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.social-links-founder a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #050505;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-links-founder a:hover {
    background-color: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
    transform: scale(1.1);
}

/* ==========================================================================
   FIX RADIO BUTTONS E CLICK SUL TESTO (CF7)
   ========================================================================== */

.camp-radio-group .wpcf7-list-item {
    display: block;
    margin-left: 0;
    margin-bottom: 15px;
    /* Spazio tra le opzioni */
}

.camp-radio-group .wpcf7-list-item:last-child {
    margin-bottom: 0;
}

/* Allinea perfettamente pallino e testo e rende TUTTO cliccabile */
.camp-radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    width: 100%;
    /* Estende l'area cliccabile */
}

.camp-radio-group input[type="radio"] {
    accent-color: var(--primary-gold);
    transform: scale(1.4);
    margin-right: 15px;
    /* Spazio tra pallino e testo */
    cursor: pointer;
    flex-shrink: 0;
    /* Impedisce al pallino di deformarsi se il testo va a capo su mobile */
}

.camp-radio-group .wpcf7-list-item-label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.3;
}

.hover-text-gold:hover {
    color: var(--primary-gold) !important;
}

/* ==========================================================================
   TIMELINE (LA GIORNATA TIPO - PAGINA FORMAT)
   ========================================================================== */

.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* La linea centrale scura */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    /* Posizionata a sinistra per essere perfetta su mobile */
    width: 2px;
    background-color: #333;
}

.timeline-step {
    position: relative;
    margin-bottom: 40px;
    padding-left: 100px;
    /* Spazio per l'icona e la linea */
}

.timeline-step:last-child {
    margin-bottom: 0;
}

/* Il Pallino con l'Icona */
.timeline-icon {
    position: absolute;
    left: 15px;
    /* Centrato esattamente sulla linea */
    top: 0;
    width: 52px;
    height: 52px;
    background-color: var(--camp-black);
    border: 3px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    z-index: 2;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    background-color: var(--primary-gold);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

.timeline-time {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Responsive: Su schermi piccoli riduciamo leggermente le dimensioni */
@media (max-width: 767px) {
    .timeline-wrapper::before {
        left: 30px;
    }

    .timeline-icon {
        left: 5px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .timeline-step {
        padding-left: 80px;
        margin-bottom: 30px;
    }

    .timeline-time {
        font-size: 1.6rem;
    }

    .timeline-title {
        font-size: 1rem;
    }
}