:root {
    --olive: #889977;
    --olive-dark: #446633;
    --olive-light: #99aa55;
    --paper: #f9faf4;
    --mist: #f8f8f8;
    --line: #e8e8e8;
    --ink: #171a1f;
    --muted: #6e6e6e;
    --blue: #60b5d3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--olive-dark);
    background: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

img { display: block; max-width: 100%; object-fit: cover; }
#contenuto { scroll-margin-top: 210px; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    margin: 0;
    color: var(--olive);
    font-family: "Varela Round", Inter, sans-serif;
    font-weight: 700;
    line-height: 1.18;
}

p { margin: 0; }

.container {
    width: min(100% - 32px, 1440px);
    margin-inline: auto;
}

.container.slim { width: min(100% - 32px, 1040px); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #e5e7d9;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 16px 10px;
}

.brand img { width: clamp(178px, 18vw, 250px); height: auto; }

.header-actions {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-items: end;
    gap: 8px 18px;
}

.rate-line {
    color: var(--olive);
    font-family: "Varela Round", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
}

.flags { display: flex; gap: 8px; }
.flags a { display: block; opacity: .72; }
.flags a.is-active { opacity: 1; outline: 1px solid var(--olive); outline-offset: 2px; }
.flags img { width: 32px; height: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.16); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 26px;
    border: 0;
    border-radius: 0;
    font-family: "Varela Round", sans-serif;
    font-size: 15px;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background .2s ease, opacity .2s ease, transform .2s ease;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: #778866; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #50a5c3; }
.btn-book { grid-column: 1 / -1; min-width: 170px; }
.btn-back-wide {
    display: flex;
    width: 100%;
    margin-top: 28px;
    text-align: center;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px;
}
.menu-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    background: var(--olive-dark);
    margin: 5px 0;
}

.main-nav { padding-bottom: 16px; }
.main-nav ul {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav a {
    position: relative;
    display: block;
    color: var(--olive-light);
    font-family: "Varela Round", sans-serif;
    font-size: 15px;
    text-transform: uppercase;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--olive);
    transition: width .2s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(420px, 52vw, 762px);
    overflow: hidden;
}
.hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.10);
}
.hero.hero-plain {
    min-height: 550px;
}
.hero.hero-room {
    min-height: 550px;
}
.hero:not(.hero-plain):not(.hero-room) {
    min-height: 550px;
}
.hero-plain::after { display: none; }
.hero-copy {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 620px);
    margin-left: max(16px, calc((100vw - 1440px) / 2 + 48px));
    padding: clamp(28px, 5vw, 64px);
    background: rgba(255,255,255,.68);
    backdrop-filter: blur(8px);
}
.hero-copy h1 { font-size: clamp(28px, 4vw, 40px); color: var(--olive); }
.hero-copy p {
    margin-top: 14px;
    font-family: "Varela Round", sans-serif;
    font-size: clamp(18px, 2.2vw, 24px);
}

.home-slider {
    position: relative;
    min-height: 550px;
    overflow: hidden;
    background: #d9d2bd;
}

.home-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}

.home-slider:not(.is-ready) .home-slide:first-child,
.home-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.home-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.08);
}

.home-slide .hero-copy {
    z-index: 1;
    width: 450px;
    min-height: 180px;
    padding: 35px;
    background: rgba(255,255,255,.72);
}

.home-slide .hero-copy h1 {
    font-size: 34px;
    font-weight: 700;
}

.home-slide .hero-copy p {
    font-size: 20px;
}

.hero-room .hero-copy {
    width: 450px;
    min-height: 180px;
    padding: 35px;
    background: rgba(255,255,255,.72);
}

.hero-room .hero-copy h1 {
    font-size: 34px;
    font-weight: 700;
}

.hero-room .hero-copy p {
    font-size: 20px;
}

.hero:not(.hero-plain):not(.hero-room) .hero-copy {
    width: 450px;
    min-height: 180px;
    padding: 35px;
    background: rgba(255,255,255,.72);
}

.hero:not(.hero-plain):not(.hero-room) .hero-copy h1 {
    font-size: 34px;
    font-weight: 700;
}

.hero:not(.hero-plain):not(.hero-room) .hero-copy p {
    font-size: 20px;
}

.slider-dots {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.slider-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
}

