body {
    overflow-x: hidden!important;
}

.owl-stage-outer {
    overflow: hidden!important;
}

.zony-editor .flex-lg-row-reverse .image-box img {
    float: unset;
}

.zony-editor .image-box img{
    max-width: 100%;
}

.zony-editor .flex-lg-row-reverse .content_block_1 .content-box {
    margin-left: 0;
    margin-right: 40px;
}

.zony-editor > .auto-container .row {
    padding-bottom: 40px;
}

.zony-editor > .auto-container .row + .row {
    padding-top: 40px;
}

.news-section .shape {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}

.banner-style-two .pattern-layer {
    height: 110%;
}

.mb-40 {
    margin-bottom: 40px;
}

.news-section h2, .bold-h2 {
    font-size: 40px;
    line-height: 55px;
    font-weight: 700;
}

.news-block-one .inner-box {
    background-color: transparent;
}

.main-menu .navigation > li > ul > li > a:hover {
    color: #fff;
    font-weight: 700;
}

p {
    position: relative;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #2a2a2a;
    font-weight: 400;
    margin: 0px;
    transition: all 500ms ease;
    font-size: 18px;
    line-height: 25px;
}

.page-title * {
    color: #fff!important;
}

.page-title .bread-crumb li:before {
    background-color: #fff;
}

.zony-editor .col-md-4 {
    margin-bottom: 30px;
}

.zony-editor .video-inner .inner-box {
    position: relative;
    width: 100%;
    padding: 135px 0px;
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.zony-editor .video-inner {
    position: relative;
    width: 100%;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0px 20px 50px 0px rgb(0 0 0 / 10%);
}

.zony-editor .video-inner .inner-box:before {
    position: absolute;
    content: '';
    background-color: #172746;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    opacity: 0.2;
}

.zony-editor .video-inner .inner-box .video-btn a {
    position: relative;
    display: inline-block;
    font-size: 40px;
    color: #fff;
    width: 120px;
    height: 120px;
    line-height: 108px;
    border: 10px solid #fff;
    border-radius: 50%;
}

.zony-editor .video-inner .inner-box .video-btn a:after, .zony-editor .video-inner .inner-box .video-btn a:before {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation-delay: .9s;
    animation-delay: .9s;
    content: "";
    position: absolute;
    -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
    -webkit-animation: ripple 3s infinite;
    animation: ripple 3s infinite;
    -webkit-transition: all .4s ease;
    transition: all .4s ease;
}

.col-auto-center {
    margin: 0 auto;
}

.main-footer .contact-widget .info-list li i, .footer-bottom .copyright p a {
    color: #fff;
}

.contact-style-two {
    padding-bottom: 0;
}

.button-lang-desktop {
    display: none!important;
}

.button-lang-mobile {
    display: inline!important;
}

@media screen and (max-width: 1201px){
    .button-lang-mobile {
        display: none!important;
    }

    .button-lang-desktop {
        display: inline!important;
    }

    .button-lang-desktop .fi {
        font-size: 19px;
        padding: 9px;
    }

    .outer-box {
        display: flex!important;
    }

    .outer-box .logo-box {
        width: 60%;
    }

    .main-header .nav-right{
        position: relative;
        padding: 0px;
        z-index: 1;
    }

    .outer-box .menu-area {
        width: auto!important;
    }


    iframe {
        min-height: 400px;
    }
}

@media screen and (max-width: 991px){
    .video-gallery {
        margin-bottom: 40px;
    }

    .auto-container {
        max-width: 760px;
    }

    .main-header .logo-box .logo img {
        width: auto;
        max-height: 90px;
    }
}

@media screen and (max-width: 768px){
    .zony-editor > .auto-container .row {
        padding-bottom: 20px;
    }

    .zony-editor > .auto-container .row + .row {
        padding-top: 20px;
    }

    .content_block_1 .content-box .text {
        margin-bottom: 10px;
    }

    .gallery-block-one .inner-box {
        margin-bottom: 0;
    }

    .text-slider {
        display: none;
    }
}

.banner-carousel .slide-item {
    min-height: 60vh;
}

.footer-logo img {
    max-width: 250px;
}

.news-block-one h4 {
    min-height: 80px;
}

.news-block-one .text {
    min-height: 140px;
}

.partner img {
    max-height: 150px;

}

.partner figure {
    text-align: center;
    min-height: 150px;
}

.partner-link {
    color: #172746;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    margin-top: 20px;
    display: block;
    text-transform: uppercase;

}

.text-slider *{
    font-size: 1.2rem !important;
}


.row-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    column-gap: 25px;
    grid-template-rows: masonry;
}

.row-masonry img + p {
    margin-top: 15px;
}

@media screen and (max-width: 991px){
    .row-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-block-one .inner-box .lower-content {
        padding: 40px 5px;
    }
}

@media screen and (max-width: 678px){
    .row-masonry {
        grid-template-columns: repeat(0);
        display: inline;
    }
}

.landscape {
    grid-column-end: span 2;
}

