/* =========================================================
   ELEMENTI TIPOGRAFICI DEL MARCHIO
   ========================================================= */
H9 {
    font-family: Fraunces, serif;
    font-size: 25px;
    color: #d7aa59;
    text-shadow:
        1px 1px 0px #ff5722,
        2px 2px 4px rgba(0, 0, 0, 0.5);
}
H10 {
    font-family: Arial, serif;
    font-size: 14px;
    color: #ff5722;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
br2 {
    display: block;
    content: "";
    margin-top: -20px;
}
.topbar nav a.nav-book {
    color: #0000ff;
}

/* =========================================================
   LAYOUT TESTI ESTESO
   ========================================================= */
#hotel.section {
    padding-top: clamp(70px, 7vw, 120px);
    padding-bottom: clamp(70px, 7vw, 120px);
}
#hotel .balanced-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(55px, 7vw, 120px);
    align-items: start;
}
#hotel .intro-left,
#hotel .intro-text {
    min-width: 0;
}
#hotel .intro-left h2 {
    margin-bottom: clamp(34px, 4vw, 60px);
}
#hotel .intro-left p,
#hotel .intro-text p {
    max-width: none;
}
#hotel .intro-left .lead {
    margin-bottom: 24px;
}
#hotel .intro-left p:last-child {
    margin-bottom: 0;
}
#hotel .intro-text {
    padding-top: clamp(10px, 1.5vw, 24px);
}
#hotel .intro-text p:first-child {
    margin-top: 0;
}
#hotel .intro-text .text-link {
    margin-top: clamp(28px, 3vw, 45px);
}

#camere.section {
    padding-top: clamp(70px, 7vw, 120px);
    padding-bottom: clamp(70px, 7vw, 120px);
}
#camere .balanced-rooms {
    align-items: stretch;
    gap: clamp(45px, 6vw, 95px);
}
#camere .rooms-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#camere .rooms-copy h2 {
    margin-bottom: clamp(28px, 3vw, 44px);
}
#camere .rooms-copy p {
    margin-top: 0;
    margin-bottom: 20px;
}
#camere .rooms-copy ul {
    margin-top: 8px;
    margin-bottom: 32px;
}
#camere .rooms-copy .button {
    align-self: flex-start;
}
#camere .room-images {
    min-height: clamp(520px, 50vw, 720px);
    height: 100%;
}
#camere .room-main {
    height: 72%;
    object-fit: cover;
}
#camere .room-small {
    height: 38%;
    object-fit: cover;
}
#camere .rates {
    margin-top: clamp(70px, 7vw, 115px);
	
}

#ristorante.balanced-food {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: stretch;
}
#ristorante .food-image {
    min-height: clamp(620px, 52vw, 800px);
    height: 100%;
    background-size: cover;
    background-position: center;
}
#ristorante .food-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(70px, 7vw, 115px);
    padding-bottom: clamp(70px, 7vw, 115px);
}
#ristorante .food-copy h2 {
    margin-bottom: clamp(30px, 3vw, 46px);
}
#ristorante .food-copy p {
    margin-top: 0;
    margin-bottom: 21px;
}
#ristorante .food-copy .text-link {
    margin-top: 14px;
}

#territorio.section {
    padding-top: clamp(70px, 7vw, 120px);
    padding-bottom: clamp(70px, 7vw, 120px);
}
#territorio .territory-head {
    margin-bottom: clamp(50px, 5vw, 80px);
}
#territorio .season-grid {
    align-items: stretch;
}
#territorio .season-grid article {
    height: 100%;
}

