/* ========================================= */
/* FILE: territorio.css - DEFINITIVO V3      */
/* ========================================= */

/* --- 0. INDICATORI SCORRIMENTO METEO E KIT --- */
.scroll-indicators-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px; /* Spazio in mezzo ai due pulsanti */
    margin: 35px auto 10px auto; /* 35px in alto li abbassa, 10px in basso li avvicina al testo */
    flex-wrap: wrap; /* Assicura la responsività su smartphone */
}

.meteo-scroll-indicator {
    text-align: center;
    cursor: pointer;
    color: #a9343c; 
    background-color: #ffffff;
    border: 2px solid #a9343c; 
    font-weight: 600;
    padding: 8px 25px; 
    border-radius: 30px; 
    width: fit-content; 
    animation: bounce 2s infinite;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    transition: all 0.3s ease; 
}

.meteo-scroll-indicator:hover {
    background-color: #a9343c; 
    color: #ffffff;
}

.meteo-scroll-arrow {
    display: block;
    font-size: 24px;
    margin-top: 2px;
}

/* Animazione che fa muovere la freccia su e giù */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* --- 1. INTRO & AVATAR --- */
.intro-avatar-section {
    display: flex; flex-direction: column; gap: 30px;
    padding: 0 0 40px 0; /* PADDING SUPERIORE A 0 per avvicinare il contenuto ai bottoni */
    border-bottom: 1px solid #eee;
}

/* RIMOSSO IL COLORE: Ora eredita dal Global (Rosso) */
.intro-text h2 {
    font-size: 1.8rem; margin-bottom: 20px; text-align: left;
}
.intro-text p { margin-bottom: 15px; text-align: justify; }

.intro-avatar-box { display: flex; justify-content: center; }
.avatar-placeholder {
    width: 100%; max-width: 400px; height: 200px;
    background: #f9f9f9; border: 2px dashed #ccc; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #888; padding: 20px;
}

/* --- 2. ESPERIENZE (Zig-Zag) --- */
.territorio-experiences {
    padding: 40px 0; display: flex; flex-direction: column; gap: 50px;
}
.zigzag-block { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.block-text { flex: 1; text-align: justify; width: 100%; }
.block-media { flex: 1; width: 100%; position: relative; }

/* Titoli H3 Rossi e SX */
.block-text h3 {
    color: #a9343c; font-size: 1.5rem; margin-bottom: 15px; text-align: left;
}

/* Link Galleria */
.gallery-link {
    display: block; position: relative; text-decoration: none;
    border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.gallery-link img { width: 100%; height: auto; display: block; }
.gallery-link:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.gallery-icon {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(169, 52, 60, 0.9); color: #fff; padding: 10px;
    text-align: center; font-weight: 600; text-transform: uppercase;
    font-size: 0.9rem; transform: translateY(100%); transition: transform 0.3s ease;
}
.gallery-link:hover .gallery-icon { transform: translateY(0); }


/* --- 3. KIT ESCURSIONI --- */
.kit-section {
    padding: 50px 0; background-color: #fafafa;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
/* TITOLO A SINISTRA E ROSSO (H2) */
.section-heading-left {
    text-align: left; color: #a9343c;
    margin-bottom: 40px; font-size: 2rem; font-weight: 700;
}

.kit-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

/* ORA PUNTA A H3 (Gerarchia corretta) */
.kit-col h3 {
    color: #a9343c; border-bottom: 2px solid #ddd; font-size: 1.2rem;
    padding-bottom: 10px; margin-bottom: 20px; text-align: left;
}

.kit-list { list-style: none; padding: 0; }
.kit-list li { margin-bottom: 10px; padding-left: 15px; position: relative; }
.kit-list li::before {
    content: "›"; color: #a9343c; position: absolute;
    left: 0; font-weight: bold; font-size: 1.2rem; line-height: 1;
}
.kit-list a { text-decoration: none; color: #555; transition: 0.2s; }
.kit-list a:hover { color: #a9343c; padding-left: 5px; }

.btn-transport {
    display: block; background: #a9343c; color: #fff; text-align: center;
    padding: 10px; border-radius: 4px; text-decoration: none;
    margin-bottom: 10px; font-weight: 600; transition: 0.3s;
}
.btn-transport:hover { background: #8e2b32; }

/* Nota Aggiornamento */
.update-note {
    text-align: right; font-size: 12px; font-style: italic; color: #888;
    margin-top: 20px; 
    border-top: 1px solid #e0e0e0; padding-top: 10px;
}


/* --- 4. REALTIME --- */
.realtime-section { padding: 50px 0; }
.realtime-intro { margin-bottom: 40px; text-align: justify; color: #555; }

.realtime-grid { display: flex; flex-direction: column; gap: 40px; }

/* Sottotitoli (H3) */
.sub-heading {
    color: #a9343c; font-size: 1.4rem; margin-bottom: 15px;
    border-bottom: 1px solid #eee; padding-bottom: 5px;
}

.video-responsive-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0;
    overflow: hidden; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.video-responsive-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.meteo-wrapper iframe { width: 100%; height: 200px; border: 0; border-radius: 8px; }

.alert-box {
    display: flex; align-items: center; background: #fff4f4;
    border-left: 4px solid #a9343c; padding: 15px; border-radius: 4px;
    text-decoration: none; color: #333; margin-top: 20px; transition: 0.2s;
}
.alert-box:hover { background: #fee; }
.alert-icon { font-size: 24px; margin-right: 15px; }
.alert-text { display: flex; flex-direction: column; }
.alert-text span { font-size: 12px; font-weight: 400; color: #666; }


/* --- RESPONSIVE DESKTOP (>768px) --- */
@media (min-width: 768px) {
    .intro-avatar-section { flex-direction: row; align-items: center; gap: 50px; }
    .intro-text { flex: 2; }
    .intro-avatar-box { flex: 1; }

    .zigzag-block { flex-direction: row; gap: 50px; align-items: flex-start; }
    .zigzag-block.reverse-desktop { flex-direction: row-reverse; }
    
    .kit-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }

    .realtime-grid { flex-direction: row; align-items: flex-start; }
    .realtime-col-main { flex: 3; }
    .realtime-col-side { flex: 2; }
}