/*
Theme Name: Brigante
Author: AlfaPi - Serena
Description: tema per Studio Brigante
Version: 1.0
Text Domain: brigante
*/

/* VARIABILI */
:root {
    --font-1: 'Outfit';
    --font-awesome: 'Font Awesome 7 Free';
    --bg-menu-top: #37393B;
    --bg-main-menu: #F9F9F9;
    --bg-hero-section: linear-gradient(180deg, #f1ece2 0%, #f1ece2 64%, #f1ece200 100%);
    --bg-box-chiaro: #F1F1F1;
    --bg-box-scuro: #37393B;
    --colore-1: #C6B798;
    --colore-1-chiaro: #CAC2B3;
    --colore-1-scuro: #B3A07B;
    --colore-2-chiaro: #ECECEC;
    --colore-2: #B2B2B2;
    --text-color: #37393B;
    --text-color-scuro: #232425;
    --colore-3: #F1ECE2;
    --colore-4: #A8A8A8;
}

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

body,
html {
    height: 100%;
    width: 100%;
    position: relative;
    touch-action: pan-y;
}

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    font-size: 1.225rem;
    font-weight: 400;
    color: var(--text-color);
    background-color: var(--colore-2-chiaro);
    font-family: var(--font-1);
        background: transparent linear-gradient(180deg, #F1ECE2 0%, #F1ECE2 0, #F1ECE200 30%) 0% 0 no-repeat padding-box;
}

@media (max-width: 1200px) {
    body {
        font-size: 1.25rem;
    }
}

.container-fluid {
    max-width: 1920px;
}
/*
img {
    border-radius: 12px;
}*/

.bg-nero {
    background-color:var(--text-color-scuro);
    max-width: 100% !important;
}

figure {
    background: var(--colore-3);
    border-radius: 12px;
}

figure figcaption {
    background-color: var(--colore-3);
    text-align: center;
    font-size: 1.25rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 2% 12.5%;
}

header {
    margin-bottom: 88px;
}

h1,
h2,
h3 {
    line-height: 1;
}

/* MENU TOP */
.bg-menu-top {
    background-color: var(--bg-menu-top);
    position: relative;
    z-index: +1001 !important;
    margin: 0 auto;
    box-shadow: 0px -1491px 0px 1521px var(--bg-menu-top);
}

.navbar-nav-top ul {
    list-style-type: none;
    margin: 0;
    padding: 0 15px;
}

.navbar-nav-top li {
    position: relative;
    margin: -5px 40px 0 0;
    display: inline-block;
}

.navbar-nav-top li:last-of-type {
    margin-right: 0;
}

.navbar-nav-top li.area-riservata::before {
    content: "";
    width: 1px;
    position: absolute;
    background: var(--colore-1);
    height: 20px;
    margin-left: -20px;
    top: 10px;
}

.navbar-nav-top li a {
    color: #fff;
    font-size: 1.2rem;
}

.navbar-nav-top li a:hover {
    color: var(--colore-1);
}

.navbar-nav-top li a i,
.navbar-nav-top li i {
    color: var(--colore-1);
    margin-right: 10px;
}

/* ALLINEAMENTO MENU TOP */
@media (max-width: 767px) {
    .bg-menu-top {
        box-shadow: none;
    }

    .navbar-nav-top ul {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 16px;
        padding-inline: 12px;
    }

    .navbar-nav-top li {
        display: inline-flex;
        align-items: center;
        margin: 0;
    }

    .navbar-nav-top li.area-riservata::before {
        display: none;
    }

    .navbar-nav-top li a {
        display: inline-flex;
        align-items: center;
        line-height: 1.2;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .bg-menu-top.fixed {
        height: 40px;
        display: flex;
        align-items: center;
    }

    .bg-menu-top.fixed .navbar-nav-top ul {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin: 0;
        padding-inline: 15px;
    }

    .bg-menu-top.fixed .navbar-nav-top li {
        margin: 0 40px 0 0;
        display: inline-flex;
        align-items: center;
    }

    .bg-menu-top.fixed .navbar-nav-top li:last-of-type {
        margin-right: 0;
    }

    .bg-menu-top.fixed .navbar-nav-top li.area-riservata::before {
        top: 50%;
        transform: translateY(-50%);
    }

    .bg-main-menu.fixed {
        margin-top: 40px;
    }
}

/* MENU PRINCIPALE */
.navbar {
    z-index: 1000;
}

.navbar-nav {
    position: static;
}

.bg-light {
    background-color: var(--bg-main-menu) !important;
    padding: 0;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px, rgba(0, 0, 0, 0.06) 0px 2px 3px 0px;
}

.bg-main-menu.fixed {
    margin-top: 39px;
}

.fixed {
    top: 0 !important;
    left: 0;
    right: 0;
    position: fixed !important;
    z-index: +1001;
}

.navbar-brand {
    padding: 0;
    width: 100%;
    max-width: 322px;
    height: auto;
}

.nav-item:last-of-type {
    background-color: var(--colore-1);
    padding-inline: 10px;
}

.nav-item:last-of-type .nav-link {
    text-transform: uppercase;
    font-weight: 700;
}

.nav-item:last-of-type .nav-link:hover {
    color: #fff !important;
}

.nav-item:hover:before,
.active::before {
    background-color: var(--colore-1);
}

.nav-link {
    color: var(--text-color) !important;
    font-size: 1.375rem;
    margin: 0 10px;
    text-decoration: none !important;
}

.nav-item:hover .nav-link {
    color: var(--colore-1) !important;
}

.nav-link.active {
    color: var(--colore-1) !important;
    font-weight: 700;
}

.nav-item:last-of-type .nav-link.active {
    color: #fff !important;
}

.main-menu .dropdown-menu {
    border-radius: initial;
}

.dropdown-menu {
    border: none;
    transition: 0.3s;
    padding: 0 20px 20px 20px;
}

.dropdown-toggle:after {
    content: "\f078";
    font-family: var(--font-awesome);
    position: relative;
    border: none;
    margin-left: 4px;
    font-weight: 900;
    font-size: .75rem;
    top: 2px;
}

.dropdown-toggle:hover:after,
.dropdown-toggle:focus-visible:after {
    content: "\f077";
}

.dropdown-menu li {
    padding: 0;
    border: none;
    background-color: #fff !important;
    text-align: left;
}

.dropdown-menu li:last-of-type {
    padding-inline: 0;
}

.dropdown-menu li::before {
    content: initial;
}

.dropdown-item {
    font-size: 1.1rem;
    padding-block: 10px;
    background-color: #fff;
    text-decoration: none !important;
}

.dropdown-menu li.tipo-team .dropdown-item {
    font-weight: 600;
}

.dropdown-menu:has(.tipo-team) li:not(.tipo-team) a {
    padding-left: 34px;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background: var(--colore-1);
    color: #fff;
    border-radius: 6px;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    display: block;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: var(--colore-1);
}

@media (max-width: 1199px) {
    .bg-main-menu.fixed {
        margin-top: 31px;
    }

    .navbar-brand {
        width: 75%;
    }

    #main-menu {
        height: 100vh;
    }

    .bg-light {
        background-color: #fff !important;
        padding: 0;
    }

    .main-menu {
        box-shadow: initial;
    }

    .nav-item {
        margin: 15px 0;
        text-align: center;
    }

    .nav-item:before,
    .dropdown-toggle:after {
        content: initial;
    }

    .main-menu .nav-link {
        background: var(--colore-1);
        color: #fff !important;
    }

    .dropdown-menu {
        display: block;
        margin: 0 15px;
    }

    .dropdown-menu li {
        border-bottom: 1px solid var(--colore-1);
        text-align: center;
        margin: 0;
    }

    .dropdown-menu li:last-of-type {
        border-bottom: none;
    }

    .dropdown-item {
        box-shadow: none;
    }

    .dropdown-toggle:hover:after {
        content: initial;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler {
        border: none;
        background: var(--colore-1);
        border-radius: initial;
        padding: 15px;
        height: 56px;
        overflow: hidden;
    }

    .navbar-toggler span {
        width: 35px;
    }

    .navbar-toggler span span {
        background-color: #fff;
        height: 3px;
        margin-bottom: 8px;
        display: block;
    }

    .navbar-toggler span span:nth-child(2) {
        width: 70%;
        float: right;
    }

    .navbar-toggler span span:last-of-type {
        margin-bottom: 0;
        width: 50%;
        float: right;
    }

    #navbar-close {
        width: 35px;
    }

    #navbar-close i {
        font-size: 2.4rem;
        color: #fff;
        position: relative;
        bottom: 5px;
    }
}


