/* RESET BASE */
body {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    letter-spacing: 0.3px;
}


a {
    color: #8B0000; /* rosso mattone */
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: #5f0000; /* rosso più scuro al hover */
}

p {
    margin-bottom: 1em;
}
/* Simulazione widget Elementor */
.elementor-heading {
    margin-bottom: 20px;
    text-align: center;
}

.elementor-heading-title {
    font-family: "Titillium Web", Sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: #1B8342; /* verde provincia */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.home-title {
    font-family: "Titillium Web", Sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: #1B8342; /* verde provincia */
    margin: 0 0 20px 0;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 768px) {
    .home-title {
        font-size: 1.9rem;
    }
}

.header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.header-project-text {
    max-width: 430px;
    text-align: right;
    font-size: 11px;   /* 🔹 piccolo */
    line-height: 1.3;
    color: #6b6b6b;
}

.header-project-text strong {
    color: #8b2c2c; /* rosso mattone */
    font-weight: 600;
}
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-project-text {
        text-align: left;
        max-width: 100%;
        font-size: 10px;
    }
}
.header-istituzionale {
    background-color: #ffffff;
    border-bottom: 4px solid #1B8342; /* verde istituzionale */
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
} /* LOGO: NON TOCCATO */
.logo-provincia {
    height: 80px;
    width: auto;
} /* ========================= MENU PRINCIPALE ========================= */
.menu-principale {
    background-color: #1B8342;
    width: 100%;
	font-size: 1.2rem;
	font-family: "Titillium Web", Sans-serif;
} /* CONTENITORE CENTRATO */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 52px;
} /* MENU SINISTRO */
.menu-left {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-direction: row;
} /* MENU DESTRO (FISSATO A DESTRA DEL CONTENITORE) */
.menu-right {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
} /* VOCI */
.menu-principale li {
    margin: 0;
}
.menu-principale li a {
    display: inline-flex;
    align-items: center;
    padding: 14px 18px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}
.menu-principale li a:hover {
    background-color: #1B8342;
}
.menu-icon a {
    font-size: 18px;
    padding: 8px 12px;
    display: inline-block;
}
.filtri-attivi {
    margin-bottom: 15px;
}
.badge {
    background: #eef;
    padding: 5px 10px;
    border-radius: 15px;
    margin-right: 5px;
    font-size: 0.9em;
}
.pagination {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.pagination a {
    text-decoration: none;
    font-weight: bold;
}
.ricerca-card {
    border-left: 4px solid #4caf50;
}
.ricerca-card .elenco-istituti-desc {
    font-size: 0.95em;
}
.ricerca-hint {
    margin: 20px 0;
    font-style: italic;
    color: #666;
} /* CONTENUTO */
.contenuto {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
} /* FOOTER — QUESTO È IL TUO VERDE */
.site-footer {
    background-color: #1B8342;
    color: white;
    text-align: center;
    padding: 2px;
}
.home-title {
    color: #1B8342; /* stesso verde del bottone/footer */
    font-size: 2.5em; /* grandezza del titolo */
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center; /* centrato sopra il contenuto */
}
.home-hero {
    text-align: center;
    margin-bottom: 30px;
}
.home-image {
    max-width: 100%;
    height: auto;
    height: 500px;
} /* Bottone */
.btn-popup {
    margin-top: 15px;
    padding: 5px 5px;
    background-color: #006837; /* verde Provincia */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block; /* necessario per margin-left:auto */
    margin-left: auto; /* spinge il bottone a destra */
}
.btn-popup:hover {
    background-color: #004d25;
} /* Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}
.popup-image {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.home-divider {
    margin: 40px 0;
    border: none;
    border-top: 2px solid #006837;
}
.home-search-sections {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.search-card {
    background-color: #f5f7f6;
    border-left: 6px solid #006837;
    padding: 25px;
    width: 320px;
    text-align: center;
}
.search-card h3 {
    margin-bottom: 15px;
    color: #006837;
}
.search-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}
.btn-go {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-go:hover {
    background-color: #1b5e20;
}
.home-section-title {

    font-family: "Titillium Web", sans-serif;
    color: #8B0000;  /* rosso mattone intenso */
    line-height: 1.3;
    margin-bottom: 0.8em;
	
    margin-top: 30px;
}
.select-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.select-istituto {
    padding: 6px;
    font-size: 14px;
} /* CONTENITORE GENERALE */
.home-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 35px;
} /* BLOCCO SINGOLO */
.action-block {
    max-width: 600px;
} /* FORM SELEZIONE */
.select-form {
    display: flex;
    align-items: center;
    gap: 10px;
} /* SELECT */
.select-istituto {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
} /* BOTTONE ICONA (UGUALE PER ENTRAMBI) */
.icon-button {
    width: 44px;
    height: 44px;
    background-color: #2e7d32; /* verde Provincia */
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
} /* HOVER */
.icon-button:hover {
    background-color: #1b5e20;
} /* TITOLI */

