/* ==========================================================================
   CLICK RENTAL CAR — HOME PAGE
   Sezioni:
     1.  Fleet Showcase Deck
     2.  Hero Search Form
     3.  Sezione Intro
     4.  Category Grid
     5.  Steps Section
     6.  Why Choose Us
     7.  Animazioni & Performance hints
     8.  Responsive — Tablet (≤1150px)
     9.  Responsive — Tablet/Mobile (≤1100px)
     10. Responsive — Mobile (≤768px)
     11. Responsive — Small Mobile (≤600px)
     12. Responsive — Short Screens (max-height: 650px)
   ========================================================================== */


/* ==========================================================================
   1. FLEET SHOWCASE DECK
   ========================================================================== */

.crc-home-fleet-deck {
    position: relative;
    z-index: 10;
    margin-top: -125px;
    padding-bottom: 100px;
}

/* Header riga titolo + link "vedi tutti" */
.deck-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.sub-label {
    display: block;
    color: var(--yellow);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 10px;
}

.deck-title-area h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    margin: 0;
}

.deck-header .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* Forma a pillola molto moderna */
    color:  var(--dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.deck-header .view-all-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Effetto Hover */
.deck-header .view-all-link:hover {
    background: rgba(255, 215, 0, 0.1); /* Sfumatura gialla chiarissima */
    border-color: var(--yellow);
    color: var(--yellow) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.deck-header .view-all-link:hover i {
    transform: translateX(5px); /* La freccia si muove a destra */
}

/* Carosello orizzontale */
.fleet-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 40px;
    scrollbar-width: none;
}

.fleet-carousel::-webkit-scrollbar {
    display: none;
}


/* ==========================================================================
   2. HERO SEARCH FORM
   ========================================================================== */

.hero-search-form {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1000px;
    margin: 48px auto 0;
}

/* Etichetta gold sopra il form */
.hsf-label-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.hsf-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: hsf-blink 2s infinite;
    flex-shrink: 0;
}

@keyframes hsf-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(255, 215, 0, 0.8); }
    50%       { opacity: 0.5; box-shadow: 0 0 4px rgba(255, 215, 0, 0.3); }
}

.hsf-label-top span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 215, 0, 0.8);
}


/* ==========================================================================
   3. INTRO SECTION
   ========================================================================== */

.crc-home-intro {
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
}

/* Grid a due colonne: testi | immagine */
.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

/* --- Lato Testi --- */

.sub-label-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sub-label-line {
    width: 40px;
    height: 2px;
    background: var(--red);
}

.intro-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.intro-title .text-accent {
    color: var(--primary);
    display: block;
}

.main-p {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-soft);
    line-height: 1.4;
    margin-bottom: 25px;
}

.desc-divider {
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin-bottom: 25px;
    border-radius: 2px;
}

.desc-p {
    font-size: 17px;
    color: var(--gray);
    max-width: 550px;
    margin-bottom: 40px;
}

.intro-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.feat-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feat-icon {
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-txt strong {
    display: block;
    font-size: 15px;
    color: var(--dark);
    text-transform: uppercase;
}

.feat-txt span {
    font-size: 13px;
    color: var(--gray);
}

/* --- Lato Immagine --- */

/*
 * Stato iniziale per le animazioni GSAP.
 * La visibilità viene ripristinata via JS allo scroll.
 */
.intro-text-content {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50px);
    will-change: transform, opacity;
}

.intro-image-wrapper {
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    will-change: transform, opacity;
}

.main-image-container {
    position: relative;
    z-index: 2;
}

.intro-img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 50, 113, 0.2);
    display: block;
}

.image-deco-frame {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    border: 10px solid var(--bg-body);
    background: var(--primary);
    border-radius: 40px;
    z-index: 1;
    transform: translate(20px, -20px);
}

/* Badge fluttuante statistico */
.floating-stat-card {
    position: absolute;
    top: 40px;
    left: -30px;
    background: var(--white);
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    animation: floatAnim 3s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.stat-icon {
    font-size: 24px;
    background: var(--yellow);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--dark);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gray);
}

