/*************************************
GENERAL 
**************************************/
:root {
    --clr-light: #F2F2F2;
    --clr-light-90: rgba(242, 242, 242, 0.9);
    --clr-default: #727272;
    --clr-default-dark: #000; 
    --clr-primary: #004169;
    --clr-secondary: #BCCF00;
    --clr-tertiary: #E6007E;

    --gradient-primary : linear-gradient(180deg, transparent 50%, var(--clr-primary) 250%);
    --gradient-secondary : linear-gradient(180deg, transparent 50%, var(--clr-secondary) 250%);
    --gradient-tertiary : linear-gradient(180deg, transparent 50%, var(--clr-tertiary) 250%);

    --col-gap: 24px; 
    --section-gap: 24px;

    --border-box: 11px;
}

@media(max-width: 767px) {
    :root {
        --col-gap: 20px; 
        --section-gap: 20px;
    }
}

* {
    outline: none;
    box-sizing: border-box;
    position: relative;
}
body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    color: var(--clr-primary);
}
main {
    margin-top: 86px !important;
}
img {
    width: 100%;
}
h1 {
    margin: 0 0 0px 0;
    font-weight: 500;
}
h2 {
    margin: 0 0 20px 0;
    font-size: 37px;
}

.section-gap h2 {
    margin-bottom: 0;
}

h3 {
    margin: 0 0 10px 0;
    font-size: 36px;
    line-height: 40px;
}
h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
}
h5 {
    margin: 0;
    font-size: 18px;
}
p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--clr-default);
}
a {
    color: inherit;
}
.date {
    font-size: 20px;
}

@media(max-width: 767px) {
}

@media(min-width: 992px) {
    main {
        margin-top: 112px !important;
    }
    h2 {
        font-size: 64px;
    }
}
/*************************************
UTILITIES
**************************************/
.container-max {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}
.col-gap {
    padding-left: var(--col-gap);
    padding-right: var(--col-gap);
}
.col-gap-reset, .grid-wrapper .col-gap-reset {
    padding-left: 0;
    padding-right: 0;
}
.section-gap {
    margin-bottom: var(--section-gap);
}
.btn {
    display: inline-block;
    padding: 16px 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--clr-primary);
    border-radius: 50px;
    background-color: var(--clr-light);
}
.clr-dark {
    color: var(--clr-default-dark);
}
.clr-primary, .content-primary h2, .content-primary h3, .content-primary h4 {
    color: var(--clr-primary);
}
.content-secondary h2, .content-secondary h3, .content-secondary h4, .content-secondary .highlighted-text-list p {
    color: var(--clr-secondary);
}
.content-tertiary h2, .content-tertiary h3, .content-tertiary h4 {
    color: var(--clr-tertiary);
}
.content-primary .btn,
.btn.primary {
    color: #fff;
    background-color: var(--clr-primary);
}
.content-secondary .btn,
.btn.secondary, 
.tag-content.secondary div {
    color: var(--clr-primary);
    background-color: var(--clr-secondary);
}
.content-tertiary .btn,
.btn.tertiary {
    color: #fff;
    background-color: var(--clr-tertiary);
}
.icon-plus {
    width: 60px;
} 
.highlighted-text-list p {
    font-size: 32px;
    list-style: 24px;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-center img {
    margin: 0 auto;
}
.text-uppercase {
    text-transform: uppercase;
}
.tag-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--clr-default);
}
.tag-content div {
    font-size: 12px;
    font-weight: 300;
    padding: 5px 10px;
    border-radius: 40px;
    border: 1px solid var(--clr-default); 
}
.tag-content.secondary div {
    font-weight: 700;
    padding: 5px 15px;
    text-transform: uppercase;
    border: none;
}
@media(max-width: 767px) {
    .section-gap-xs {
        margin-bottom: var(--section-gap);
    }
    .hidden-xs {
        display: none !important;
    }
    .tag-content {
        justify-content: center;
    }
    
    .btn-container {
        text-align: center;   
    }
}
@media(min-width: 768px) {
    .visible-xs {
        display: none !important;
    }
    .tag-content div {
        font-size: 16px;
    }
}

