

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
:root {
    --MainBlu: #7492b3;
    --font_open_sans: 'Open Sans', sans-serif;
    --gradient_blu: linear-gradient(to right, #7492b3, #6dd5ed);
    --gradient_blu_light: linear-gradient(145deg, #b9d2ecac, #6dd5ed);
    --gradient_blu_dark: linear-gradient(145deg, #7492b3, #6dd5ed);
}

html {
    scroll-behavior: smooth;
}


a,
a:hover,
a:focus,
a:visited {
    text-decoration: none !important;
    outline: none !important;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: none !important;
}

@media only screen and (max-width: 768px) {
    #row_footer_mobile {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
    }
    #row_footer_mobile>div {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #row_footer_mobile>div .contact-info {
        align-items: center;
    }
    #main_menu .logo_main {
        position: absolute;
        top: 0px;
    }
    #main_menu .navbar.navbar-default {
        flex-grow: 2;
    }
    #main_menu {
        min-height: 120px;
    }
}

#_header_general {
    opacity: 0;
    animation: fade_in_header 1s 0.5s linear forwards;
}

@keyframes fade_in_header {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body {
    background-color: #ffffff;
    font-family: var(--font_open_sans);
}

.flex_row {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
}

.flex_row_mobile {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
}

.flex_row_bottom {
    display: flex !important;
    align-items: flex-end;
}

figure img {
    width: 500px;
    height: auto;
    max-width: 300px;
    min-height: 270px;
    object-fit: cover;
}

.grid.flex_row {
    padding: 30px 0px;
}

@media only screen and (max-width: 768px) {
    .flex_row_mobile {
        flex-direction: column;
    }
    .diventa_partner h4 {
        text-align: center;
    }
    .grid.flex_row {
        flex-direction: column;
    }
    .column {
        width: 100%;
    }
    figure {
        width: 100%;
    }
    figure img {
        width: 100%;
        max-width: 100%;
    }
    .mat_link {
        margin-top: 30px !important;
        width: 100%;
        display: block;
        text-align: center;
    }
}

.testo_20 p {
    font-size: 20px;
}

#divisorio_1 {
    filter: drop-shadow(2px 4px 6px rgb(0 0 0 /25%))
}

#divisorio_1 rect,
#divisorio_1 path {
    fill: var(--MainBlu);
}

#divisorio_2_bianco {
    position: absolute;
    top: 12vh;
    left: 0;
}

#divisorio_2_bianco rect,
#divisorio_2_bianco path {
    fill: white;
}

.nascondi {
    display: none !important;
    height: 0px;
    opacity: 0px;
    overflow: hidden;
}


/*Lay Sito*/

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info a {
    color: white;
    font-weight: 500;
    margin-bottom: 6px;
    width: fit-content;
}

#line_top {
    background: var(--gradient_blu);
}

.gradient_background {
    background: var(--gradient_blu);
}

.social_footer {}

.social_footer a {
    color: white;
    font-size: 24px;
    margin-right: 10px;
}

.social_header {
    display: flex;
    justify-content: end;
    padding-right: 15px;
}

.social_header a {
    margin-left: 12px;
    font-size: 18px;
    color: white;
    text-decoration: none !important;
}

#main_menu ._partner a {
    padding: 8px 12px !important;
    border-radius: 10px;
    background: var(--MainBlu);
    color: white;
    font-weight: 700;
    margin-top: 7px;
    margin-left: 10px;
    border: 1px solid var(--MainBlu);
    transition: 0.3s;
}

#main_menu ._partner a:hover {
    background: transparent !important;
}

#main_menu .float_new a {}

#main_menu {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

#binder_hero_container {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.binder_hero {}

.binder_hero .panel-heading {
    border: none !important;
    text-align: center;
    padding: 12px 6px;
    background: var(--MainBlu);
    color: white;
    width: 200px;
}

.binder_hero h3 {
    font-size: 24px;
}

#main_menu .navbar-default .navbar-nav>li>a {
    font-size: 18px;
    font-weight: 600;
    padding-right: 0px;
    padding-left: 0px;
    margin-left: 1vw;
    background: transparent;
}

#main_menu .navbar-default .navbar-nav>li>a:hover,
#main_menu .navbar-default .navbar-nav>li>a:focus,
#main_menu .navbar-default .navbar-nav>li>a:active {
    color: var(--MainBlu);
}

#main_menu .navbar-default .navbar-nav>.active>a {
    background: transparent !important;
}

#main_menu .navbar-default .navbar-nav>.active>a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--MainBlu);
}

#main_menu .navbar-default .navbar-nav>._partner>a {
    background: var(--MainBlu);
}

#main_menu .navbar-default .navbar-nav>.active._partner>a {
    background: transparent !important;
    color: var(--MainBlu);
}

#main_menu .navbar-default .navbar-nav>.active._partner>a:before {
    display: none;
}

#main_menu .dropdown-menu {
    border: none;
    padding-top: 27px;
    margin-left: 1vw;
}

@media only screen and (max-width: 768px) {
    #main_menu .dropdown-menu {
        padding-top: 3px;
    }
    #main_menu .navbar-collapse {
        padding-bottom: 20px;
        padding-top: 20px;
        border: none;
    }
    .logo_main img {
        height: auto !important;
        width: 100% !important;
    }
}

#main_menu .dropdown-menu a {
    font-size: 16px;
}

#main_menu .dropdown-menu a:hover {
    background: var(--gradient_blu_light);
}

#main_menu .dropdown-menu li.active>a {
    background: var(--gradient_blu_light);
}

#main_menu .dropdown.open .dropdown-menu {
    animation: slide_down 0.3s ease-in-out forwards;
    opacity: 0;
    overflow: hidden;
}

@keyframes slide_down {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.logo_main {}

.logo_main img {
    width: auto !important;
    max-width: 90vw;
    object-fit: cover;
    height: 120px !important;
    padding-top: 5px;
    padding-bottom: 5px;
    display: block;
    margin: auto;
}

.diventa_partner a {
    padding: 0px 12px !important;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--MainBlu);
    color: white;
    font-weight: 700;
    margin-top: 30px;
    margin-left: 10px;
    border: 2px solid var(--MainBlu);
    transition: 0.3s;
    width: fit-content;
    right: 15px;
    top: 30px;
    box-shadow: 2px 2px rgb(0 0 0 /20%);
    cursor: pointer;
}

.diventa_partner a:hover {
    background: white;
    border-color: var(--MainBlu);
    color: var(--MainBlu);
}

.matt_menu a {
    padding: 0px 12px !important;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--MainBlu);
    color: white;
    font-weight: 700;
    margin-top: 30px;
    margin-left: 10px;
    border: 2px solid var(--MainBlu);
    transition: 0.3s;
    width: fit-content;
    right: 15px;
    top: 30px;
    box-shadow: 2px 2px rgb(0 0 0 /20%);
    cursor: pointer;
}

.matt_menu a:hover {
    background: white;
    border-color: var(--MainBlu);
    color: var(--MainBlu);
}

.binder_hero {}

@media only screen and (max-width: 768px) {
    .diventa_partner.desk a {
        display: none !important;
    }
    .matt_menu.desk a {
        display: none !important;
    }
    .navbar.navbar-default {
        display: none !important;
    }
}

._tnks_page a {
    position: relative!important;
    margin: auto;
}

.button_hero a {
    background: var(--MainBlu);
    color: white;
    padding: 20px 20px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 7px;
    margin-bottom: 12px;
    margin-left: 10px;
    border: 2px solid var(--MainBlu);
    box-shadow: 2px 2px rgb(0 0 0 /30%);
    transition: 0.3s;
}

@media only screen and (max-width: 768px) {
    .button_hero a {
        padding: 5px;
    }
    .button_hero h4 {
        margin: 0;
    }
}

.button_hero a:hover {
    background: white;
    border-color: var(--MainBlu);
    color: var(--MainBlu);
    box-shadow: none;
}

.button_hero a:hover h4 {}

