/*
1. Google Fonts
2. Variabili globali (:root)
3. Fondamenta (html, body)
4. Tipografia (titoli, paragrafi, link)
5. Componenti (navbar, section, bottoni)
6. Colori e background
7. Sizing
8. Form
9. Footer
10. Altri layout (griglie e contenitori)
11. 10 Animazioni
*/


/* 1) Fonts */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* 2) Variabili */

:root {
    --primary-color: #000000;
    --secondary-color: #34656F;
    --third-color: #B50F0F;
    --background-color: #fff;
    --link-hover-color:#34656F;
    --color-grey: #F8F6F6;

    --section-padding: 120px;
    --main-font: "Montserrat", sans-serif;
}


/* 3) Fondamenta (html, body) */

html {
    font-size: 16px; /* Base del rem */
    scroll-behavior: smooth;
    color:  var(--primary-color);
    overflow-x: hidden;
}

body {
    background-color: var(--background-color);
    color: #333;
    font-size: 16px;
    font-family: var(--main-font);
    line-height: 1.6;
    margin: 0;
}


/* 4) Tipografia (titoli, paragrafi, link) */

.alt-font{
    font-family: var(--alt-font);
}

h1, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.25rem;
}

h2 {
    font-size: 31px;
    line-height: 1.1;
    color:var(--primary-color);
}

h3 {
    font-size: 25px;
}

h4 {
    font-size: 21px;
}

h6{
    color:var(--primary-color);
}

p {
    margin-bottom: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var(--link-hover-color);
}

.bold{
    font-weight: 700;
}

.text-color-secondary{
    color: var(--secondary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* 5) Componenti (bottoni, moduli, ecc.) */

body {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.nav-item{ padding: .2rem 2rem;}

.nav-link{
    font-size: 18px;
    line-height: 19px;
    font-weight: 400;
    padding: 0px!important;
    color: #fff;
}
.nav-link:hover, .nav-item.current-menu-item .nav-link {
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #B50F0F;
    transition: none;
}

.nav-item{
    padding-left: 1rem!important;
    padding-right: 1rem!important;
}


.sticky-nav {
    position: fixed !important;
    top: 0;
    background: white; /* O un altro colore */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: var(--secondary-color);
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 1020;
    padding-top: 30px;
    padding-bottom: 15px;
}
.navbar.sticky-nav {
    padding-top: inherit;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #fff;;
}


.navbar-brand{
    font-family: var(--alt-font)!important;
    color: var(--primary-color);
    letter-spacing: var(--letter-spacing);
}

.navbar.scrolled {
  background-color: rgb(255 255 255 / 93%) !important;
}

.navbar-toggler{
    padding: 0;
}

ul.dropdown-menu {
    background-color: #FFFFFF;
    border-radius: 0;
    box-shadow: 3px 3px 12px #00000029;
}

.dropdown-menu li{
    margin-bottom: 0.2rem;
    padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
}

.dropdown-menu li a{
    color: var(--secondary-color);
    font-weight:700;
    font-size: 16px;
    padding: 0
}
.dropdown-menu li a:focus, .dropdown-menu li a:hover, .dropdown-item.active, .dropdown-item:active {
    color: var(--secondary-color);
    background-color: inherit;
    border-bottom: 1px solid #B50F0F;
}

.navbar-toggler, .navbar-toggler:focus, .navbar-toggler:focus-within {
    border: unset;
    box-shadow: none;
}


ul.navbar-nav {
    color: #fff;
    padding: 10px 25px;
}

.btn-prenota-menu {
    background-color: #fff;
    color: var(--secondary-color);
    padding: 20px 35px;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-prenota-menu:hover {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: #fff;
}

/*** LOGO ***/
        #logo-large, #logo-small {
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        #logo-large {
            position: absolute;
            top: 0; /* verra' aggiornato via JS */
        }
        #logo-small {
            opacity: 0;
        }
        #logo-small.visible {
            opacity: 1;
        }
        #logo-large.hidden {
            opacity: 0;
        }
/*** LOGO ***/


.bg-dark ul li a, .bg-dark, .bg-dark p, .bg-dark a{
    color: #fff;
}

.bg-dark ul li a:hover, .bg-dark a:hover{
    color: var(--pop-color);
}

section{
    padding-top:var(--section-padding);
    padding-bottom:var(--section-padding);
}

section.half-section, .half-section{
    padding-top:calc(var(--section-padding)/2);
    padding-bottom:calc(var(--section-padding)/2);
}