/*************************************
GRID
**************************************/
.grid-wrapper {
    display: flex;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: var(--col-gap);
    justify-content: center;
}
@media(max-width: 767px){
    .grid-wrapper {
        padding: 0 var(--col-gap);
    }
    .grid-wrapper > div {
        width: 100%;
    }
}
@media(min-width: 768px) {
}
@media(min-width: 992px) {
    .grid-wrapper {
        justify-content: flex-start;
        padding: 0 var(--col-gap);
    }
    .grid-2 > div {
        width: calc(50% - 20px);
    }
    .grid-3 > div {
        width: calc(33.3333% - 20px);
    }
    .grid-wrapper.grid-information > div:nth-child(1) {
        width: calc(33.3333% - 20px);
    }
    .grid-wrapper.grid-information > div:nth-child(2) {
        width: calc(66.6666% - 20px);
    }
}

/*************************************
HEADER
**************************************/
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    background-color: #fff;
}
header > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}
header nav ul {
    list-style-type: none;
    padding: 0;
    padding: 0 20px;
}
header nav ul li {
    padding: 15px 0;
}
header nav ul li a, header .login, header .login a {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-primary);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

@media(max-width: 991px) {
    header .logo,
    header .nav-right {
        display: none;
    }
    #hamburgher-menu {
        width: 30px;
        height: 20px;
        position: relative;
        transform: rotate(0deg);
        transition: .5s ease-in-out;
        cursor: pointer;
    }
    #hamburgher-menu:after {
        content: '';
        display: block;
        width: 50px;
        height: 50px;
        position: absolute;
        top: -15px;
        left: -10px;
        z-index: -1;
        border-radius: 500px;
        background-color: var(--clr-light);
    }
    #hamburgher-menu span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--clr-primary);
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    #hamburgher-menu span:nth-child(1) {
        top: 0px;
    }
    #hamburgher-menu span:nth-child(2),
    #hamburgher-menu span:nth-child(3) {
        top: 8px;
    }
    #hamburgher-menu span:nth-child(4) {
        top: 16px;
    }
    #hamburgher-menu.open span:nth-child(1) {
        top: 8px;
        width: 0%;
        left: 50%;
    }
    #hamburgher-menu.open span:nth-child(2) {
        transform: rotate(45deg);
    }
    #hamburgher-menu.open span:nth-child(3) {
        transform: rotate(-45deg);
    }
    #hamburgher-menu.open span:nth-child(4) {
        top: 8px;
        width: 0%;
        left: 50%;
    }
    header nav {
        width: 100%;
        height: calc(100svh - 85px);
        margin: 200px 0 0 0;
        position: fixed;
        bottom: 0;
        right: -100%;
        background-color: var(--clr-light);
        text-align: center;
        transition: all 0.4s ease-in-out;
    }
    header nav ul {
        margin-top: 100px;
    }
    header nav.open {
        right: 0;
    }

    header .btn {
        width: 180px;
    }
}

@media(min-width: 992px) {
    header nav ul {
        display: flex;
        align-items: center;
        gap: 20px;
    }
}

@media(min-width: 992px) {
    header .logo-mb,
    header #menu .login,
    header #hamburgher-menu {
        display: none;
    }
    header .logo {
        max-width: 210px;
    }
    header .nav-right {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    header nav ul li {
        padding: 0;
    }
    header nav ul li a, header .login, header .login a, header .btn {
        font-size: 14px;
    }
    header .btn {
        padding: 10px 25px;
    }
}

@media(min-width: 1200px) {
    header nav ul li a, header .login, header .login a {
        font-size: 18px;
    }
}

