/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

html,
body {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

* h1 {
    font-family: "Open Sans", sans-serif;
    color: #393939;
}

/* HEADER */
header {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo_header {
    display: flex;
    flex-direction: column;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.logo_header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    font-family: "Montserrat", sans-serif;
}

.menu a {
    display: flex;
    flex-direction: column;
    width: auto;
    height: 100%;
    padding: 0;
    margin: 0 2px;
    text-decoration: none;
}

.menu a:hover {
    text-decoration: none;
}

.menu_btn {
    display: none;
}

.voce_menu {
    display: flex;
    flex-direction: row;
    width: auto;
    height: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    font-variant: small-caps;
    font-size: 18px;
    color: #333333;
    transition: all ease-in 0.3s;
    cursor: pointer;
    position: relative;
}

.corrente {
    border-bottom: 2px solid #0055a5;
}

.con_submenu {
    display: flex;
    flex-direction: row;
    width: auto;
    height: 100%;
    color: #333333;
    transition: all ease-in 0.3s;
    cursor: pointer;
    position: relative;
}

.voce_menu:hover {
    background-color: #2867a2;
    color: #ffffff;
}

.con_submenu label {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    padding: 8px 12px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    font-variant: small-caps;
    font-size: 16px;
}

.con_submenu:hover label {
    background-color: #2867a2;
    color: #ffffff;
}

.con_submenu:hover svg {
    fill: #ffffff;
}

.freccia_menu {
    display: flex;
    width: 20px;
    height: 22px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    transition: all ease-in 0.3s;
    margin: 0;
}

.voce_menu:hover label {
    color: #ffffff;
    background-color: #2867a2;
}

.voce_menu:hover .freccia_menu {
    fill: #ffffff;
}

.ruotato {
    transform: rotate(180deg);
}

.voce_menu:hover .submenu .voce_submenu {
    color: #333333;
}

.con_submenu {
    display: flex;
    flex-direction: row;
    width: auto;
    height: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    font-variant: small-caps;
    font-size: 16px;
    color: #333333;
}

.contatti_header {
    display: flex;
    flex-direction: row;
    width: auto;
    height: auto;
    align-items: center;
    justify-content: flex-end;
    margin: auto 5px;
}

.icona_action {
    display: flex;
    flex-direction: row;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    padding: 2px;
    box-sizing: border-box;
}

.icona_action img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.submenu {
    position: absolute;
    width: 320px;
    height: auto;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fdfdfd;
    border-radius: 2px;
    box-shadow: 2px 2px 6px #919191;
    top: 100%;
    z-index: 999;
    display: none;
}

.submenu_list {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    z-index: 1000;
}

.submenu a {
    width: 100%;
}

.voce_submenu {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    transition: all ease-in 0.3s;
    box-sizing: border-box;
    color: #333333;
    font-size: 16px;
}

.voce_submenu:hover {
    background-color: #236eb4;
    color: #ffffff !important;
}

/* Stili per il popup dei cookie */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(80, 80, 80, 0.9);
    color: white;
    padding: 20px;
    text-align: center;
    display: none;
    box-sizing: border-box;
}

#cookie-banner h3,
#cookie-banner h4 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 5px;
    padding: 5px 10px;
    box-sizing: border-box;
    font-variant: small-caps;
}

#cookie-banner p {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 6px;
    text-align: left;
    font-size: 16px;
}

#cookie-banner .buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 10px;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    box-sizing: border-box;
}

#cookie-banner button {
    position: relative;
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transform: translateY(0);
}

#cookie-banner button:hover {
    background-color: #45a049;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 16px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #9e9e9e;
    transition: 0.4s;
    border-radius: 50px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    border-radius: 50px;
    left: 2px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: #2867a2;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* login */