.button_hero h4 {
    font-size: 24px;
    text-align: center;
}

#button_hero_container {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    transition: 0.5s;
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
}

.apri {
    max-height: 20vh !important;
    opacity: 1 !important;
}


/*Home*/

.slider_home .thumbnail {
    padding: 0;
    border: none;
    position: relative;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 20%, var(--MainBlu) 70%);
}

.slider_home .thumbnail .caption {
    position: absolute;
    top: 50%;
    width: 40%;
    transform: translateY(-50%);
}

@media only screen and (max-width: 1350px) {
    .slider_home .thumbnail .caption {
        position: absolute;
        top: 50%;
        width: 60%;
        transform: translateY(-50%);
    }
    .slider_home .thumbnail img {}
}

@media only screen and (max-width: 768px) {
    .slider_home .thumbnail .caption {
        position: absolute;
        top: 50%;
        width: 100%;
        transform: translateY(-50%);
        text-shadow: 2px 2px rgba(0, 0, 0, 0.5);
    }
    .slider_home .thumbnail img {
        opacity: 0 !important;
    }
    .slider_home .thumbnail .caption p,
    .slider_home .thumbnail .caption h4 {
        text-align: center !important;
    }
    .slider_home .thumbnail .caption.on_right_container {
        right: 0 !important;
    }
    .slider_home .thumbnail {
        background: linear-gradient(90deg, var(--MainBlu) 20%, #7492b3ab 50%, var(--MainBlu) 80%);
    }
}

.slider_home .thumbnail .caption h4 {
    text-align: end;
    padding-bottom: 20px;
    font-size: 40px;
    font-weight: 700;
    color: whitesmoke;
    text-shadow: -4px -2px black;
}

.slider_home .thumbnail .caption p {
    font-size: 24px;
}

.slider_home .thumbnail .caption.on_right_container {
    right: 7vw;
}

.slider_home .thumbnail .caption.on_left_container {
    left: 7vw;
}

.slider_home .thumbnail img {
    height: 80vh !important;
    max-height: 50vh;
    object-fit: cover;
    animation: hero_img_entry 1s 0.5s ease-in-out forwards;
    opacity: 0;
    transform: translateX(-200px);
    object-position: left;
}

@media only screen and (max-width: 768px) {
    .slider_home .thumbnail img {
        max-height: 80vh;
    }
    .social_header {
        justify-content: space-around;
    }
    .img_pagina {
        height: 80vh;
        max-height: 560px !important;
    }
    .img_pagina img {
        object-fit: cover;
        height: 100%;
    }
}

@keyframes hero_img_entry {
    from {
        opacity: 0;
        transform: translateX(-200px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.slider_home .button_slider {
    margin-top: 30px;
    padding: 6px 12px;
    font-weight: 700;
    color: black;
    background: white;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid black;
    transform: translateY(30px);
    box-shadow: 2px 2px white;
    transition: 0.5s;
    text-decoration: none;
}

.slider_home .button_slider:hover {
    box-shadow: none !important;
}

.slider_home .slick-dots {
    bottom: 25px;
}

.slider_home .on_right {
    color: white;
    font-weight: 200;
}

.slider_home .slick-dots li button:before,
.slick-dots li.slick-active button:before {
    color: white !important;
}

.lista_servizi_home .clearfix {
    display: none;
}

.lista_servizi_home .thumbnail {
    border: none;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.lista_servizi_home .thumbnail:hover img {
    box-shadow: none;
    filter: none;
}

.lista_servizi_home .thumbnail img {
    object-fit: cover;
    width: 150px !important;
    height: 150px !important;
    border-radius: 40px;
    padding: 30px;
    background: #6dd5ed;
    filter: drop-shadow(2px 4px 4px rgb(0 0 0 /20%));
    background: var(--gradient_blu_light);
    box-shadow: 10px 10px 10px #d9d9d95d, -10px -10px 30px #ffffff5b;
    transition: 0.3s;
}

.lista_servizi_home .schede_bootstrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.lista_servizi_home .schede_bootstrap>div:nth-child(1),
.lista_servizi_home .schede_bootstrap>div:nth-child(2),
.lista_servizi_home .schede_bootstrap>div:nth-child(3),
.lista_servizi_home .schede_bootstrap>div:nth-child(4),
.lista_servizi_home .schede_bootstrap>div:nth-child(5) {
    /*width: 20%;*/
    margin: 0 20px;
}

/* 
.lista_servizi_home .schede_bootstrap>div:nth-child(6),
.lista_servizi_home .schede_bootstrap>div:nth-child(7),
.lista_servizi_home .schede_bootstrap>div:nth-child(8) {
    width: 20%;
    margin-left: 30px;
    margin-right: 30px;
} 
*/

@media only screen and (max-width: 768px) {
    .lista_servizi_home .schede_bootstrap>div:nth-child(1),
    .lista_servizi_home .schede_bootstrap>div:nth-child(2),
    .lista_servizi_home .schede_bootstrap>div:nth-child(3),
    .lista_servizi_home .schede_bootstrap>div:nth-child(4),
    .lista_servizi_home .schede_bootstrap>div:nth-child(5) {
        width: 100%;
    }
    .lista_servizi_home .schede_bootstrap>div:nth-child(6),
    .lista_servizi_home .schede_bootstrap>div:nth-child(7),
    .lista_servizi_home .schede_bootstrap>div:nth-child(8) {
        width: 33%;
        margin-left: 30px;
        margin-right: 30px;
    }
}


/*In attivazione*/

._in_attivazione .thumbnail {
    position: relative;
}

._in_attivazione .thumbnail:hover {
    filter: grayscale(1);
    backdrop-filter: blur(5px);
}

._in_attivazione .thumbnail:hover:before {
    opacity: 1;
}

._in_attivazione .thumbnail:hover img {
    filter: brightness(0.5);
}

._in_attivazione .thumbnail:before {
    content: 'Presto Attivo';
    transition: 0.3s;
    z-index: 9;
    opacity: 0;
    position: absolute;
    font-size: 28px;
    font-weight: 900;
    filter: drop-shadow(2px 2px rgb(0 0 0 /40%));
    color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -85%);
}

._in_attivazione .list-group-item:hover {
    filter: grayscale(1);
}

._in_attivazione .clearfix {
    display: none !important;
}


/**/

._servizi_assicurativi .thumbnail {
    position: relative;
}

._servizi_assicurativi .thumbnail:hover {
    filter: grayscale(1);
    backdrop-filter: blur(5px);
}

._servizi_assicurativi .thumbnail:hover img {
    filter: brightness(0.5);
}

._servizi_assicurativi .clearfix {
    display: none !important;
}


/**/

.mattonella_1 a {
    padding: 6px 12px;
    font-weight: 700;
    color: black;
    background: transparent;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid black;
    transform: translateY(30px);
    box-shadow: 2px 2px white;
    text-decoration: none;
}

.mat_link {
    padding: 6px 60px;
    font-weight: 700;
    color: white;
    background: var(--MainBlu);
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid var(--MainBlu);
    /*transform: translateY(30px);*/
    box-shadow: 2px 2px white;
    text-decoration: none;
    margin-bottom: 30px;
    width: 100%;
    transition: 0.3s;
    font-size: 30px;
}

.align-center {
    text-align: center;
}

.mat_link:hover {
    color: white;
    border-radius: 0px;
}

.padding-top-50 {
    padding-top: 50px;
}

.padding-left-30 {
    padding-left: 30px;
}

.padding-right-30 {
    padding-right: 30px;
}

.fit a {
    width: fit-content;
}

.mattonella_2 a {
    text-decoration: none;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 4px 4px var(--MainBlu);
    background: var(--gradient_blu);
    color: white;
    padding: 6px 12px;
    transition: 0.5s;
}

.mattonella_2.white a {
    background: white;
}

.mattonella_2.white h4 {
    color: var(--MainBlu);
}

.mattonella_2.no_radius a {
    border-radius: 0px;
}

.mattonella_2 a h4 {
    font-size: 28px;
    text-align: center;
}

.mattonella_2 a:hover {
    box-shadow: none;
    transform: translate(-4px, -4px);
}

.mattonella_2 a p {
    text-align: center;
}

.mattonella_2.small h4 {
    font-size: 14px !important;
}

.mattonella_servizi_admiral a {
    background: var(--giallo_admiral);
    color: var(--blu_admiral);
    padding: 6px 12px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 4px 4px var(--blu_admiral);
    transition: 0.5s;
    width: fit-content;
    margin: auto;
    margin-top: 30px;
}
.mattonella_servizi_admiral h4{
    color: var(--blu_admiral);
    font-size: 28px;
    text-align: center;
    font-weight: 700;
}

.mattonella_servizi_admiral a:hover {
    box-shadow: none;
    transform: translate(-4px, -4px);
}




.shadow_text {
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

#partner {
    background: var(--gradient_blu);
}

#partner .img_laterale img {
    object-fit: cover;
    transform: scale(1.1);
    transform-origin: center bottom;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    filter: drop-shadow(2px 4px 6px rgb(0 0 0 /20%));
    overflow: hidden;
}

.half_bar_right {
    position: relative;
}

.half_bar_right:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 50%;
    background: var(--MainBlu);
}

.lista_professionali button.button_slider {
    background: transparent;
    font-size: 20px;
    padding: 6px 12px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: 0.3s;
    width: fit-content;
    border-left: none;
    border-right: none;
    border-color: rgba(0, 0, 0, 20%);
}

.lista_cittadinanza button.button_slider {
    background: transparent;
    font-size: 20px;
    padding: 6px 12px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: 0.3s;
    width: fit-content;
    float: right;
    border-left: none;
    border-right: none;
    border-color: rgba(0, 0, 0, 20%);
}

.lista_professionali .list-group-item,
.lista_cittadinanza .list-group-item {
    border: none !important;
}

.lista_professionali .list-group-item:hover,
.lista_cittadinanza .list-group-item:hover {
    background: transparent;
}

.lista_professionali .list-group-item:hover button,
.lista_cittadinanza .list-group-item:hover button {
    background: #7492b3;
    color: white;
    font-weight: 700;
    padding: 6px 24px;
}

.lista_professionali .list-group-item h4,
.lista_cittadinanza .list-group-item h4 {
    font-size: 24px;
}

@media only screen and (max-width: 768px) {
    .lista_professionali .list-group-item>div:nth-child(3) {
        display: flex;
        flex-direction: column-reverse;
    }
    .lista_cittadinanza .list-group-item img,
    .lista_professionali .list-group-item img {
        max-width: 25vw;
    }
    .lista_cittadinanza .list-group-item .col-sm-2,
    .lista_professionali .list-group-item .col-sm-2 {
        margin: auto;
    }
}


/*layout_servizi_comune*/

.img_pagina {
    position: relative;
    max-height: 450px;
    overflow: hidden;
}

.img_pagina:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 0) 100%);
}

