
:root {
  --main-dark-color:        #121212;
  --main-light-color:       #F0A202;
  --main-text-color:        #121212;
  --secondary-text-color:   #0057B8;

  --bianco: #ffffff;
  --nero: #000000;
  --blu: #003DA5;
  --blu-scuro: #0B1831;
  --arancio: #F0A202;
  --grigio: #F3F3F3;
  --grigio-blu: #E9EFF3;

}

body{
    font-size: 18px;
    font-family: "Geologica", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
    "slnt" 0,
    "CRSV" 0,
    "SHRP" 0;
    color: #121212;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Geologica", sans-serif;
    font-weight: 600;
}

nav .navbar-brand img {
  height: 4em;
}

.navbar {
    border: none;
    padding: 0;
    margin: 2rem 0
/*	border-bottom: 1px solid #000;*/
}
.dropdown-menu {
    padding: 2rem;
    border: none;
    border-radius: 0;
}
.navbar a.nav-link {
    font-family: Geologica;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-align: left;
    padding: 0.1rem 0 !important;
    margin: 0 2rem;
    color: var(--nero);
}
.navbar li.active a.nav-link {
    font-weight: 600;
    border-bottom: 2px solid var(--arancio);
}
.dropdown-item {
    font-family: Geologica;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    padding: 0.5 1rem !important;
    margin: 0;
    color: var(--nero);
}
.navbar-toggler {
    padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
    font-size: 25px;
    line-height: 1;
    color: var(--nero);
    background-color: transparent;
    border: none;
    border-radius: 0;
    transition: var(--bs-navbar-toggler-transition);
}
.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}
/*.navbar-toggler-icon {
    background-image: none;
}*/