.login_page {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.login_form {
    display: flex;
    flex-direction: column;
    width: 50vw;
    height: auto;
    margin: auto;
    align-items: center;
    justify-content: center;
    font-family: "Open Sans", sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.form {
    display: flex;
    flex-direction: column;
    width: 40%;
    max-width: 400px;
    min-width: 300px;
}

.form h2 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    font-variant: small-caps;
    font-size: 36px;
}

.form label {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 5px;
    margin-top: 5px;
    font-variant: small-caps;
    font-weight: 600;
    color: #5b5b5b;
    font-size: 16px;
}

.input_line {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 5px;
    box-sizing: border-box;
    border: 0.5px solid #919191;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 300;
}

.input_line:focus {
    outline: none;
    border: 0.5px solid #242424;
}

.submit_btn {
    display: flex;
    flex-direction: row;
    width: 90%;
    height: auto;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    padding: 10px;
    box-sizing: border-box;
    font-size: 18px;
    font-variant: small-caps;
    border: 1px solid #919191;
    border-radius: 5px;
    background-color: #0066cc;
    transition: all ease-in 0.3s;
    margin-bottom: 20px;
    color: #ffffff;
}

.submit_btn:hover {
    background-color: #0d4880;
    color: #ffffff;
    box-shadow: 0 0 4px #333333;
}

.submit_btn:active {
    background-color: #2c2c2c;
    color: #ffffff;
    box-shadow: 0 0 4px #333333;
}

.link_form {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    margin: 3px 0;
    font-variant: small-caps;
    font-size: 18px;
    font-weight: 300;
}

.link_form a {
    color: #5b5b5b;
    text-decoration: none;
}

.link_form a:hover {
    text-decoration: underline;
    font-weight: 400;
}

.con_separatore {
    border-right: 1px solid #919191;
}

/* home */
.carousel {
    position: relative;
    width: 100vw;
    height: 80vh;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 70px;
}

.carousel-container {
    display: flex;
    transition: transform 0.7s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    text-align: center;
    position: relative;
}

img {
    width: 100%;
    display: block;
}

.caption {
    position: absolute;
    top: 0;
    width: auto;
    background: rgba(0, 0, 0, 0.2);
    color: rgb(28, 28, 28);
    padding: 20px;
    font-size: 16px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.caption h2 {
    text-align: center;
    font-size: 6vw;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 2px #393939;
}

.caption h4 {
    color: #ffffff;
    font-size: 28px;
    font-variant: small-caps;
    text-shadow: 0 0 2px #393939;
}

.carousel-container button {
    position: absolute;
    top: 50%;
    transform: translateY(-65%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 100;
    border-radius: 5px;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.cta_container {
    position: absolute;
    bottom: 10px;
    width: auto;
    padding: 20px;
    font-size: 16px;
    right: 100px;
    left: 100px;
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.cta_container a {
    display: flex;
    flex-direction: row;
    width: auto;
    height: auto;
    align-items: center;
    justify-content: center;
    margin: 5px;
    padding: 0;
    text-decoration: none;
}

.main_cta,
.secondary_cta {
    display: flex;
    flex-direction: row;
    width: 140px;
    height: auto;
    padding: 10px;
    font-variant: small-caps;
    color: #ffffff;
    border-radius: 25px;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    transition: all ease-in 0.2s;
}

.main_cta {
    background-color: #0a5ead;
}

.secondary_cta {
    background-color: rgba(0, 0, 0, 0.2);
}

.main_cta:hover {
    box-shadow: 0 0 2px #5b5b5b;
}

.secondary_cta:hover {
    box-shadow: 0 0 2px #5b5b5b;
    background-color: rgba(0, 0, 0, 0.7);
}

.infinite_carousel_container {
    overflow: hidden;
    width: 80%;
    background: white;
    padding: 20px 0;
    display: flex;
    align-items: center;
    position: relative;
}

.carousel_track {
    display: flex;
    gap: 30px;
    animation: scroll 20s linear infinite;
}

.carousel_track img {
    height: 80px !important;
    width: auto;
    object-fit: contain;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.blocco_home {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 30px 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.avviso {
    display: flex;
    flex-direction: row;
    position: absolute;
    right: 20px;
    top: 100px;
    width: auto;
    min-width: 200px;
    max-width: 420px;
    height: 120px;
    padding: 15px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border: 3px solid #0a5ead;
    border-radius: 10px;
    box-shadow: 0 0 7px #5a5a5a;
    background-color: #ffffff;
    opacity: 0;
    animation: mostra 0.5s ease forwards;
    animation-delay: 0.5s;
    /* mezzo secondo prima che parta */
}

@keyframes mostra {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avviso img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    margin-right: 30px;
}

.inner_avviso {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.avviso p {
    display: flex;
    font-variant: small-caps;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 18px;
}

.avviso p a {
    margin-left: 7px;
}

.blocco_home img {
    display: flex;
    flex-direction: row;
    width: 50%;
    height: 75vh;
    align-items: center;
    justify-content: center;
    object-fit: contain;
}

.minipresentazione {
    display: flex;
    flex-direction: row;
    width: 50%;
    height: auto;
    align-items: center;
    justify-content: center;
    padding: 30px 100px;
    box-sizing: border-box;
}

.logo_maxi {
    display: flex;
    flex-direction: column;
    width: 48vw;
    height: 300px;
    align-items: center;
    justify-content: center;
    object-fit: contain;
}

.info_breve {
    display: flex;
    flex-direction: column;
    width: 50vw;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    line-height: 1.8rem;
    font-weight: 300;
}

.info_breve h1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
    font-size: 45px;
    line-height: 0.4rem;
    border-bottom: none;
}
.info_breve h2{ 
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
    font-size: 28px;
    border-bottom: 2px solid #0055a5;
}

.info_breve p {
    line-height: 2rem;
    font-weight: 300;
    font-size: 17px;
}

.mappa {
    display: flex;
    flex-direction: column;
    width: 50vw;
    height: calc(100vh - 130px);
}

.mappa iframe {
    height: 100%;
}

.contatti_form {
    width: 50vw;
}

.form_contatti {
    display: flex;
    flex-direction: column;
    width: 70%;
    min-width: 300px;
    max-width: 700px;
    margin: auto;
}

textarea {
    resize: none;
}

.riga_contatti {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    align-items: flex-start;
    justify-content: center;
    margin: 3px 0;
}

h1 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: flex-start;
    font-size: 25px;
}

.riga_contatti a {
    color: #242424;
    margin: 0 10px;
}

.riga_contatti label {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 5px;
    margin-top: 5px;
    font-variant: small-caps;
    font-weight: 600;
    color: #5b5b5b;
    font-size: 16px;
}

/* SERVIZI */
.servizi_container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    margin-top: 80px;
    box-sizing: border-box;
}

.servizio_body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.header_servizio {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 70vh;
    position: relative;
}

.dark_layer {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.3);
    bottom: 0;
}

.header_servizio h2 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    font-size: 3.5vw;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: capitalize;
    position: absolute;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.header_servizio img {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    object-fit: cover;
    align-items: center;
    justify-content: center;
}

.servizi_container p,
.servizi_container ol {
    display: block;
    width: 70vw;
    height: auto;
    padding: 0;
    box-sizing: border-box;
    text-wrap: wrap;
    font-weight: 200;
}

.servizi_container ol {
    width: 100%;
    padding-left: 30px;
    box-sizing: border-box;
}

.servizi_container ol li {
    width: 100%;
    padding-left: 30px;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-size: 17px;
}

span {
    line-height: 1.6rem;
    font-weight: 200;
}

.testo_servizio {
    display: flex;
    flex-direction: column;
    width: 45vw;
    height: auto;
    margin: 20px auto;
    box-sizing: border-box;
}

.testo_servizio p {
    width: 100%;
    font-size: 18px;
    line-height: 1.8rem;
}

.servizio_content {
    display: flex;
    flex-direction: row;
    width: 90%;
    height: auto;
    padding-top: 30px;
    margin: 0 auto;
}

.form_servizio {
    display: flex;
    width: 40%;
    height: auto;
    flex-direction: column;
    height: auto;
    margin-top: 20px;
}

.form_servizio label {
    padding: 10px 10px 0 10px;
    box-sizing: border-box;
}

.form_servizio textarea {
    border-radius: 5px;
    height: 150px;
    border-color: #9e9e9e;
    padding: 10px;
    box-sizing: border-box;
    font-size: 18px;
}

/* LO STUDIO */
.header_studio {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 80px;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    margin-top: 80px;
}

.header_studio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header_studio h2 {
    position: absolute;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 20px 50px;
    font-size: 10vw;
    color: #fdfdfd;
    box-sizing: border-box;
    text-shadow: 0 0 2px #333333;
}

.lo_studio {
    display: flex;
    flex-direction: column;
    width: 70%;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 25px 0;
    box-sizing: border-box;
    margin: 0 auto;
}

.servizi_short {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.unservizio {
    display: flex;
    flex-direction: column;
    width: 33%;
    min-width: 300px;
    height: 30vh;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 20px;
    box-sizing: border-box;
}

.unservizio .cta {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
    color: #0055a5;
}

.unservizio .cta a:hover {
    text-decoration: underline;
}

.unservizio h3 {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: flex-start;
    height: 55px;
}

.unservizio p {
    width: 100%;
    height: auto;
    padding: 10px;
    font-size: 14px;
}

.la_scelta,
.conclusione {
    display: flex;
    flex-direction: column;
    width: 45%;
    min-width: 320px;
    height: auto;
    margin: 0 auto 30px auto;
}

.la_scelta h2 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 0 10px 10px 10px;
    box-sizing: border-box;
    font-size: 36px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
}

.conclusione p {
    width: 100%;
    margin-bottom: 10px;
}

.conclusione a {
    display: flex;
    flex-direction: row;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 auto;
    text-decoration: none;
}

/* CANDIDATURE */
.form_candidatura_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    padding-top: 50px;
    background: #ffffff;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 100vh;
}

.form_candidatura {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    max-width: 600px;
}

.form_candidatura_container h2 {
    font-family: "Montserrat", sans-serif;
    margin-bottom: 1rem;
    max-width: 600px;
}

.form_candidatura_container p {
    max-width: 600px;
}

.form_group {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

.form_candidatura_container label {
    display: block;
    margin-bottom: 2px;
    margin-top: 6px;
    font-weight: 400;
    color: #5a5a5a;
    font-variant: small-caps;
    padding: 0 10px;
    box-sizing: border-box;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 18px;
}

input[type="submit"] {
    display: flex;
    flex-direction: row;
    background-color: #0066cc;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
}

input[type="submit"]:hover {
    background-color: #0055a5;
}

.terms_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin: 12px 0;
    color: #333;
    user-select: none;
}

.terms_label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.terms_label a {
    color: #007bff;
    /* colore blu per link */
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms_label a:hover {
    color: #0056b3;
    /* colore più scuro al passaggio */
}

/* FOOTER */
footer {
    display: flex;
    flex-direction: column;
    background-color: #383838;
    color: #fff;
    padding: 2rem 1rem;
    font-family: "Open Sans", sans-serif;
    margin-top: 100px;
}

.footer_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    width: 100%;
    margin: auto;
}

.footer_info {
    display: flex;
    flex-direction: column;
    width: 30%;
    height: auto;
    min-width: 300px;
}

.footer_info h3 {
    display: flex;
    flex-direction: row;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    box-sizing: border-box;
}

.footer_menu {
    display: flex;
    flex-direction: column;
    margin: auto 30px;
}

.footer_info a,
.footer_menu a {
    color: #fff;
    text-decoration: none;
}

.footer_menu ul {
    list-style: none;
    padding: 0;
}

.footer_menu li {
    margin: 0.5rem 0;
}

.footer_bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #aaa;
    border-top: 1px solid #444;
    padding-top: 1rem;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1280px;
    margin: auto;
    padding: 40px 20px;
    background: white;
    padding-top: 80px;
}

h1,
h2 {
    color: #003366;
}

h1 {
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
}

ul {
    padding-left: 20px;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9em;
    color: #888;
}

.checkbox_container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 15px;
}

.checkbox_container input[type="checkbox"] {
    display: none;
}

.checkbox_container label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom_checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.custom_checkbox::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.checkbox_container label a {
    margin-left: 5px;
}

input[type="checkbox"]:checked+label .custom_checkbox {
    background-color: #4caf50;
    border-color: #4caf50;
}

input[type="checkbox"]:checked+label .custom_checkbox::after {
    opacity: 1;
}

.post_page {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
    background-color: #ffffff;
}

.page_title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 300;
}