.titolo_pagina {
    position: absolute;
    max-width: 100vw;
    width: 500px;
    top: 25%;
    left: 10vw;
}

.titolo_pagina h1 {
    color: white;
    font-size: 42px;
    text-shadow: 3px 3px var(--MainBlu);
}

.titolo_pagina h3 {
    color: white;
    font-size: 24px;
    text-shadow: 3px 3px var(--MainBlu);
}

.titolo_pagina_1 p {
    font-size: 20px;
}

.titolo_pagina_1 h1 {
    font-size: 50px;
}

@media only screen and (max-width: 768px) {
    .titolo_pagina_1 h1 {
        font-size: 40px;
    }
    .titolo_pagina_1 p {
        font-size: 17.5px;
    }
    .titolo_pagina_1 h2 {
        line-height: 1.3;
        font-size: 31px;
        line-height: 1;
        padding-bottom: 10px;
    }
}

.padding_bottom_20 {
    padding-bottom: 20px;
}

.titolo_pagina_1 h2 {
    font-size: 34px;
}

.titolo_pagina_2 {
    position: relative;
    top: 20px;
    z-index: 1;
}

.titolo_pagina_2 :where(h1,
h3,
h4,
h5,
h6) {
    color: white;
    font-size: 50px;
    text-shadow: 3px 3px var(--MainBlu);
    line-height: 1.6;
}

@media only screen and (max-width: 768px) {
    .titolo_pagina_2 :where(h1,
    h3,
    h4,
    h5,
    h6) {
        color: white;
        font-size: 50px;
        text-shadow: 3px 3px var(--MainBlu);
        line-height: 1.2;
    }
}

.titolo_pagina_2 :where(h2) {
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    color: white;
}

.titolo_pagina_2 :where(p) {
    color: white;
    font-size: 20px;
}

.titolo_pagina_3 :where(h1,
h2) {
    font-size: 50px;
    line-height: 1.6;
}

@media only screen and (max-width: 768px) {
    .titolo_pagina_3 :where(h1,
    h2) {
        font-size: 50px;
        line-height: 1.2;
        text-align: center;
        padding-bottom: 30px;
    }
    .titolo_pagina_4 h1 {
        font-size: 40px;
    }
    .titolo_pagina_4 p {
        font-size: 17.5px;
    }
}

.titolo_pagina_4 h1 {
    font-size: 50px;
    line-height: 1;
}