.icon-play {
    position: absolute;
    width: 100px;
    left: 50%;
    margin-left: -50px;
    top: 50%;
    margin-top: -50px;
}

.mb-25 {
    margin-bottom: 25px;
}

.landscape > div {
    margin-bottom: 25px;
    position: relative;
    height: calc(100% - 30px);
}

.landscape > div > .img-fluid {
    height: 100%;
    object-fit: cover;
}

.btn-box-social {
    text-align: center;
    margin-top: 40px;

}

.h2-icon {
    height: 100px;
    margin-right: 20px;
    margin-top: -25px
}


.nome-insegnante, .partner-block-one h4 {
    min-height: auto!important;
}

.insegnante .text, .partner-block-one .text {
    min-height: auto!important;
    margin-top: 30px;
}

.partner-block-one .inner-box .image-box{
    background-color: transparent!important;
    padding: 20px;
}

.img-300 {
    max-width: 300px;
}

.top-20 {
    margin-top: 20px;
}

.top-40 {
    margin-top: 40px;
}

.top-content {
    padding: 10px 30px;
    background-color: #001a56;
}

.top-content .nav {
    flex-direction: row-reverse;
}

.top-content .nav li a{
    margin-left: 10px;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #ffffff;
}

.top-content .nav li .fa-solid {
    margin-right: 10px;
}

form .theme-btn {
    padding: 10.5px 30px;
    color: #172746 !important;
    padding: 13px 34px;
    border: 2px solid #efefef;
    background-color: transparent;
    margin-right: 20px;
} 

form input.form-control {
    padding: 5px 20px;
    color: #172746 !important;
    padding: 13px 34px;
    background-color: transparent;
    border-radius: 0;
    height: 49px;
}

form a {
    color: #243350
}

.card-cartella {
    border-radius: 0;
    border: 0;
    background-color: #D2B48C
}

.card-cartella  * {
    color: #ffffff;
    font-weight: 700;
}

.card-viaggio {
    border-radius: 0;
    border: 0;
    box-shadow: 1px 1px 10px 1px #0000007d;
    background-color: #fff;
}

.card-viaggio .title {
    position: absolute;
    bottom: 12px;
    left: 25px;
    background-color: #ffffff;

    padding: 10px;
}

.card-viaggio .title span {
    color: #000000;
}

.col-mb-20 + .col-mb-20 {
    margin-top: 20px;
}



/* ============================================================
   Griglie di card (news, corsi, articoli, partner, insegnanti)
   Il markup e' lo stesso ovunque:
   .row > .col-* > .news-block-one > .inner-box > figure + .lower-content
   ============================================================ */

/* Le card di una stessa riga arrivano tutte alla stessa altezza. */
.news-section .row > [class*="col-"] {
    display: flex;
}

.news-section .row > [class*="col-"] > .news-block-one {
    display: flex;
    width: 100%;
    margin-bottom: 30px;            /* spazio fra una riga e l'altra */
}

.news-block-one .inner-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Il testo occupa lo spazio che avanza, cosi' i pulsanti restano
   allineati in basso anche con testi di lunghezza diversa. */
.news-block-one .inner-box .lower-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.news-block-one .inner-box .lower-content .btn-box {
    margin-top: auto;
}

/* Proporzione fissa per le immagini: quelle caricate sono quadrate,
   quindi 1:1 non taglia praticamente nulla e uniforma la griglia. */
.news-block-one .inner-box .image-box img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* I loghi dei partner non vanno ritagliati: si adattano dentro il
   riquadro mantenendo le proporzioni originali. */
.partner-block-one .inner-box .image-box img {
    object-fit: contain;
    background-color: #fff;
    padding: 20px;
}


/* ============================================================
   Segnaposto della mappa, mostrato finche' mancano i consensi
   ============================================================ */
.mappa-consenso {
    position: relative;
    width: 100%;
}

.mappa-consenso__segnaposto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 450px;
    padding: 30px;
    text-align: center;
    background-color: #f2f2f2;
    border: 1px solid #e2e2e2;
}

.mappa-consenso__testo {
    margin: 0;
    max-width: 46ch;
    color: #555;
}

.mappa-consenso__link {
    font-size: 14px;
    text-decoration: underline;
    color: #555;
}

.mappa-consenso iframe {
    display: block;
    width: 100%;
}


/* ============================================================
   Galleria social: icone Instagram/Facebook al posto del titolo
   ============================================================ */

/* L'immagine e' passata dentro il link della lightgallery, che ora
   sta un livello piu' in basso: queste regole rimpiazzano
   .landscape > div > .img-fluid per la nuova struttura. */
.landscape > div > a {
    display: block;
    height: 100%;
}

.landscape > div > a > .img-fluid {
    height: 100%;
    object-fit: cover;
}

.post-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 15px;
    margin-bottom: 0;
}

.post-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f2f2f2;
    color: #333;
    font-size: 17px;
    transition: background-color 200ms ease, color 200ms ease;
}

.post-social__link:hover,
.post-social__link:focus {
    background-color: #333;
    color: #fff;
}