/*************************************
HERO
**************************************/
@media(max-width: 991px){
    #hero .hero-text {
        text-align: center;
        margin-bottom: var(--section-gap);
    }
    #hero .hero-text h5 {
        font-size: 18px;
        color: var(--clr-primary);
    }
    #hero .hero-text h1, h1 {
        font-size: 40px;
        line-height: 50px;
        margin-bottom: 20px;
        color: var(--clr-primary);
    }
    
    #hero img {
        border-radius: 8px;
    }
}

@media(min-width: 992px){
    #hero {
        position: relative;
    }
    #hero .hero-text {
        color: #fff;
        position: absolute;
        padding: 0 var(--col-gap);
        width: 50%;
        height: 100%;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        z-index: 10;
    }
    #hero .hero-text h5 {
        font-size: 18px;
    }
    #hero .hero-text h1, h1 {
        font-size: 40px;
        margin-bottom: 20px;
    }
    #hero .hero-text p {
        color: #fff;
    }
    
    #hero img {
        border-radius: 16px;
    }
}
@media(min-width: 1200px){
    #hero .hero-text h5 {
        font-size: 25px;
    }
    #hero .hero-text h1, h1 {
        font-size: 70px;
    }
}
/*************************************
SLICK CAROUSEL
**************************************/
.slick-slide {
    height: auto;
}
.content-dots {
    margin-bottom: 15px;
}
.slick-dots {
    position: static;
}
.slick-dots li {
    display: inline-block;
    width: 80px;
    height: 4px;
    margin: 0;
    position: relative;
    background: var(--clr-light);
}
.slick-dots li.slick-active:after {
    content: '';
    width:100%;
    height: 3px;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--clr-primary);

    animation-name: progress;
    animation-timing-function: linear;
    animation-duration: 2600ms;
    animation-delay:0;
}
.slick-dots li button {
    display: none;
}
.slick-dotted.slick-slider {
    margin-bottom: 0;
}
.carousel-default.secondary .slick-dots li.slick-active:after {
    background-color: var(--clr-secondary);
}