.titolo_pagina_4 h2 {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.titolo_pagina_4 .line_h {
    line-height: 1.3;
}

.titolo_pagina_4 p {
    font-size: 20px;
}

.contatti_scheda_servizi {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contatti_scheda_servizi a {
    margin-left: 6px;
    margin-right: 6px;
    transition: 0.3s;
}

.contatti_scheda_servizi a:hover {
    transform: scale(1.1) rotate(5deg);
}

.form_contatti .col-sm-offset-2.col-sm-10 {
    margin-left: 0px;
}

.form_contatti .invia_form_contatti {
    border-color: var(--MainBlu) !important;
    background: var(--MainBlu);
    color: white;
    font-size: 16px;
    font-weight: 700;
    transition: 0.3s;
}

.form_contatti .invia_form_contatti:hover {
    background: transparent;
    color: var(--MainBlu);
}

.form_contatti .col-md-1 {
    width: 24% !important;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.form_contatti .col-md-1 .well.well-sm {
    background: transparent;
    border: none;
}

.form_contatti .col-md-6 .well.well-sm {
    background: transparent;
    border: none;
}

.form_contatti .col-md-4 .well.well-sm {
    background: transparent;
    border: none;
}

.form_contatti .col-md-3 .well.well-sm {
    background: transparent;
    border: none;
}

.form_contatti .col-md-12 .well.well-sm {
    background: transparent;
    border: none;
}

.form_contatti .col-md-1 .form-group {
    width: 100%;
}

.form_contatti input[type='checkbox'] {
    --dim: 20px;
    height: var(--dim);
    width: var(--dim);
}

.info {
    font-size: 18px;
    font-weight: 500;
    color: var(--MainBlu);
    margin: 0 5px;
    padding: 5px 12px;
    color: white;
    border-radius: 10px;
    background: var(--MainBlu);
}

.info:hover {
    background: transparent;
    color: var(--MainBlu);
    border: 1px solid var(--MainBlu);
}

.form_contatti label {
    display: flex;
    justify-content: center;
    text-align: center;
}

@media only screen and (max-width: 768px) {
    .form_contatti .col-md-1 label {
        font-size: 2.5vw;
    }
    .titolo_pagina {
        left: 2vw;
        text-align: center;
        max-width: 96vw;
    }
}

.form_contatti input[type='text'],
.form_contatti select {
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    border-radius: 0px;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.form_contatti legend {
    text-align: center;
    padding-top: 20px;
}

#scheda_form_contatti {
    padding: 25px;
    border-radius: 20px;
    box-shadow: 5px 5px rgb(0 0 0 /20%);
    border-top: 1px solid rgb(0 0 0 /20%);
    border-left: 1px solid rgb(0 0 0 /20%);
}

#scheda_form_contatti_test {
    padding: 25px;
    border-radius: 20px;
    box-shadow: 5px 5px rgb(0 0 0 /20%);
    border-top: 1px solid rgb(0 0 0 /20%);
    border-left: 1px solid rgb(0 0 0 /20%);
}

.form_contatti label[for="Servizi_Digitali"] {
    font-size: 21px;
    font-weight: 400;
}

.form_contatti label[for="Servizi_Pagamento"] {
    font-size: 21px;
    font-weight: 400;
}

.form_contatti .well {
    box-shadow: none;
    -webkit-box-shadow: none;
}

.form_contatti .grouping {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form_contatti .grouping>div {
    position: relative;
    top: -5px;
}

.underline_custom {
    position: relative;
}

.underline_custom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 0%;
    margin: auto;
    height: 2px;
    background: var(--MainBlu);
    transition: 0.3s;
    animation: width_in 0.3s ease-in-out forwards;
}

@keyframes width_in {
    0% {
        width: 0%;
    }
    100% {
        width: 50%;
    }
}


/*Banner*/

.banner_promo_estate img {
    overflow: hidden !important;
    border-radius: 20px;
    box-shadow: 5px 5px var(--MainBlu) !important;
}

.pagination {
    display: none !important
}


/*Modal PopUp*/

.modal-dialog {
    max-height: 50vh;
    margin: auto !important;
    padding: 0 !important;
    top: 10vh;
    /*transform: translateY(-70%) !important;*/
}

.modal-content {
    border-radius: 45px;
}

.modal-content .modal-body {
    padding: 30px;
}

.modal-content .text-right.well.well-sm {
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    display: flex;
}

.modal-content .text-right.well.well-sm a {
    background: var(--MainBlu);
    color: white;
    font-size: 30px;
    padding: 18px 30px;
    margin: auto;
    align-items: center;
    transform: translateY(-70px);
}

@media only screen and (max-width: 768px) {
    .modal-dialog {
        max-height: 90vh !important;
        top: 10vh !important;
    }
    .popUp_testo h1 {
        font-size: 24px !important;
    }
    .popUp_testo h2 {
        font-size: 20px !important;
    }
}

@media only screen and (max-height: 900px) {
    .modal-dialog {
        max-height: 70vh;
        top: 10vh !important;
    }
    .popUp_testo h1 {
        font-size: 20px !important;
    }
    .popUp_testo h2 {
        font-size: 18px !important;
    }
}

.lista_post .list-group-item {
    border: none;
    padding: 0 15px 30px 0;
    position: relative;
    border-bottom: 1px solid var(--MainBlu);
    margin-bottom: 5px;
    max-height: 316px;
}

.lista_post .caption>div {
    white-space-collapse: unset !important;
}

.lista_post .caption h4 {
    display: none;
}

.lista_post .col-sm-2 {
    min-width: 33%;
}

.lista_post .col-sm-10 {
    min-width: 66%;
    max-width: 66%;
}

.lista_post>.well.well-sm {
    border: none;
    background: transparent;
    box-shadow: none;
    -webkit-box-shadow: none;
    padding: 15px 0px;
}

.lista_post>.well.well-sm>a {
    margin-right: 10px;
    font-size: 18px;
    border: 1px solid var(--MainBlu);
    box-shadow: 2px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-top: 5px;
}

.lista_post>.well.well-sm>a.btn-primary {
    background: var(--MainBlu);
    color: white;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 2px 2px rgb(0 0 0 /20%);
}

.lista_post .thumbnail {
    padding: 0px;
    box-shadow: 2px 2px rgb(0 0 0 /20%);
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 5px;
    transition: 0.3s;
}

.lista_post .thumbnail.espandi {
    max-height: 2000px;
    overflow: hidden;
}

.lista_post .thumbnail:hover {
    overflow: hidden;
}

.button_espandi {
    margin-bottom: 20px;
    background: var(--MainBlu);
    font-size: 18px;
    border: none;
}

.label_lista_vuota {
    font-size: 24px;
    font-weight: 700;
    color: var(--MainBlu);
    text-align: center;
    margin: 40px;
}


/*mappa rivenditori*/

#map {
    height: 700px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 5px 5px var(--MainBlu);
}

.button_map {
    margin-top: 12px;
    padding: 6px 12px;
    font-size: 12px;
    background: var(--MainBlu);
    color: #fff !important;
    border-radius: 10px;
    box-shadow: 2px 2px var(--gradient_blu);
}

.logo_popup {
    width: 100px;
}

.leaflet-popup-content {
    text-align: center;
}

.box_cerca {
    padding: 25px;
    border-radius: 20px;
    box-shadow: 5px 5px rgb(0 0 0 /20%);
    border-top: 1px solid rgb(0 0 0 /20%);
    border-left: 1px solid rgb(0 0 0 /20%);
}

.box_cerca button {
    width: 100%;
    margin-top: 12px;
    padding: 6px 12px;
    background: var(--MainBlu);
    color: #fff !important;
    border-radius: 10px 0 10px 0;
    box-shadow: 2px 2px var(--gradient_blu);
    font-size: 18px;
    font-weight: 700;
}

@media only screen and (max-width: 768px) {
    .box_cerca {
        margin-top: 30px;
    }
}


/*Scheda rivenditore*/

.ante_img_rivenditore {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 5px 5px var(--MainBlu);
}

@media only screen and (max-width: 768px) {
    .ante_img_rivenditore img {
        max-width: 200px;
        margin: auto;
    }
    .ante_img_rivenditore {
        width: fit-content;
        margin: auto;
        margin-bottom: 20px;
    }
    .tag_servizi>div {
        justify-content: center;
    }
    .tag_servizi .tag_scheda {
        margin: 5px;
    }
    .nome_rivenditore {
        text-align: center;
    }
    .descrizione_rivenditore {
        text-align: center;
        margin-bottom: 20px;
    }
    .center_mobile {
        text-align: center;
    }
}

.descrizione_rivenditore>div {}

.nome_rivenditore>div {
    font-size: 20px;
    font-weight: 700;
}

.tag_servizi .tag_scheda {
    background: var(--MainBlu);
    color: white;
    font-size: 16px;
    padding: 2px 5px;
    margin-right: 5px;
    border-radius: 5px;
    margin-top: 5px;
}

.tag_servizi>div {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
}

.box_scheda {
    padding: 25px;
    border-radius: 20px;
    box-shadow: 5px 5px rgb(0 0 0 /20%);
    border-top: 1px solid rgb(0 0 0 /20%);
    border-left: 1px solid rgb(0 0 0 /20%);
}

.schede_riv_contatti i {
    min-width: 20px;
}

.schede_riv_contatti a {
    font-size: 16px;
    color: #333;
}

.whatsapp_scheda {
    padding-top: 5px;
}

.whatsapp_scheda a {
    display: inline-block;
    padding: 5px 20px;
    background-color: #25D366;
    /* Colore di WhatsApp */
    color: #fff;
    /* Testo bianco */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.whatsapp_scheda a:hover {
    background-color: #128C7E;
    /* Colore di WhatsApp con sfumatura */
}

.mappa_scheda iframe {
    width: 100% !important;
}


/*Scheda Servizi Partner*/

.img_servizi_partner img {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px;
    box-shadow: 5px 5px var(--MainBlu) !important;
    z-index: -1;
}

.lista_servizi_partner .thumbnail {
    border: none;
    position: relative;
    margin-bottom: 5px;
    text-align: center;
    background: transparent;
}

.lista_servizi_partner .thumbnail img {
    object-fit: contain;
    width: 200px !important;
    height: 200px !important;
    border-radius: 40px;
    padding: 30px;
    background: #6dd5ed;
    filter: drop-shadow(2px 4px 4px rgb(0 0 0 /20%));
    background: var(--gradient_blu_light);
    box-shadow: 10px 10px 10px #d9d9d95d, -10px -10px 30px #ffffff5b;
    transition: 0.3s;
}

.lista_servizi_partner_mobile .thumbnail img {
    object-fit: cover;
    width: 200px !important;
    height: 200px !important;
    border-radius: 40px;
    padding: 30px 10px;
    background: #6dd5ed;
    filter: drop-shadow(2px 4px 4px rgb(0 0 0 /20%));
    background: var(--gradient_blu_light);
    box-shadow: 10px 10px 10px #d9d9d95d, -10px -10px 30px #ffffff5b;
    transition: 0.3s;
}

.lista_servizi_partner_mobile .thumbnail {
    border: none;
    text-align: center;
}

.testo_servizi_partner_mobile {
    display: none;
}

@media only screen and (max-width: 2128px) {
    .lista_servizi_partner .thumbnail img {
        --var_max: 120px;
        max-width: var(--var_max);
        max-height: var(--var_max);
    }
}

@media only screen and (max-width: 1300px) {
    .lista_servizi_partner .thumbnail img {
        --var_max: 60px;
        max-width: var(--var_max);
        max-height: var(--var_max);
        padding: 15px;
    }
    .lista_servizi_partner .thumbnail h4 {
        font-size: 16px;
    }
    .lista_servizi_partner .col-lg-4 {
        padding: 0 !important;
    }
}

@media only screen and (max-width: 1600px) {
    
    .lista_servizi_partner .row.schede_bootstrap {
        display: flex;
    }
    .testo_servizi_partner {
        display: none;
    }
    .testo_servizi_partner_mobile {
        padding-top: 20px;
        display: block;
    }
    .lista_servizi_partner_mobile img {
        width: 150px !important;
        height: 150px !important;
    }
}

.container_serv_part {
    width: 80vw;
}

.lista_serv_part {
    position: absolute;
    left: 12vw;
    top: 65%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 7px solid var(--MainBlu);
    padding: 50px 40px;
}

.assistenza_button h4 {
    font-size: 30px;
}

.widget_login form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin: auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 2px 2px 5px rgb(0 0 0 /20%);
    padding-bottom: 20px;
}

.widget_login input {
    font-size: 20px;
    height: 40px;
    text-align: center;
    border-radius: 20px;
}

.widget_login a {
    font-size: 14px;
    padding-top: 15px;
    padding-bottom: 20px;
    color: red;
}

.widget_login .form-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.widget_login .button_container {
    display: flex;
    justify-content: space-evenly;
    width: 80%;
}

@media only screen and (max-width: 768px) {
    .widget_login .button_container {
        flex-direction: column;
    }
    .widget_login .button_container>* {
        margin-bottom: 15px;
    }
}

.widget_login #form_login_tasto_entra,
.widget_login .button_container .button_registrati {
    background: var(--MainBlu);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
    transition: 0.3s;
    border: 1px solid var(--MainBlu);
}


/*Background*/

.white_text {
    color: white;
    text-shadow: 2px 2px var(--MainBlu);
    text-align: center;
    font-size: 30px;
    font-weight: 700;
}

.main_blu_bg {
    background-image: var(--gradient_blu_dark) !important;
}

.white_bg {
    background: white;
}

.white_bg {
    color: var(--MainBlu);
    text-shadow: none;
    padding: 0 5px;
}

.blu_bg {
    background: var(--MainBlu);
    color: white;
    padding: 0 5px;
}

.red_bg {
    background: red;
    color: white;
    padding: 0 5px;
}

.green_bg {
    background: green;
    color: white;
    padding: 0 5px;
    font-size: 2.5rem !important;
}


/*Logo*/

.sempli {
    font-family: 'Times New Roman', Times, serif;
    color: #333;
}

.cert {
    background: var(--MainBlu);
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    padding-left: 5px;
    padding-right: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.testo_landing p {
    font-size: 20px;
    font-weight: 400;
    color: #333;
}

@media only screen and (max-width: 768px) {
    .testo_landing p {
        font-size: 17.5px;
    }
}


/*img slide*/

.img_slide {
    max-height: 560px;
    overflow: hidden;
    position: relative;
}

.img_slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 80px;
    background-image: url('https://www.semplicert.it/libreria/griglia_blu.png');
    background-size: contain;
}

.img_slide:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 50%;
    background-image: url('https://www.semplicert.it/libreria/Pag_Bollettini_1.png');
    background-size: cover;
    z-index: -1;
    transform: translateX(500px);
    opacity: 0;
}