/*.navbar-toggler-icon::after {
    content: "\f0c9";
    font-family: "FontAwesome";
    font-size: 30px;
    color: #333;
}*/
.logo-meteda {
    max-width: 145px;
    max-height: 32px;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: inherit;
    text-decoration: none;
}
a.btn-orange {
    padding: 10px 30px;
    background-color: var(--arancio);
    color: var(--bianco);
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
    font-weight: 700;
    display: inline-block;
}
span.blu {
    color: var(--blu);
}
section.hero {
    /*height: 50vw;*/
    width: 100%;
    max-height: 910px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    aspect-ratio: 12/5;
    //margin-bottom: 10%;
}
.hero-video-container {
    position: relative;
    width: 100%;
    height: 57vw;
    max-height: 745px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* Aggiunto sfondo nero per riempire le barre laterali */
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translate(-50%, -50%);
    
    /* MODIFICATO: garantisce che l'intero video sia visibile, non croppato */
    object-fit: contain; 
    
    /* Aggiunto background-color solo come fallback estremo, ma .hero-video-container lo gestisce meglio */
    background-color: #000; 
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

p.cta-home {padding-top:10px}

.page-soluzioni-child {
    margin: 7% auto;
}
.box-soluzioni {
    background-color: var(--grigio-blu);
    padding: 3rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}
.side-menu {
    margin-top: 1.5rem;
}
a.btn-side {
    background-color: var(--bianco);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
a.btn-side p {
    padding: 0;
    margin: 0;
    font-size: 18px;
}
a.btn-side.active p {
    font-weight: 700;
}
.box-consulenza {
    background-image: url('../img/consulenza_bg.jpg');
    background-size: cover;
    background-position: center center;
    min-height: 468px;
    width: 100%;
    padding: 3rem;
    color: var(--bianco);
    border-radius: 20px;
}
.box-consulenza h3{
    margin-top: 80%;
    margin-bottom: 1rem;
}
.box-consulenza a.btn-orange {
    width: 100%;
    display: block;
}

.contenuto-soluzioni{

}
.sopratitolo {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.sopratitolo-page {
    font-size: 30px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 35px;
}

h2 {
    font-weight: 500;
    font-size: 36px;
    margin-bottom: 1rem;
}

h2.titolo-page {
    font-weight: 300;
    font-size: 23px;
    margin-bottom: 1rem;
}

.twocol {
    columns: 2;
}
.blocco-blu {
    background-color: var(--blu);
    padding: 8% 7%;
    margin: 3rem 0;
    border-radius: 20px;
}
.blocco-blu p {
    color: var(--bianco);
    font-size: 21px;
    font-weight: 700;
    margin: 0;
}
h3 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.blocco-grigio {
    background-color: var(--grigio);
    padding: 8% 7%;
    margin: 3rem 0;
    border-radius: 20px;
}
.blocco-bianco {
    background-color: var(--bianco);
    padding: 8%;
    margin: 1rem 0;
    border-radius: 20px;
}
.blocco-bianco p{
    margin: 0;
}
.blocco-finale-img {
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 30vw;
    border-radius: 20px;
}
.chisiamo-footer {
    background-color: var(--grigio-blu);
    padding: 8% 0;
}
.chisiamo-footer img{
    border-radius: 20px;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 3rem;
}
.blu-bg {
    background-color: var(--blu);
    color: var(--bianco);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 3rem 10%;
}
p.claim {
    font-size: 20px;
    font-weight: 700;
    margin-top: 53px;
    margin-left: 2rem;
}
.vision-grigio {
    background-color: var(--grigio);
    padding: 8% 15%;
}
.vision-card {
    background-color: var(--bianco);
    border-radius: 20px;
    padding: 3rem 1.5rem;
    margin-bottom: 2rem;
}
.vision-card a.btn-orange {
    display: inline-block;
    margin-bottom: 2rem;
    margin-top: 2rem;
}
.vision-card h3 {
    margin-bottom: 1rem;
}
.vision-card.first-margin {
    margin-top: 7rem;
}
.vision-card img {
    width: 100%;
}
.main-footer {
    background-color: var(--blu-scuro);
    color: var(--bianco);
    padding: 8% 0;
}
.main-footer p{
    font-size: 12px;
}
.main-footer p > a{
    text-decoration: underline;
}
.main-footer li > a{
    font-size: 12px;
}
.main-footer .logo-meteda {
    margin-bottom: 1rem;
    max-width: 180px;
    max-height: 40px;
}
.main-footer h4 {
    margin-top: 10px;
}


.colophon {
    padding: 2% 0;
}
.colophon p{
    font-size: 13px;
}
.colophon .text-right {
    text-align: right;
}
.slider-home {
    padding: 7% 0 3% 0;
}
.carousel-loop {
    margin-top: 2rem;
}
.home-slide {
    min-height: 556px;
    border-radius: 20px;
    max-height: 600px;
}
.home-slide .slide-text .bar{
    display: inline-block;
    width: 54px;
    height: 7px;
    margin-right: 10px;  
}
.home-slide .slide-text .categoria{
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    width: 50%;
    display: inline;
}
.home-slide .slide-text {
    color: var(--bianco);
    margin-top: 90%;
    padding: 1.5rem;
}
.home-slide .slide-text h4{
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
}
.tabs-container {
    background-color: var(--blu);
    color: var(--bianco);
    padding: 5% 10%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 70%;
}
.diabete-bg {
    background-image: url('../img/diabete-bg.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;
    margin-bottom: 10%;
}
.diabete-mobile-img {
    border-radius: 20px;
    width: 100%;
    margin-bottom: 1rem;
}
.testo-diabete {
    width: 30%;
    margin-left: 10%;
    margin-bottom: 3%;
}
.testo-diabete .sopratitolo {
    margin-bottom: 0.5rem;
}
.tabs-container .nav-pills {
    --bs-nav-pills-border-radius: 0;
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: transparent;
}
.tabs-container .nav-link {
    display: block;
    padding: 0;
    padding-right: 1rem;
    font-size: 14px;
    font-weight: 400;
    color: var(--bianco);
    margin-left: 1rem;
}
.tabs-container .nav-item {
     border-right: 1px solid var(--bianco);
}
.tabs-container .nav-item:last-child {
    border-right: none;
}
.tabs-container .nav-link.active {
    font-weight: 700;
}
.tabs-container #pills-tab {
    margin-bottom: 3rem;
}
.tab-content p {
    margin-bottom: 2rem;
}
.form-footer {
    margin-top: 8%;
    margin-bottom: 8%;
}
.form-grey-box {
    background-color: var(--grigio);
    padding: 5% 25%;
    border-radius: 20px;
}

.form-grey-box .form-field input, .form-grey-box .form-field textarea {
    border-radius: 0;
}
.form-grey-box .form-field input {
    height: 48px;
}
.frm_style_stile-formidable.with_frm_style .form-field {
    margin-bottom: 0px;
}
.form-grey-box .with_frm_style .frm_submit.frm_flex .frm_button_submit {
    border-radius: 0;
    height: 48px;
    width: 100%;
    background-color: var(--arancio);
    color: var(--bianco);
    border: none;
    font-size: 16px;
    font-weight: 500;
}

.contatti.form-grey-box {
    background-color: var(--bianco);
    padding: 0 5%;
    border-radius: 0;
}
.d-page {
    margin-top: 5%;
    margin-bottom: 3%;
}
.news-home {
    margin-top: 5rem;
    margin-bottom: 5rem;
}
.news-home h2 {
    margin-bottom: 4rem;
}
article.news-card {
    border-radius: 20px;
    box-shadow: 10px 10px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}
article.news-card img{
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
article.news-card .card-content {
    padding: 2rem;
}
article.news-card .card-content .card-date{
    font-weight: 300;
    text-transform: uppercase;
}
article.news-card .card-content h3{
    font-size: 24px;
    margin-bottom: 1rem;
}

.risorse-container {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-top: 30px;
}

.risorsa-card {
    border: 1px solid var(--grigio);
    border-radius: 20px;
    padding: 2rem;
    background-color: var(--grigio);
}
.risorsa-descrizione {
    padding: 2rem 0;
}
.risorsa-link {
    font-weight: 600;
}

footer .certificazioni ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
}
footer .certificazioni li {
    list-style: none;
    max-width: 100px;
}
footer .certificazioni img {width: 80%;}

.single-post .post-category, .single-post .post-date{
    text-transform: uppercase;
    font-weight: 300;
}
.single-post .post-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 2rem 0;
}
.single-post .entry-content {
    margin-bottom: 4rem;
}
.single-post .next-post-link, .single-post .prev-post-link {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    padding: 0.6rem 1rem;
}
.single-post .categories-widget {
    padding: 2rem;
    background-color: var(--grigio);
    border-radius: 20px;
    margin-top: 220px;
}
.single-post .categories-widget ul {
    padding-left: 0;
}
.single-post .recent-posts-widget {
    margin-top: 4rem;
}
.single-post .recent-posts-widget ul {
    padding-left: 0;
}
.single-post .recent-posts-widget li {
    list-style: none;
    margin-bottom: 1rem;
    float: left;
}
.single-post .recent-posts-widget .post-thumb {
    width: 40%;
    margin-right: 2%;
    display: block;
}
.single-post .recent-posts-widget .post-thumb img{
    width: 100%;
    height: auto;
    float: left;
    border-radius: 5px;
}
.single-post .recent-posts-widget .post-title-wrapper {
    width: 58%;
    float: left;
    display: block;
}
.single-post .recent-posts-widget .post-title-small {
    font-size: 13px;
    padding-left: 1rem;
}
.breadcrumb {
    background-color: #E9EFF3;
    padding: 1.5rem 0;
}
.breadcrumb a {
    font-size: 14px;
}
.breadcrumb span{
    padding: 0 1rem;
}
.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px; /* Larghezza massima del player */
    margin: 30px auto; /* Centra il player e aggiunge spazio */
    aspect-ratio: 16 / 9; /* Mantiene le proporzioni 16:9 */
    overflow: hidden;
    background-color: #000;
}

.video-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Assicura che il video non sia croppato */
    cursor: pointer;
}

