/* =========================================================
   WRAPPER GENERALE
========================================================= */
.associazione-wrapper {
    width: 90%;
    max-width: 1300px;
    margin: 30px auto;
    /* ridotto per tutte le pagine */
}

/* =========================================================
   TITOLI E TESTI
========================================================= */
.associazione-content h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--rosa-scuro);
    margin-bottom: 25px;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #444;
    margin-bottom: 35px;
}

/* Aria tra i capitoli */
.associazione-content h2 {
    margin-top: 55px;
}

/* Offset per navbar */
h2[id],
h3[id],
p[id] {
    scroll-margin-top: 140px;
}

/* =========================================================
   GRIGLIA UNIVERSALE (2–8 CARD)
========================================================= */
.doc-grid {
    display: grid;
    justify-content: center;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

/* =========================================================
   CARD DOCUMENTO (versione premium)
========================================================= */
.doc-card,
.privacy-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 22px 22px;
    border-radius: 14px;
    text-decoration: none;
    color: #222;
    transition: 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    max-width: 360px;
    margin: 0 auto;
    display: block;
}

.doc-card:hover,
.privacy-card:hover {
    border-color: var(--rosa-scuro);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

/* Titolo card */
.doc-card h3,
.privacy-card h3 {
    font-size: 1.3rem;
    color: var(--rosa-scuro);
    margin-bottom: 10px;
    font-weight: 700;
}

/* Icona documento */
.doc-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Descrizione */
.doc-desc {
    font-size: 1rem;
    line-height: 1.55;
    color: #555;
}

/* =========================================================
   MINIATURE CERTIFICATI
========================================================= */
.doc-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   PRIVACY CARD (icone circolari)
========================================================= */
.privacy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--rosa-scuro);
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-icon i {
    font-size: 2.2rem;
    color: #fff;
}

/* =========================================================
   PULSANTE "TORNA ALL’ASSOCIAZIONE"
========================================================= */
.back-wrapper {
    margin-top: 30px;
    text-align: center;
}

.btn-back-corsi {
    display: inline-block;
    padding: 12px 26px;
    background: var(--rosa-scuro);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: 0.3s ease;
}

.btn-back-corsi:hover {
    background: #8a0000;
    transform: translateY(-2px);
}

/* =========================================================
   INDICE PRIVACY (4 CARD PER RIGA)
========================================================= */
.doc-grid.privacy-index {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

/* Card indice uniformi */
.privacy-index .doc-card {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =========================================================
   LINK "TORNA ALL’INDICE"
========================================================= */
.torna-indice {
    color: var(--rosa-scuro);
    font-weight: 600;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 25px;
}

.torna-indice:hover {
    color: #8a0000;
}

/* =========================================================
   ORGANI SOCIALI – CARD DEDICATE SEZIONE TRASPARENZA
========================================================= */

.org-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 30px 0;
}

.org-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 22px 22px;
    border-radius: 14px;
    color: #222;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.org-card:hover {
    border-color: var(--rosa-scuro);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.org-card h3 {
    font-size: 1.2rem;
    color: var(--rosa-scuro);
    margin-bottom: 6px;
    font-weight: 700;
}

.org-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.org-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.doc-list-minimal li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.doc-list-minimal a {
    color: var(--rosa-scuro);
    font-weight: 600;
    text-decoration: underline;
}

.note {
    margin-top: 18px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Mobile */
@media (max-width: 900px) {
    .org-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .org-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 700px) {
    .doc-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .doc-grid.privacy-index {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .doc-grid.privacy-index {
        grid-template-columns: 1fr;
    }
}