/*=============== ABEL FONTS ===============*/
@font-face {
    font-display: swap;
    font-family: 'Abel';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/abel-v18-latin-regular.woff2') format('woff2');
}


/*=============== VARIABLES CSS ===============*/
:root {
    font-size: 16px;

    /*========== Colors ==========*/
    --main-color: #006666;    /* era #008787 */
    --section-color: #ececec;
    --text-color: rgb(39, 39, 39);
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    -webkit-scroll-behavior: smooth;
    scroll-behavior: smooth;
}

body {
    font-family: "Abel", sans-serif;
    overflow-x: hidden;
}

/*=============== FOCUS VISIBILE - ACCESSIBILITÀ ===============*/

/* Rimuovi outline default browser solo se ne definiamo uno custom */
*:focus {
    outline: none;
}

/* Focus visibile per tutti gli elementi interattivi */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Focus su link specifici (per evitare doppie outline su alcuni elementi) */
a:focus:not(:focus-visible) {
    outline: none;
}


/*========== Responsive typography ==========*/

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: normal;
}

p {
    font-size: 1.1rem;
    color: var(--text-color);
}

input,
button {
    border: none;
    outline: none;
}

ul li {
    list-style: none;
    font-size: 1rem;
    color: var(--text-color);
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    color: var(--main-color);
    text-align: center;
}

.text-link {
    color: var(--main-color);
    font-weight: bold;
    cursor: pointer;
}

.text-link:hover {
    opacity: .5;
}


@media screen and (min-width: 767px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
        font-weight: normal;
    }

    p {
        font-size: 1.1rem;
        color: var(--text-color);
    }

    ul,
    li {
        color: var(--text-color);
    }

    #homecontatti {
        background-color: var(--section-color);
        margin: 20px auto 0;
        padding: 0 40px 10px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 60px;
    }

}


/*=============== ELEMENTI NASCOSTI ===============*/
.visually-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}



/*=============== HEADER VERDE ===============*/
.header1-section {
    background-color: var(--main-color);
    color: white;
    min-height: 50px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
}

