/* ==========================================
   1. REGOLAZIONI DI BASE E RESET
   ========================================== */
html, body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   2. CONTENITORI PRINCIPALI
   ========================================== */
.content-wrapper {
    width: 70vw;
    max-width: 1050px;
    margin: 0 auto;
    padding-top: 20px;
}

.top-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.top-banner img {
    width: 70vw;
    max-width: 1050px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================
   3. CAROSELLO & MAP-PIN INTERATTIVI
   ========================================== */
#carouselExampleIndicators {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.interactive-slide {
    position: relative; /* Necessario per ancorare i pin */
}

/* Styling delle icone/gocce sulla mappa */
.map-pin {
    position: absolute;
    width: 5.5%;
    min-width: 28px;
    max-width: 45px;
    transform: translate(-50%, -100%);
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
    z-index: 10;
}

.map-pin svg {
    width: 100%;
    height: auto;
    display: block;
}

.map-pin:hover {
    transform: translate(-50%, -100%) scale(1.25);
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.8));
}

/* Posizionamento puntatori sulla slide */
.pin-casuzze {
    top: 90.2%;
    left: 14.8%;
}

.pin-puntarazzi {
    top: 90.2%;
    left: 42.2%;
}

.pin-braccetto {
    top: 90.2%;
    left: 63.8%;
}

/* ==========================================
   4. TIPOGRAFIA & PULSANTI DI AZIONE
   ========================================== */
.text-justify-custom {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
    font-size: 17px;
}

.btn-custom {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    margin-top: 15px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 16px;
    box-sizing: border-box;
}

.btn-custom:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Varianti colore pulsanti */
.btn-fotogalleria-2026 {
    background-color: #ffcc00;
    border: 1px solid #ffcc00;
    color: #000000 !important; /* Testo nero su fondo giallo */
}

.btn-fotogalleria-2026:hover {
    background-color: #e6b800;
    color: #000000 !important;
}

.btn-fotogalleria {
    background-color: #cc0000;
    border: 1px solid #cc0000;
}

.btn-info-custom {
    background-color: #8b4513;
    border: 1px solid #8b4513;
}

.btn-iscrizione {
    background-color: #a0522d;
    border: 1px solid #a0522d;
}

/* ==========================================
   FOOTER FACEBOOK (ELFSIGHT WIDGET)
   ========================================== */
#facebook-footer-panel {
    background-color: #121212;
    padding: 30px 15px;
    margin-top: 40px;
    border-top: 1px solid #222222;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fb-panel-container {
    width: 100%;
    max-width: 850px; /* Spazio sufficiente per permettere ad Elfsight di affiancare 2 post */
    margin: 0 auto;
}
/* ==========================================
   6. BANNER COOKIE GDPR
   ========================================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1c1c1c;
    color: #f1f1f1;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    z-index: 9999;
}

#cookie-banner p {
    margin: 0;
    padding-right: 15px;
}

#cookie-banner a {
    color: #add8e6;
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-accept {
    background-color: #d32f2f;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

.btn-accept:hover {
    background-color: #b71c1c;
}

.btn-decline {
    background-color: #424242;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-decline:hover {
    background-color: #616161;
}

/* ==========================================
   7. MEDIA QUERIES (DISPOSITIVI MOBILI)
   ========================================== */
@media screen and (max-width: 768px) {
    .content-wrapper {
        width: 92%;
    }

    .top-banner img {
        width: 100%;
    }

    .text-justify-custom {
        font-size: 16px;
        line-height: 1.7;
    }

    .btn-custom {
        font-size: 15px;
        padding: 14px 8px;
    }

    #cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    #cookie-banner p {
        padding-right: 0;
    }
}