.slide_in:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 50%;
    background-image: url('https://www.semplicert.it/libreria/Pag_Bollettini_1.png');
    background-size: cover;
    z-index: -1;
    transform: translateX(500px);
    opacity: 0;
    animation: slide_in 2s forwards;
}

.img_slide img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    animation-delay: 1s;
    opacity: 0;
}

.slide_in {
    animation: slide_in 2s forwards;
}

.fade_in {
    animation: fade_in 2s forwards;
}

@keyframes slide_in {
    0% {
        transform: translateX(500px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes fade_in {
    0% {
        opacity: 0;
        transform: translate(0, 20px);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

.lista_servizi_mini .schede_bootstrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.lista_servizi_mini :where(.col-sm-2,
.col-sm-3) {
    margin: 0;
    padding: 0;
}

.lista_servizi_mini .thumbnail {
    border: none;
    width: 100%;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transition: 0.3s;
}

.lista_servizi_mini .thumbnail:hover img {
    transform: translateY(-20px);
}

.lista_servizi_mini .thumbnail img {
    max-width: 50px;
    margin: auto;
    transition: 0.3s;
}

.lista_servizi_mini .thumbnail h4 {
    font-size: 14px;
    text-align: center;
}

@media only screen and (max-width: 768px) {
    .lista_servizi_mini :where(.col-sm-2,
    .col-sm-3) {
        min-width: 40% !important;
    }
}

.underline_anim {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.underline_svg {
    position: absolute;
    top: -40px;
    /* Posiziona l'SVG immediatamente sotto l'elemento */
    left: 40%;
    transform: translateX(-50%);
    width: 80%;
    height: 135px;
    z-index: 0;
    pointer-events: none;
}

.underline_svg_dark {
    position: absolute;
    top: -77px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 135px;
    z-index: -1;
    pointer-events: none;
}

@media only screen and (max-width: 768px) {
    .underline_svg_dark {
        top: -25% !important
    }
    .underline_svg {
        top: -60px;
        width: 100%;
    }
}

#animate_path {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: draw 2s forwards, delay 2s 2s forwards;
    /* Aggiunge un ritardo tra le ripetizioni */
    animation-iteration-count: infinite;
    animation-delay: 0s;
    animation-direction: normal;
    opacity: 0;
    transform: translateX(10%);
}

@keyframes draw {
    from {
        stroke-dashoffset: 1500;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes delay {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.underline_anim_dark {
    position: relative;
    display: inline-block;
    z-index: 1;
}


/*Recensioni testimonianze*/

.lista_recensioni .thumbnail {
    padding-bottom: 30px;
    padding-top: 15px;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    background: rgba(245, 245, 245, 1);
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 35% 90%, 14% 100%, 24% 90%, 0% 90%);
    margin: 10px;
    filter: drop-shadow(1px 1px 5px #ddd);
    border-radius: 50px;
}

.circle_thumb .thumbnail {
    border-radius: 500px;
}

.lista_recensioni .stelle_n,
.lista_recensioni .fonte {
    display: none;
}

.stelle_logo_container {
    margin: 0 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: fit-content;
    align-content: flex-end;
}

.stelle_logo_container>div {
    width: 50%;
    padding: 7px;
}

.stelle_logo_container>div img {
    width: 100%;
    max-width: 100px;
    margin: 0 auto;
}

.lista_recensioni .autore {
    font-size: 18px;
    font-weight: 700;
    color: var(--color1);
}

.fa-star {
    color: gold;
    font-size: 20px;
}

.lista_recensioni .stella_svg {
    max-width: 20px;
}

.lista_recensioni .stelle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lista_recensioni .stelle_logo_container {
    padding-bottom: 30px;
    padding-top: 5px;
}

.lista_recensioni .stelle_logo_container .logo img {
    max-height: 60px;
    object-fit: cover;
    object-position: center;
}

.lista_recensioni .thumbnail h4 {
    font-size: 28px;
}

.lista_recensioni .thumbnail .caption p {
    font-size: 18px;
    font-style: oblique;
}

.lista_recensioni .recensioni_thumb {
    display: flex;
    align-items: center;
    justify-content: start;
}

.lista_recensioni .recensioni_thumb img {
    max-height: 100px;
    max-width: 100px;
    clip-path: circle(33px);
    object-fit: cover;
    margin-right: 10px;
}

.lista_recensioni .slick-next:before {
    content: "\f054";
    font-family: 'FontAwesome';
    color: var(--MainBlu);
    font-size: 30px;
}

.lista_recensioni .slick-prev:before {
    content: "\f053";
    font-family: 'FontAwesome';
    color: var(--MainBlu);
    font-size: 30px;
}

.video_portraint {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    box-shadow: 5px 5px var(--MainBlu);
    overflow: hidden;
}

/*Articoli e Citazioni*/

.margin_top_20 {
    margin-top: 30px;
}

.lista_cit_articoli .thumbnail{
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    box-shadow: 2px 2px var(--MainBlu);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.lista_cit_articoli .thumbnail>img{
    aspect-ratio: 16/9;
    object-fit: cover;
}

.lista_cit_articoli .caption{
    padding: 20px;
}

.lista_cit_articoli .logo_giornale {
    display: none;
}

.button_scopri_articolo {
    margin-top: 30px;
    padding: 6px 12px;
    font-weight: 700;
    color: black;
    background-color: white;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid black;
    transform: translateY(30px);
    box-shadow: 2px 2px white;
    transition: background-color 0.5s;
    text-decoration: none;
}

.button_scopri_articolo:hover {
    box-shadow: none !important;
    background-color: var(--MainBlu);
    color: white;
}

.logo_giornale_img{
    max-width: 150px !important;
    margin: auto;
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 10px;
    background: white;
    padding: 5px;
    aspect-ratio: unset !important;
    object-fit: contain !important;
}

.lista_parlano_di_noi .slick-track{
    display: flex;
    align-items: center;
}

.lista_parlano_di_noi .thumbnail{
    margin: 5px;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 2px 2px var(--MainBlu);
}
.lista_parlano_di_noi .thumbnail .caption{
    display: none;
}

.lista_parlano_di_noi .thumbnail img{
    max-height: 80px;
    object-fit: contain;
    padding: 5px 15px;
}

#checkroom_home .thumbnail{
    border-radius: 10px;
    padding: 0;
    box-shadow: 2px 2px var(--MainBlu);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ==============================================================
   SEMPLICERT — Restyling "contenuto pagina" od-semplicert-homepage
   Scope: SOLO gli elementi con classi/ID "-od" (#home-od e figli:
   .text-home-od, .text-od, .lista-home-od, .matt-home-od).
   Header e footer del tema NON vengono toccati.

   HERO A SCHERMO PIENO: #home-od occupa lo spazio residuo dello
   schermo dopo l'header (altezza header misurata sul sito reale:
   ~141px desktop, ~249px tablet, ~428px mobile — impostata sotto
   coi rispettivi breakpoint). Il contenuto e' allineato in alto
   (justify-content: flex-start) cosi' che titolo, card servizi e i
   due bottoni Registrati/Accedi restino ben visibili sugli schermi
   tipici, lasciando lo sfondo a gradiente a riempire lo spazio
   residuo verso il basso.

   TIPOGRAFIA FLUIDA (vera interpolazione lineare, non solo clamp+vw):
   ogni clamp() qui sotto e' scritto come
     clamp(MIN, calc(Apx + Bvw), MAX)
   dove A e B sono calcolati in modo che il valore sia ESATTAMENTE
   MIN a 1024px di larghezza ed ESATTAMENTE MAX a 2560px, crescendo in
   modo continuo nel mezzo. Sotto i 1024px resta fermo al minimo, sopra
   i 2560px resta fermo al massimo. Prima i coefficienti erano troppo
   ripidi: il valore massimo veniva raggiunto gia' intorno a
   1250–1650px, per cui da 1440px in su tutto sembrava gia' "al
   massimo" (uguale a 2560px) invece di continuare a crescere.

   Colori: variabili del sito (--MainBlu:#7492b3, gradiente verso
   #6dd5ed) + blu navy #005090 e rosso #e01030 presi dal logo OD+,
   usati per lo sfondo a gradiente della hero (scuro, con due
   bagliori radiali rosso/ciano per profondita', ma equilibrato).
   Font: Open Sans (già caricato dal tema).
   Icone: Font Awesome 4.7 (già incluso dal tema, nessun markup extra).

   CARD CLICCABILI (ACCORDION): le schede Pec/Spid/Firma digitale
   mostrano il testo troncato (line-clamp) finche' non vengono
   cliccate. Il click e' gestito da JS (vedi custom.js, funzione
   expand_schede_home_od) con comportamento a fisarmonica: se ne apro
   una, le altre eventualmente aperte si richiudono. L'indicatore di
   apertura e' una singola freccia (.caption::after, puro CSS) grande
   e con un leggero rimbalzo continuo.

   Alcuni !important sono necessari per vincere gli stili inline
   generati automaticamente dal page-builder su questi blocchi.
   ============================================================== */

#home-od {
  --od-blue: #7492b3;
  --od-cyan: #6dd5ed;
  --od-navy: #04203c;       /* base scura per lo sfondo hero */
  --od-navy-2: #0d3a63;
  --od-brand-navy: #005090; /* dal logo OD+ */
  --od-red: #e01030;        /* dal logo OD+ */
  --od-ink: #10202f;
  --od-grey: #5c6b78;
  --od-white: #ffffff;
  --od-cut: 24px 0 24px 0;  /* motivo "angolo tagliato" già usato nei bottoni del sito */
  --od-cut-sm: 12px 0 12px 0;
  --od-header-h: 141px;     /* altezza header desktop misurata dal vivo */

  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  min-height: calc(100vh - var(--od-header-h)) !important;
  min-height: calc(100svh - var(--od-header-h)) !important;
  padding: 32px 0 24px !important;
  font-family: "Open Sans", sans-serif;
  background:
    radial-gradient(1000px 620px at 88% -10%, rgba(224, 16, 48, 0.38), transparent 60%),
    radial-gradient(900px 700px at 8% 115%, rgba(109, 213, 237, 0.42), transparent 60%),
    linear-gradient(135deg, var(--od-navy) 0%, var(--od-brand-navy) 55%, var(--od-blue) 100%) !important;
}

#home-od > .row.editor_riga { width: 100%; }

/* linea decorativa superiore che richiama il gradiente del sito */
#home-od::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--od-red), var(--od-cyan) 50%, var(--od-brand-navy));
  z-index: 2;
}

/* puntinato leggero per dare profondita' al gradiente, senza appesantire */
#home-od::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 75% 20%, black, transparent 65%);
  pointer-events: none;
}

/* ---------------------------------------------------------------
   1) HERO TESTUALE — .text-home-od (H1 + due H4)
   --------------------------------------------------------------- */
#home-od .text-home-od {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;         /* tetto di sicurezza per monitor molto larghi */
  margin: 0 auto 6px !important;
  padding: 0 clamp(16px, 3vw, 32px) !important;
  text-align: center !important;
  box-shadow: none !important;
}

#home-od .text-home-od::before {
  content: "\f2b5";                 /* fa-handshake-o: nod al co-brand OD+ / SempliCert */
  font-family: "FontAwesome";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, calc(22.7px + 2.87vw), 96px);
  height: clamp(52px, calc(22.7px + 2.87vw), 96px);
  margin-bottom: clamp(12px, calc(6.7px + 0.52vw), 20px);
  font-size: clamp(26px, calc(11.3px + 1.43vw), 48px);
  color: var(--od-white);
  background: linear-gradient(135deg, var(--od-red), var(--od-brand-navy));
  border-radius: var(--od-cut);
}

#home-od .text-home-od h1 {
  font-family: "Open Sans", sans-serif !important;
  font-size: clamp(28px, calc(8px + 1.95vw), 58px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  color: var(--od-white) !important;
  margin: 0 0 12px !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25) !important;
}

#home-od .text-home-od h1 strong { font-weight: 800; }

#home-od .text-home-od h4:nth-of-type(1) {
  font-size: clamp(16px, calc(10.7px + 0.52vw), 24px) !important;
  font-weight: 700 !important;
  color: var(--od-cyan) !important;
  max-width: min(820px, 92%);
  margin: 0 auto 6px !important;
  line-height: 1.4;
}

#home-od .text-home-od h4:nth-of-type(2) {
  font-size: clamp(14px, calc(10.7px + 0.33vw), 19px) !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  max-width: min(760px, 88%);
  margin: 0 auto !important;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------------
   2) KICKER "SERVIZI" — .text-od (H2)
   --------------------------------------------------------------- */
