/* =========================================================
   PAGINA SEGRETERIA
========================================================= */

:root {
    --primary-blue: #004080;
    --accent-blue: #007bff;
    --dark-navy: #0a2540;
    --light-bg: #f4f7f9;
    --glass: rgba(255, 255, 255, 0.95);
    --gold: #ffc107;

    /* HERO */
    --hero-bg-start: #f4f8fc;
    --hero-bg-middle: #e8f1f8;
    --hero-bg-end: #dceaf4;
    --hero-border: #d4e0ea;
}


/* =========================================================
   CONTAINER PRINCIPALE
========================================================= */

.segreteria-container {
    background: var(--light-bg);

    font-family: 'Inter', sans-serif;

    padding-bottom: 80px;

    position: relative;

    z-index: 1;
}


/* =========================================================
   HERO SEGRETERIA
   STESSO STILE HERO DELLA PAGINA STORIA
========================================================= */

.hero-segreteria {

    height: 320px;

    background:
        linear-gradient(
            135deg,
            var(--hero-bg-start) 0%,
            var(--hero-bg-middle) 55%,
            var(--hero-bg-end) 100%
        );

    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: var(--dark-navy);

    margin-bottom: -20px;

    overflow: hidden;

    border-top: 1px solid #dce5ed;

    border-bottom: 1px solid var(--hero-border);
}


/* =========================================================
   ELEMENTO DECORATIVO HERO
========================================================= */

.hero-segreteria::before {

    content: "";

    position: absolute;

    top: -120px;

    right: -100px;

    width: 350px;

    height: 350px;

    background: rgba(0, 64, 128, 0.06);

    border-radius: 50%;

    pointer-events: none;
}


.hero-segreteria::after {

    content: "";

    position: absolute;

    bottom: -150px;

    left: -100px;

    width: 320px;

    height: 320px;

    background: rgba(0, 180, 216, 0.05);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   OVERLAY HERO
========================================================= */

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.25),
            transparent 65%
        );

    pointer-events: none;
}


/* =========================================================
   CONTENUTO HERO
========================================================= */

.hero-content {

    position: relative;

    z-index: 2;

    padding: 0 20px;
}


/* =========================================================
   TITOLO HERO
========================================================= */

.hero-content h2 {

    margin: 0;

    color: var(--dark-navy);

    font-size: clamp(1.8rem, 4vw, 2.2rem);

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 2px;
}


/* =========================================================
   DIVISORE HERO
========================================================= */

.title-divider {

    width: 60px;

    height: 4px;

    background: var(--primary-blue);

    margin: 20px auto;

    border-radius: 5px;
}


/* =========================================================
   SOTTOTITOLO HERO
========================================================= */

.hero-content p {

    max-width: 650px;

    margin: 0 auto;

    color: #526576;

    font-size: 1.05rem;

    line-height: 1.7;

    opacity: 1;
}


/* =========================================================
   LAYOUT DIRETTIVO
========================================================= */

.direttivo-layout {

    max-width: 1250px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        clamp(250px, 25vw, 340px);

    gap: clamp(15px, 3vw, 40px);

    padding: 0 20px;

    position: relative;

    z-index: 5;

    align-items: start;
}


/* =========================================================
   COLONNA MEMBRI
========================================================= */

.section-badge {

    display: inline-block;

    background: var(--primary-blue);

    color: white;

    padding: 7px 18px;

    border-radius: 50px;

    font-size: 0.7rem;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 30px;
}


/* =========================================================
   GRIGLIA MEMBRI
========================================================= */

.members-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(200px, 1fr));

    gap: 20px;
}


/* =========================================================
   CARD MEMBRO
========================================================= */

.member-card {

    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.06);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;

    border: 1px solid rgba(0,0,0,0.03);

    display: flex;

    flex-direction: column;
}


.member-card:hover {

    transform: translateY(-10px);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.10);
}


/* =========================================================
   FOTO MEMBRO
========================================================= */

.member-img-container {

    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    position: relative;

    background: #f8f9fa;
}


.member-img-container img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================================
   RANK TAG
========================================================= */

.rank-tag {

    position: absolute;

    top: 10px;

    right: 10px;

    background: var(--gold);

    color: #000;

    padding: 4px 10px;

    border-radius: 30px;

    font-size: 0.6rem;

    font-weight: 800;

    z-index: 2;
}


/* =========================================================
   INFO MEMBRO
========================================================= */

.member-info {

    padding: 20px 15px;

    text-align: center;

    background: white;
}