@media (min-width: 1200px) {
    #hotel .balanced-intro {
        grid-template-columns: 0.95fr 1.05fr;
    }
    #hotel .intro-left,
    #hotel .intro-text {
        max-width: 650px;
    }
}
@media (max-width: 900px) {
    #hotel .balanced-intro,
    #ristorante.balanced-food {
        grid-template-columns: 1fr;
    }
    #hotel .balanced-intro {
        gap: 26px;
    }
    #hotel .intro-left h2 {
        margin-bottom: 30px;
    }
    #hotel .intro-text {
        padding-top: 0;
    }
    #camere .balanced-rooms {
        gap: 45px;
    }
    #camere .room-images {
        min-height: 500px;
    }
    #ristorante .food-image {
        min-height: 480px;
    }
}
@media (max-width: 640px) {
    #hotel.section,
    #camere.section,
    #territorio.section {
        padding-top: 58px;
        padding-bottom: 58px;
    }
    #hotel .balanced-intro {
        gap: 18px;
    }
    #hotel .intro-left h2 {
        margin-bottom: 26px;
    }
    #hotel .intro-left p,
    #hotel .intro-text p,
    #camere .rooms-copy p,
    #ristorante .food-copy p {
        margin-bottom: 17px;
    }
    #camere .room-images {
        min-height: 410px;
    }
    #ristorante .food-image {
        min-height: 360px;
    }
    #ristorante .food-copy {
        padding-top: 55px;
        padding-bottom: 55px;
    }
    #territorio .territory-head {
        margin-bottom: 38px;
    }
}

/* =========================================================
   GALLERIE FOTOGRAFICHE
   ========================================================= */