@media (max-width: 1199px) {
    html,
    body,
    header,
    .navbar,
    .navbar-collapse {
        max-width: 100vw;
        overflow-x: clip;
    }

    .navbar-nav,
    .dropdown-menu,
    .dropdown-item {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .navbar-nav {
        margin-inline: 0;
        padding-inline: 0;
    }
 .main-menu .nav-link,
    .main-menu .nav-link.active,
    .main-menu .nav-link:hover,
    .main-menu .nav-link:focus,
    .main-menu .nav-link:focus-visible,
    .main-menu .nav-link:active,
    .main-menu .nav-item:hover .nav-link {
        background-color: var(--colore-1) !important;
      
        color: #fff !important;
    }
}

/* HERO */
.hero-section-contain {
    max-width: 100%;
}

.hero-section {
    background: var(--bg-hero-section);
    max-width: 100%;
    position: relative;
}

.hero-section::before {
    content: "";
    background: var(--bg-menu-top);
    position: absolute;
    width: calc((100% - 1920px) / 2);
    border-radius: 0 0 30px 0;
    height: 100%;
}

.hero-section::after {
    content: "";
    background: var(--bg-menu-top);
    position: absolute;
    width: calc((100% - 1920px) / 2);
    right: 0;
    top: 0;
    border-radius: 0 0 0 30px;
    height: 100%;
}

.hero-section .container-fluid {
    padding-block: 140px;
    position: relative;
}

.hero-section .container-fluid .container {
    background: var(--bg-menu-top) 0% 0% no-repeat padding-box;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 20px 25px -5px, rgba(0, 0, 0, 0.06) 0px 10px 10px -5px, rgba(0, 0, 0, 0.09) 0px 6px 3px 0px;
    border-radius: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 80px;
    position: relative;
}

.pittogramma {
    transform: translateX(-400px);
    opacity: .5;
}

.hero-content {
    text-align: center;
    z-index: 2;
    width: calc(100% - 400px);
    justify-content: center;
    display: inline-block;
    position: absolute;
    top: 180px;
}

.hero-content img {
    border-radius: initial;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--colore-1);
    margin-top: 45px;
}