.header1 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.header1a {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.header1a:hover {
    opacity: 0.5;
}

.header1-text {
    color: white;
    margin: 0;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: normal;
}

.header1-mobile {
    display: none;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-phone-map {
    display: none;
    align-items: center;
    gap: 8px;
}

/* Touch target ottimizzato - Min 48x48px per mobile */
.header-phone-map a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.header-phone-map a svg {
    width: 28px;
    height: 28px;
    pointer-events: none;
    fill: #FFFFFF;
}

.header-phone-map a:hover {
    opacity: 0.7;
}

.header-phone-map a:active {
    opacity: 0.5;
}

/* SVG generici header (FAQ, Work, Attesa) */
.header1a svg,
.header1-mobile svg {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
    flex-shrink: 0;
}

/* Media queries */
@media (max-width: 766px) {
    .header-phone-map {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 650px) {
    .header1 {
        display: none;
    }

    .header1-mobile {
        display: flex;
    }

    .header1-section {
        padding: 8px 20px;
    }

    .header-phone-map {
        right: 0px;
        gap: 0px;
    }

    /* SVG più piccoli su mobile SOLO per header1a */
    .header1a svg,
    .header1-mobile svg {
        width: 20px;
        height: 20px;
    }

    /* Touch target telefono/mappa rimane 48x48px su mobile! */
    /* (Non servono altre regole, già definito sopra) */
}

@media (max-width: 400px) {
    .header1a {
        gap: 5px;
    }

    .header1-mobile {
        gap: 10px;
    }
}


/*=============== HEADER LOGO/MENU ===============*/

.header2-section {
    color: var(--main-color);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo {
    height: 60%;
}

.logo img {
    max-height: 100%;
    height: auto;
    width: auto;
}

.logo:hover {
    opacity: .5;
}

.bar {
    background-color: var(--main-color);
    width: 25px;
    height: 3px;
    border-radius: 5px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s;
}

.navbar {
    display: none;
    z-index: 99;
    position: relative;
    top: 35px;
    margin-left: 40px;
}

.navbar ul {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.navbar ul li a {
    color: var(--main-color);
    font-size: 1.3rem;
    margin-right: 40px;

}

.navbar ul li a:hover {
    opacity: .5;
}

.navbar ul li a:active {
    opacity: 50%;
}

@media (max-width: 950px) {
    .navbar ul li a {
        margin-right: 10px;
        font-size: 1.2rem;
    }

    .navbar {
        margin-left: 20px;
    }
}


@media (min-width: 767px) {
    .header2-section {
        height: 150px;
    }

    .hamburger {
        display: none;
    }

    .navbar {
        display: flex;
        height: auto;
        justify-content: flex-start;
        width: 100%;
    }

    .navbar ul {
        flex-direction: row;
        padding: 0;
        margin: 0;
    }

    .navbar ul li {
        margin-bottom: 0;
        margin-left: 30px;
    }

    .navbar ul li a {
        padding: 0;
    }
}



/*=============== BODY / IMMAGINE DI SFONDO E ANNI DI ESPERIENZA ===============*/

.bg {
    display: block;
    width: 100%;
    margin: 0 auto 20px;
}

.bgimg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.sviolinata {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.sviolinata-blocco {
    width: 150px;
    color: var(--main-color);
    font-size: 5rem !important;
    margin: 5px;
}

.sviolinata-numero {
    font-size: 1.9rem !important;
    color: var(--main-color);
}

.sviolinata-testo {
    font-size: 1.3rem !important;
    color: var(--main-color);
    padding-bottom: 10px;
    line-height: 1.6rem;
}

@media (min-width: 767px) {
    .sviolinata-numero {
        font-size: 2.3rem !important;
    }
}


/*=============== SERVIZI ===============*/

#homeservizi {
    background-color: var(--section-color);
    margin: 20px auto;
    padding: 20px;
}

#homeservizi p {
    text-align: justify;
    width: 80%;
    margin: 10px auto;
}

@media (min-width: 767px) {
    #homeservizi p {
        text-align: justify;
        width: 600px;
        margin: 10px auto;
    }
}

.servizi-settori {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 20px;
}

.servizi-blocco {
    width: 180px;
    height: 180px;
    text-align: center;
    margin: 10px;
    padding: 10px;
    border: 1px solid var(--main-color) !important;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.servizi-blocco:hover {
    opacity: .5;
    cursor: pointer;
}

.servizi-blocco:active {
    opacity: 50%;
}

.servizi-img {
    width: 30%;
}

.servizi-testo {
    font-weight: normal;
    font-size: 1.1rem !important;
    margin: 5px auto;
}

.servizi-blocco:last-child {
    border: 1px solid var(--text-color);
}

.servizi-settori .servizi-blocco:last-child .servizi-testo {
    color: var(--text-color);
}

.servizi-carta {
    padding: 10px;
    margin: 40px auto;
    border: 1px solid var(--main-color);
    border-radius: 10px;
    width: 85%;
    max-width: 400px;
}


/*=============== DOMANDE FREQUENTI ===============*/

#homefaq {
    margin: 20px auto;
    padding: 0 20px;
}

.homefaqdiv {
    margin: 0 auto;
    width: 80vw;
    max-width: 1200px;
}

.faqlist {
    text-align: justify;
}

.faqquestion {
    text-align: justify;
    font-size: 1.1rem !important;
    margin-top: 20px;
}

.buttonclassic {
    width: 200px;
    text-align: center;
    margin: 20px auto;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    padding: 10px;
    color: white;
    background-color: var(--main-color);
    display: flex;
    justify-content: center;
}

.buttonclassic:hover {
    opacity: 50%;
    cursor: pointer;
}

a.buttonclassic:active {
    opacity: .5;
}

#toggle-btn {
    font-family: inherit;
    font-size: 1rem;
}


/*=============== CONTATTI ===============*/
#homecontatti {
    background-color: var(--section-color);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contattidiv1 {
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
}

.contattidiv,
.orariaperturadiv {
    border: 1px solid var(--main-color);
    border-radius: 10px;
    padding: 20px;
    min-height: 180px;
}

.contattidiv a {
    display: flex;
    justify-content: flex-start;
}

#homecontatti h2 {
    text-align: center;
    margin-bottom: 10px;
}


.tel,
.mail,
.map {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
}

.tel:hover,
.mail:hover,
.map:hover {
    opacity: 50%;
    cursor: pointer;
}

.contattidiv img {
    width: 25px;
}

.days {
    text-align: right;
}

.days-hours {
    display: flex;
    gap: 20px;
    padding: 10px 0 20px;
    justify-content: center;
}

#dovesiamo {
    margin: 20px auto;
}

#dovesiamo h2 {
    margin-bottom: 20px;
}

.dovesiamo-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 0 20px;
}

.dovesiamo-1 {
    display: block;
    max-width: 500px;
}

.dovesiamo-1 h3 {
    text-align: left;
    padding-bottom: 5px;
}