.play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    
    /* Stile del pulsante */
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: background 0.3s;
}

.play-pause-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.play-icon, .pause-icon {
    font-size: 30px;
    line-height: 1; /* Per centrare il testo */
}

/* Classe aggiunta tramite JavaScript quando il video è in riproduzione */
.video-player-wrapper.playing .play-pause-btn {
    opacity: 0; /* Nasconde il pulsante Play quando il video è attivo */
    pointer-events: none;
}
.posizioni-container {
    margin-top: 4rem;
}
.posizione-card {
    background-color: var(--grigio);
    border-radius: 20px;
    padding: 2rem 4rem;
    margin-top: 1.5rem;
    display: block;
}
.posizione-card a{
    font-weight: 600;
    font-size: 18px;
}
@media screen and (max-width: 767px){
    .dropdown-menu {
        padding: 0;
    }
    .dropdown-item {
        font-size: 18px;
    }
}
@media screen and (max-width:991px){
    .navbar a.nav-link {
        font-family: Geologica;
        font-size: 20px;
        padding: 0.5rem 0 !important;
        margin: 1rem 0;
        color: var(--nero);
    }
    .twocol {
        columns: 1;
    }
    h2 {
        font-size: 30px;
    }
    .blocco-finale-img{
        margin-bottom: 2rem;
    }
    .form-grey-box {
        padding: 5%;
    }
    p.claim {
        margin-top: 10px;
        margin-left: 0;
    }
    .vision-grigio {
        padding: 8% 0;
    }
    .vision-card.first-margin {
        margin-top: 0;
    }
    .diabete-bg {
        background-image: none;
        margin-bottom: 10%;
    }
    .tabs-container {
        width: 100%;
    }
    .tabs-container #pills-tab {
        margin-bottom: 2rem;
    }
    .testo-diabete {
        width: 100%;
        margin-left: 0;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    .risorse-container {
        grid-template-columns: repeat(1, 1fr); 
    }
    .box-soluzioni {
        display: none;
    }
}