/* Badge anni di esperienza */
.experience-years-badge {
    position: absolute;
    bottom: -20px;
    right: 40px;
    background: var(--dark);
    color: var(--white);
    padding: 25px;
    border-radius: 30px;
    text-align: center;
    z-index: 3;
    border: 2px solid var(--dark-soft);
}

.experience-years-badge strong {
    display: block;
    font-size: 32px;
    line-height: 1;
    color: var(--yellow);
}

.experience-years-badge span {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}


/* ==========================================================================
   4. CATEGORY GRID
   ========================================================================== */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}

.cat-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #eee;
    transition: var(--transition);
}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}


/* ==========================================================================
   5. STEPS SECTION
   ========================================================================== */

.steps-main-title {
    text-align: center;
    margin-bottom: 80px;
}

.steps-main-title .tech-id {
    display: block;
    color: var(--yellow);
    font-family: monospace;
    letter-spacing: 5px;
    font-size: 12px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.steps-main-title h2 {
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -3px;
    color: #fff;
}

.steps-main-title h2 span {
    color: var(--yellow);
    display: block;
    margin-top: 5px;
}

.crc-steps-section {
    padding: 100px 0;
    position: relative;
    z-index: 5;

    /*
     * Il clip-path diagonale crea un taglio angolato in cima alla sezione.
     * Su desktop funziona bene; su mobile viene disabilitato (vedi media query)
     * per evitare che l'angolo bianco del body sia visibile sotto la flotta scura.
     */
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    padding-top: 140px;
    margin-top: -50px;
}

/* Fix per le card affinché non tocchino il titolo */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* Step card — stato iniziale per animazione GSAP */
.step-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 50px 40px;
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    will-change: transform, opacity;
    z-index: 1;
}

.step-card:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: var(--yellow);
    transform: translateY(-10px);
}

/* Numero decorativo in filigrana */
.step-num {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 25px;
    display: block;
}

.step-icon-svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    color: var(--yellow);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
    transition: all 0.4s ease;
}

.step-card:hover .step-icon-svg {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    color: #fff;
}

.step-card h3 {
    font-size: 20px;
    letter-spacing: 0;
    margin-bottom: 12px;
    color: #fff;
}

.step-card p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.5;
    color: #fff;
}


/* ==========================================================================
   6. WHY CHOOSE US
   ========================================================================== */

.crc-why-choose-section {
    padding: 120px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* Header testuale */
.why-header .tech-id {
    display: block;
    color: var(--primary);
    font-family: monospace;
    letter-spacing: 4px;
    font-size: 11px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.why-header h2 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--dark);
    margin-bottom: 30px;
}

.why-header h2 span {
    color: var(--primary);
}

.why-header .section-desc {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Griglia vantaggi */
.why-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.why-card {
    padding: 40px;
    background: var(--bg-body);
    border-radius: 30px;
    border: 1px solid rgba(0, 50, 113, 0.05);
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--yellow);
}

.why-card .card-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto;
    color: var(--primary);
    transition: var(--transition);
}

.why-card .card-icon svg {
    width: 100%;
    height: 100%;
}

.why-card:hover .card-icon {
    color: var(--yellow);
    transform: scale(1.1);
}

.why-card h3 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--dark);
}

.why-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
}


/* ==========================================================================
   7. ANIMAZIONI & PERFORMANCE HINTS
   ========================================================================== */

.fleet-item-card,
.is-animate,
.intro-text-content,
.intro-image-wrapper {
    will-change: transform, opacity;
}

/* Transizione fluida dell'header (ridefinita qui per la home) */
.site-header {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease !important;
}


/* ==========================================================================
   8. RESPONSIVE — TABLET (≤1150px)
   ========================================================================== */