.dovesiamo-1a a {
    text-decoration: none;
    color: var(--text-color);
}

.dovesiamo-1a a:hover {
    opacity: .5;
}

.dovesiamo-1a a:visited {
    color: var(--text-color);
}

.dovesiamo-1a,
.dovesiamo-1b {
    margin-bottom: 20px;
}

.dovesiamo-2 {
    border: 1px solid var(--main-color);
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    height: auto;
}

.mappa-google {
    border-radius: 10px;
    width: 100%;

}

#contatti-info {
    margin: 20px auto;
    max-width: 1000px;
    padding: 20px;
}

#contatti-info p {
    margin-bottom: 10px;
    text-align: justify;
}



/*=============== FOOTER ===============*/

.footersection {
    background-color: var(--main-color);
    min-height: 100px;
}

.footersection a {
    text-decoration: none;
    color: white;
}

.footersection a:hover {
    opacity: .5;
}

.footer1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    gap: 20px;
}

.footer2 {
    padding: 10px 40px;
}

.footer2 p {
    text-align: justify;
    font-size: 0.8rem;
    color: white;
    font-weight: normal;
}

.footer-info p,
.footer-social p,
.footer-dovesiamo p {
    color: white;
}

.footer-social svg {
    margin: 5px;
    color: white;
}



/*=============== TITOLI DI PAGINA ===============*/

.pagetitle {
    position: relative;
    z-index: -1;
    width: 100vw;
    height: 100px;
    overflow: hidden;
    margin-top: -20px;
    background-color: var(--section-color);
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.2);
}


.pagetitle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    opacity: 10%;
    max-height: 150px;
    display: block;
}

.pagetitle h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}



/*=============== COLLAPSE ===============*/

.settorediv {
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.settorediv:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.settore-h2-svg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--main-color);
    color: white;
    user-select: none;
    transition: background 0.3s ease;
}

.settorediv.active .settore-h2-svg {
    background-color: #013b3b;
}

.settore-titolo {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
}

.settore-titolo img {
    width: 32px;
}

.settore-h2-svg:hover {
    opacity: .5;
}

.settore-h2-svg h2 {
    margin: 0;
    color: white;
    font-weight: normal;
    text-align: left;
    font-size: 1.2rem;
}

.settore-h2-svg svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.settorediv.active .settore-h2-svg svg {
    transform: rotate(180deg);
}

.info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
    opacity: 0;
    background: white;
}

.settorediv.active .info {
    max-height: 2000px;
    padding: 5px 25px 20px;
    opacity: 1;
}

.infotext {
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: justify;
}

.info ul {
    list-style: none;
    font-size: 1.05em;
    color: var(--text-color);
    padding-left: 1.4em;
}

.info ul li {
    list-style: disc inside;
    padding-left: 1.4em;
    text-indent: -1.4em;
}

.info img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Media query per schermi più grandi */
@media screen and (min-width: 767px) {
    .servizisection {
        max-width: 1200px;
        margin: 10px auto;
        display: block;

    }

    .settorediv {
        max-width: 1200px;
        margin: 20px;
        display: inherit;
        flex-direction: column;
        justify-content: flex-start;
    }

    .settore-titolo {
        gap: 20px;
    }

    .settore-h2-svg {
        padding: 25px 30px;
    }

    .settore-titolo img {
        width: 48px;
    }

    .settore-h2-svg h2 {
        font-size: 1.8em;
    }

    .settorediv.active .info {
        padding: 5px 30px 20px;
        max-height: 2000px;
    }

    .infotext {
        font-size: 1.2em;
    }

    .info img {
        flex-shrink: 0;
        width: 250px;
        max-width: none;
    }

}

/* Effetto di chiusura quando si clicca fuori */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.overlay.active {
    pointer-events: all;
}

.servizi-info {
    margin: 0 auto;
    padding: 40px;
    line-height: 1.4;
    max-width: 1000px;
}

.servizi-info p {
    color: var(--text-color);
    text-align: justify;
}

.servizi-info ul li {
    color: var(--main-color);
    font-size: 1.2em;

}

.servizi-info ul li:hover {
    opacity: .5;
}


/* FOTO CAROSELLO SERVIZI */
.gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 100px;
    height: auto;
    cursor: pointer;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
}

.thumbnail:hover {
    transform: scale(1.05);
}


/* CHI SIAMO */

.about1 {
    display: block;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 40px auto;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;

}

.galleryabout {
    max-width: 100%;
    text-align: center;
    margin: 0 20px;
}

.galleryabout img {
    width: 200px;
    margin: 0px 5px 5px;
}