.button-primary, .button-invia {
    background: var(--secondary-color);
    border-radius: 5px;
    color: #fff;
    border: 2px solid var(--secondary-color);
    text-transform: uppercase;
    padding: 12px 30px;
    display: flex;
    align-items: center;
}
.button-primary:hover, .button-invia:hover {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.button-secondary {
    background: var(--third-color);
    border-radius: 5px;
    color: #fff;
    border: 2px solid var(--third-color);
    text-transform: uppercase;
    padding: 12px 30px;
}
.button-secondary:hover {
    background: transparent;
    color: var(--third-color);
    border: 2px solid var(--third-color);
}
.btn-padding-maps {
    padding: 5px 10px!important;
}

/* 6) Colori e background */

.background-grey {
    background-color: var(--color-grey);
}

.gradient-line {
    background: #5A8A96;
    background: linear-gradient(90deg, rgba(90, 138, 150, 1) 0%, rgba(45, 69, 75, 1) 65%);
    height: 100px;
    width: 100%
}
.color-red {
    color: var(--third-color);
}
.bg-image-cta {
    background-repeat: no-repeat;
    background-position: right;
    background-size: auto;
}
.title-banner-cta {
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
}

/* 7) Sizing */

.min-vh-30{
    min-height:30vh;
}

.min-vh-50{
    min-height:50vh;
}

.min-vh-100{
    min-height:100vh;
}

.min-vw-30{
    min-width:30vw;
}

.min-vw-50{
    min-width:50vw;
}

.min-vw-100{
    min-width:100vw;
}

.vw-30{
    width:30vw;
}

.vw-50{
    width:50vw;
}

.vw-100{
    width:100vw;
}
.h-maps {
    height: 400px;
}


/* 8) Form di contatto */

.form-footer .form-field {
    width: 100%;
    background-color: #F8F6F6;
    border: 0;
    padding: 15px 10px;
    font-size: 16px;
    line-height: 19px;
}
.form-footer .wpcf7 input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 26px;
  height: 26px;
  border: 0;
  background-color: #8FB8C3;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}

.form-footer .wpcf7 input[type="radio"]:checked {
  background-color: #34656F;
}

.form-footer .wpcf7 input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background-image: url('../images/icon-check.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}


/* 9) Footer */
#footer ul{
    list-style-type: none;
}

#footer ul li a, #footer, #footer a{
    color: var(--primary-color);
}
#footer .logo-footer {
    display: inline-block;
    border-top: 8px solid var(--third-color);
    margin-top: -3px;
}
#footer .border-footer-copy {
    border-top: 6px solid var(--secondary-color);
}
#footer .menu-footer {
    padding: 0;
    margin: 0;
}
#footer .col-policy {
    padding-left: 30%;
}
.orari-footer strong{
    font-weight: 700!important;
}


/* 10) Altri layout (contenitori, parti grafiche)*/
.container-custom {
    max-width: 85%;
    margin-inline: auto; /* centra il contenuto */
}

.text-body1 {
    font-size: 16px;
    line-height: 23px;
    font-weight: 400;
}
.text-body2 {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}
.subtitle-style {
    font-size: 20px;
    line-height: 25px;
    font-weight: 400;
}
.subtitle-body1 {
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 2px;
}
.title-banner {
  margin-top: 20px;
    font-weight: 700;
    font-size: 45pt;
    line-height: 1;
}
.text-banner-gradient {
    background: linear-gradient(96deg, #000000 10%, #5A8A96 30%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Per browser che supportano background-clip */
    background-clip: text;
    color: transparent;
    display: inline-block;
    width: -webkit-fill-available;
    /*font-size: 74pt;*/
}
.text-banner {
    font-size: 20px;
    line-height: 25px;
    color: var(--primary-color);
}

.text-copyright {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}
.titolo-footer {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: var(--secondary-color)!important;
    margin-bottom: 10px;
}
.titolo-footer a {
    color: var(--secondary-color)!important;
}
.title-section-form {
    font-size: 40px;
    line-height: 61px;
    font-weight: 700;
}
.title-form-sedi {
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
}





.hero-banner {
    /*min-height: 90vh;*/
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
}
.hero-banner .btn {
    background-color: #c3272f;
    border-color: #c3272f;
    border-radius: 50px;
    font-weight: 600;
}

.hero-banner .btn:hover {
    background-color: #a61f26;
    border-color: #a61f26;
}



.sede, .orari {
  position: relative;
}

.sede:before, .orari:before {
    display:inline-block;
    width: 24px;
    height: 30px;
    position: absolute;
    top: 0;
    left: -37px;
}
.sede:before {
    content: url("../images/Icon-location.svg");
}
#page-sedi .sede:before {
    content: url("../images/Icon-location-red.svg");
}
#page-sedi .orari:before {
    content: url("../images/Icon-clock.svg");
    width: 24px;
    height: auto;
}
.sedi-visite .sede {
    padding-left: 37px;
    font-size: 25px;
    line-height: 30px;
    font-weight: 400;
}

.sedi-visite .sede:before {
    content: url("../images/Icon-location-red.svg");
    display:inline-block;
    width: 24px;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
}