.post_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.un_post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.un_post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.titolo_post {
    padding: 20px;
    background-color: #34495e;
    color: white;
    font-size: 1.2em;
    font-weight: 500;
    text-align: center;
}

.copertina_post {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.copertina_post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stralcio {
    padding: 20px;
}

.excerpt_text {
    color: #666;
    margin-bottom: 15px;
    text-align: justify;
}

.post_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.post_date {
    color: #888;
    font-size: 0.9em;
}

.read_more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.read_more:hover {
    background-color: #3498db;
    color: white;
}

.no_posts {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-top: 40px;
    grid-column: 1 / -1;
}

.container_post {
    width: 85%;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
    margin-top: 80px;
}

.back_button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back_button:hover {
    background: #667eea;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.back_button::before {
    content: "←";
    font-size: 1.2em;
    font-weight: bold;
}

.post_article {
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.post_header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.post_header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent);
}

.post_title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    text-transform: uppercase;
}

.post_meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    font-size: 1.1em;
    opacity: 0.9;
}

.post_date,
.post_author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post_date::before {
    content: "📅";
    font-size: 1em;
}

.post_author::before {
    content: "✍️";
    font-size: 1em;
}

.post_image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.post_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post_image:hover img {
    transform: scale(1.05);
}

.post_image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 100%);
}