.descrizionecentro-container {
    max-width: 100%;
    text-align: justify;
    margin: 10px 40px;
}

.qualita {
    text-align: center;
    max-width: 250px;
    margin: 20px auto;
}

.qualita img {
    width: 20%;
    height: auto;
}

.qualita p {
    font-size: 1rem;
}

@media screen and (max-width: 767px) {
    .galleryabout img {
        width: 200px;
    }
}

@media screen and (max-width: 500px) {
    .galleryabout {
        max-width: 100%;
        margin: 0 20px;
    }

    .galleryabout img {
        max-width: 150px;
    }
}


/* Staff */
.about2 {
    background-color: var(--section-color);
    padding: 20px 20px;
}

.staff {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

.operatore {
    text-align: center;
    width: 250px;
}

.operatore img {
    width: 150px;
    height: 150px;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 25%;
    background-color: white;
}

.operatore h3 {
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.5rem;
    padding: 5px 0;
}

.operatore ul {
    font-size: 1rem;
    text-align: center;
    color: var(--text-color)
}


/* ABOUT BOX */

.about3 {
    border: 2px solid var(--main-color);
    border-radius: 10px;
    margin: 40px auto;
    width: calc(100% - 80px);
    max-width: 1400px;
}

.aboutlinkdiv {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    gap: 40px;
}

.aboutlinkdiv div {
    max-width: 200px;
    height: auto;
    text-align: center;
}

.aboutlinkdiv img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.aboutlinkdiv h3 {
    font-weight: normal;
    font-size: 1.2rem;
}

.aboutbox:hover {
    opacity: .5;
    cursor: pointer;
}


/* ABOUT MISSION */

.about4 {
    background-color: var(--section-color);
    padding: 20px;
}

.about4 p {
    margin: 20px auto;
    padding: 0 40px;
    text-align: justify;
    max-width: 1400px;
}

.about4 ul {
    margin: 0 auto;
    padding: 0 60px;
}

.about4 li {
    list-style-type: disc;
    list-style-position: outside;
    margin: 0 auto;
    text-align: justify;
    max-width: 1200px;
}




/* MENU OVERLAY HAMBURGER */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.menu-content {
    background-color: none;
    text-align: center;
    width: 100%;
    margin: 120px 0;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-overlay.active .menu-content {
    opacity: 1;
    transform: translateY(0);
}

.menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-content li {
    margin: 20px auto;
    width: 70%;
    border-radius: 5px;
    background-color: var(--main-color);
    overflow: hidden;
}

.menu-content li a {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.menu-content li a:hover {
    opacity: 0.8;
    background-color: var(--section-color);
    color: var(--main-color);
    font-weight: bold;
}

.menu-content li a:active {
    background-color: var(--text-color);
    color: var(--main-color);
    font-weight: bold;
    color: white;
}

@media (min-width: 768px) {

    .menu-overlay,
    .menu-content {
        display: none;
    }
}


/* ===== FAQ ====== */
.main-faq {
    margin: 20px auto;
    padding: 0 40px;
    max-width: 1200px;
}

.main-faq h3 {
    font-size: 1.2rem;
    text-align: left;
}

.main-faq p {
    text-align: justify;
}

.faq-container {
    margin-bottom: 20px;
    background-color: var(--section-color);
    padding: 20px;
    border-radius: 10px;
}

.faq-container ol li {
    list-style-position: outside;
    margin-left: 20px;
}


/* LISTA D'ATTESA */
.lista-attesa-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    margin: 20px auto;
    gap: 10px;
    max-width: 1800px;
}

.tempi-medi-section {
    min-width: 250px;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    padding: 20px;
}

.tempi-medi-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tempi-medi-title svg {
    width: 40px;
    height: auto;
}

.tempi-medi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin: 20px auto;
}

.tempi-medi td {
    padding-right: 20px;
}

.tempi-medi td:first-child {
    text-align: left;
}

.tempi-medi td:nth-child(2) {
    text-align: center;
}

.tempi-medi th {
    text-align: left;
}

.tempi-medi table {
    max-width: 400px;
    min-width: 220px;
    border-collapse: collapse;
    margin: 0 auto;
    color: var(--text-color);
}

.modulo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid var(--text-color);
    border-radius: 10px;
    max-width: 400px;
    height: auto;
    text-align: center;
    padding: 20px;
    margin: 40px auto;
    background-color: var(--section-color);
}

