/* ==========================================================================
   RESET STRUTTURALE & RIMOZIONE SPAZI (HOME)
   ========================================================================== */
.home .site-main,
.home #main-container,
.home .ct-container-full,
.home .entry-content,
.home .entry-content.is-layout-constrained {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   HERO SECTION - SFUMATURA MORBIDA CON IMMAGINE SPOSTATA A DESTRA
   ========================================================================== */

.main-hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: #000000;
    background-image: url('https://www.ciclibattistella.it/wp-content/uploads/2024/10/img-hero.jpeg');
    background-size: cover;
    background-position: 85% center; /* Spinge il ciclista a destra fuori dal nero */
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Sfumatura cinematografica: lascia la parte destra del ciclista totalmente pulita */
.main-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000000 0%, #000000 40%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0) 90%);
    z-index: 1;
}

/* Contenitore dei testi con più respiro */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 6%;
    box-sizing: border-box;
}

/* Area di testo limitata per non sovrapporsi visivamente */
.hero-content > * {
    max-width: 45% !important;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */

.hero-kicker {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8a8a8a;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc !important;
    margin-bottom: 2.8rem;
    font-weight: 400;
}

/* ==========================================================================
   STRUTTURA BOTTONI GUTENBERG FORZATA
   ========================================================================== */

.hero-actions {
    display: flex !important;
    gap: 1.2rem !important;
    flex-wrap: wrap !important;
}

/* Intercettiamo il tag 'a' interno generato da Gutenberg per dargli lo stile */
.hero-actions .btn-hero a,
.hero-actions .btn-hero-primary a,
.hero-actions .btn-hero-secondary a,
.btn-hero {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.95rem 2.2rem !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    border-radius: 3px !important;
    transition: all 0.2s ease-in-out !important;
}

/* Effetto Hover */
.hero-actions .wp-block-button:hover {
    transform: translateY(-2px) !important;
}

/* Stile Bottone Principale (Arancio/Giallo - Testo Nero) */
.btn-hero-primary a, 
.btn-hero-primary.wp-block-button__link {
    color: #000000 !important;
    background: linear-gradient(135deg, #ff7300 0%, #ffbe00 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 115, 0, 0.35) !important;
}

/* Stile Bottone Secondario (Trasparente - Bordo e Testo Bianco) */
.btn-hero-secondary a, 
.btn-hero-secondary.wp-block-button__link {
    color: #ffffff !important;
    background: transparent !important;
    border: 2px solid #ffffff !important;
}

.btn-hero-secondary a:hover, 
.btn-hero-secondary.wp-block-button__link:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* ==========================================================================
   RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
    .main-hero-section {
        min-height: 70vh;
        background-position: center center;
    }
    .main-hero-section::before {
        background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 100%);
    }
    .hero-content > * {
        max-width: 100% !important;
        text-align: center;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { justify-content: center; }
}