.site-gallery-wrap{padding:clamp(60px,7vw,110px) clamp(24px,6vw,100px);background:#f7f3eb}
.rooms-gallery-wrap{margin-top:clamp(60px,7vw,105px);padding-left:0;padding-right:0;padding-bottom:0;background:transparent}
.gallery-heading{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(260px,1fr);column-gap:clamp(40px,6vw,100px);align-items:end;margin-bottom:clamp(30px,4vw,55px)}
.gallery-heading .eyebrow{grid-column:1;margin:0 0 12px;letter-spacing:.12em;text-transform:uppercase}
.gallery-heading h3{grid-column:1;margin:0;font-family:Fraunces,serif;font-size:clamp(38px,5vw,72px);line-height:.98;font-weight:500;color:#173744}
.gallery-heading h3 i{color:#d7aa59;font-weight:500}
.gallery-heading>p:last-child{grid-column:2;grid-row:1/span 2;align-self:end;max-width:620px;margin:0;font-size:clamp(17px,1.4vw,21px);line-height:1.65;color:#5f6f76}
.site-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(190px,19vw,330px);gap:12px}
.gallery-item{position:relative;display:block;width:100%;min-width:0;padding:0;border:0;overflow:hidden;background:#d9d5cc;cursor:zoom-in}
.gallery-item.gallery-wide{grid-column:span 2}
.gallery-item img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .55s cubic-bezier(.2,.65,.3,1),filter .4s ease}
.gallery-item::after{content:"\FF0B";position:absolute;right:16px;bottom:16px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:rgba(247,243,235,.92);color:#173744;font-size:22px;opacity:0;transform:translateY(7px);transition:.3s ease}
.gallery-item:hover img{transform:scale(1.035);filter:brightness(.92)}
.gallery-item:hover::after{opacity:1;transform:none}
.photo-lightbox{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:clamp(18px,4vw,60px);background:rgba(8,18,23,.94)}
.photo-lightbox.is-open{display:flex}.photo-lightbox img{max-width:min(1500px,94vw);max-height:88vh;width:auto;height:auto;object-fit:contain;box-shadow:0 24px 80px rgba(0,0,0,.4)}
.lightbox-close{position:absolute;top:20px;right:24px;border:0;background:transparent;color:#fff;font-size:42px;cursor:pointer}
.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(0,0,0,.18);color:#fff;font-size:25px;cursor:pointer}
.lightbox-prev{left:22px}.lightbox-next{right:22px}body.lightbox-open{overflow:hidden}
@media(max-width:900px){.gallery-heading{grid-template-columns:1fr;gap:18px}.gallery-heading .eyebrow,.gallery-heading h3,.gallery-heading>p:last-child{grid-column:1;grid-row:auto}.site-gallery{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(180px,34vw,300px)}.gallery-item.gallery-wide{grid-column:span 2}}
@media(max-width:560px){.site-gallery-wrap{padding:52px 18px}.rooms-gallery-wrap{padding-left:0;padding-right:0;padding-bottom:0}.site-gallery{grid-auto-rows:175px;gap:8px}.gallery-item::after{opacity:.9;transform:none;width:36px;height:36px;right:10px;bottom:10px}.lightbox-prev,.lightbox-next{width:44px;height:44px}.lightbox-prev{left:8px}.lightbox-next{right:8px}}

.restaurant-gallery-wrap{background:#173744}
.restaurant-gallery-wrap .gallery-heading h3,
.restaurant-gallery-wrap .gallery-heading .eyebrow{color:#f7f3eb}
.restaurant-gallery-wrap .gallery-heading h3 i{color:#d7aa59}
.restaurant-gallery-wrap .gallery-heading>p:last-child{color:rgba(247,243,235,.78)}
.restaurant-gallery-wrap .gallery-item{background:#102a34}

#camere .rates{margin-bottom:0}
#camere .rooms-gallery-wrap{margin-top:28px;padding-top:46px;padding-bottom:72px;background:#ffffff;box-shadow:0 0 0 100vmax #ffffff;clip-path:inset(0 -100vmax)}
@media (max-width: 900px){
    #camere .rooms-gallery-wrap{margin-top:22px;padding-top:38px;padding-bottom:58px}
}
@media (max-width: 560px){
    #camere .rooms-gallery-wrap{margin-top:16px;padding-top:32px;padding-bottom:46px}
}

/* Tariffe su richiesta */
.rates table td:last-child{font-weight:600;white-space:nowrap}

/* Motore di prenotazione */
.booking-engine{max-width:1100px;margin:0 auto;padding:10px 5vw 60px;min-height:320px}
.booking-note{max-width:760px;margin:0 auto;padding:0 5vw 80px;color:#63757a;font-size:15px;line-height:1.7}
.booking-note a{font-weight:700;color:#173642}

/* Tariffe su richiesta: blocco unico centrato (index italiano) */
#camere .rates.rates-centered {
    display: block;
    text-align: center;
    padding-top: clamp(36px, 4vw, 56px);
}
#camere .rates.rates-centered .eyebrow {
    margin-bottom: 0;
}
#camere .rates.rates-centered h3 {
    margin: 12px 0 0;
}
#camere .rates.rates-centered p {
    max-width: 560px;
    margin: clamp(30px, 4vw, 48px) auto 0;
    color: var(--muted);
    line-height: 1.7;
}
#camere .rates.rates-centered p a {
    color: var(--ink);
    font-weight: 600;
}

/* =========================================================
   RECENSIONI NELLA FASCIA CITAZIONE (slider)
   ========================================================= */
.quote-slider .quote-mark {
    line-height: .75;
    margin-bottom: 4px;
}
.quote-slides {
    display: grid;
}
.quote-slide {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    /* Esce subito di scena, così due recensioni non si sovrappongono */
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.quote-slide.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    /* Entra in dissolvenza quando la precedente è già sparita */
    transition: opacity .5s ease .2s, transform .5s ease .2s, visibility 0s linear 0s;
}
.quote-slide blockquote {
    margin: 0;
}
.quote-slider .quote-slide p {
    font-family: Fraunces, serif;
    font-size: clamp(1.2rem, 1.6vw, 1.8rem);
    line-height: 1.42;
    margin: 16px 0 0;
    color: #fff;
}
.quote-slider .quote-slide figcaption {
    margin-top: 24px;
}
.quote-slider .quote-slide .quote-line {
    display: block;
    width: 45px;
    height: 1px;
    background: var(--gold);
    margin: 0 0 14px;
}
.quote-slider .quote-slide small {
    display: block;
    color: #b7c6c6;
    font-size: 13px;
    line-height: 1.5;
}
.quote-slider .quote-slide small b {
    color: #edf1eb;
    font-weight: 600;
}
.quote-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: clamp(26px, 3vw, 40px);
}
.quote-controls .round {
    width: 38px;
    height: 38px;
    font-size: 15px;
}
.quote-dots {
    display: flex;
    gap: 8px;
}
.quote-dot {
    height: 2px;
    width: 26px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
}
.quote-dot.active {
    background: var(--gold);
}
@media (max-width: 900px) {
    .quote-slider .quote-slide p {
        font-size: clamp(1.12rem, 4.2vw, 1.5rem);
        line-height: 1.5;
    }
}
