﻿/* Intro e container */


#contenutoUsato {
    padding-top: 7rem;
    bottom: 2rem;

}


    
    /* annulla overlay nel pannello destro */
.colonna-destra #teamContainer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    display: flex;
    flex-direction: column;
    gap: .5rem !important;
    top: 0 !important; /* sta sotto #aboutContent */
    overflow: visible; /* niente scroll interno se non serve */
    max-height: none;
}



/* Overlay "chi siamo" */
#aboutContent,
#comproContent {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,.7);
    /* Effetto vetro */
    background: rgba(255, 255, 255, 0.15) !important; /* più trasparente */
    border-bottom: 5px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 5px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important; /* profondità */

    margin: 1rem 1rem 3rem 1.2rem !important;
    padding: 1.5rem 2rem;
    text-align: justify;
    border-radius: 0.75rem;
    

}
    #aboutContent ul,
    #comproContent ul {
        margin-top: 1rem;
        padding-left: 1.2rem;
        list-style: disc;
    }

    #aboutContent li,
    #comproContent li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }



.team-intro {
    text-align: center;
    padding: 1rem 1rem;
    background-color: #f8f9fa;
}


#teamContainer {
    display: flex;
    flex-direction: column; /* 👈 impila le card verticalmente */
    gap: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    overflow-y: auto; /* 👈 abilita scroll verticale se serve */
}

/* Card stile vetro */
.team-card {
    display: flex;
    align-items: flex-start; /* allinea in alto */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    margin: 0 1rem 0 1.5rem !important;
    padding: 1rem;
    width: 90%; /* un po' più larga per layout orizzontale */
    height: auto;
    border-radius: 1rem;
    color: white !important;
    transition: all 0.2s ease;

}

    .team-card:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Avatar a sinistra */
    .team-card img.team-avatar {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
        padding: 2px;
        box-sizing: border-box;
        border-radius: 100%;
        object-fit: contain;
        background-color: rgba(255,255,255,0.9);
        margin-right: 1.5rem; /* spazio tra avatar e testo */
    }

    /* Blocco info a destra */
    .team-card .team-info {
        flex: 1;
        display: flex;
        flex-direction: column; /* 👈 uno sotto l’altro */
        text-align: left;
        justify-content: center;
    }

    /* Testi */
    .team-card h4 {
        font-size: 1rem;
        margin: 0 0 0.25rem;
    }

    .team-card h5 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 0.4rem;
    }

    .team-card p {
        font-size: 0.85rem;
        font-weight: 400;
        color: #f7f7f7;
        margin: 0.25rem 0;
    }

    .team-card .ruolo {
        color: #ccc;
        font-weight: 500;
    }
    .team-card .contatti-inline {
        display: flex;
        align-items: center;
        gap: 1rem; /* spazio tra email e telefono */
        margin-top: 0.25rem;
        font-size: 0.85rem;
        color: #f7f7f7;
    }

.glass-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border-radius: .75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
    color: white;

}
    .glass-box input,
    .glass-box textarea {
        background: rgba(255, 255, 255, 0.15);
    }
    .glass-box button {
        background: var(--tertiary-color);
        border: none;
    }
    .glass-box button:hover {
        background: var(--secondary-color);
    }

@media (max-width: 1250px) {
    #contenutoUsato {
        padding-top: 1rem;
        margin-bottom: 0 !important;
        
    }
}

/* === DEDICA PUBBLICA === */
#dedicaPubblica {
    position: relative;
    align-items: center;
    justify-content: center;
    margin: 2rem .5rem;
}

#dedicaPubblicaImg {
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
    transition: transform .3s;
}

    #dedicaPubblicaImg:hover {
        transform: scale(1.02);
    }

#dedicaPubblicaTesto {
    font-family: "Lora", serif;
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: #f8f9fa;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    white-space: pre-line;
    letter-spacing: 0.2px;
}


#dedicaPubblicaFirma {
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  color: #ffdca0; /* oro chiaro */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  margin-top: 0.5rem;
  display: block;
  letter-spacing: 0.3px;
}

#dedicaPubblicaTitolo {
    font-family: "Lora", serif;
    font-style: italic;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: #f0f0f0;
    opacity: 0.9;
    margin-top: 0.2rem;
}


/* MOBILE */
/* === MOBILE STYLE === */
@media (max-width: 767.98px) {

    #dedicaPubblica {
        display: block;
        position: relative;
        text-align: center;
        
    }

    #dedicaPubblicaImg {
        width: 100%;
        max-width: none;
        border-radius: 0;
        height: 420px; /* 🔹 immagine più alta */
        object-fit: cover;
        filter: brightness(0.75);
    }

    /* overlay: testo in basso */
    #dedicaPubblica .dedica-text-col {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end; /* 🔹 testo ancorato in basso */
        padding: 1rem;
        background: rgba(0, 0, 0, 0.15);
    }

    #dedicaPubblicaTesto {
        font-family: "Lora", serif;
        font-style: italic;
        font-size: 1.1rem;
        font-weight: 400;
        color: #fff;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
        margin-bottom: 0.25rem;
    }

    #dedicaPubblicaFirma {
        font-family: "Caveat", cursive;
        font-size: 1.4rem;
        color: #ffebc6;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
        margin-bottom: 1rem; /* 🔹 distanza dal fondo */
    }

    #dedicaPubblicaTitolo {
        font-size: 0.9rem;
        color: #fff;
        opacity: 0.85;
    }
}