.hero-content h2 {
    font-size: 2.625rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-content a {
    background: #fff 0% 0% no-repeat padding-box;
    border-radius: 7px;
    border: 1px solid #fff;
    color: var(--text-color);
    font-size: 1.3rem;
    padding: 15px 40px;
    margin-top: 40px;
    font-weight: 700;
}

.hero-content a:first-of-type {
    margin-right: 40px;
    background-color: transparent;
    color: #fff;
}

.hero-content a:hover {
    background: transparent;
    color: #fff;
}

.hero-content a:first-of-type:hover {
    background-color: #fff;
    color: var(--text-color);
}

.top-right-image {
    position: absolute;
    top: -120px;
    right: 0;
    height: auto;
    z-index: 1;
}

.bottom-left-image {
    position: absolute;
    bottom: -120px;
    left: 0;
    height: auto;
    z-index: 1;
}

@media (max-width: 991px) {
    .hero-section::after {
        content: "";
    }

    .hero-section .container-fluid {
        padding-block: 60px;
    }

    .hero-section .container-fluid .container {
        padding-block: 0;
    }

    .hero-content {
        width: 80%;
        top: initial;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-top: 20px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .hero-content a {
        font-size: 1rem;
        padding: 5px 0;
        margin-top: 20px;
        width: 100%;
        display: block;
    }

    .pittogramma {
        transform: initial;
        opacity: 0.5;
    }

    .top-right-image {
        top: -25px;
        max-width: 50%;
    }

    .bottom-left-image {
        bottom: -25px;
        top: initial;
        height: auto;
        max-width: 50%;
    }
}

@media (min-width: 581px) and (max-width: 640px) {
    .bottom-left-image {
        bottom: -75px;
    }
}

@media (min-width: 641px) and (max-width: 1600px) {
    .top-right-image {
        top: -50px;
        width: 40%;
    }

    .bottom-left-image {
        bottom: -120px;
        width: 40%;
    }
}

/* INTRO HP */
.intro-hp h2 {
    font-size: 2.625rem;
    color: var(--colore-4);
    font-weight: 400;
}

.intro-hp h3 {
    font-size: 3rem;
    color: var(--colore-1);
    font-weight: 700;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .intro-hp h2 {
        font-size: 1.75rem;
    }

    .intro-hp h3 {
        font-size: 2.5rem;
    }
}

/* BREADCRUMB */
.briciole {
    padding-block: 1em 2em;
    padding-inline: 1rem;
    font-size: 1.375rem;
    color: var(--colore-1);
    font-weight: 300;
    line-height: 1.3;
}

.briciole.sfumate {
    background: transparent linear-gradient(-180deg, var(--bg-box-scuro) 0, #ffffff00 100%) 0% 0% no-repeat padding-box;
    top: 0;
    width: 100%;
    z-index: 99;
}

.briciole a {
    color: var(--colore-1-scuro);
    font-weight: 600;
    text-decoration: none;
}

.briciole a:hover,
.briciole a:focus-visible {
    text-decoration: underline;
}

.briciole [aria-current="page"] {
    color: var(--colore-1);
    font-weight: 300;
}

.briciole .fa-chevron-right {
    font-size: 0.75em;
    opacity: 0.85;
}

/* CONTENUTO */
.container-fluid.contenuto {
    max-width: 1600px;
}

.contenuto h1 {
    font-size: 2.625rem;
    font-weight: 400;
}

.contenuto.intro p {
    margin-bottom: 70px;
}

.contenuto.intro p a {
    color: var(--colore-1-scuro);
    font-weight: 700;
    position: relative;
}

.contenuto.intro p a:hover {
    color: var(--text-color);
}

.contenuto.intro p a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--colore-1-scuro);
}

.contenuto.intro p:first-of-type {
    font-size: 3rem;
    font-weight: 700;
    color: var(--colore-1-scuro);
    margin-bottom: 26px;
    line-height: 1.1;
}

.contenuto h2 {
    font-size: 2.8rem;
    color: var(--colore-1);
    font-weight: 700;
    margin-block: 60px 20px;
}

.contenuto h3 {
    font-size: 2.25rem;
    color: var(--colore-1);
    font-weight: 700;
}

.contenuto p a {
    color: var(--colore-1);
    font-weight: 700;
}

@media (max-width: 767px) {
    .contenuto.intro p:first-of-type {
        font-size: 2.475rem;
    }

    .contenuto h1 {
        font-size: 1.75rem;
    }

    .contenuto h2 {
        font-size: 2rem;
        margin-block: 20px;
    }

    .contenuto h3 {
        font-size: 1.75rem;
        margin-block: 20px;
    }
}

/* CONTENUTO GUTENBERG */
h2.wp-block-heading,
h3.wp-block-heading,
p.wp-block-paragraph,
ol.wp-block-list,
ul.wp-block-list {
    max-width: 1320px;
    margin-inline: auto !important;
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.wpmf-gallerys {
    margin-block: 5rem;
}

p.wp-block-paragraph a {
    color: var(--colore-1);
    font-weight: 700;
    text-decoration: underline;
}

ol.wp-block-list,
ul.wp-block-list {
    margin: 2em 0 2em 2em;
    width: calc(100% - 2em);
}

ol.wp-block-list li,
ul.wp-block-list li {
    position: relative;
    left: 2rem;
    width: calc(100% - 1em);
    margin-block: 0 20px;
    list-style-type: none;
}

ol.wp-block-list li {
    counter-increment: list;
}

ul.wp-block-list li::before {
    content: '\f111';
    position: absolute;
    top: 7px;
    left: -1.5rem;
    color: var(--colore-1);
    font-family: var(--font-awesome);
    font-size: 0.75rem;
    font-weight: 900;
    transform: rotate(45deg);
}

ol.wp-block-list li::before {
    content: counter(list);
    position: absolute;
    top: -4px;
    left: -1.9rem;
    color: var(--colore-1);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 768px) {
    ul.wp-block-list.is-style-cols-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2.5rem;
        row-gap: 0.5rem;
    }

    ul.wp-block-list.is-style-cols-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 2.5rem;
        row-gap: 0.5rem;
    }

    ul.wp-block-list.is-style-cols-2 li,
    ul.wp-block-list.is-style-cols-3 li {
        width: auto;
        left: 1.5rem;
    }
}

