* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html {
    font-size: 62.5%; 
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: black;
    position: relative;
}

h1 {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: white;
    font-size: clamp(3.8rem, 5vw + 1rem, 5.6rem);
}
h2 {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
    color:#0075DB;
    font-size: clamp(2.4rem, 3vw + 1rem, 3.8rem);
    text-transform: uppercase;
}
h3 {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
    color:#0075DB;
    font-size: clamp(2.0rem, 2vw + 1rem, 2.6rem);
}
p, a {
    font-weight: 300;
    font-size: clamp(1.65rem, 2.5vw, 1.9rem);
}

a {
    text-decoration: none;
}

header {
    display: flex;
    flex-direction: row;
    position: absolute;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    width: 100%;
    gap: 3rem;

}
header img {
    width: 100%;
}

.logo-left, .logo-right {
    width: 20%;
    height: auto;
    text-align: center;
}

.logo-main {
    width: 80%;
    height: auto;
    text-align: center;
}

.logo-main img {
    max-width: 540px;
}
.logo-left img, .logo-right img {
    max-width: 190px;
}

.hero {
    width: 100%;
    height: 100dvh;
    background-color: #00529A;
    background-image: url(img/albergo-centrale-hero-full-maxsize.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20rem 2rem 2rem 2rem;
    gap: 1rem;
    text-align: center;
}
.hero p {
    color: white;
}
.subtitle {
    font-size: clamp(2.2rem, 3vw + 1rem, 3.0rem);
}

.buttons {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 4rem;
    padding-top: 4rem;
    justify-content: center;
}

.primary-button {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1em;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2.2em;
    border-radius: 4px;
    background-color: #0075DB;
    font-size: clamp(1.1rem, 2.0vw, 1.8rem);
}
.secondary-button {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1em;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2.2em;
    border-radius: 4px;
    background-color: white;
    font-size: clamp(1.1rem, 2.0vw, 1.8rem);
}
.alt-button {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1em;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2.2em;
    border-radius: 4px;
    background-color: #00529A ;
    font-size: clamp(1.1rem, 2.0vw, 1.8rem);
}

.buttons * {
    font-weight: 400;
}

.primary-button p {
    color: white;
}
.secondary-button p {
    color: #0075DB;
}
.alt-button p {
    color: white;
}

.primary-button img, .secondary-button img, .alt-button img {
    width: 1em;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 8rem 0;
    text-align: center;
    max-width: 1480px;
}

.about {
    display: flex;
    flex-direction: row;
    gap: 6rem;
    align-items: center;
}
.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}
.about-text h3 {
    margin-top: 1rem;
}
.about-text, .main-slider {
    width: 50%;
}