.home-section-title {

    font-family: "Titillium Web", sans-serif;
    color: #8B0000;  /* rosso mattone intenso */
    line-height: 1.3;
    margin-bottom: 0.8em;
    font-size: 18px;
	
    margin-top: 30px;
}
.btn {
    background: #0a7b34; /* verde provincia */
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}
table {
    margin-bottom: 30px;
}
.actions {
    margin-top: 20px;
    clear: both;
} /* Tabella elenco istituti */
.elenco-istituti {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #ffffff; /* stesso sfondo della home */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.elenco-istituti th,
.elenco-istituti td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.elenco-istituti th {
    background-color: #f5f7f6; /* leggera differenza di colore */
    color: #006837; /* verde Provincia */
    font-weight: bold;
}
.descrizione-tipologia {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 15px;
    color: #444;
}
.elenco-istituti tr:hover {
    background-color: #f0f5f0; /* leggero highlight al passaggio */
}
a.btn-small {
    background-color: #2e7d32; /* verde Provincia */
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.2s ease;
}
a.btn-small:hover {
    background-color: #1b5e20;
} /* intestazione tabella centrata come home */
.elenco-actions .btn {
    background-color: #2e7d32;
    color: white; /* testo bianco */
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex; /* flex per allineare simbolo e testo */
    align-items: center;
    gap: 6px; /* spazio tra + e testo */
}
.elenco-actions .btn-symbol {
    color: white; /* forza bianco */
    font-family: "Titillium Web", Sans-serif; /* font normale per evitare emoji colorate */
    font-size: 18px;
    font-weight: bold;
}
.elenco-istituti-title {
    font-family: "Titillium Web", sans-serif;
    font-weight: 600;
    font-size: 1.5rem; /* circa 32px */
    color: #8B0000;  /* rosso mattone intenso */
    line-height: 1.3;
    margin-bottom: 0.8em;
} /* .elenco-istituti-desc { */ /* text-align: center; */ /* margin-bottom: 30px; */ /* color: #1a1a1a; */ /* font-size: 1em; */ /* line-height: 1.5em; */ /* } */
.elenco-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.elenco-actions .btn {
    background-color: #2e7d32;
    color: white; /* testo e icone bianchi */
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* spazio tra icona e testo */
}
.elenco-actions .btn:hover {
    background-color: #1b5e20;
}
.elenco-actions .btn-symbol,
.elenco-actions i {
    color: white; /* forza icone bianche */
    font-weight: bold;
}
.form-card {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #1B8342;
}
.form-group ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
    list-style: none;
    padding: 0;
}
.form-group ul li {
    margin: 0;
}
.input-field {
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.form-actions .btn {
    background-color: #2e7d32;
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}
.form-actions .btn:hover {
    background-color: #1b5e20;
}
.error {
    color: red;
    font-size: 0.9em;
    margin-top: 4px;
}
.dettaglio-card {
    max-width: 700px; /* larghezza massima */
    margin: 30px auto; /* centrato orizzontalmente */
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left; /* contenuto allineato a sinistra */
}
.elenco-istituti-desc {
    margin-top: 15px;
    line-height: 1.6;
}
.elenco-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1.5rem;
}
.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
}
.checkbox-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1.5rem;
}
.checkbox-grid li {
    margin: 0;
}
.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
}
.checkbox-grid {
    width: 100%;
}
.checkbox-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
    width: 100%;
}
.checkbox-grid li {
    margin: 0;
}
.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: normal;
}
@media (max-width: 900px) {
    .checkbox-grid ul {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .checkbox-grid ul {
        grid-template-columns: 1fr;
    }
}
.checkbox-grid {
    width: 100%;
}
.checkbox-grid > * {
    column-count: 3;
    column-gap: 2rem;
}
.checkbox-grid label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    break-inside: avoid;
    margin-bottom: 0.4rem;
}
@media (max-width: 900px) {
    .checkbox-grid > * {
        column-count: 2;
    }
}
@media (max-width: 500px) {
    .checkbox-grid > * {
        column-count: 1;
    }
} /* Tematiche a colonne per istituti */
.tematiche-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
} /* Form card */
.form-card {
    max-width: 800px; /* larghezza massima del form */
    margin: auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
} /* Checkbox a colonne */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonne fisse */
    gap: 10px;
    margin-top: 10px;
    box-sizing: border-box; /* evita overflow */
} /* Ogni checkbox */
.checkbox-grid label {
    display: flex;
    color: #000000; /* testo verde come negli istituti */
    font-weight: normal;
    word-break: break-word; /* evita che testi lunghi escano dal box */
}
.form-card .facolta-list {
    list-style: none;
    padding-left: 0;
    margin: 5px 0 0 0;
}
.form-card .facolta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}
.form-card .remove-btn {
    background: none;
    border: none;
    color: #c0392b;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.form-card .remove-btn:hover {
    color: #e74c3c;
}
.form-card .form-group-secondary label {
    font-size: 0.8rem;
    font-style: italic;
    color: #777;
}
.form-card .form-group-secondary input {
    font-size: 0.85rem;
    padding: 6px 8px;
    max-width: 320px;
}
.form-card .form-group-secondary {
    margin-top: 6px;
}
.form-card .form-group-secondary label::before {
    content: "+ ";
    color: #2c7be5;
    font-weight: bold;
}
select[multiple] {
    resize: vertical;
    min-height: 60px;
}