@media (max-width: 1150px) {
    .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cat-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================================
   9. RESPONSIVE — TABLET/MOBILE (≤1100px)
   ========================================================================== */

@media (max-width: 1100px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .intro-text-content {
        order: 2;
        text-align: center;
    }

    .sub-label-wrapper {
        justify-content: center;
    }

    .desc-p,
    .desc-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .intro-features-grid {
        max-width: 500px;
        margin: 0 auto;
    }

    .feat-item {
        text-align: left;
    }

    .why-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .why-features-grid {
        gap: 20px;
    }
}


/* ==========================================================================
   10. RESPONSIVE — MOBILE (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. RIPRISTINO DIAGONALE: Manteniamo il taglio ma lo rendiamo meno estremo */
    .crc-hero-master {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%) !important;
        padding-bottom: 100px !important;
        z-index: 1;
    }

    /* 2. FIX BUCO BIANCO: Facciamo salire la flotta sotto la hero */
    .crc-home-fleet-deck {
        margin-top: -60px !important; /* Sovrappone la sezione alla diagonale della hero */
        padding: 40px 0 60px !important;
        position: relative;
        z-index: 2; /* Sta sopra al 'buco' ma sotto il contenuto della hero se serve */
        background: transparent; /* Permette al JS di cambiare il colore del body sotto */
    }

    /* 3. SISTEMAZIONE STEPS: Manteniamo la diagonale anche qui */
    .crc-steps-section {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%) !important;
        padding-top: 100px !important;
        margin-top: -40px !important;
    }

    /* Resto dei tuoi stili mobile (bottoni, card, etc) restano invariati */
    .btn-outline-white { width: 100%; padding: 16px; margin: 20px auto; }
    .deck-title-area h2 { font-size: 28px; }
    .fleet-item-card { flex: 0 0 300px; }
    .cat-grid { grid-template-columns: 1fr; }
    .why-features-grid { grid-template-columns: 1fr; }
    .why-card { padding: 30px; }
    .steps-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   11. RESPONSIVE — SMALL MOBILE (≤600px)
   ========================================================================== */

@media (max-width: 600px) {
    .crc-home-intro {
        padding: 80px 0;
    }

    .floating-stat-card {
        left: 10px;
        top: -20px;
        padding: 15px;
    }

    .experience-years-badge {
        right: 10px;
        bottom: -10px;
        padding: 15px;
    }

    .intro-features-grid {
        grid-template-columns: 1fr;
    }

    /* Hero Search Form mobile */
    .hero-search-form {
        margin-top: 24px;
    }

    .hero-search-form .wcr-fleet-container {
        padding: 16px;
        border-radius: 24px;
    }

    .hero-search-form .filter-inputs {
        padding: 12px;
        border-radius: 16px;
    }

    .hero-search-form .filter-inputs select[name="p_loc"],
    .hero-search-form .filter-inputs select[name="d_loc"] {
        height: 46px !important;
        font-size: 13px !important;
    }

    .hero-search-form .filter-inputs input.wcr-date-picker,
    .hero-search-form .filter-inputs select[name="p_time"],
    .hero-search-form .filter-inputs select[name="d_time"] {
        height: 42px !important;
    }

    .hsf-count {
        display: none;
    }

    .hsf-trust-item {
        font-size: 9px;
        padding: 6px 10px;
    }
}


/* ==========================================================================
   12. RESPONSIVE — SHORT SCREENS (max-height: 650px)
   ========================================================================== */

@media (max-height: 650px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-description {
        display: none;
    }
}

/* ==========================================================================
   MOBILE OPTIMIZATION: DECK HEADER (HOME PAGE)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Stack verticale del contenitore */
    .crc-home-fleet-deck .deck-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px;
        margin-bottom: 40px !important;
        padding: 0 20px;
    }

    /* 2. Ottimizzazione area titoli */
    .crc-home-fleet-deck .deck-title-area {
        width: 100%;
    }

    .crc-home-fleet-deck .sub-label {
        justify-content: center;
        margin-bottom: 12px;
        font-size: 11px;
        letter-spacing: 3px;
    }

    .crc-home-fleet-deck .deck-title-area h2 {
        font-size: 32px !important; /* Più grande e d'impatto */
        line-height: 1.1;
        letter-spacing: -1px;
    }

    /* 3. Trasformazione Link in Pulsante Tecnico "Glass" */
    .crc-home-fleet-deck .view-all-link {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05); /* Effetto vetro scuro */
        border: 1px solid rgba(255, 215, 0, 0.3); /* Bordo oro sottile */
        color: var(--yellow) !important;
        padding: 12px 25px;
        border-radius: 12px;
        font-size: 12px;
        text-transform: uppercase;
        font-weight: 800;
        letter-spacing: 1px;
        width: auto;
        min-width: 200px;
        transition: all 0.3s ease;
    }

    /* Effetto pressione al tocco */
    .crc-home-fleet-deck .view-all-link:active {
        background: var(--yellow);
        color: var(--dark) !important;
        transform: scale(0.95);
    }

    .crc-home-fleet-deck .view-all-link i {
        margin-left: 10px;
        font-size: 18px;
        transition: transform 0.3s ease;
    }

    /* 4. Aggiunta di una linea decorativa tecnica sotto il titolo (opzionale) */
    .crc-home-fleet-deck .deck-title-area h2::after {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--yellow);
        margin: 15px auto 0;
        border-radius: 2px;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
}