.main-slider {
    border-radius: 2rem;
    overflow: hidden;
}
swiper-slide img {
    object-fit: cover;
    width: 100%;
    height: 600px;   
}
div.swiper-pagination {
    margin-top: 40px !important;
}
.promo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 2rem;
    background: linear-gradient(90deg,rgba(0, 136, 255, 1) 0%, rgba(0, 82, 154, 1) 100%);
    padding: 4rem;
    text-align: center;
    margin-top: 10rem;
}
.logo-olimpiadi{
    margin-top: -12rem;
    margin-bottom: 4rem;
    max-width: 250px;
    width: 40vw;
    border-radius: 100%;
    border: 4px solid transparent;
    background: linear-gradient(to right, #0088FF, #00529A) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
}
.promo h3 {
    color: white;
    padding: 0 2rem;
}
.gallery {
    background-color: #00529A;
    width: 100%;
    margin-top: 8rem;
    padding: 2rem 0rem;
}   
.gallery h2 {
    color: white;
    margin-bottom: 4rem;
}
.gallery-items {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
}
.gallery-items a {
    width: 30%;
}
.gallery-items img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}
.skiarea {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 4rem;

}
.skiarea .abstract{
    color: #0075DB;
}
.img-map {
    width: 100%;
}
.cta {
    width: 100%;
    background: linear-gradient(90deg,rgba(0, 136, 255, 1) 0%, rgba(0, 82, 154, 1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    min-height: 45vh;
    gap: 2rem;
}
.cta h3 {
    color: white;
    font-size: clamp(2.4rem, 3vw + 1rem, 3.2rem);
    text-align: center;
}

footer {
    display: flex;
    flex-direction: column;
    background-color: #E4E4E4;
    width: 100%;
    justify-content: center;
}
.main-footer {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 10rem 4rem;
    gap: 4vw;
}
.item1 {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: center;
}
.item2 {
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3.8vw;
}
.item2 h3 {
    font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem);
}
.item2 p, .item2 a {
    font-size: clamp(1.7rem, 2.5vw, 1.7rem);
}
.item1 img {
    width: 100%;
    max-width: 480px;
}
.yes-alps {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}
.yes-alps img{
    width: 30%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
}
.yes-alps p {
    width: 60%;
    font-size: clamp(.8rem, 2.5vw, 1.4rem);
}
.indirizzo, .contatti {
    display: flex;
    flex-direction: column;
}
.indirizzo h3, .contatti h3{
    margin-bottom: 1.6rem;
}

.contatti a img {
    width: 1em;
    margin-right: .5rem;
}
.contatti a {
    color: black;
}
.secondary-footer{
    width: 100%;
    background-color: #BEBEBE;
    padding: 2rem 4rem;
}
.secondary-footer p {
    text-align: center;
    font-size: clamp(.8rem, 2.5vw, 1.4rem);
}
.secondary-footer a {
    text-align: center;
    font-size: clamp(.8rem, 2.5vw, 1.4rem);
    color: #00529A;
    font-weight: 500;
}
.swiper-pagination-bullet-active {
    background: #ffffff !important;
    opacity: var(--swiper-pagination-bullet-opacity, 1);
}
swiper-container::part(bullet-active) {
    background-color: white !important;
    opacity: 1;
}
swiper-container::part(bullet) {
    background-color: black !important; 
    opacity: 0.5;
}
swiper-container::part(button-next), swiper-container::part(button-prev) {
    color: white;
}

.indirizzo a {
    color: #00529A;
    font-weight: 500;
}


.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .fade-up.show {
    opacity: 1;
    transform: translateY(0);
  }
  button {
    border: none;
    cursor: pointer;
}

  .popup {
    display: none;
  }
  .popup.active {
    display: block;
    position: absolute;
    text-align: center;
    background-color: #0000008f;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}
  .popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 600px;
    height: 42vh;
    max-height: 400px;
    background: linear-gradient(90deg,rgba(0, 136, 255, 1) 0%, rgba(0, 82, 154, 1) 100%);
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 4rem;
    color: white;
    gap: 1rem;
    padding: 4rem;
    z-index: 99;
  }
  .popup-content > img {
    width: 20px;
    cursor: pointer;
    position: absolute;
    top: 8%;
    right: 8%;
  }

  .popup-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .popup-contact a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
}
  .popup-contact a img {
    width: 1.2em;
    margin-right: 1rem;
    object-fit: contain;
}
  .popup-contact a p {
    color: white;
    font-weight: 500;
}

  .popup-content h3 {
    color: white;
  }
  
  .popup.deactivate {
    display: none;
  }
  body.no-scroll {
    overflow: hidden;
}
body.no-scroll {
    overflow: hidden;
}

.hidden-image {
    display: none;
}
.popup-content .logo-main img {
    max-width: 88%;
    text-align: center;
}
.popup-content .logo-main{
    margin: 1rem auto;
}


@media only screen and (max-width:1157px){
    .main-footer {
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 4rem;
    }
    .item1, .item2 {
        width: 100%;
    }
}
@media only screen and (max-width:1024px){
    .logo-left{
        order: 1;
    }
    .logo-right{
        order: 2;
    }
    .buttons {
        gap: 2rem;
    }
    .about {
        flex-direction: column;
    }
    .about-text, .main-slider {
        width: 100%;
        text-align: center;
    }
    .container {
        padding: 5rem 0;
    }
    .skiarea {
        gap: 2rem;
    }
}
@media only screen and (max-width:768px){
    /* .hero {
        background-image: url(img/albergo-centrale-hero-full-minsize.webp);
    } */
    .gallery-items a {
        width: 45%;
    }
}
@media only screen and (max-width:576px){
    .hero {
        background-image: url(img/albergo-centrale-hero-full-minsize.webp);
    }
    .item2 {
        flex-direction: column;
        text-align: center;
    }
    .secondary-footer{
        padding: 1rem 2rem;
        text-decoration: none;
        color: black;
    }
    swiper-slide img {
        height: 380px;   
    }
    .buttons {
        flex-direction: column;
        padding-top: 2.5rem;
        justify-content: center;
    }
    .buttons a, .buttons button {
        max-width: 60vw;
        margin: auto;
    }
    .logo-olimpiadi {
        margin-bottom: 2.5rem;
    }
    .gallery-items a {
        width: 88%;
    }
}