#home-od .text-od {
  position: relative;
  z-index: 1;
  text-align: center !important;
  margin: clamp(12px, calc(6.7px + 0.52vw), 20px) 0 clamp(10px, calc(6px + 0.39vw), 16px) !important;
}

#home-od .text-od h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;                      /* in "em": scala insieme al font-size qui sotto */
  font-size: clamp(14px, calc(7.3px + 0.65vw), 24px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--od-navy) !important;
  background: var(--od-white);
  padding: 0.6em 1.35em;             /* em: il bottone cresce/rimpicciolisce col testo */
  border-radius: 999px;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.45);
}

#home-od .text-od h2::before {
  content: "\f1b3";                 /* fa-cubes: catalogo servizi */
  font-family: "FontAwesome";
  font-size: 1em;                   /* stessa dimensione del testo del badge */
  color: var(--od-red);
}

/* ---------------------------------------------------------------
   3) CARD SERVIZI — .lista-home-od (Pec / Spid / Firma digitale)
   --------------------------------------------------------------- */
#home-od .lista-home-od {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(8px, calc(2.7px + 0.52vw), 16px);
}

/* align-items: flex-start (non "stretch") cosi' ogni card ha l'altezza
   del proprio contenuto: quando una scheda si espande cresce solo lei,
   le altre due restano alla loro altezza normale invece di allungarsi
   tutte insieme */