.subtitle-style {
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 2px;
}
.title-style {
    font-size: 40px;
    line-height: 55px;
    font-weight: 700;
}
.box-visite {
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 3px 10px 30px #7682B72E;
    border-radius: 5px;
    position: relative;
    margin-bottom: 40px;
}
.box-terapie {
    background-color: #fff;
    box-shadow: 3px 10px 30px #7682B72E;
    border-radius: 5px;
    position: relative;
    margin-bottom: 40px;
}
.box-visite:hover {
    background-color: #5A8A96;
    color: #fff;
}
.box-visite:hover .titolo-sedi-prestazioni, .box-visite:hover .sedi {
    color: #fff!important;
}
.icon-visita img {
    height: 57px;
}
.icon-prestazione div {
    width: 65px;
    height: 65px;
    background: #B50F0F;
}

.title-visita {
    font-size: 28px;
    line-height: 30px;
    font-weight: 700;
}
.title-visita a:hover {
    color: #000;
}
.btn-visita .button-primary:hover {
    background: var(--secondary-color);
    border-radius: 5px;
    color: #fff;
    border: 2px solid var(--secondary-color);
    text-transform: uppercase;
    padding: 12px 30px;
}
.btn-visita i {
    font-size:24px;
    line-height: 21px;
    font-weight: 700;
}
.content-terapia {
    padding: 15px 20px;
}
.line-red-box {
    background-color: var(--third-color);
    height: 8px;
    width: 70px;
    position: absolute;
    top: -3px;
    right: 65px;
}
.line-red-box-riabilitazione {
    background-color: var(--third-color);
    height: 8px;
    width: 108px;
    position: absolute;
    top: -3px;
    right: 30px;
}
.line-red-box-number {
    background-color: var(--third-color);
    height: 8px;
    width: 80%;
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
}
.box-number {
    background-color: var(--secondary-color);
    padding: 15px;
    min-height: 200px;
    width: 250px;
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
    position: relative;
}
.number {
    font-size: 54px;
    line-height: 55px;
    font-weight: 400;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.text-number {
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
}
.img-cover-fit {
    object-fit: cover;
    width: 100%;
}
.height-img {
    height: 400px;
}
.title-vision-mission {
    font-size: 35px;
    line-height: 1;
    font-weight: 700;
    color: var(--secondary-color);
}
.text-vision-mission {
    font-size: 21px;
    line-height: 25px;
    font-weight: 400;
}
.title-page {
    font-size: 65px;
    line-height: 70px;
    font-weight: 700;
}
.text-h4 {
    font-size: 21px;
    line-height: 25px;
    font-weight: 400;
}
.box-visite .text-visita {
    min-height: 110px;
}

.breadcrumbs {
    list-style: none;
    display: flex;
    gap: 0.5em;
    padding-left:0;
    margin-bottom:0;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
    font-size: 17px;
    line-height:1;
    font-weight: 700;
}
.breadcrumbs li:last-child {
    color:#737373;
}
.separator {
    margin: 0 0.5em;
    font-weight: 700;
}
.title-page-sedi {
    font-size: 51px;
    line-height:53px;
    font-weight: 400;
    color: var(--secondary-color);
    text-transform: uppercase;
}
.title-h2 {
    font-size: 40px;
    line-height:55px;
    font-weight: 700;
}
.titolo-sedi-prestazioni {
    font-size: 15px;
    line-height: 17px;
    font-weight: 700;
    font-style: italic;
    color: var(--secondary-color);
}
.sedi-prestazioni .sedi{
    font-size: 15px;
    line-height: 17px;
    font-weight: 400;
    text-transform: uppercase;
    padding-left: 15px;
    color: var(--secondary-color);
}
.titolo-sedi-visite {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
}
.titolo-sedi-visite.sfondo-titolo-sedi {
    background-color: var(--secondary-color);
    padding: 3px 15px;
    color: #fff;
    display: inline-block;
}
.title-section-prestazioni {
    font-size: 38px;
    line-height: 47px;
    font-weight: 700;
}
.title-section-prestazioni u {
    text-transform: lowercase;
}

.box-dott {
    margin-bottom: 40px;
    padding-left: 37px
}
/*.box-dott:last-child {
    margin-bottom: 0px
}*/
.title-settori .accordion-button:not(.collapsed) {
    color: var(--third-color);
    background-color: inherit;
    box-shadow: none;
}

.title-settori, .title-settori .accordion-button {
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 10px;
    cursor: pointer;
}
.title-settori:after {
    background-color: var(--third-color);
    height: 8px;
    width: 100%;
    content: "";
    display: block;
    margin-top: 3px;
}
.title-dott {
    font-size: 25px;
    line-height: 42px;
    font-weight: 700;
    position: relative;
}
.title-dott:before {
    display: inline-block;
    content: url(../images/Icon-check-color.svg);
    width: 24px;
    height: 24px;
    position: absolute;
    top: 2px;
    left: -37px;
}
/* 11) Animazioni */