.slider-dots button.is-active {
    background: #fff;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.soft, .soft { background: var(--paper); }
.section h2 { margin-bottom: 34px; font-size: clamp(25px, 3vw, 38px); }
.centered { text-align: center; }

.rich-text {
    display: grid;
    gap: 20px;
    font-family: "Varela Round", sans-serif;
    font-size: clamp(16px, 1.7vw, 18px);
}
.rich-text strong { font-weight: 700; }

.home-intro .logo-intro {
    width: min(300px, 58vw);
    margin: 0 auto 44px;
}

.alternating { background: var(--paper); }
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media img { width: 100%; height: 100%; min-height: 420px; }
.feature-content {
    display: grid;
    align-content: center;
    gap: 24px;
    padding: clamp(34px, 6vw, 96px);
}
.feature-content h2 { font-size: 25px; }
.feature-content .rich-text { max-width: 620px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--line);
}
.card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 24px 24px 0;
}
.card-image img { width: 100%; height: 100%; transition: transform .35s ease; }
.info-card:hover .card-image img { transform: scale(1.045); }
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
    padding: 24px 28px 28px;
}
.card-body h3 {
    color: #424242;
    font-family: Cormorant, serif;
    font-size: 26px;
}
.card-body p {
    flex: 1;
    color: #6d6d6d;
    font-size: 14px;
    line-height: 1.6;
}
.card-body .btn { align-self: flex-start; }

.room-facts {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
}
.room-facts div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.room-facts dt { color: #9a9a9a; }
.room-facts dd { margin: 0; color: #424242; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}
.photo-tile {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ddd;
}
.photo-tile:nth-child(1) { aspect-ratio: 4 / 3; grid-column: span 2; }
.photo-tile img { width: 100%; height: 100%; transition: transform .35s ease; }
.photo-tile:hover img { transform: scale(1.045); }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 72px 80px;
    background: rgba(22, 24, 20, .86);
}
.lightbox.is-open { display: flex; }
.lightbox img {
    display: block;
    max-width: min(100%, 1180px);
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(0,0,0,.36);
}
.lightbox button {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.18);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox-close {
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}
.lightbox-prev,
.lightbox-next {
    top: 50%;
    width: 50px;
    height: 68px;
    transform: translateY(-50%);
    border-radius: 4px;
    font-size: 42px;
    line-height: 1;
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
body.lightbox-open { overflow: hidden; }

.contact-cta {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(430px, 45vw, 610px);
    overflow: hidden;
}
.contact-cta > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.contact-cta > div {
    position: relative;
    width: min(100% - 32px, 820px);
    padding: clamp(28px, 5vw, 60px);
    text-align: center;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(8px);
}
.contact-cta h2 { font-size: clamp(32px, 4vw, 40px); }
.contact-cta p { margin: 12px 0 26px; color: #000; font-size: 20px; }

.gallery-lead {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
}
.gallery-lead img { width: 100%; aspect-ratio: 5 / 4; }

.contact-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(32px, 7vw, 90px);
}
.contact-list {
    display: grid;
    gap: 18px;
    color: var(--muted);
    font-family: "Varela Round", sans-serif;
}
.contact-form {
    display: grid;
    gap: 16px;
}
.contact-form input,
.contact-form textarea,
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d3d3d3;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.map-frame {
    overflow: hidden;
    min-height: 320px;
    border: 1px solid var(--line);
}
.map-frame iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
}

.newsletter {
    background: var(--mist);
    padding: 62px 0;
}
.newsletter h2 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 38px;
}
.newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.field-group {
    display: grid;
    gap: 12px;
}
.field-group label,
.check {
    color: var(--olive-dark);
    font-family: "Varela Round", sans-serif;
}
.check {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 14px;
}
.check input { margin-top: 5px; }
.check a { color: var(--olive); text-decoration: underline; }
.consent { align-content: space-between; }