/* BOX PREVENTIVO PAGHE */
.box-content-preventivo-paghe img {
    border-radius: 0px 12px 12px 0px;
}

.box-content-preventivo-paghe h2 {
    font-size: 2.625rem;
    color: var(--colore-4);
    font-weight: 400;
}

.box-content-preventivo-paghe h3 {
    font-size: 3rem;
    color: var(--colore-1);
    font-weight: 700;
}

.box-content-preventivo-paghe p.more a {
    border-radius: 7px;
    color: var(--text-color);
    padding: 10px 30px;
    border: 1px solid var(--colore-1-scuro);
}

.box-content-preventivo-paghe p.more a:hover {
    color: #fff;
    background-color: var(--colore-1-scuro);
}

@media (max-width: 1200px) {
    .box-content-preventivo-paghe span {
        font-size: 1.625rem;
    }

    .box-content-preventivo-paghe h2 {
        font-size: 2.25rem;
    }
}

/* BOX PROBLEMI / DOMANDA */
.box-content-problemi img {
    border-radius: initial;
    margin-left: -20px;
}

.box-content-problemi .sx {
    padding-right: 5%;
}

.box-content-problemi h2 {
    font-size: 3rem;
    color: var(--colore-1);
    font-weight: 700;
}

.box-content-problemi p.more a {
    border-radius: 7px;
    color: var(--text-color);
    padding: 10px 30px;
    border: 1px solid var(--colore-1-scuro);
}