@media(min-width: 768px) {
    .carousel-default-only-mb {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .carousel-default-only-mb > .item-slide {
        width: calc(33.33% - 20px);
    }
}
@keyframes progress {
  from { width: 0px;}
  to {width: 100%;}
}
/*************************************
BOX
**************************************/
.box-container {
    overflow: hidden;
    padding: var(--col-gap);
    position: relative;
    border-radius: var(--border-box);
    border: 1px solid var(--clr-primary); 
}
.box-container.is-second-in-home {
    display: block !important;
}
.box-container.gradient  {
    background: var(--gradient-primary); 
}
.box-container.secondary.gradient { 
    background: var(--gradient-secondary); 
}
.box-container.tertiary.gradient { 
    background: var(--gradient-tertiary); 
}
.box-container h4 {
    margin: 0px 0 20px 0;
    text-transform: uppercase;
    text-align: left;
}
.box-container.secondary h4 { 
    color: var(--clr-secondary); 
}
.box-container.tertiary h4 { 
    color: var(--clr-tertiary); 
}
.box-list-full {
    padding-top: 30px;
    padding-bottom: 30px;
}
.box-list-full::after {
    content: '';
    position: absolute;
    bottom: 0 ;
    left: var(--col-gap);
    width: calc(100% - var(--col-gap)*2);
    height: 1px;
    background-color: var(--clr-default);
}
.box-list-full:last-child::after {
    content: none;
}
.numb {
    width: 61px;
    height: 61px;
    font-size: 42px;
    color: #fff;
    background-color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px; 
    margin: 20px 0;
    border: 1px solid var(--clr-secondary)
}
.box-list-full p, .box-list-full li {
    color: var(--clr-primary);
}
.box-list-full ul {
    padding: 0 0 0 20px;
}
.box-event {
    flex-direction: column;
    justify-content: space-between;
    align-items: unset;
}
.box-event .top {
    display: flex;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    margin-bottom: 20px;
    font-size: 24px;
}
.box-event .top:after {
    content: '';
    position: absolute;
    bottom: 0 ;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--clr-primary);
}
.box-event .numb {
    font-size: 32px;
}
.box-event .location {
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 20px;
}
.box-list-full {
    display: flex;
}
.box-list-full .toggle-text  {
    cursor: pointer;
}
.box-list-full h3 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 28px;
    line-height: 32px;
}
.box-list-full .text-1  {
    margin-bottom: -15px;
}
@media (max-width: 767px){
    .box-container .btn {
        width: 100%;
    }
    .box-list-full {
        flex-direction: row-reverse;
    }
    .box-list-full .numb {
        font-size: 32px;
        width: 48px;
        height: 48px;
    }
    .box-list-full > div:last-child {
        flex: 1;
        margin-right: 20px;
    }
    .box-list-full .toggle-text {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 35px;
        line-height: 35px;
        border-radius: 100px;
        border: 1px solid var(--clr-primary);
        margin: 0 auto;
    }
    
    .box-list-full .toggle-text span {
        width: 18px;
        height: 2px;
        background: #000;
        display: block;
    }
    
    .box-list-full .toggle-text span:nth-child(2) {
        position: absolute;
        transform: rotate(90deg);
    }
    
    
    .box-list-full .text-2 {
        display: none;
    }
}
@media (min-width: 768px){
    .grid-wrapper .box-container, 
    .grid-wrapper .box-container.carousel .carousel-default {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .box-container> * {
        width: 100%;
    }
    .box-list-full > div:last-child {
        flex: 1;
        margin-left: 50px;
    }
    .box-list-full h3 {
        font-size: 42px;
        line-height: 50px;
    }

}




/*************************************
BOX AVATAR
**************************************/
.carousel-default.avatar, 
.box-avatar {
    color: var(--clr-primary);
}
.carousel-default.avatar img,
.box-avatar img {
    width: 160px;
    margin-bottom: 10px;
    border-radius: 200px;
}
.carousel-default.avatar .name, 
.box-avatar .name {
    font-size: 16px;
    font-weight: 700;
}
.carousel-default.avatar .job-title,
.box-avatar .job-title {
    font-size: 12px;
    font-weight: 500;
} 
.carousel-default.avatar .abstract, 
.box-avatar .abstract {
    font-size: 16px;
    font-weight: 300;
}/*************************************
NEWS 
**************************************/
.news-content {
    overflow: hidden;
    border-radius: var(--border-box);
    border: 1px solid var(--clr-primary); 
}
.news-content .text {
    padding: 20px;
    font-weight: 700;
}
.news-content .date {
    font-size: 18px;
    margin-bottom: 10px;
}
#news .news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
#news .news-controls .dots-container {
    width: calc(100% - 150px);

}
#news .news-controls .dots-container .slick-dots {
    position: static;
    gap: 20px;
    display: flex
}
#news .news-controls .arrows-container  {
    display: flex;
    gap: 20px;
}
#news .news-controls .slick-arrow {
    position: static;
    width: 50px;
    height: 50px;
    transform: translate(0);
    background-size: contain;
}
#news .news-controls .slick-arrow:before {
    content: none;
}
#news .news-controls .slick-prev {
    background-image: url('../images/icon-prev.svg');
}
#news .news-controls .slick-next {
    background-image: url('../images/icon-next.svg');
}
.news-content.small {
    margin-bottom: 0 ;
}
.news-content.small .item-slide {
    height: 100%;
}
.news-content.small .text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-content.small h3 {
    font-size: 28px;
    line-height: 30px;
}
.news-content.small .btn-container {
    margin-top: 35px;
}
@media(max-width: 767px) {
    .news-content .text {
        text-align: center;
    }
    .news-content .text .btn {
        width: 100%;
    }
}

@media(min-width: 768px) {
    .news-content .item-slide {
        display: flex;
    }
    .news-content .item-slide .image {
        width: 40%;
    }
    .news-content .item-slide .image  img {
        object-fit: cover;
        height: 100%;
        aspect-ratio: 3/1.3;
    
    }
    .news-content .item-slide .text {
        width: 60%;
        padding-left: 50px;
    }
}