/* ==========================================================================
   TECHNICAL FAQ SECTION (CINEMATIC DARK STYLE)
   ========================================================================== */

.faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.faq-grid h2 {
    color: var(--yellow);
    display: block;
    margin-top: 5px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -3px;    
}

.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Card in stile Cockpit Dark */
.crc-home-faq .faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.crc-home-faq .faq-question {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 20px;
}

.crc-home-faq .faq-num {
    font-family: monospace;
    font-size: 14px;
    font-weight: 900;
    color: var(--yellow);
    opacity: 0.4;
}

.crc-home-faq .faq-question h3 {
    flex-grow: 1;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-align: left!important;
    color: #ffffff !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Icona Plus/Minus Gold */
.crc-home-faq .faq-plus {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.crc-home-faq .faq-plus::before, 
.crc-home-faq .faq-plus::after {
    content: '';
    position: absolute;
    background: var(--yellow);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.crc-home-faq .faq-plus::before { width: 14px; height: 2px; }
.crc-home-faq .faq-plus::after  { width: 2px; height: 14px; }

/* Stato Aperto / Hover */
.crc-home-faq .faq-item:hover {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.crc-home-faq .faq-item.is-open {
    border-color: var(--yellow);
    background: rgba(0, 50, 113, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.crc-home-faq .faq-item.is-open .faq-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.crc-home-faq .faq-item.is-open .faq-plus::before {
    background: #ffffff;
}

.crc-home-faq .faq-item.is-open .faq-num {
    opacity: 1;
}

.crc-home-faq .faq-answer {
    display: none; 
    overflow: hidden;
}

.crc-home-faq .faq-answer-inner {
    padding: 0 30px 30px 65px; /* Spostato per allinearsi dopo il numero */
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.crc-home-faq .faq-answer-inner strong {
    color: var(--yellow);
}

/* Responsive */
@media (max-width: 1100px) {
    .faq-grid { grid-template-columns: 1fr; gap: 50px; }
    .faq-header { text-align: center; }
    .faq-header .section-desc { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .crc-home-faq .faq-question { padding: 20px; }
    .crc-home-faq .faq-question h3 { font-size: 16px !important; }
    .crc-home-faq .faq-answer-inner { padding: 0 20px 20px 20px; }
}

/* ==========================================================================
   ADVANCED SCROLLABLE FAQ (COCKPIT STYLE)
   ========================================================================== */

.faq-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

/* Header Sinistro Sticky */
.faq-header {
    position: sticky;
    top: 150px;
}

/* Contenitore con Altezza Fissa */
.faq-accordion-container {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-scroll-area {
    max-height: 550px; /* Altezza massima del box */
    overflow-y: auto;
    padding: 20px 25px 80px 10px; /* Padding bottom per l'effetto fade */
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) rgba(255,255,255,0.05);
}

/* Personalizzazione Scrollbar per Chrome/Safari */
.faq-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.faq-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}
.faq-scroll-area::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Effetto Dissolvenza Finale */
.faq-fade-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 100px;
    pointer-events: none; /* Permette di cliccare attraverso la sfumatura */
    border-radius: 0 0 30px 30px;
    z-index: 10;
}

/* Mouse Hint a sinistra */
.faq-scroll-hint {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.mouse-icon .wheel {
    width: 2px;
    height: 6px;
    background: var(--yellow);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* Tablet & Mobile Fix */
@media (max-width: 1100px) {
    .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .faq-header { position: static; text-align: center; }
    .faq-scroll-hint { justify-content: center; }
    .faq-scroll-area { max-height: 450px; }
}