.box-content-problemi p.more a:hover {
    color: #fff;
    background-color: var(--colore-1-scuro);
}

.box-content-problemi .dx {
    background-color: var(--bg-box-scuro);
    color: #fff;
    padding: 75px;
    border-radius: 12px;
    text-align: center;
}

.box-content-problemi .dx span:first-of-type {
    font-size: 12rem;
    color: var(--colore-1);
    font-weight: 700;
    display: block;
    line-height: 100%;
}

.box-content-problemi .dx span sup {
    font-size: 5.125rem;
    color: #fff;
    font-weight: 400;
    position: relative;
    top: -5.125rem;
}

.box-content-problemi .dx span:last-of-type {
    font-size: 2.75rem;
    color: #fff;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .box-content-problemi h2 {
        font-size: 2.25rem;
    }

    .box-content-problemi .dx {
        padding: 40px;
        width: 80vw;
        margin: 40px auto 0 auto;
    }

    .box-content-problemi .dx span:first-of-type {
        font-size: 8rem;
    }

    .box-content-problemi .dx span sup {
        font-size: 3.325rem;
        top: -4.125rem;
    }

    .box-content-problemi .dx span:last-of-type {
        font-size: 2.475rem;
    }
}

/* BOX NEWS / NOTIZIE */
.box-content-news {
    background-color: var(--bg-box-chiaro);
    padding-block: 90px;
}

.correlati {
    margin-bottom: 65px;
}

.box-content-news .container .container {
    margin: 0 auto 70px auto;
}

.box-content-news .container h2 a {
    color: var(--text-color);
    font-size: 2.125rem;
}

.box-content-news .container p:first-of-type {
    color: var(--colore-1);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
}