.member-info h3 {

    font-size: clamp(0.95rem, 1.2vw, 1.15rem);

    margin: 0 0 5px 0;

    font-weight: 700;

    color: var(--dark-navy);
}


.role {

    font-size: clamp(0.75rem, 0.9vw, 0.85rem);

    color: #6c757d;
}


/* =========================================================
   CARD PREMIUM
========================================================= */

.member-card.premium {

    border: 2px solid var(--gold);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar-glass-card {

    background: var(--glass);

    backdrop-filter: blur(12px);

    border-radius: 24px;

    padding: clamp(15px, 2vw, 30px);

    border: 1px solid white;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.08);

    position: sticky;

    top: 100px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    margin-top: 60px;

    z-index: 5;
}


/* =========================================================
   LOGO SIDEBAR
========================================================= */

.sidebar-logo {

    width: clamp(100px, 10vw, 120px);

    height: auto;

    margin: 0 auto 20px;

    display: block;
}


/* =========================================================
   SIDEBAR GROUP
========================================================= */

.sidebar-group {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.sidebar-group h4 {

    color: var(--primary-blue);

    font-size: 0.85rem;

    text-transform: uppercase;

    border-bottom: 1px solid rgba(0,0,0,0.06);

    padding-bottom: 6px;

    margin-bottom: 12px;

    margin-top: 25px;

    width: 100%;
}


/* =========================================================
   INFO LIST
========================================================= */

.info-list {

    list-style: none;

    padding: 0;

    width: 100%;
}


.info-list li {

    display: flex;

    justify-content: center;

    gap: 15px;

    font-size: 0.8rem;

    padding: 5px 0;
}


/* =========================================================
   BUTTON MODAL
========================================================= */

.btn-modal-trigger {

    width: 100%;

    max-width: 240px;

    padding: 12px;

    background: var(--dark-navy);

    color: white;

    border: none;

    border-radius: 10px;

    font-weight: 600;

    cursor: pointer;

    font-size: 0.8rem;

    margin: 10px 0;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}


.btn-modal-trigger:hover {

    background: var(--primary-blue);

    transform: translateY(-2px);
}


/* =========================================================
   SOCIAL PILLS
========================================================= */

.social-pills {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 10px;

    width: 100%;

    max-width: 240px;
}


.pill {

    text-decoration: none;

    text-align: center;

    padding: 10px;

    border-radius: 8px;

    font-size: 0.75rem;

    font-weight: 700;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.pill:hover {

    transform: translateY(-2px);

    opacity: 0.9;
}


.pill.fb {

    background: #1877f2;
}


.pill.ig {

    background: #e4405f;
}


/* =========================================================
   COMPITI SEGRETERIA
========================================================= */

.task-box-modern {

    margin-top: 40px;

    background: white;

    padding: 25px;

    border-radius: 20px;

    display: flex;

    gap: 20px;

    align-items: center;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.04);
}


.task-icon {

    font-size: 1.8rem;

    color: var(--accent-blue);

    background: #f0f7ff;

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    flex-shrink: 0;
}


.task-text h3 {

    color: var(--dark-navy);

    margin-bottom: 5px;
}


.task-text p {

    color: #666;

    line-height: 1.6;
}


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

.team-visual {

    max-width: 1200px;

    margin: 60px auto 0;

    padding: 0 20px;

    position: relative;

    z-index: 2;
}


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

.visual-header h2 {

    text-align: center;

    color: var(--primary-blue);

    margin-bottom: 20px;

    font-size: 2rem;

    font-weight: bold;
}


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

.photo-frame {

    border-radius: 25px;

    overflow: hidden;

    box-shadow:
        0 25px 50px rgba(0,0,0,0.15);

    border: 6px solid white;

    background: white;
}


.photo-frame img {

    width: 100%;

    height: auto;

    display: block;
}


/* =========================================================
   MODAL DIRETTIVO
========================================================= */

.modal-overlay {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    background: rgba(10, 37, 64, 0.6);

    backdrop-filter: blur(8px);

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 10000;

    padding: 20px;

    animation: fadeIn 0.3s ease;
}


.modal-overlay.active {

    display: flex;
}


/* =========================================================
   FINESTRA MODAL
========================================================= */

.modal-window {

    background: white;

    width: 100%;

    max-width: 450px;

    max-height: 90vh;

    border-radius: 24px;

    position: relative;

    box-shadow:
        0 25px 50px rgba(0,0,0,0.2);

    overflow: hidden;

    animation:
        slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* =========================================================
   HEADER MODAL
========================================================= */

.modal-header {

    padding: 30px 30px 15px;

    text-align: center;
}


.modal-icon-circle {

    width: 60px;

    height: 60px;

    background: #f0f7ff;

    color: var(--accent-blue);

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    margin: 0 auto 15px;

    font-size: 1.5rem;
}


.modal-header h3 {

    margin: 0;

    color: var(--dark-navy);

    font-size: 1.4rem;
}


.modal-header p {

    font-size: 0.85rem;

    color: #666;

    margin-top: 5px;
}


/* =========================================================
   LISTA DIRETTIVO
========================================================= */


.modal-body {

    padding: 0 30px;

    max-height: 350px;

    overflow-y: auto;

    overflow-x: hidden;

    scrollbar-width: thin;

    scrollbar-color: #b8c4cf transparent;
}


/* =========================================================
   SCROLLBAR MODAL - CHROME / EDGE / SAFARI
========================================================= */

.modal-body::-webkit-scrollbar {

    width: 6px;
}


.modal-body::-webkit-scrollbar-track {

    background: transparent;
}


.modal-body::-webkit-scrollbar-thumb {

    background: #b8c4cf;

    border-radius: 10px;
}


.modal-body::-webkit-scrollbar-thumb:hover {

    background: #8fa0af;
}


.direttivo-list {

    list-style: none;

    padding: 0;

    margin: 0;
}


.direttivo-list li {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px 0;

    border-bottom: 1px solid #f0f0f0;

    font-size: 0.9rem;
}


.direttivo-list li strong {

    color: var(--dark-navy);
}


.direttivo-list li span {

    font-size: 0.75rem;

    background: #f4f7f9;

    padding: 4px 10px;

    border-radius: 6px;

    color: #555;

    font-weight: 600;
}


/* =========================================================
   FOOTER MODAL
========================================================= */

.modal-footer {

    padding: 20px 30px 30px;
}


.btn-close-flat {

    width: 100%;

    padding: 12px;

    background: #f4f7f9;

    border: none;

    border-radius: 12px;

    color: var(--dark-navy);

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.btn-close-flat:hover {

    background: #e2e8f0;

    transform: translateY(-1px);
}


/* =========================================================
   ANIMAZIONI
========================================================= */

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes slideUp {

    from {
        transform: translateY(40px);

        opacity: 0;
    }

    to {
        transform: translateY(0);

        opacity: 1;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .direttivo-layout {

        grid-template-columns:
            minmax(0, 1fr)
            280px;

        gap: 20px;
    }


    .members-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .sidebar-glass-card {

        top: 20px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .hero-segreteria {

        height: 250px;

        margin-bottom: 0;

        background:
            linear-gradient(
                145deg,
                #f5f9fc 0%,
                #e6f0f7 100%
            );
    }


    .hero-content {

        padding: 0 15px;
    }


    .hero-content h2 {

        font-size: 1.6rem;

        letter-spacing: 1px;
    }


    .hero-content p {

        font-size: 0.9rem;
    }


    /* Layout a una colonna */

    .direttivo-layout {

        grid-template-columns: 1fr;

        padding: 0 15px;

        gap: 25px;
    }


    /* Membri */

    .members-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }


    /* Sidebar */

    .sidebar-glass-card {

        position: static;

        margin-top: 10px;

        width: 100%;

        padding: 25px 20px;
    }


    /* Task box */

    .task-box-modern {

        flex-direction: column;

        text-align: center;

        padding: 22px;
    }


    /* Team */

    .team-visual {

        margin-top: 40px;

        padding: 0 15px;
    }


    .visual-header h2 {

        font-size: 1.5rem;
    }


    .photo-frame {

        border-width: 4px;

        border-radius: 18px;
    }


    /* Modal */

    .modal-overlay {

        padding: 15px;
    }


    .modal-window {

        max-height: 90vh;

        border-radius: 20px;
    }


    .modal-header {

        padding: 25px 20px 15px;
    }


    .modal-body {

            padding: 0 20px;

            max-height: 45vh;

            overflow-y: auto;
        }


    .modal-footer {

        padding: 15px 20px 20px;
    }
}


/* =========================================================
   MOBILE PICCOLO
========================================================= */

@media (max-width: 480px) {

    .hero-segreteria {

        height: 230px;
    }


    .hero-content h2 {

        font-size: 1.4rem;
    }


    .hero-content p {

        font-size: 0.82rem;
    }


    .member-img-container {

        aspect-ratio: 4 / 5;
    }


    .sidebar-logo {

        width: 100px;
    }
}