.about-page-container {
    background: #f4f4f4;
    padding-bottom: 120px;
    overflow-x: hidden;
    padding: 10px;

}

/* HERO */
.about-hero-wrapper {
    background-color: #f4f4f4;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Immagine dal Backend */
.about-main-image {
    width: 100%;
    height: 600px; 
    overflow: hidden;
    z-index: 0;
}

.about-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    z-index: 0;
}

/* Il Box del Titolo (sotto l'immagine) */
.brutal-hero-box {
    position: relative;
    z-index: 2; 
    background: var(--white);
    border: 5px solid var(--black);
    padding: clamp(30px, 5vw, 60px);
    box-shadow: 15px 15px 0px var(--black);
    width: 90%;
    max-width: 1000px;
    margin-top: -150px;
}

/* Titolo Responsive (Fix per non andare a capo) */
.hero-title {
    font-size: clamp(2rem, 9vw, 6.5rem); 
    text-transform: uppercase;
    margin: 0 0 15px 0;
    line-height: 0.85;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-main-image {
        height: 300px;
    }
    
    .brutal-hero-box {
        width: 85%;
        padding: 30px 20px;
        box-shadow: 8px 8px 0px var(--black);
    }
}

.hero-lead {
    font-size: clamp(1.1rem, 2vw, 1.8rem); 
    font-family: var(--font-main-bold);
    max-width: 800px;
    border-left: clamp(6px, 1vw, 12px) solid var(--signature);
    padding-left: clamp(15px, 3vw, 30px);
    line-height: 1.3;
}

/* SECTION COMMON */
.about-section {
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
}

.section-tag {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 10px 20px;
    font-family: var(--font-main-bold);
    margin-bottom: 40px;
}

/* DUAL COLUMN & MOTTO */
.dual-column {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    margin-bottom: 60px;
}

.column-text p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.motto-box {
    background: var(--signature);
    border: 5px solid var(--black);
    padding: 40px;
    transform: rotate(2deg);
    text-align: center;
    box-shadow: 10px 10px 0px var(--black);
}

.motto-box span {
    font-size: 4rem;
    font-family: var(--font-main-bold);
    color: var(--white);
    line-height: 0.9;
    text-shadow: 3px 3px 0px var(--black);
}

/* TRI-GRID CARDS */
.tri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border: 3px solid var(--black);
    padding: 30px;
    box-shadow: 8px 8px 0px var(--black);
}

.feature-card h3 {
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--signature);
}

/* REPRESENTATION */
.rep-container {
    background: var(--black);
    color: var(--white);
    padding: 80px;
    border: 5px solid var(--black);
}

.rep-content h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.rep-content p {
    font-size: 1.2rem;
    max-width: 900px;
}

/* VALUES */
.about-values {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.values-main-title {
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 60px;
    text-align: center;
}

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

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-number {
    font-size: 3rem;
    font-family: var(--font-main-bold);
    color: var(--signature);
    line-height: 1;
}

.value-info h3 {
    text-transform: uppercase;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

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

   /* MOBILE */
@media (max-width: 900px) {
    .dual-column, .tri-grid { grid-template-columns: 1fr; }
    .brutal-hero-box { padding: 40px 20px; }
    .rep-container { padding: 40px 20px; }
    .motto-box span{ font-size: 1.6rem; transform: rotate(0); }

    h2 { font-size: 2.5rem; }
}

/* The Association Dual Column */
.dual-column {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-bottom: 60px;
}

/* The Tri-Grid (Cards) */
.tri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Tablet & Mobile Fixes */
@media (max-width: 1024px) {
    .dual-column {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }

    .column-motto {
        order: -1; /* Move "Beyond Lessons" box ABOVE the text on mobile */
    }

    .motto-box {
        transform: rotate(0); /* Remove tilt on mobile for cleaner look */
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .tri-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .rep-container {
        padding: 40px 25px; /* Reduce padding inside the black box */
    }

    .values-main-title {
        font-size: 2.5rem;
    }
}

/* Direttivo */

.board-section {
    margin-top: 120px;
    padding: 0 20px;
}

.board-grid {
    display: grid;
    /* 3 columns on desktop, 2 on tablet, 1 on mobile */
    grid-template-columns: repeat(3, 1fr); 
    gap: clamp(30px, 5vw, 60px);
    max-width: 1200px;
    margin: 40px auto 0;
}

/* --- The Card Container --- */
.board-card {
    position: relative;
    background: var(--white);
    border: 4px solid var(--black);
    box-shadow: 12px 12px 0px var(--black);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.board-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 20px 20px 0px var(--signature); /* Shadow turns orange on hover */
}

/* --- Badge Stacking Logic --- */
.board-roles-container {
    position: absolute;
    top: -15px;
    right: -15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 10;
}

.board-role-badge {
    background: var(--signature);
    color: var(--white);
    border: 3px solid var(--black);
    padding: 6px 12px;
    font-family: var(--font-main-bold);
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px var(--black);
    white-space: nowrap;
    transform: rotate(1deg);
}

.board-role-badge:nth-child(even) {
    transform: rotate(-2deg);
    background: var(--black); 
}

/* --- The Photo Frame --- */
.rep-photo {
    width: 100%;
    aspect-ratio: 1 / 1; 
    border: 3px solid var(--black);
    overflow: hidden;
    margin-bottom: 20px;
    transition: filter 0.3s ease;
}

.board-card:hover .rep-photo {
    filter: grayscale(0%); 
}

.rep-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- The Name --- */
.rep-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
    color: var(--black);
    word-wrap: break-word;
}


@media (max-width: 1024px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .board-grid {
        grid-template-columns: 1fr;
        max-width: 400px; /* Keeps cards from getting too wide on mobile */
    }
    
    .board-card {
        box-shadow: 8px 8px 0px var(--black);
    }
    
    .rep-name {
        font-size: 1.5rem;
    }
}

/* card blocco cliccabile */
.board-card.has-profile-link {
    text-decoration: none;
    cursor: pointer;
}

.board-card.no-profile-link {
    pointer-events: none; /* Disabilita il click se non c'è user */
}

/* Suggerimento "View Profile" che appare solo al passaggio del mouse */
.view-profile-hint {
    font-family: var(--font-main-bold);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--signature);
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.board-card:hover .view-profile-hint {
    opacity: 1;
}

/* Effetto di "sollevamento" più accentuato per le card cliccabili */
.board-card.has-profile-link:hover {
    transform: translate(-8px, -8px);
    box-shadow: 20px 20px 0px var(--signature);
}

.about-cta-section {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.cta-orange-box {
    background: var(--signature); 
    border: 5px solid var(--black);
    box-shadow: 15px 15px 0px var(--black);
    padding: clamp(40px, 8vw, 80px);
    text-align: center;
    position: relative;
    transform: rotate(-0.5deg);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    color: var(--black);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cta-subtitle {
    font-family: var(--font-main-bold);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--white);
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px var(--black);
}

.cta-description {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.4;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-description p {
    margin: 5px 0;
}

/* Pulsante Bianco */
.cta-btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    border: 4px solid var(--black);
    padding: 20px 40px;
    font-family: var(--font-main-bold);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 8px 8px 0px var(--black);
    transition: all 0.2s ease;
}

.cta-btn-white:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--black);
    background: var(--black);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .cta-orange-box {
        padding: 40px 20px;
        transform: rotate(0);
    }
    
    .cta-btn-white {
        width: 50%;
        padding: 15px 20px;
    }
}