.box-news {
    background-color: #fff;
    padding-bottom: 18px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.box-news span {
    background: var(--bg-box-chiaro);
    display: block;
}

.box-news span span {
    background: #fff;
    border-radius: 12px 12px 0 0;
    font-size: 1.1rem;
    padding: 8px 16px;
    width: fit-content;
}

.box-news img {
    border-radius: 12px;
}

.box-news h2,
.box-news h3,
.box-news p {
    padding-inline: 35px;
}

.box-content .box-news h2,
.box-content .box-news h3 {
    line-height: .9;
}

.box-content .box-news h2 a,
.box-content .box-news h3 a {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 700;
}

.box-content .box-news h2 a:hover,
.box-content .box-news h3 a:hover {
    color: var(--colore-1);
}

.box-content .box-news p {
    font-size: 1.225rem !important;
    font-weight: 400 !important;
    color: var(--text-color) !important;
}

.box-news p.more {
    margin-top: 26px;
}

.box-news p.more a {
    border-radius: 7px;
    color: var(--text-color);
    padding: 10px 30px;
    border: 1px solid var(--colore-1-scuro);
    display: block;
    text-align: center;
}

.box-news p.more a:hover {
    color: #fff;
    background-color: var(--colore-1-scuro);
}

@media (max-width: 1200px) {
    .box-content-news .container-fluid .container p:first-of-type {
        font-size: 2.75rem;
    }

    .box-news h2 a,
    .box-news h3 a {
        font-size: 1.625rem;
    }

    .box-news p.more a {
        font-size: 1.25rem;
    }
}

/* SINGLE NEWS / SERVIZIO */
.hero-page {
    position: relative;
    margin-bottom: 50px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: initial;
}

.hero-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent linear-gradient(-90deg, var(--bg-box-scuro) 50%, #ffffff00 100%) 0% 0% no-repeat padding-box;
}

.hero-page-content {
    position: absolute;
    top: 0;
    right: 2%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding: 20px;
    z-index: +1;
}

.hero-page-content.page svg {
    width: fit-content;
    height: 172px !important;
    margin-bottom: 20px;
    display: block;
    filter: brightness(0) saturate(100%) invert(82%) sepia(14%) saturate(549%) hue-rotate(359deg) brightness(88%) contrast(86%);
}

@media (max-width: 991px) {
    .hero-page-content svg {
        height: 56px !important;
        margin-bottom: 16px;
    }
}

.hero-page-content.page {
    width: 50%;
}

.hero-page-content h1 {
    color: var(--colore-1);
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 30px;
}

.hero-page-content p {
    font-size: 2rem;
}

@media (max-width: 991px) {
    .hero-page {
        position: relative;
    }

    .hero-page-content.page {
        width: initial;
    }

    .hero-page::after {
        content: initial;
    }

    .hero-page-content {
        position: initial;
        width: 100%;
        height: auto;
        display: flex;
        color: initial;
    }

    .hero-page-content h1 {
        font-size: 2.475rem;
    }

    .hero-page-content p {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) and (max-width: 1599px) {
    .hero-page-content h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-page-content p {
        font-size: 1rem;
        margin-bottom: 0;
    }
}

/* PAGINAZIONE */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 50px auto;
    padding: 0;
    list-style: none;
    width: fit-content;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    font-size: 1.75rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers:focus-visible {
    color: var(--colore-2);
}

.pagination .page-numbers:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* FOOTER */
footer {
    background-color: var(--bg-box-scuro);
    padding-top: 60px;
    color: #fff;
}

footer .container-fluid {
    max-width: 1600px;
    margin-bottom: 110px;
}

footer ul {
    padding: 0;
    margin-bottom: 0 !important;
}

footer ul li {
    list-style: none;
    display: flow-root;
    margin-bottom: 10px;
    margin-right: 25px;
}

footer ul li a {
    color: #fff;
}

footer ul li a i {
    color: var(--colore-1);
}

footer ul li a:hover {
    color: var(--colore-1);
}

footer ul li:hover i {
    color: #fff;
}

footer ul li span:first-of-type {
    color: var(--colore-1);
    font-weight: 700;
    float: left;
}

footer ul li span:last-of-type {
    float: left;
}

footer ul.cta li {
    color: var(--colore-1);
    font-size: 2.2rem;
    font-weight: 700;
}

footer ul.cta li a {
    border: 1px solid var(--colore-1);
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: 7px;
    padding: 15px 30px;
    color: #fff;
    display: block;
    text-align: center;
}

footer ul.cta li a:hover {
    background-color: var(--colore-1);
}

footer img {
    border-radius: initial;
}

footer .iubenda a {
    color: #ececec;
}

@media (max-width: 767px) {
    footer ul,
    footer ul.cta li a {
        font-size: 1rem;
    }
}

/* BOX SPUNTE */
.box-spunte span {
    background-color: var(--colore-1);
    color: #fff;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 2.5rem;
}

.box-spunte p:first-of-type {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 35px;
}

.box-spunte p:last-of-type {
    font-size: 1.25rem;
}

/* BOX TEAM */
.box-team h2 {
    color: var(--colore-4) !important;
    font-size: 2.625rem !important;
    font-weight: 400 !important;
}

.box-team div {
    border-radius: 12px;
    overflow: hidden;
}

.box-team img {
    border-radius: 12px;
    transition: all .2s ease;
}

.box-team img:hover {
    transform: scale(1.05);
}

.box-team h3 {
    margin-top: 12px;
    margin-bottom: 8px !important;
    line-height: 1.1;
}

.box-team h3 span {
    display: block;
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.05;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 2px;
}

.box-team h3 a {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-color);
}

.box-team h3 a:hover {
    color: var(--colore-1);
}

.box-team .team-intro,
.box-team .team-intro p:first-child {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.3;
}

@media (min-width: 992px) {
    .box-team .row {
        --bs-gutter-x: 2.25rem;
        --bs-gutter-y: 2.5rem;
    }

    .box-team .col.box-content {
        margin-bottom: 0 !important;
    }
}

.box-team img.zoom {
    transform: scale(1.2);
}

.box-team .more {
    border-radius: 7px;
    font-size: 1.625rem;
    color: var(--text-color);
    padding: 10px 30px;
    border: 1px solid var(--colore-1-scuro);
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.box-team .more:hover {
    color: #fff;
    background-color: var(--colore-1-scuro);
}

@media (max-width: 992px) {
    .box-team h3 a {
        font-size: 1.625rem;
    }
}

/* BOX SERVIZI */
.box-content-servizi .box-servizi,
.box-servizi {
    background-color: var(--bg-box-chiaro);
    border-radius: 20px;
    overflow: hidden;
    padding: 44px 42px;
    color: var(--text-color);
}

.box-servizi img,
.box-content-servizi .row > .col .box-servizi svg {
    width: auto !important;
    height: 64px !important;
    max-width: 100% !important;
    object-fit: contain;
    border-radius: 0;
    margin-bottom: 20px;
    display: block;
}

.box-content-servizi .row > .col .box-servizi svg {
    fill: var(--text-color);
}

.box-servizi h3 {
    color: var(--colore-4);
    font-size: 2.625rem;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.15;
}

.box-servizi h3 a {
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.05;
    display: inline-block;
}

.box-servizi p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--text-color);
}