#home-od .lista-home-od .row.schede_bootstrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

#home-od .lista-home-od .col-sm-4 {
  display: flex;
  margin-bottom: 12px;
}

/* placeholder immagine vuoto generato dal builder: rimosso */
#home-od .lista-home-od .thumbnail > .row {
  display: none !important;
}

#home-od .lista-home-od .thumbnail {
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  background: var(--od-white) !important;
  border: none !important;
  border-radius: var(--od-cut) !important;
  padding: clamp(16px, calc(10.7px + 0.52vw), 24px) clamp(16px, calc(12px + 0.39vw), 22px) clamp(14px, calc(10px + 0.39vw), 20px) !important;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ornamento: icona della scheda ripetuta in filigrana nell'angolo,
   in tinta con il gradiente della hero */
#home-od .lista-home-od .thumbnail::after {
  font-family: "FontAwesome";
  position: absolute;
  z-index: 0;
  right: -14px;
  bottom: -20px;
  font-size: clamp(72px, calc(50.7px + 2.08vw), 104px);
  line-height: 1;
  opacity: 0.05;
  pointer-events: none;
}
#home-od .lista-home-od .col-sm-4:nth-child(1) .thumbnail::after { content: "\f0e0"; color: var(--od-blue); }
#home-od .lista-home-od .col-sm-4:nth-child(2) .thumbnail::after { content: "\f2c2"; color: var(--od-brand-navy); }
#home-od .lista-home-od .col-sm-4:nth-child(3) .thumbnail::after { content: "\f044"; color: var(--od-red); }

#home-od .lista-home-od .thumbnail:hover,
#home-od .lista-home-od .thumbnail:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px -14px rgba(0, 0, 0, 0.55);
}

#home-od .lista-home-od .thumbnail:focus-visible { outline: 3px solid var(--od-cyan); outline-offset: 2px; }

/* scheda aperta (classe aggiunta via click da custom.js: expand_schede_home_od,
   che ora gestisce anche la logica "una sola aperta alla volta") */
#home-od .lista-home-od .thumbnail.espandi_scheda_od {
  box-shadow: 0 26px 50px -14px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------------
   Indicatore "apri/chiudi": singola freccia, grande e ben visibile,
   con un leggero movimento verticale continuo. Il verso (giu'/su)
   segue lo stato aperto/chiuso della scheda cambiando l'icona,
   cosi' l'animazione di rimbalzo non entra in conflitto con la
   rotazione. Puro CSS: nessun elemento extra iniettato da JS.
   --------------------------------------------------------------- */
#home-od .lista-home-od .caption::after {
  content: "\f107";                 /* fa-chevron-down */
  font-family: "FontAwesome";
  display: block;
  margin-top: 10px;
  font-size: 22px;
  color: var(--od-brand-navy);
  opacity: 0.55;
  animation: od-freccia-rimbalzo 1.8s ease-in-out infinite;
}

#home-od .lista-home-od .thumbnail.espandi_scheda_od .caption::after {
  content: "\f106";                 /* fa-chevron-up: scheda aperta */
  opacity: 0.8;
}

@keyframes od-freccia-rimbalzo {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(5px); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  #home-od .lista-home-od .caption::after {
    animation: none;
    opacity: 0.6;
  }
}

/* badge icona grande per ciascuna card, colore diverso per servizio */
#home-od .lista-home-od .caption h4 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(17px, calc(14.3px + 0.26vw), 21px) !important;
  font-weight: 800 !important;
  color: var(--od-ink) !important;
  margin: 0 0 10px !important;
}

/* ornamento: piccola sottolineatura a gradiente sotto il titolo,
   richiama la barra a gradiente in cima alla hero */
#home-od .lista-home-od .caption h4::after {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 4px;
}
#home-od .lista-home-od .col-sm-4:nth-child(1) .caption h4::after { background: linear-gradient(90deg, var(--od-blue), var(--od-cyan)); }
#home-od .lista-home-od .col-sm-4:nth-child(2) .caption h4::after { background: linear-gradient(90deg, var(--od-brand-navy), var(--od-navy-2)); }
#home-od .lista-home-od .col-sm-4:nth-child(3) .caption h4::after { background: linear-gradient(90deg, var(--od-red), #ff7a59); }

#home-od .lista-home-od .caption h4::before {
  font-family: "FontAwesome";
  font-size: clamp(24px, calc(18.7px + 0.52vw), 32px);
  width: clamp(56px, calc(42.7px + 1.3vw), 76px);
  height: clamp(56px, calc(42.7px + 1.3vw), 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--od-white);
  border-radius: var(--od-cut-sm);
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.35);
}

/* card 1: Pec */
#home-od .lista-home-od .col-sm-4:nth-child(1) .caption h4::before {
  content: "\f0e0";
  background: linear-gradient(135deg, var(--od-blue), var(--od-cyan));
}
/* card 2: Spid */
#home-od .lista-home-od .col-sm-4:nth-child(2) .caption h4::before {
  content: "\f2c2";
  background: linear-gradient(135deg, var(--od-brand-navy), var(--od-navy-2));
}
/* card 3: Firma digitale */
#home-od .lista-home-od .col-sm-4:nth-child(3) .caption h4::before {
  content: "\f044";
  background: linear-gradient(135deg, var(--od-red), #ff7a59);
}

#home-od .lista-home-od .caption {
  position: relative;
  z-index: 1;
}

