:root {
    --g: #094438;
    --o: #f99a1c;
    --b: #f3f0e8;
    --i: #17211e;
    --w: #fff;
    --line: rgba(9, 68, 56, 0.22);
    --font: "Gotham", "Montserrat", Arial, sans-serif;
    --serif: "Gotham", "Montserrat", Arial, sans-serif;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: var(--i);
    font: 16px var(--font);
    background: #fbfaf6;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    font-weight: 700;
}
.green {
    color: var(--g);
}
em {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.045em;
}
.home {
    background: var(--g);
}
.home #system-message-container {
    position: absolute;
}
.split {
    height: 100svh;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}
.side {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.side:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 25, 20, 0.1), rgba(2, 25, 20, 0.72));
}
.side:first-child {
    border-right: 1px solid #ffffff88;
}
.side.hotel {
    background-image: url("https://www.hotelalegra.it/images/slider/hotel-alegra/estate/hotel-alegra-livigno.jpg");
}
.side.restaurant {
    background-image: url("https://www.hotelalegra.it/images/slider/ristorante/ristorante-alegra.jpg");
}
.side > a {
    position: absolute;
    z-index: 2;
    inset: 0;
    color: white;
    padding: 9vh 6vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background ease-out 0.5s;
}
.side > a:hover {
    background: rgb(9, 68, 56, .3);
    color: white;
}
.side h1 {
    font-size: clamp(4rem, 8.7vw, 9rem);
    letter-spacing: -0.07em;
    line-height: 0.9;
    margin: 0.65rem 0 1rem;
}
.side p {
    line-height: 1.55;
}
.side i {
    position: absolute;
    right: 5vw;
    bottom: 8vh;
    width: 62px;
    height: 62px;
    border: 1px solid white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-style: normal;
    transition: 0.3s;
}
.side:hover i {
    background: white;
    color: var(--g);
    transform: rotate(45deg);
}
.home-logo {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 5vh;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.home-logo img {
    width: 105px;
    margin-bottom: 0.8rem;
}
.home-foot {
    position: absolute;
    z-index: 5;
    bottom: 2.5vh;
    left: 3vw;
    right: 3vw;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
header {
    height: 88px;
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 3vw;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    color: white;
    border-bottom: 1px solid #ffffff55;
}
header img {
    width: 82px;
}
header nav > ul {
    display: flex;
    gap: 2rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0;
    list-style: none;
}
a {
    transition: color ease-out 0.2s;
}
a:hover {
    color: var(--o);
}
header > div {
    justify-self: end;
    font-size: 0.68rem;
    text-transform: uppercase;
}
header > div > .mod-custom {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}
#prenota-btn.scrolled {
    position: fixed;
    width: max-content;
    right: 3vw;
}
.btn {
    display: inline-flex;
    background: var(--g);
    color: white;
    border: 1px solid var(--g);
    padding: 1.1rem 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    font-weight: 700;
    transition: ease-out 0.2s;
}
.hide-btn {
    transform: translateX(150%);
}
.btn.light {
    background: white;
    color: var(--g);
    border-color: white;
}
.btn.light:hover {
    color: var(--o);
}
.btn.outline {
    background: transparent;
    border-color: white;
}
.hero {
    height: 100svh;
    min-height: 680px;
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
}
.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #051d18b5, #051d1810 75%), linear-gradient(0deg, #051d1844, transparent 45%);
}
.hotel-hero {
    background-image: url("https://www.hotelalegra.it/images/slider/hotel-alegra/estate/hotel-alegra-livigno.jpg");
}
.restaurant-hero {
    background-image: url("https://www.hotelalegra.it/images/slider/ristorante/ristorante-alegra.jpg");
}
.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-copy {
    position: absolute;
    z-index: 2;
    left: 7vw;
    bottom: 13vh;
}
.hero h1 {
    font-size: clamp(4.3rem, 9vw, 9rem);
    line-height: 0.88;
    letter-spacing: -0.065em;
    margin: 1.2rem 0 1.5rem;
}
.hero-copy p {
    font-size: 1.08rem;
}
.scroll {
    position: absolute;
    z-index: 2;
    right: 4vw;
    bottom: 4vh;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.philosophy {
    padding: 10rem 7vw;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8vw;
    background: var(--b);
}
.philosophy > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
.philosophy > div:first-child b {
    font-size: 4rem;
    color: var(--g);
}
h2 {
    font-size: clamp(3.4rem, 6.8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin-bottom: 2.5rem;
}
.philosophy p {
    max-width: 42rem;
    font-size: 1.15rem;
    line-height: 1.8;
}
.text-link {
    display: inline-block;
    color: var(--g);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid;
    padding-bottom: 0.4rem;
    font-weight: 700;
}
.dark {
    background: var(--g);
    color: white;
}
.rooms,
.services,
.gallery {
    padding: 9rem 5vw;
}
.title {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: end;
    margin-bottom: 4rem;
}
.title h2 {
    grid-column: 2;
    margin: 0;
}
.room > article {
    width: 100%;
    height: 100%;
}
.room-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.3rem;
}
.room {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    color: white;
}
a.room::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--g);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
}
a.room:hover {
    color: white;
}
a.room:hover::before {
    opacity: 0.3;
}
.page-room + .rooms {
    background: var(--b);
}
#rooms .room-grid > .room:first-child,
#camere .room-grid > .room:first-child {
    grid-row: span 2;
    min-height: 900px;
}
.room img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.room:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000b, transparent 55%);
}
.room > article > div {
    position: absolute;
    z-index: 2;
    left: 2rem;
    bottom: 2rem;
}
.room h3 {
    font-size: 2.6rem;
    margin: 0.5rem 0;
}
.rooms > .btn {
    margin-top: 2rem;
}
.reviews {
    padding: 9rem 7vw;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 10vw;
    align-items: center;
}
.review-box {
    border-block: 1px solid var(--line);
    padding: 2rem 0;
}
.review-box > span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--g);
}
.review-box p {
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 2rem 0;
}
.location,
.season {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 780px;
}
.location-img {
    height: 100%;
    object-fit: cover;
}
.location-copy,
.season-copy {
    padding: 7rem 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.location-copy > p,
.season-copy > p {
    line-height: 1.7;
}
.location ul {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    border-top: 1px solid #ffffff55;
}
.location li {
    display: flex;
    justify-content: space-between;
    padding: 1.1rem 0;
    border-bottom: 1px solid #ffffff55;
    font-size: 0.78rem;
}
.location .btn {
    align-self: flex-start;
}
.services {
    background: var(--b);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}
.service-grid article {
    padding: 2rem;
    border-right: 1px solid var(--line);
}
.service-grid b {
    color: var(--g);
    font-size: 0.65rem;
}
.service-grid h3 {
    margin: 3rem 0 1rem;
}
.service-grid p {
    font-size: 0.85rem;
    line-height: 1.6;
}
.season-img {
    background: url("https://www.hotelalegra.it/images/slider/hotel-alegra/inverno/hotel-alegra-livigno.jpg")
        center/cover;
}
.toggle {
    display: flex;
    margin-top: 3rem;
}
.toggle button {
    flex: 1;
    padding: 1.3rem;
    border: 0;
    border-block: 1px solid #ffffff55;
    background: transparent;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    font-family: "Gotham", "Montserrat", Arial, sans-serif;
    font-weight: 500;
    transition: color ease-out 0.2s;
}
.toggle button:hover {
    color: var(--o);
}
.toggle .active {
    background: var(--b);
    color: var(--g);
}
.cta {
    text-align: center;
    padding: 9rem 2rem;
    background: var(--b);
}
.menu {
    padding: 9rem 7vw;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 9vw;
}
.menu-list article {
    display: grid;
    grid-template-columns: 3rem 1fr;
    border-top: 1px solid #ffffff55;
    padding: 1.4rem 0;
}
.menu-list h3 {
    margin: 0 0 0.5rem;
}
.menu-list p {
    font-size: 0.82rem;
    opacity: 0.8;
}
.gallery {
    display: grid;
    align-items: center;
    grid-template-rows: repeat(2,570px);
    gap: 1.2rem;
    background: var(--b);
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery .wide {
    grid-column: 2/4;
}
.reserve {
    padding: 9rem 7vw;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 10vw;
    align-items: center;
}
.reserve-card {
    background: var(--b);
    padding: 3rem;
}
.reserve-card > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--line);
    padding: 1.3rem 0;
}
.reserve-card span {
    font-size: 0.65rem;
    text-transform: uppercase;
}
.reserve-card b {
    color: var(--g);
    font-size: 1.2rem;
}
.reserve-card .btn {
    margin-top: 1.5rem;
}
footer {
    background: var(--g);
    color: white;
    padding: 5rem;
    font-size: 0.75rem;
    line-height: 1.8;
}
.footer > .mod-custom {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 3rem;
}
footer img {
    width: 95px;
}
footer a {
    display: block;
}
/* camere */
.hero.hero-room {
    height: 75svh;
}
.page-room {
    padding: 9rem 7vw;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 9vw;
    align-items: center;
}
.margin-top {
    margin-top: 2.2em;
}
.rooms-gallery .uk-thumbnav a {
    display: block;
}
.rooms-gallery .uk-thumbnav img {
    width: 100%;
}
.rooms-gallery .uk-scope .uk-thumbnav > * > * {
    opacity: 0.3;
}
.uk-scope .uk-thumbnav > * > a:hover {
    opacity: 0.5;
}
.rooms-gallery .uk-scope .uk-thumbnav > li:not(.uk-active) > :hover::after,
.rooms-gallery .uk-scope .uk-thumbnav > .uk-active > *,
.rooms-gallery .uk-scope .uk-thumbnav > .uk-active > a:hover {
    opacity: 1;
}
.rooms-gallery .uk-scope .uk-thumbnav > * > ::after {
    background: var(--b);
    mix-blend-mode: color;
}
.rooms-gallery .uk-scope .uk-thumbnav {
    flex-wrap: nowrap;
    gap: 15px;
    margin-left: 0;
}
.rooms-gallery .uk-scope .uk-thumbnav > * {
    padding: 0;
    width: 100%;
}
.rooms-gallery .uk-scope * + .uk-margin {
    margin-bottom: 0;
}
/* review */
.bottom {
    padding: 6rem 2rem;
}
.review-container {
    margin: 2.5rem 0;
}