.modulo a {
    text-decoration: none;
    background-color: var(--main-color);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modulo a:hover {
    opacity: .5;
}

.criteri-inserimento {
    margin: 0 auto;
    max-width: 1200px;
    line-height: 1.5;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    padding: 20px;
}

.gallerypiantina img {
    width: 300px;
    margin: 20px;
}

.piantina-comuni {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 425px) {
    .criteri-inserimento {
        width: 90%;
        text-align: justify
    }

    .gallerypiantina img {
        width: 150px;
    }

    .tempi-medi-section {
        width: 90%;
    }

    .tempi-medi table {
        width: 90%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        font-size: 0.7rem;
    }

    .modulo {
        width: 90%;
    }

    .tempi-medi-title {
        width: 100%;
        margin: 0 auto;
    }
}


/* ===== WORK ===== */
.work-div1 {
    margin: 20px auto 0;
    padding: 20px;
    width: 90%;
    max-width: 750px;
    text-align: left;
    border: 1px solid var(--main-color);
    border-radius: 10px;
}

.work-div1 h4 {
    text-align: left;
}



/* ==== TRASPARENZA ==== */
.trasparenza-main {
    max-width: 700px;
    margin: 20px auto;
    padding: 0 20px;
}

.trasparenza-blocchi {
    width: 100%;
}

.trasparenza-blocco {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--main-color);
    border-radius: 10px;
    padding: 20px;
}

.trasparenza-img img {
    width: 75px;
}

.trasparenza-text {
    text-align: justify;
    line-height: 1.5;
}

.trasparenza-text img {
    width: 50px;
    margin: 5px auto;
    display: inherit;
    justify-content: center;
}

.trasparenza-text h3 {
    text-align: center;
}

#risk h4 {
    text-align: left;
}

#risk li {
    font-size: 1.1rem;
    list-style-type: disc;
    list-style-position: inside;
    text-align: left;
}

@media (min-width: 768px) {
    .trasparenza-blocco {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 20px;
    }

    .trasparenza-text h3 {
        text-align: left;
    }

    .trasparenza-text img {
        width: 50px;
        margin: 5px 0;
    }
}


/* ===== CENTRO STUDI ===== */
.centrostudi-main {
    margin: 0 auto;
    padding: 20px;
    max-width: 760px;
}

.centrostudi-main p {
    text-align: justify;
}

.evento-container {
    margin: 20px 10px;
    background-color: var(--section-color);
    padding: 30px;
    border-radius: 10px;
}

.evento-logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    overflow: hidden;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    margin-right: 20px;
    background-color: white;
}

.evento-description {
    max-width: 700px;
    width: 100%;
}

.evento-text h3,
.evento-text h4,
.evento-text p {
    text-align: left;
}

.evento-download {
    display: flex;
    align-items: center;
    gap: 10px;
}

.evento-download svg {
    width: 32px !important;
    height: 32px !important;
    fill: var(--main-color);
    vertical-align: middle;
}

.evento-download svg:hover {
    cursor: pointer;
    opacity: .5;
}

.more-activities {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition:
        max-height 0.6s ease,
        opacity 0.6s ease,
        transform 0.6s ease;
}

.more-activities.show {
    max-height: 100%;
    opacity: 1;
    transform: translateY(0);
}

.video-button {
    cursor: pointer;
    display: inline-block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: #000;
}

.modal-content iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

@media (min-width: 768px) {
    .centrostudi-main {
        max-width: 1200px;
    }

    .evento-container {
        margin: 20px;
        display: flex;
        justify-content: flex-start;
        background-color: var(--section-color);
        padding: 30px;
        border-radius: 10px;
    }

    .evento-logo img {
        width: 250px;
        height: 250px;
    }
}


/* ===== TARIFFARIO ===== */
.tariffario-wrapper {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 700px;
    width: 90%;
}

.tariffario-table {
    background-color: var(--section-color);
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
    margin-top: 40px;
}

.tariffario-table:last-child {
    margin-bottom: 40px;
}

.tariffario-table th, td {
    border: 1px solid #ccc;
    padding: 5px 10px;
    text-align: center;
    white-space: nowrap;
}

.tariffario-table td:first-child {
    text-align: left;
    white-space: normal;
}

.tariffario-table th {
    background-color: var(--main-color);
    color: white;
    text-align: center;
}

.tariffario-table thead tr:first-child th:first-child {
    text-align: left;
    padding: 0 10px;
}

.tariffario-nb {
    min-width: 600px;
    margin: 0 auto;
    margin-top: 10px;
    padding: 0 20px;
    text-align: justify;
}

.tariffario-nb p {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .tariffario-wrapper {
        max-width: 700px;
    }
}