/* ============================
   PAGINA CHI SIAMO
============================ */

.page-about {
    background: #f5f7f9;
}

/* HERO */
.page-hero {
    padding: 35px 0 25px 0;
    background: #e6eef1;
    color: #23333a;
    text-align: center;
    border-bottom: 3px solid #4d798b20;
    border-top: 2px solid #d3dde2;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #355866;
}

.page-subtitle {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CONTAINER */
.page-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TITOLI SEZIONI */
.about-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #355866;
    margin-bottom: 20px;
}

/* TESTO */
.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #23333a;
    margin-bottom: 20px;
}

/* ANIMAZIONI */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-left {
    animation: slideLeft 0.6s ease forwards;
}

.slide-right {
    animation: slideRight 0.6s ease forwards;
}

/* ============================
   CARD FONDATORI
============================ */

.fondatori-section {
    padding: 50px 0;
}

.fond-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 45px;
    display: flex;
    gap: 40px;
    align-items: flex-start;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10);

    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
    border: 2px solid transparent;
}

.fond-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.10),
        0 14px 30px rgba(0, 0, 0, 0.14),
        0 26px 50px rgba(0, 0, 0, 0.12);
    border: 2px solid #4d798b55;
}

.fond-img img {
    width: 100%;
    max-width: 360px;
    border-radius: 14px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease;
}

.fond-img img:hover {
    transform: scale(1.03);
}

.fond-info {
    flex: 1;
}

.fond-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #355866;
    margin-bottom: 10px;
}

.fond-badge {
    display: inline-block;
    background: #4d798b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.fond-list {
    list-style: none;
    padding-left: 0;
}

.fond-list li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #23333a;
}

/* ============================
   COSA FACCIAMO
============================ */

.attivita-section {
    padding: 50px 0;
}

.attivita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.attivita-grid ul {
    list-style: none;
    padding-left: 0;
}

.attivita-grid li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #23333a;
}

/* ============================
   SEDE
============================ */

.sede-section {
    padding: 50px 0;
}

.sede-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 30px;
    display: flex;
    gap: 40px;
    align-items: flex-start;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10);

    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.sede-card:hover {
    transform: translateY(-6px);
    border: 2px solid #4d798b55;
}

.sede-img img {
    width: 100%;
    max-width: 360px;
    border-radius: 14px;
}

.sede-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.sede-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #23333a;
}

.sede-map i {
    font-size: 1.3rem;
    color: #355866;
    margin-right: 6px;
}

.sede-map a {
    color: #355866;
    font-weight: 600;
}

/* ============================
   TEAM
============================ */

.team-section {
    padding: 50px 0;
    text-align: center;
}

.team-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: #4d798b;
    text-decoration: underline;
}

.team-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4d798b, #355866);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.10),
        0 10px 25px rgba(0, 0, 0, 0.12);
}

.team-btn:hover {
    background: linear-gradient(135deg, #355866, #4d798b);
    transform: translateY(-4px);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18),
        0 16px 32px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   BORDO ANIMATO — CARD CHI SIAMO (stile uniforme NW&V)
============================================================ */

/* CARD FONDATORI */
.fond-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transform-style: preserve-3d;
}

/* CARD SEDE */
.sede-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transform-style: preserve-3d;
}

/* TEAM BLOCK (opzionale ma consigliato per uniformità) */
.team-block {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transform-style: preserve-3d;
}

/* Bordo blu animato */
.fond-card::before,
.sede-card::before,
.team-block::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #4d798b, #355866, #4d798b);
    opacity: 0;
    transition: opacity 0.35s ease;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.fond-card:hover::before,
.sede-card:hover::before,
.team-block:hover::before {
    opacity: 1;
}

/* ============================================================
   TEAM BLOCK — VERSIONE PREMIUM (bordo + 3D + ombre)
============================================================ */

.team-block {
    position: relative;
    overflow: hidden;
    border-radius: 18px;

    /* BORDO STATICO COME SEDE */
    border: 3px solid #4d798b20;
    border-top: 2px solid #d3dde2;

    /* SFONDO PREMIUM */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);

    /* OMBRE 3D */
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10);

    /* SPAZIATURA MIGLIORATA */
    padding: 40px 35px 55px 35px;
}

/* Pulsante più distanziato dal bordo inferiore */
.team-block .team-btn {
    margin-top: 25px;
    display: inline-block;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 900px) {

    .fond-card,
    .sede-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 25px;
    }

    .fond-img img,
    .sede-img img {
        max-width: 260px;
        margin: 0 auto;
    }
}