@media (max-width: 800px) {
    .split {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .side:first-child {
        border-right: 0;
        border-bottom: 1px solid #ffffff88;
    }
    .side > a {
        padding: 3rem 1.4rem 2rem;
    }
    .side h1 {
        font-size: 3.7rem;
    }
    .side i {
        right: 1.5rem;
        bottom: 2rem;
        width: 48px;
        height: 48px;
    }
    .home-logo {
        top: 1.2rem;
    }
    .home-logo img {
        width: 70px;
    }
    .home-logo span,
    .home-foot {
        display: none;
    }
    header {
        height: 74px;
        padding: 0 1.2rem;
        grid-template-columns: 1fr auto;
    }
    header nav,
    header > div > a:first-child {
        display: none;
    }
    #prenota-btn.scrolled {
        right: 1.2rem;
    }
    .hero-copy {
        left: 1.4rem;
        right: 1.4rem;
    }
    .hero h1 {
        font-size: 3.8rem;
    }
    .philosophy,
    .reviews,
    .menu,
    .reserve,
    .page-room {
        grid-template-columns: 1fr;
        padding: 6rem 1.4rem;
    }
    .philosophy > div:first-child {
        gap: 2rem;
    }
    h2 {
        font-size: 3.3rem;
    }
    .rooms,
    .services,
    .gallery {
        padding: 6rem 1.4rem;
    }
    .title {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .title h2 {
        grid-column: 1;
    }
    .room-grid {
        grid-template-columns: 1fr;
    }
    .room,
    #camere .room-grid > .room:first-child {
        min-height: 520px;
        grid-row: auto;
    }
    .location,
    .season {
        grid-template-columns: 1fr;
    }
    .location-img,
    .season-img {
        min-height: 58vh;
    }
    .location-copy,
    .season-copy {
        padding: 5rem 1.4rem;
    }
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery > div,
    .gallery > img,
    .gallery > .wide {
        grid-column: 1/3;
    }
    footer {
        padding: 4rem 1.4rem;
    }
    .footer > .mod-custom {
        grid-template-columns: 1fr 1fr;
    }
    /* camere */
    .page-room {
        gap: 6rem;
    }
    .detail-room {
        order: -1;
    }
}
@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto repeat(3, 250px);
    }
    .gallery > div,
    .gallery > img,
    .gallery .wide {
        grid-column: 1;
    }
    .footer > .mod-custom {
        grid-template-columns: 1fr;
    }
}