.post_content {
    padding: 50px;
    font-size: 1.1em;
    color: #333;
    text-align: justify;
}

.post_content p {
    margin-bottom: 20px;
}

.post_content h2 {
    color: #667eea;
    margin: 30px 0 15px 0;
    font-size: 1.5em;
}

.post_content h3 {
    color: #764ba2;
    margin: 25px 0 10px 0;
    font-size: 1.3em;
}

.post_content blockquote {
    border-left: 4px solid #667eea;
    margin: 25px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.post_content ul,
.post_content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post_content li {
    margin-bottom: 8px;
}

.post_footer {
    padding: 30px 50px;
    text-align: center;
}

.share_buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.share_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share_btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(100%);
}

.share_btn.facebook {
    background: #3b5998;
    color: white;
}

.share_btn.twitter {
    background: #1da1f2;
    color: white;
}

.share_btn.whatsapp {
    background: #25d366;
    color: white;
}

.share_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.loading_message {
    text-align: center;
    color: white;
    font-size: 1.2em;
    padding: 50px;
}

/* Container principale */
.gallery_container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.aside {
    width: 280px;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.aside-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

/* Lista categorie */
.category-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.category-list li {
    margin-bottom: 12px;
}

.category-link {
    display: block;
    text-decoration: none;
    color: #34495e;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-link:hover {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Divisore */
.aside-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
    margin: 25px 0;
}

/* Form filtri */
.filtri-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.filtri-label {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.filtri-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e0e6ed;
    background: white;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filtri-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filtri-button {
    padding: 14px 20px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtri-button:hover {
    background: linear-gradient(45deg, #2980b9, #1f5f99);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* Area principale */
.elenco_main {
    flex: 1;
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
}

.elenco_main h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 3px solid #3498db;
    font-weight: 700;
    position: relative;
}

.elenco_main h2::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
}

/* ===== LAYOUT CONTAINER ===== */
.gallery-container {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

/* ===== ELEGANT SIDEBAR ===== */
.sidebar {
    width: 340px;
    padding: 40px 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid #e8ecef;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8ecef;
}

.sidebar-title {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== CATEGORY NAVIGATION ===== */
.category-navigation {
    margin-bottom: 40px;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 4px;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #475569;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(59, 130, 246, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.category-link:hover::before {
    left: 100%;
}

.category-link:hover {
    background: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
    transform: translateX(8px);
}

.category-link--all {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-weight: 500;
}

.category-link--all:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateX(8px) scale(1.02);
}

.category-icon {
    margin-right: 12px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.category-text {
    flex: 1;
    text-transform: uppercase;
}

/* ===== FILTERS SECTION ===== */
.filters-section {
    padding: 30px 0;
    border-top: 1px solid #e8ecef;
}

.filters-title {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.select-wrapper {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-button {
    padding: 16px 24px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.filter-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.filter-button:hover::before {
    left: 100%;
}

.filter-button:hover {
    background: linear-gradient(135deg, #111827 0%, #000000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== MAIN GALLERY AREA ===== */
.gallery-main {
    flex: 1;
    padding: 40px 50px 60px;
    background: #fafafa;
}

.gallery-header {
    margin-bottom: 50px;
    text-align: center;
}

.gallery-description {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    color: #64748b;
    font-style: italic;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
    padding: 20px 0;
}

/* ===== GALLERY CARDS ===== */
.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.gallery-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.05) 0%,
            rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 20px;
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    z-index: 2;
}

.view-gallery {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.image-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-content {
    padding: 25px;
    background: white;
    position: relative;
    z-index: 2;
}

.card-title {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.card-year {
    font-weight: 600;
    color: #3b82f6;
}

.card-category {
    font-style: italic;
}

/* ===== ELEGANT LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox--active {
    display: flex;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 40px 40px;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox-controls {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    position: absolute;
    bottom: 10px;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.control-btn--close {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.control-btn--close:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.lightbox-counter {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.card-in-post {
    width: 320px;
    margin: 0 auto;
}

.file_list_container {
    width: 100%;
    height: auto;
    margin-top: 100px;
}

.file_list_container h2 {
    margin-top: 100px;
}

table {
    width: 90%;
    height: auto;
    margin: 0 auto;
}

th {
    color: #003366;
    font-weight: bold;
    border: 1px solid #393939;
    padding: 3px 10px;
    box-sizing: border-box;
    min-width: 100px;
}

.fb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    border-radius: 8px;
    border: 1px solid #3b5998;
    background: linear-gradient(#4b67b2, #3b5998);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    position: absolute;
    top: 150px;
    left: 20px;
}


.fb-share-btn:focus {
    outline: 3px solid rgba(59, 89, 152, 0.25);
    outline-offset: 2px;
}

.fb-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.x-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    border-radius: 8px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    position: absolute;
    top: 150px;
    left: 120px;
}

.x-share-btn:focus {
    outline: 3px solid rgba(0, 0, 0, 0.25);
    outline-offset: 2px;
}

.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .sidebar {
        width: 300px;
    }

    .gallery-main {
        padding: 30px 35px 50px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .gallery-container {
        flex-direction: column;
        padding-top: 80px;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        padding: 30px;
    }

    .sidebar-header {
        text-align: left;
        margin-bottom: 30px;
    }

    .filters-form {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .filter-group {
        flex: 1;
        min-width: 200px;
    }

    .filter-button {
        flex: 1;
        min-width: 150px;
    }

    .gallery-main {
        padding: 20px 30px 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .fb-share-btn {
        top: 200px;
    }

    .sidebar {
        padding: 20px;
    }

    .sidebar-title {
        font-size: 1.6rem;
    }

    .filters-form {
        flex-direction: column;
        gap: 16px;
    }

    .gallery-main {
        padding: 15px 20px 30px;
    }

    .gallery-description {
        font-size: 1.1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .card-image-wrapper {
        height: 220px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .lightbox-content {
        padding: 40px 20px 20px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 75vh;
    }

    .control-btn {
        width: 48px;
        height: 48px;
    }

    .lightbox-counter {
        top: 20px;
        right: 20px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding-top: 80px;
    }

    .sidebar {
        padding: 15px;
    }

    .category-link {
        padding: 12px 16px;
    }

    .gallery-main {
        padding: 10px 15px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .card-content {
        padding: 20px;
    }

    .card-meta {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .lightbox-controls {
        gap: 15px;
    }

    .control-btn {
        width: 44px;
        height: 44px;
    }
}

/* ===== SMOOTH SCROLLBAR ===== */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .content {
        margin-left: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .post_title {
        font-size: 1.5em;
    }

    .post_content {
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .container_post {
        width: 95%;
        box-sizing: border-box;
    }

    .post_title {
        font-size: 1.8em;
    }

    .post_header {
        padding: 30px 20px;
    }

    .post_content {
        padding: 30px 25px;
        font-size: 1em;
    }

    .post_footer {
        padding: 25px 20px;
    }

    .post_meta {
        flex-direction: column;
        gap: 15px;
    }

    .share_buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .back_button {
        padding: 3px 15px;
        font-size: 0.9em;
    }

    .post_page {
        padding: 15px;
    }

    .page_title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .post_container {
        width: 90%;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post_meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .titolo_post {
        font-size: 1.1em;
        padding: 15px;
    }

    .stralcio {
        padding: 20px;
    }

    .menu {
        display: flex;
        position: fixed;
        top: 70px;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fffbf7;
        z-index: 900;
        margin: 0;
        flex-direction: column;
        overflow-y: scroll;
        display: none;
        padding-top: 20px;
        box-sizing: border-box;
    }

    .slide img {
        height: 100%;
        object-fit: cover;
    }

    .caption h2 {
        font-size: 9vw;
    }

    .testo_servizio {
        width: 80vw;
    }

    .testo_servizio p,
    .testo_servizio ol {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
    }

    .menu a {
        height: auto;
        justify-content: flex-start;
    }

    .voce_menu {
        flex-direction: column;
        height: auto;
        width: 90vw;
        margin: 1px auto;
        padding: 8px 10vw;
        box-sizing: border-box;
        align-items: flex-start;
        font-weight: 400;
    }

    .con_submenu {
        flex-direction: column;
        height: auto;
        width: 90vw;
        margin: 1px auto;
        box-sizing: border-box;
        align-items: flex-start;
        font-weight: 600;
    }

    .con_submenu label {
        padding: 8px 10vw;
        box-sizing: border-box;
        font-weight: 500;
    }

    .submenu {
        position: relative;
        width: 100%;
        padding: 0 5%;
        margin-top: 2px;
        top: 0;
        box-shadow: none;
        background-color: #f3f1ed;
        font-weight: 400;
        box-sizing: border-box;
    }

    .voce_submenu {
        width: 100%;
        padding: 10px 10%;
    }

    .voce_submenu:hover {
        background-color: #3e8ad0;
        color: #ffffff;
    }

    .menu_btn {
        display: flex;
        flex-direction: column;
        width: 40px;
        height: 40px;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .menu_btn_container {
        display: flex;
        flex-direction: column;
        width: 40px;
        height: 40px;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: hidden;
        cursor: pointer;
    }

    .menu_btn_container span {
        display: flex;
        width: 40px;
        height: 40px;
        font-size: 33px;
        color: #333333;
        transition: all ease-in 0.3s;
    }

    .con_submenu label {
        justify-content: flex-start;
    }

    .infinite_carousel_container {
        width: 100%;
        padding: 0;
        margin-top: 0;
    }

    .sullevatu {
        margin-top: -40px;
    }

    .login_page {
        flex-direction: column;
    }

    .mappa {
        width: 100%;
    }

    .login_form {
        width: 100%;
    }

    .unservizio {
        width: 100%;
        height: auto;
    }

    .blocco_home {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .minipresentazione {
        flex-direction: column;
        width: 100%;
        margin: 0 !important;
        padding: 20px;
    }

    .blocco_home img {
        width: 100%;
        height: auto;
    }

    .info_breve {
        width: 100%;
        margin: 10px 0;
    }

    .info_breve p {
        width: 100%;
        line-height: 1.8rem;
    }

    .servizio_content {
        flex-direction: column;
    }

    .form_servizio {
        width: 90%;
        margin: 10px auto;
    }

    .header_studio {
        height: 10px;
    }

    .header_servizio h2 {
        font-size: 8vw;
        text-align: center;
    }

    .lo_studio {
        width: 90vw;
    }

    .unservizio {
        margin-bottom: 30px;
    }

    .unservizio .cta {
        align-items: center;
        justify-content: center;
    }

    .form_contatti {
        width: 90%;
    }

    .form_candidatura_container {
        width: 100%;
    }

    .footer_container {
        flex-direction: column;
    }

    .footer_info {
        width: 100%;
        margin: 10px auto;
    }

    .footer_info p {
        width: 100%;
    }

    .footer_menu {
        width: 100%;
    }

    .avviso {
        display: flex;
        flex-direction: row;
        position: absolute;
        right: 10px;
        left: 10px;
        top: 80px;
        height: auto;
        padding: 5px;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
        border: 3px solid #0a5ead;
        border-radius: 10px;
        box-shadow: 0 0 7px #5a5a5a;
        background-color: #ffffff;
    }
}