/* Alternanza su 2 colonne: card 2 e 3 scure, card 1 e 4 chiare */
.box-content-servizi .row > .col:nth-child(4n+2) .box-servizi,
.box-content-servizi .row > .col:nth-child(4n+3) .box-servizi {
    background-color: var(--bg-box-scuro);
    color: #fff;
}

.box-content-servizi .row > .col:nth-child(4n+2) .box-servizi h3 a,
.box-content-servizi .row > .col:nth-child(4n+3) .box-servizi h3 a {
    color: var(--colore-1);
}

.box-content-servizi .row > .col:nth-child(4n+2) .box-servizi p,
.box-content-servizi .row > .col:nth-child(4n+3) .box-servizi p {
    color: #fff;
}

.box-content-servizi .row > .col:nth-child(4n+2) .box-servizi svg,
.box-content-servizi .row > .col:nth-child(4n+2) .box-servizi svg path,
.box-content-servizi .row > .col:nth-child(4n+3) .box-servizi svg,
.box-content-servizi .row > .col:nth-child(4n+3) .box-servizi svg path {
    fill: var(--colore-1);
}

/* Box correlati sempre chiari */
.box-servizi.correlati {
    background-color: var(--bg-box-chiaro) !important;
    color: var(--text-color) !important;
}

.box-servizi.correlati h3 a,
.box-servizi.correlati p {
    color: var(--text-color) !important;
}

.box-servizi.correlati img {
    filter: none;
}

.box-servizi.correlati svg,
.box-servizi.correlati svg path {
    fill: var(--text-color);
}

@media (max-width: 992px) {
    .box-servizi {
        padding: 32px 28px;
    }

    .box-servizi img,
    .box-content-servizi .row > .col .box-servizi svg {
        height: 56px !important;
    }

    .box-servizi h3 a {
        font-size: 1.625rem;
    }
}

/* Card CTA finale nella griglia servizi */
.box-servizi.box-servizi-cta {
    background-color: var(--bg-box-scuro) !important;
    color: #fff !important;
}

.box-servizi.box-servizi-cta h3 a {
    color: var(--colore-1) !important;
}

.box-servizi.box-servizi-cta p {
    color: #fff !important;
}

.box-servizi-cta .btn-servizi-cta {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 7px;
    border: 1px solid var(--colore-1);
    color: #fff;
    font-weight: 700;
    transition: all 0.2s ease;
}

.box-servizi-cta .btn-servizi-cta:hover {
    background-color: var(--colore-1);
    color: var(--text-color);
}

/* BOX NUMERI */
.box-content-numeri {
    background-color: var(--bg-box-scuro);
    color: #fff;
    border-radius: 27px;
    padding: 75px 220px;
    margin-block: 60px;
    width: 90vw;
    max-width: 100%;
}

.box-content-numeri h2 {
    font-size: 3.75rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 80px;
}

.box-content-numeri p:first-of-type {
    font-size: 5.125rem;
    font-weight: 700;
    color: var(--colore-1);
    margin-bottom: 0;
    line-height: 100%;
}

.box-content-numeri p:first-of-type sup {
    font-size: 3.25rem;
    font-weight: 100;
}

.box-content-numeri p:last-of-type {
    color: var(--colore-2-chiaro);
    line-height: 1.2;
}

@media (max-width: 992px) {
    .box-content-numeri {
        padding: 60px 34px;
    }

    .box-content-numeri p:first-of-type sup {
        font-size: 2.25rem;
    }

    .box-content-numeri h2 {
        font-size: 2.475rem;
        margin-bottom: 40px;
    }

    .box-content-numeri p:first-of-type {
        font-size: 3.325rem;
    }
}

/* BOX MODULISTICA */
.container-fluid.modulistica .row > .col {
    border-bottom: 1px solid var(--colore-1);
    border-right: 1px solid var(--colore-1);
}

.container-fluid.modulistica .row > .col:nth-child(2) {
    border-right: 1px solid var(--colore-1);
}

.container-fluid.modulistica .row > .col:nth-child(3n),
.container-fluid.modulistica .row > .col:last-of-type {
    border-right: none;
}

.container-fluid.modulistica .row > .col:last-of-type {
    border-bottom: none;
    border-right: none;
}

.box-modulistica span {
    font-size: 1.5rem;
}

.box-modulistica span i {
    color: var(--colore-1);
}