.footer-main {
    padding: 58px 0 50px;
    background: #fff;
    text-align: center;
}
.footer-inner { display: grid; justify-items: center; gap: 28px; }
.footer-logo { width: 150px; height: auto; }
.footer-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    color: var(--muted);
    font-family: "Varela Round", sans-serif;
}
.socials { display: flex; gap: 24px; }
.socials img { width: 40px; height: 40px; object-fit: contain; }
.copyright {
    background: var(--olive);
    color: #fff;
    padding: 16px 0;
    text-align: center;
    font-family: "Varela Round", sans-serif;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .card-grid,
    .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .site-header { position: relative; }
    .topbar { align-items: flex-start; }
    .header-actions {
        grid-template-columns: auto auto;
        gap: 8px 12px;
    }
    .rate-line { display: none; }
    .btn-book { display: none; }
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        padding-bottom: 18px;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul {
        display: grid;
        justify-content: stretch;
        gap: 0;
        border-top: 1px solid var(--line);
    }
    .main-nav a { padding: 12px 0; }
    .hero { min-height: 430px; }
    .hero.hero-plain { min-height: 420px; }
    .hero.hero-room { min-height: 420px; }
    .hero:not(.hero-plain):not(.hero-room) { min-height: 420px; }
    .home-slider { min-height: 460px; }
    .hero-copy {
        margin: 0 auto;
        width: min(100% - 32px, 560px);
        padding: 28px;
    }
    .home-slide .hero-copy {
        width: min(100% - 40px, 430px);
        min-height: 150px;
        padding: 28px;
    }
    .hero-room .hero-copy {
        width: min(100% - 40px, 430px);
        min-height: 150px;
        padding: 28px;
    }
    .hero:not(.hero-plain):not(.hero-room) .hero-copy {
        width: min(100% - 40px, 430px);
        min-height: 150px;
        padding: 28px;
    }
    .home-slide .hero-copy h1 { font-size: 30px; }
    .home-slide .hero-copy p { font-size: 18px; }
    .hero-room .hero-copy h1 { font-size: 30px; }
    .hero-room .hero-copy p { font-size: 18px; }
    .hero:not(.hero-plain):not(.hero-room) .hero-copy h1 { font-size: 30px; }
    .hero:not(.hero-plain):not(.hero-room) .hero-copy p { font-size: 18px; }
    .feature-row,
    .feature-row:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .feature-row:nth-child(even) .feature-media { order: 0; }
    .feature-media img { min-height: 320px; }
    .split,
    .gallery-lead,
    .contact-layout,
    .newsletter-form {
        grid-template-columns: 1fr;
    }
    .footer-contacts { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 620px) {
    .container,
    .container.slim { width: min(100% - 24px, 1440px); }
    .brand img { width: 168px; }
    .flags img { width: 28px; height: 18px; }
    .hero { min-height: 380px; }
    .hero.hero-plain { min-height: 300px; }
    .hero.hero-room { min-height: 300px; }
    .hero:not(.hero-plain):not(.hero-room) { min-height: 300px; }
    .home-slider { min-height: 390px; }
    .hero-copy {
        top: auto;
        bottom: 24px;
        transform: none;
        position: absolute;
        left: 12px;
        right: 12px;
        width: auto;
    }
    .home-slide .hero-copy {
        width: auto;
        min-height: 0;
        padding: 22px;
    }
    .hero-room .hero-copy {
        width: auto;
        min-height: 0;
        padding: 22px;
    }
    .hero:not(.hero-plain):not(.hero-room) .hero-copy {
        width: auto;
        min-height: 0;
        padding: 22px;
    }
    .home-slide .hero-copy h1 { font-size: 26px; }
    .home-slide .hero-copy p {
        margin-top: 10px;
        font-size: 16px;
    }
    .hero-room .hero-copy h1 { font-size: 26px; }
    .hero-room .hero-copy p {
        margin-top: 10px;
        font-size: 16px;
    }
    .hero:not(.hero-plain):not(.hero-room) .hero-copy h1 { font-size: 26px; }
    .hero:not(.hero-plain):not(.hero-room) .hero-copy p {
        margin-top: 10px;
        font-size: 16px;
    }
    .section { padding: 48px 0; }
    .feature-content { padding: 32px 18px; }
    .card-grid,
    .card-grid.four { grid-template-columns: 1fr; gap: 24px; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .photo-tile:nth-child(1) { grid-column: span 2; }
    .lightbox { padding: 64px 18px; }
    .lightbox img { max-height: calc(100vh - 128px); }
    .lightbox-close { top: 14px; right: 14px; }
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 18px;
        width: 48px;
        height: 48px;
        transform: none;
        font-size: 34px;
    }
    .lightbox-prev { left: calc(50% - 58px); }
    .lightbox-next { right: calc(50% - 58px); }
    .room-facts div { grid-template-columns: 1fr; gap: 2px; }
    .contact-cta > div { padding: 28px 18px; }
    .contact-cta p { font-size: 17px; }
}