#tpl-news-detail .editorial-text {
    margin-top: 50px;
    margin-bottom: 40px;
}

#tpl-news-detail .editorial-text h2, #tpl-news-detail .editorial-text h3, #tpl-news-detail .editorial-text h4 {
    font-size: 38px;
    margin-bottom: 20px;
}

@media(min-width: 768px) {
    #tpl-news-detail {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

/*************************************
NUTRIZIONE
**************************************/
#nutrizione .box-container p {
    color: #000;
}
#nutrizione .tag-content{
    justify-content: flex-start !important;
}
@media(max-width: 767px) {
    #nutrizione .row {
        margin-bottom: 20px;
    }
}
@media(min-width: 768px) {
    #nutrizione .row {
        display: flex;
        
    }
    #nutrizione .row.one {
        flex-direction: row-reverse;
    }
    #nutrizione .row.one > div:nth-child(1) {
        width: 40%;
        padding-left: 40px;
    }
    #nutrizione .row.one > div:nth-child(2) {
        width: 60%;
    }
    #nutrizione .row.two > div:nth-child(1) {
        width: 50%;
        padding: 40px 30px 0 30px;
    }
    #nutrizione .row.two > div:nth-child(2) {
        width: 50%;
        margin-top: -150px;
    }
    #nutrizione  .row.one .content-small {
        width: 70%;
    }
    #nutrizione  .box-container {
        background-color: #fff;
    }
}

/*************************************
NUTRIZIONE CLINICA
**************************************/
#nutrizione-clinica .box-container {
    margin-bottom: 20px;
}
#nutrizione-clinica .box-container ul {
    margin: 20px 0;
    padding: 0;
}
#nutrizione-clinica .box-container ul li {
    list-style: none;
    position: relative;
    padding-left: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}
#nutrizione-clinica .box-container ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 16px;
    height: 16px;
    background-image: url('../images/logo-mb.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
@media(max-width: 767px) {
    #nutrizione-clinica .row {
        margin-bottom: 20px;
    }
}

@media(min-width: 768px) {
    #nutrizione-clinica .row {
        display: flex;
    }
    #nutrizione-clinica .row > div:nth-child(1) {
        order: 2;
        width: 31%;
        position: relative;
        z-index: 1;
        display: flex;
        align-items: end;
        margin: 0 -12px;
    }
    #nutrizione-clinica .row > div:nth-child(2) {
        order: 1;
        flex: 1;
    }
    #nutrizione-clinica .row > div:nth-child(3) {
        order: 3;
        flex: 1;
    }
    #nutrizione-clinica .box-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/*************************************
FOOTER
**************************************/
footer .bg {
    padding: 30px 20px;
    color: #fff;
    border-top-right-radius: var(--border-box);
    border-top-left-radius: var(--border-box);
    background-color: var(--clr-primary);
}
footer p {
    font-size: 15px;
    color: #fff;
}
footer .logo {
    width: 150px;
    margin-bottom: 20px;
}
footer ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
footer ul li {
    padding-bottom: 10px;
}
footer ul li a {
    text-decoration: none;
}

#footer-ancor {
    margin-left: 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
    padding: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--clr-light);
    border-top-right-radius: var(--border-box);
    border-top-left-radius: var(--border-box);
}

#footer-ancor > div {
    width: 33.3333333%;
    text-align: center;
    font-size: 12px;
    color: #000;
}
#footer-ancor img {
    width: 40px;
    margin: 0 auto 10px auto;
}

@media(max-width: 767px) {
    footer .bg > div:first-child {
        text-align: center;
        margin-bottom: 40px;
    }
    
    footer {
        margin-bottom: 120px;
        border-radius: 8px;
    }
}
@media(min-width: 768px) {
    footer .bg {
        padding: 70px;
        display: flex;
        justify-content: space-between;
    }
    footer .bg > div:first-child {
        max-width: 600px;
    }
    footer ul {
        text-align: right;
    }
}

.last-on-flex {
    margin-top: auto;
}