.box-modulistica p:first-of-type {
    font-size: 2rem;
    font-weight: 700;
}

.box-modulistica p:last-of-type {
    font-size: 1.25rem;
}

.box-modulistica p:last-of-type a i {
    color: #fff;
    background-color: var(--colore-1);
    border-radius: 50%;
    padding: 5px 8px;
    text-align: center;
    font-size: 1rem;
}

.box-modulistica p:last-of-type a {
    color: var(--text-color);
}

/* SINGLE TEAM */
.intro-team {
    position: relative;
}

.intro-team::before {
    content: "";
    position: absolute;
    top: 10%;
    left: -400px;
    border-left: 400px solid var(--bg-box-scuro);
    box-sizing: border-box;
    height: 80%;
}

.intro-team span:first-of-type {
    font-size: 2.75rem;
    color: var(--colore-2);
    font-weight: 300;
}

.intro-team span:last-of-type a {
    font-size: 1.75rem;
    color: var(--colore-2);
    text-transform: uppercase;
}

.intro-team p {
    font-size: 1.625rem;
}

.intro-team h1 {
    font-size: 4.3rem;
    font-weight: 700;
    color: var(--colore-1);
}

.intro-team ul {
    display: inline-flex;
    list-style-type: none;
    padding: 0;
    flex-wrap: wrap;
}

.intro-team ul li {
    margin-top: 10px;
}

.intro-team ul li a {
    color: var(--colore-1);
}

.intro-team ul li a span {
    color: var(--text-color) !important;
    font-size: 1.25rem !important;
    text-transform: none !important;
    position: relative;
    bottom: 5px;
}

.intro-team ul li a i {
    font-size: 2rem;
}

@media (max-width: 992px) {
    .intro-team h1 {
        font-size: 3.75rem;
    }

    .intro-team span:first-of-type {
        font-size: 2.475rem;
    }

    .intro-team p,
    .intro-team span:last-of-type a {
        font-size: 1.5rem;
    }

    .intro-team ul li a i {
        font-size: 2rem;
    }

    .intro-team ul li a span {
        font-size: 1.2rem !important;
        bottom: 7px;
    }
}

/* MODULO */
.modulo .header {
    font-size: 2.125rem;
    margin-top: 60px;
    opacity: .37;
}

.wpcf7-form label {
    margin-top: 25px;
    font-size: 1.625rem !important;
    margin-right: 35px;
}

.wpcf7-form label span {
    display: block;
    font-weight: 400;
    font-size: 1rem;
}

.wpcf7-form-control.wpcf7-radio span label span,
.wpcf7-form-control.wpcf7-checkbox span label span {
    position: relative;
    bottom: 5px;
    font-weight: 700;
    font-size: 1.625rem;
    display: inline;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    padding: 15px;
    width: 100%;
    color: var(--text-color);
    border: 1px solid #dbdbdb;
    border-radius: 6px;
}

.captcha-test {
    font-size: 20px !important;
}

#arithmathic_refresh {
    border: none !important;
}

.wpcf7-list-item {
    margin: 0;
}

input[type="radio"],
input[type="checkbox"] {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

.wpcf7-acceptance.optional .wpcf7-list-item-label {
    display: inline-flex;
    font-size: 1.25rem;
    margin-left: 10px;
}

.wpcf7-acceptance.optional .wpcf7-list-item-label a {
    color: var(--text-color);
    margin-left: 5px;
    font-weight: 700;
}

.wpcf7-acceptance.optional .wpcf7-list-item-label a::after {
    content: "";
    background-color: var(--colore-1);
    display: block;
    width: 100%;
    height: 2px;
}

.wpcf7-acceptance.optional input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    bottom: 8px;
    position: relative;
}

.wpcf7-form-control.wpcf7-submit {
    background-color: var(--colore-1);
    color: #fff;
    font-size: 1.625rem;
    padding: 10px 60px;
    border-radius: 7px;
    border: 1px solid var(--colore-1);
    position: relative;
    top: 15px;
}

.wpcf7-form-control.wpcf7-submit:hover {
    background-color: #fff;
    color: var(--text-color);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border: none;
    text-align: center;
    font-size: 1.55rem;
    color: #b32d2e;
}

.wpcf7-spinner {
    display: block;
}

/* TABELLE */
table,
tr,
td {
    border: 1px solid var(--colore-4);
    padding: 5px;
}

/* BOX VIDEO YOUTUBE RESPONSIVE */
.box-video-responsive {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-box-scuro);
}

.box-video-responsive iframe {
    border: 0;
}

/* ACCESSIBILITÀ (WCAG): focus visibile e riduzione movimento */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
 