#home-od .lista-home-od .caption p {
  font-size: clamp(13px, calc(11.3px + 0.16vw), 15.5px) !important;
  line-height: 1.55;
  color: var(--od-grey) !important;
  text-align: left !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* testo completo quando la scheda e' aperta */
#home-od .lista-home-od .thumbnail.espandi_scheda_od .caption p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

#home-od .lista-home-od .caption p:empty { display: none; }
#home-od .lista-home-od .caption p strong { color: var(--od-ink); }

/* ---------------------------------------------------------------
   4) MATTONELLE CTA — .matt-home-od (Registrati / Accedi)
   --------------------------------------------------------------- */
/* riga delle due mattonelle: diventa un gruppo flex centrato sulla pagina,
   cosi' i bottoni restano allineati fra loro (stessa riga) e centrati sia
   quando stanno affiancati sia quando vanno uno sopra l'altro su mobile */
#home-od .row.editor_riga:has(> .editor_colonna.col-sm-6) {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, calc(6px + 0.39vw), 16px);
  margin: 0 !important;
}

#home-od .editor_colonna.col-sm-6 {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin-top: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

#home-od .matt-home-od > a {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, calc(10px + 0.39vw), 20px);
  width: auto;
  box-sizing: border-box;
  min-height: clamp(58px, calc(46.7px + 1.11vw), 75px);
  padding: clamp(12px, calc(10px + 0.2vw), 15px) clamp(28px, calc(20.7px + 0.72vw), 39px) clamp(12px, calc(10px + 0.2vw), 15px) clamp(16px, calc(10.7px + 0.52vw), 24px) !important;
  border-radius: clamp(14px, calc(10px + 0.39vw), 20px) 0 clamp(14px, calc(10px + 0.39vw), 20px) 0 !important;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#home-od .matt-home-od > a:hover {
  transform: translateY(-3px) scale(1.01);
}

#home-od .matt-home-od > a::before {
  font-family: "FontAwesome";
  font-size: clamp(18px, calc(13.3px + 0.46vw), 25px);
  width: clamp(36px, calc(26.7px + 0.91vw), 50px);
  height: clamp(36px, calc(26.7px + 0.91vw), 50px);
  flex: 0 0 clamp(36px, calc(26.7px + 0.91vw), 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 0 10px 0;
  background: rgba(255, 255, 255, 0.18);
  color: var(--od-white);
}

#home-od .matt-home-od h4 {
  color: var(--od-white) !important;
  font-size: clamp(15px, calc(14px + 0.1vw), 16.5px) !important;
  font-weight: 800 !important;
  margin: 0 !important;
  white-space: nowrap;
}

#home-od .matt-home-od h4::after {
  content: "\f178";                 /* fa-long-arrow-right */
  font-family: "FontAwesome";
  font-weight: 400;
  font-size: 13px;
  margin-left: 9px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

#home-od .matt-home-od > a:hover h4::after { transform: translateX(6px); }

/* tile 1: Registrati — rosso OD+ */
#home-od .editor_colonna.col-sm-6:nth-child(1) .matt-home-od > a {
  background: linear-gradient(135deg, var(--od-red), #a80d22);
  box-shadow: 0 16px 28px -14px rgba(224, 16, 48, 0.65);
}
#home-od .editor_colonna.col-sm-6:nth-child(1) .matt-home-od > a::before { content: "\f234"; } /* fa-user-plus */

/* tile 2: Accedi — bianco a contrasto sul gradiente scuro */
#home-od .editor_colonna.col-sm-6:nth-child(2) .matt-home-od > a {
  background: var(--od-white);
  box-shadow: 0 16px 28px -14px rgba(0, 0, 0, 0.5);
}
#home-od .editor_colonna.col-sm-6:nth-child(2) .matt-home-od > a::before {
  content: "\f090";
  background: rgba(0, 80, 144, 0.1);
  color: var(--od-brand-navy);
}
#home-od .editor_colonna.col-sm-6:nth-child(2) .matt-home-od h4 { color: var(--od-brand-navy) !important; }
#home-od .editor_colonna.col-sm-6:nth-child(2) .matt-home-od h4::after { color: var(--od-brand-navy); }

/* ---------------------------------------------------------------
   5) RESPONSIVE
   La tipografia fluida (clamp con interpolazione 1024→2560px) sopra
   copre gia' la maggior parte degli adattamenti tra schermo e
   schermo: qui restano solo le regole strutturali (altezza header,
   che sul tema cambia a scatti) e la compattazione extra per
   finestre molto basse.
   --------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
  #home-od { --od-header-h: 249px; }
}

@media (max-width: 767px) {
  #home-od {
    --od-header-h: 428px;
    min-height: max(600px, calc(100vh - var(--od-header-h))) !important;
    min-height: max(600px, calc(100svh - var(--od-header-h))) !important;
    padding: 24px 0 !important;
  }
}

/* laptop comuni con altezza ridotta (es. 1366x768): compatta ulteriormente.
   Qui i clamp() vengono ristretti (non sostituiti con px fissi) cosi'
   la fluidita' resta anche in orizzontale su questi schermi bassi. */
@media (max-height: 820px) and (min-width: 768px) {
  #home-od { padding: 4px 0 !important; }
  #home-od .text-home-od { margin-bottom: 2px !important; }
  #home-od .text-home-od::before { width: clamp(38px, 4vw, 52px); height: clamp(38px, 4vw, 52px); font-size: clamp(19px, 2vw, 26px); margin-bottom: 6px; }
  #home-od .text-home-od h1 { font-size: clamp(22px, 2.6vw, 32px) !important; margin: 0 0 6px !important; }
  #home-od .text-home-od h4:nth-of-type(1) { font-size: clamp(13px, 1.2vw, 16px) !important; margin: 0 auto 4px !important; }
  #home-od .text-home-od h4:nth-of-type(2) { display: none; }
  #home-od .text-od { margin: 6px 0 4px !important; }
  #home-od .text-od h2 { font-size: clamp(12px, 1.2vw, 15px) !important; padding: 0.5em 1.1em; }
  #home-od .lista-home-od .col-sm-4 { margin-bottom: 4px; }
  #home-od .lista-home-od .caption h4::before { width: clamp(38px, 3.6vw, 48px); height: clamp(38px, 3.6vw, 48px); font-size: clamp(17px, 1.8vw, 22px); }
  #home-od .lista-home-od .caption h4 { font-size: clamp(15px, 1.3vw, 17px) !important; margin: 0 0 6px !important; gap: 6px; }
  #home-od .lista-home-od .caption p { -webkit-line-clamp: 1; }
  #home-od .lista-home-od .thumbnail { padding: 8px 12px !important; }
  #home-od .lista-home-od .caption::after { font-size: 18px; margin-top: 6px; }
  #home-od .row.editor_riga:has(> .editor_colonna.col-sm-6) { margin-top: 2px !important; }
  #home-od .matt-home-od > a { min-height: clamp(38px, 4vw, 48px); padding: clamp(7px,0.9vw,10px) clamp(18px,2.2vw,26px) clamp(7px,0.9vw,10px) clamp(12px,1.4vw,16px) !important; }
  #home-od .matt-home-od > a::before { width: clamp(24px, 2.6vw, 32px); height: clamp(24px, 2.6vw, 32px); flex: 0 0 clamp(24px, 2.6vw, 32px); font-size: clamp(12px, 1.3vw, 16px); }
  #home-od .matt-home-od h4 { font-size: clamp(13px, 1.1vw, 15px) !important; }
}
/* Modulo contatti: i gruppi di caselle che non riempiono la riga restano
   centrati come il resto del modulo (prima si accostavano a sinistra:
   si notava con i due corsi IVASS, che prima erano tre). Solo da 992px,
   dove le colonne stanno affiancate; sotto restano incolonnate. */
@media only screen and (min-width: 992px) {
    .form_contatti div.row:not(:has(.col-md-1)) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }
    .form_contatti div.row:not(:has(.col-md-1)) > div {
        float: none;
        flex: 0 0 auto;
    }
}