/* =========================================
   HERO SECTION
   ========================================= */

.hero-section {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* su schermi stretti l'80vh applicato a una larghezza ridotta fa sembrare
   l'immagine troppo "lunga" verticalmente: la limitiamo */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 60vh;
        max-height: 520px;
    }
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.18) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    display: inline-block;
    width: 90%;
    max-width: 700px;
    padding: 2.5% 4%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* =========================================
   SEZIONE "CHI SIAMO"
   ========================================= */

.peace-img-wrap {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}

.peace-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.peace-img-wrap:hover img {
    transform: scale(1.05);
}

/* gutter uniforme tra immagine e testo, uguale in ogni riga */
.chiSiamo .row {
    --bs-gutter-x: 3rem;
}

.chiSiamo .testo-col {
    padding: 0 !important;
}

/* su mobile le immagini sono sempre centrate nella colonna */
.chiSiamo .img-col-left,
.chiSiamo .img-col-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
}

/* solo da tablet in su l'immagine si allinea al bordo del container,
   creando l'effetto "a zig-zag" */
@media (min-width: 768px) {
    .chiSiamo .img-col-left {
        justify-content: flex-start;
    }

    .chiSiamo .img-col-right {
        justify-content: flex-end;
    }

    .peace-img-wrap {
        width: 90%;
    }
}

/* =========================================
   RESPIRO SUI BORDI — mobile
   ========================================= */

@media (max-width: 767.98px) {
    .descrizione .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* =========================================
   SEZIONE "COSA FACCIAMO"
   ========================================= */

.cosaFacciamo .img-circle {
    width: 250px;
    height: 250px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.cosaFacciamo .img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cosaFacciamo .img-circle:hover img,
.cosaFacciamo .rounded-circle:hover img {
    transform: scale(1.08);
}

.cosaFacciamo .rounded-circle img {
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cosaFacciamo h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* =========================================
   ANIMAZIONI ALLO SCROLL
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* leggero sfalsamento per gli elementi affiancati (es. i 3 cerchi) */
.reveal-delay-1.is-visible {
    transition-delay: 0.1s;
}

.reveal-delay-2.is-visible {
    transition-delay: 0.2s;
}

/* chi preferisce ridurre le animazioni non le vede: parte già visibile */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .peace-img-wrap:hover img,
    .cosaFacciamo .img-circle:hover img,
    .cosaFacciamo .rounded-circle:hover img {
        transform: none;
    }
}
