:root {
    --color-primary: #0F4C81;
    --color-primary-light: #1274C3;
    --color-accent: #78C6F7;
    --color-accent-soft: #D9EEFF;
    --color-dark: #0E2A47;
    --color-muted: #6B7A8F;
    --color-light: #F5F8FC;
    --color-soft: #EEF5FB;
    --color-white: #ffffff;
    --radius-xs: 8px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 44px;
    --shadow-soft: 0 24px 60px rgba(15, 76, 129, 0.12);
    --shadow-card: 0 18px 40px rgba(17, 72, 122, 0.12);
    --shadow-hover: 0 30px 70px rgba(8, 52, 94, 0.16);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --max-width: 1200px;
    --font-heading: 'Playfair Display', "Times New Roman", serif;
    --font-body: 'Poppins', "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

video {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(100% - 48px, var(--max-width));
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 48px, 860px);
}

.container > * {
    min-width: 0;
}

.section {
    position: relative;
    padding-block: 4rem;
}

.spacing-md {
    padding-block: 3.25rem;
}

.spacing-lg {
    padding-block: 5.5rem;
}

.spacing-xl {
    padding-block: 7rem;
}

.bg-soft {
    background: var(--color-light);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white);
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.8);
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.28rem;
    text-transform: uppercase;
    color: var(--color-primary-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.display-3 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    line-height: 1.2;
    margin: 0 0 1.5rem;
    width: fit-content;
    max-width: 100%;
}

.text-center .display-3 {
    margin-inline: auto;
}

.display-4 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    line-height: 1.25;
    margin: 0 0 1.25rem;
    width: fit-content;
    max-width: 100%;
}

.text-center .display-4 {
    margin-inline: auto;
}

p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.82;
    font-weight: 400;
    color: var(--color-muted);
}

.lead {
    font-size: 1.03rem;
    line-height: 1.82;
    font-weight: 400;
    color: var(--color-muted);
    margin-bottom: 0;
}

.intro-paragraphs .lead {
    margin-bottom: 1.5rem;
}

.intro-paragraphs .lead:last-of-type {
    margin-bottom: 0;
}

.btn-primary,
.btn-outline,
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary.inverted {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid rgba(15, 76, 129, 0.15);
}

.btn-outline:hover {
    background: rgba(120, 198, 247, 0.2);
    border-color: rgba(15, 76, 129, 0.3);
    transform: translateY(-2px);
}

.btn-outline.inverted {
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline.inverted:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-text {
    padding-inline: 0;
    text-transform: none;
    font-weight: 500;
    color: var(--color-primary-light);
}

.btn-text::after {
    content: "→";
    display: inline-block;
    transform: translateY(1px);
}

.btn-text:hover {
    color: var(--color-primary);
    gap: 0.75rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary-light);
    position: relative;
    padding: 0.28rem 0.95rem 0.28rem 0.4rem;
    border-radius: 999px;
    z-index: 0;
    transform: translateX(0);
}

.link-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(18, 116, 195, 0.12);
    opacity: 0;
    transform: scale(0.96);
    transition: var(--transition);
    z-index: -1;
}

.link-arrow::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--color-primary);
    transform: translateX(6px);
}

.link-arrow:hover::before {
    opacity: 1;
    transform: scale(1);
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    width: fit-content;
    max-width: 100%;
}

.section-header.section-header-center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-block .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.media-block {
    position: relative;
}

.moodboard {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.moodboard img:nth-child(1) {
    grid-column: 1 / span 6;
    grid-row: 1 / span 3;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.moodboard img:nth-child(2) {
    grid-column: 1 / span 3;
    grid-row: 3 / span 4;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px rgba(13, 76, 129, 0.16);
}

.moodboard img:nth-child(3) {
    grid-column: 3 / span 4;
    grid-row: 4 / span 3;
    border-radius: var(--radius-lg);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
}

/* Home specific moodboard refinement */
.home-rooms-section .moodboard {
    isolation: isolate;
}

.home-rooms-section .moodboard img {
    position: relative;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
    will-change: transform;
}

.home-rooms-section .moodboard img:nth-child(2) {
    margin-left: -28px;
    z-index: 2;
}

.home-rooms-section .moodboard img:hover {
    z-index: 20;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 58px rgba(8, 52, 94, 0.26);
}

.home-rooms-section .moodboard:hover img:not(:hover) {
    transform: translateY(2px) scale(0.995);
}

.list-check {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.list-check li {
    display: flex;
    gap: 0.8rem;
    color: var(--color-muted);
    font-weight: 400;
}

.list-check li::before {
    content: "☼";
    color: var(--color-primary-light);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.list-check-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.list-check-tick li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-primary-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.card-highlight {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    min-height: 100%;
}

.card-media-link {
    display: block;
}

.card-highlight img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.card-highlight .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-highlight .link-arrow {
    align-self: flex-start;
    margin-left: 0;
}


.card-highlight h3 {
    font-size: 1.35rem;
    margin: 0;
    font-weight: 600;
    width: fit-content;
    max-width: 100%;
}

.card-highlight p {
    color: var(--color-muted);
    margin: 0;
}

.card-highlight:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-highlight:hover .link-arrow {
    color: var(--color-primary);
    transform: translateX(6px);
}

.card-highlight:hover .link-arrow::before {
    opacity: 1;
    transform: scale(1);
}

.card-highlight:hover .link-arrow::after {
    transform: translateX(3px);
}

.service-card-modern {
    background: var(--color-soft);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(17, 72, 122, 0.08);
    transition: var(--transition);
    min-height: 100%;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card-modern h3 {
    margin: 0.8rem 0;
    font-size: 1.4rem;
}

.service-card-modern p {
    margin: 0;
    color: var(--color-muted);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(120, 198, 247, 0.18);
    color: var(--color-primary);
    font-size: 1.6rem;
}

.hero-home {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(115%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(14, 42, 71, 0.7) 0%, rgba(14, 42, 71, 0.25) 50%, rgba(14, 42, 71, 0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 640px;
    padding-block: 9rem 6rem;
}

.hero-home .hero-content {
    margin-inline: auto;
    text-align: center;
    max-width: 920px;
}

.hero-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.15;
    margin: 0 0 1.4rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-actions.center {
    justify-content: center;
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 2.2rem;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 64px;
    border-radius: 999px;
    text-decoration: none;
}

.hero-mouse {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    backdrop-filter: blur(2px);
    transition: var(--transition);
}

.hero-mouse span {
    width: 4px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    animation: heroScrollMouse 1.8s ease-in-out infinite;
}

.hero-scroll-indicator:hover .hero-mouse {
    transform: translateY(2px);
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

@keyframes heroScrollMouse {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

.cta-section {
    background: radial-gradient(circle at top left, rgba(18, 116, 195, 0.85), rgba(15, 76, 129, 0.92));
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section .eyebrow {
    color: #ffffff;
}

.cta-section .lead {
    color: #ffffff;
}

.cta-section .btn-primary.inverted:hover,
.cta-section .btn-outline.inverted:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
}

.booking-benefits {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    text-align: left;
}

.booking-benefit-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.2rem;
    backdrop-filter: blur(8px);
    color: #ffffff;
    transition: var(--transition);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.booking-benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.booking-benefit-card h3 {
    margin: 0 0 0.55rem 0;
    color: #ffffff;
    font-size: 1.18rem;
    width: fit-content;
    max-width: 100%;
}

.booking-benefit-card p {
    margin: 0;
    color: #ffffff;
    line-height: 1.7;
    font-size: 0.88rem;
}

.booking-benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.booking-benefit-card:hover .booking-benefit-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.06);
}

/* ===== Footer ===== */
.footer-modern {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    padding-top: 5rem;
    margin-top: 4rem;
}

.footer-modern .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 1.2rem;
}

.footer-modern h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.8rem;
}

.footer-list {
    display: grid;
    gap: 0.8rem;
    padding: 0;
    color: rgba(255, 255, 255, 0.75);
}

.footer-list li {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
}

.footer-list i {
    color: var(--color-accent);
    font-size: 1rem;
    margin-top: 0.15rem;
}

.footer-list a {
    color: inherit;
}

.footer-list a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-dark);
    transform: translateY(-4px);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    margin-top: 3.5rem;
    padding-block: 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom .footer-credit {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.footer-bottom .footer-credit a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom .footer-credit a:hover {
    color: #fff;
}

.mobile-fixed-cta {
    display: none;
}

/* ===== Page hero ===== */
.page-hero {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    background-color: var(--color-dark);
    display: grid;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}

.page-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(110%);
}

.page-hero .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-hero > .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(14, 42, 71, 0.7) 0%, rgba(14, 42, 71, 0.25) 50%, rgba(14, 42, 71, 0.05) 100%);
}

.page-hero .hero-scroll-indicator {
    z-index: 3;
}

.page-hero > .container {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-block: 9rem 6rem;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 1.1rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    font-size: 1.03rem;
}

.page-hero-parallax {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: url("../media/camere/superior/foto-principale-superior.jpg");
}

.page-hero-parallax.page-hero-camere { background-image: url("../media/add/Foto%20Gallery%20Esagono.jpg"); }
.page-hero-parallax.page-hero-standard { background-image: url("../media/camere/standard/foto-principale.jpg"); }
.page-hero-parallax.page-hero-superior { background-image: url("../media/camere/superior/foto-principale-superior.jpg"); }
.page-hero-parallax.page-hero-mediterranea { background-image: url("../media/add/Foto%20Gallery%20Esagono.jpg"); }
.page-hero-parallax.page-hero-comunicante { background-image: url("../media/camere/comunicante/comunicante-04.jpg"); }
.page-hero-parallax.page-hero-comunicante-plus { background-image: url("../media/camere/comunicante-plus/foto-principale-comunicante.jpg"); }
.page-hero-parallax.page-hero-appartamenti { background-image: url("../media/home/appartamenti.jpg"); }
.page-hero-parallax.page-hero-wellness { background-image: none; background-color: var(--color-dark); }
.page-hero-parallax.page-hero-ristorante { background-image: url("../media/home/ristorante.jpg"); }
.page-hero-parallax.page-hero-bar { background-image: url("../media/home/bar.jpg"); }
.page-hero-parallax.page-hero-servizi { background-image: url("../media/fotodrone/DJI_0306editedbylightroom.jpg"); }
.page-hero-parallax.page-hero-matrimoni { background-image: url("../media/fotodrone/DJI_0336editedbylightroom.jpg"); }
.page-hero-parallax.page-hero-contatti { background-image: url("../media/fotodrone/DJI_0436editedbylightroom.jpg"); }
.page-hero-parallax.page-hero-offerte { background-image: url("../media/gallery/DJI_0481editedbylightroom-1024x768.jpg"); }

.room-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 520px;
}

.room-services li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--color-muted);
    font-weight: 500;
}

.room-services li i {
    font-size: 1.25rem;
    color: var(--color-primary-light);
    width: 1.5rem;
    text-align: center;
}

/* Mini cards con icona (wellness e simili) */
.mini-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    justify-items: stretch;
    align-items: stretch;
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.85rem 0.6rem;
    background: rgba(15, 76, 129, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 76, 129, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(15, 76, 129, 0.12);
}

.mini-card .mini-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(120, 198, 247, 0.2);
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.mini-card .mini-card-text {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-muted);
    line-height: 1.3;
}

.mini-cards.mini-cards-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mini-cards .mini-card {
    align-self: stretch;
}

.gallery-section-full .container {
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-masonry-wrapper {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.gallery-masonry .gallery-item {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-masonry .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-masonry .gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.08);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb-modern {
    margin-bottom: 1.2rem;
    display: inline-flex;
    gap: 0.6rem;
    font-size: 0.9rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-modern span {
    color: var(--color-accent);
}

/* ===== Generic content blocks ===== */
.page-section {
    padding-block: 5rem;
}

.section-subtitle {
    color: var(--color-muted);
    max-width: 620px;
    margin: 0 auto 3rem;
    text-align: center;
}

.feature-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-card .icon-circle {
    background: rgba(15, 76, 129, 0.08);
}

.feature-card h3 {
    width: fit-content;
    max-width: 100%;
}

.detail-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: start;
    padding: 3rem;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.detail-card-single {
    grid-template-columns: 1fr;
}

.detail-card.reverse {
    direction: rtl;
}

.detail-card.reverse > * {
    direction: ltr;
}

.detail-card img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.detail-card .content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-card .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.detail-card ul {
    display: grid;
    gap: 0.6rem;
    color: var(--color-muted);
    margin: 1rem 0 0;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--color-primary);
    background: rgba(18, 116, 195, 0.12);
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
}

.event-highlight-section {
    position: relative;
    background:
        radial-gradient(circle at 12% 20%, rgba(248, 197, 102, 0.2), transparent 46%),
        radial-gradient(circle at 88% 18%, rgba(66, 174, 255, 0.14), transparent 44%),
        linear-gradient(145deg, #0a1d31 0%, #122c45 55%, #1a3a55 100%);
    overflow: hidden;
}

.event-highlight-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(6, 18, 34, 0.35);
    padding: 1.5rem 1.65rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.event-highlight-header {
    max-width: 880px;
    margin-bottom: 1.1rem;
}

.event-highlight-badge {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #f4a825;
    background: rgba(244, 168, 37, 0.12);
    border: 1px solid rgba(244, 168, 37, 0.35);
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.event-highlight-title {
    margin-bottom: 0.45rem;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.event-highlight-subtitle {
    font-size: clamp(0.98rem, 1.6vw, 1.12rem);
    margin-bottom: 0.45rem;
    color: #16395a;
}

.event-highlight-description {
    color: var(--color-muted);
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.event-highlight-grid {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.event-video-teaser-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 0;
    height: 100%;
    min-height: 12rem;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    box-shadow: 0 12px 26px rgba(7, 21, 39, 0.28);
    isolation: isolate;
}

.event-video-teaser-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../media/home/bar.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.42;
}

.event-video-teaser-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(165deg, rgba(20, 50, 78, 0.78) 0%, rgba(8, 22, 38, 0.88) 100%);
    pointer-events: none;
}

.event-video-trigger {
    border: 0;
    padding: 0;
    border-radius: inherit;
    overflow: hidden;
    background: transparent;
    position: relative;
    z-index: 2;
    cursor: pointer;
    width: 100%;
    flex: 1 1 auto;
    min-height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-video-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.event-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    flex: 1 1 auto;
    align-self: stretch;
    margin: 0;
    padding: 1rem 0.85rem;
    box-sizing: border-box;
    border: 0;
    box-shadow: none;
    color: #fff;
    text-align: center;
}

.event-video-placeholder-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
}

.event-video-placeholder-label {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.35;
}

.event-dates-wrap {
    background: linear-gradient(160deg, #f7fbff 0%, #eef6fc 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(22, 95, 150, 0.14);
    padding: 0.85rem 0.95rem;
}

.event-dates-title {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
    color: #12395d;
}

.event-dates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.event-date-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 76, 129, 0.1);
    padding: 0.5rem 0.6rem;
}

.event-date-day {
    min-width: 58px;
    text-align: center;
    border-radius: 0.5rem;
    background: linear-gradient(150deg, #15558c, #1a74b4);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.38rem 0.42rem;
}

.event-date-year {
    margin: 0;
    color: #6b8299;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
}

.event-date-winery {
    margin: 0.05rem 0 0;
    font-weight: 600;
    color: #0f3658;
    font-size: 0.86rem;
    line-height: 1.25;
}

.event-highlight-meta {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(15, 76, 129, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.25rem;
    align-items: center;
}

.event-highlight-meta p {
    margin: 0;
    color: #1a425f;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
}

.event-highlight-meta i {
    color: #d79014;
}

.event-video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.event-video-lightbox.is-open {
    display: flex;
}

.event-video-lightbox-dialog {
    width: min(420px, 100%);
}

.event-video-lightbox-player {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 1rem;
    background: #000;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.event-video-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.cta-section .tag-pill-solid {
    background: rgba(255, 255, 255, 1);
    color: var(--color-primary);
}

.tabs-section-compact {
    padding-block: 0.6rem 0.5rem;
}

.tabs-nav-sticky {
    position: relative;
    z-index: 998;
    background: var(--color-white);
    padding-block: 0.6rem 0.5rem;
}

.tabs-nav-sticky.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
}

.tabs-nav-sticky .tabs-nav {
    margin-bottom: 0;
}

.tabs-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.tabs-nav a {
    border-radius: 999px;
    border: 1px solid rgba(15, 76, 129, 0.15);
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04rem;
    color: var(--color-muted);
    background: var(--color-white);
}

.tabs-nav a.active,
.tabs-nav a:hover {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-color: transparent;
    box-shadow: 0 16px 40px rgba(15, 76, 129, 0.22);
}

.rooms-carousel-section {
    padding-block: 4rem;
    background: var(--color-light);
}

.rooms-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.rooms-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: transparent;
    padding: 0.5rem 0;
}

.rooms-carousel::-webkit-scrollbar {
    display: none;
}

.rooms-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(15, 76, 129, 0.15);
    background: var(--color-white);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.rooms-carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: transparent;
}

.rooms-carousel-btn.prev {
    left: 8px;
}

.rooms-carousel-btn.next {
    right: 8px;
}

@media (max-width: 576px) {
    .rooms-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .rooms-carousel-btn.prev {
        left: 4px;
    }

    .rooms-carousel-btn.next {
        right: 4px;
    }
}

.room-carousel-card {
    flex: 0 0 calc(33.333% - 0.67rem);
    min-width: 260px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    transition: var(--transition);
}

.room-carousel-card:hover {
    transform: translateY(-4px);
}

.room-carousel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-carousel-title {
    padding: 1rem;
    font-weight: 600;
    color: var(--color-muted);
    text-align: center;
    transition: color 0.2s;
}

.room-carousel-card:hover .room-carousel-title {
    color: var(--color-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.info-card strong {
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--color-primary-light);
}

.info-card p,
.info-card a {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0;
    color: var(--color-dark);
}

.info-card a {
    word-break: break-all;
}

.gallery-grid-modern {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid-modern img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.gallery-grid-modern img:hover {
    transform: translateY(-6px);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
}

.contact-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.5rem;
}

.contact-card form {
    display: grid;
    gap: 1.2rem;
}

.form-control-modern,
.form-select-modern,
textarea.form-control-modern {
    width: 100%;
    border: 1.5px solid rgba(15, 76, 129, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.98);
}

.form-control-modern:focus,
.form-select-modern:focus,
textarea.form-control-modern:focus {
    outline: none;
    border-color: rgba(18, 116, 195, 0.35);
    box-shadow: 0 0 0 4px rgba(18, 116, 195, 0.12);
}

.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

iframe {
    border: none;
    width: 100%;
}

.alert-success {
    background: rgba(120, 198, 247, 0.15);
    border: 1px solid rgba(18, 116, 195, 0.3);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
}

.back-to-top {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

/* ===== Header overrides ===== */
#mainNav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    padding-block: 0.85rem;
    transition: var(--transition);
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

#mainNav .navbar-brand {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.logo-navbar {
    height: 76px;
    width: auto;
    transition: opacity 0.25s ease;
}

.logo-light {
    opacity: 1;
}

.logo-dark {
    opacity: 0;
    position: absolute;
    inset: 0 auto auto 0;
}

#mainNav .nav-link {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.7rem 0.9rem !important;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--color-white);
}

.nav-item-split-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0 !important;
}

.nav-item-split-dropdown .nav-link-parent {
    padding-right: 2.2rem !important;
    margin-right: 0 !important;
}

.nav-item-split-dropdown span.nav-link-parent {
    cursor: default;
}

.nav-submenu-toggle {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0 !important;
    transition: var(--transition);
}

.nav-submenu-toggle::after {
    display: none !important;
}

.nav-submenu-toggle i {
    font-size: 0.82rem;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
    transform-origin: center;
    margin-right: -3px;
}

.nav-submenu-toggle[aria-expanded="true"] i,
.nav-submenu-toggle.active i {
    transform: rotate(180deg) scale(1.12);
}

.nav-submenu-toggle:hover,
.nav-submenu-toggle.active {
    color: #ffffff;
}

#mainNav .dropdown-menu {
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    border: 1px solid rgba(15, 76, 129, 0.08);
    box-shadow: var(--shadow-soft);
}

/* Sottomenu con sfondo scuro quando la navbar è sopra l'hero, così la voce attiva è bianca e visibile */
#mainNav:not(.scrolled) .dropdown-menu {
    background: rgba(15, 76, 129, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
}

#mainNav .dropdown-item {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
}

#mainNav:not(.scrolled) .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

#mainNav:not(.scrolled) .dropdown-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

#mainNav .dropdown-item:hover {
    background: rgba(18, 116, 195, 0.08);
    color: var(--color-primary);
}

#mainNav:not(.scrolled) .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.lang-switch-btn {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    min-height: 38px;
    padding: 0.36rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    line-height: 1;
    transition: var(--transition);
}

.lang-switch-btn i {
    font-size: 0.93rem;
}

.lang-switch-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.18);
}

.lang-switch-btn-desktop {
    margin-left: 0.4rem;
}

/* Prenota Ora: solo questi pulsanti in giallo arancio */
.btn-book,
.btn-prenota {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #fff !important;
}

.btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    margin-left: 0.8rem;
    white-space: nowrap;
    line-height: 1;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.btn-book:hover,
.btn-prenota:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: #fff !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

.btn-prenota {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.btn-prenota.inverted {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #fff !important;
}

#mainNav.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
    box-shadow: 0 18px 45px rgba(17, 72, 122, 0.16);
}

#mainNav.scrolled .logo-light {
    opacity: 0;
}

#mainNav.scrolled .logo-dark {
    opacity: 1;
}

#mainNav.scrolled .nav-link {
    color: var(--color-muted);
}

#mainNav.scrolled .nav-link:hover,
#mainNav.scrolled .nav-link.active {
    color: var(--color-primary);
}

#mainNav.scrolled .nav-submenu-toggle {
    color: var(--color-primary);
}

#mainNav.scrolled .dropdown-item.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%) !important;
    font-weight: 600;
}

#mainNav.scrolled .nav-submenu-toggle:hover,
#mainNav.scrolled .nav-submenu-toggle.active {
    color: var(--color-primary);
}

#mainNav.scrolled .lang-switch-btn {
    color: var(--color-primary);
    border-color: rgba(15, 76, 129, 0.32);
    background: rgba(15, 76, 129, 0.08);
}

#mainNav.scrolled .lang-switch-btn:hover {
    border-color: rgba(15, 76, 129, 0.55);
    background: rgba(15, 76, 129, 0.14);
}

.language-modal .modal-content {
    border: 1px solid rgba(15, 76, 129, 0.14);
    border-radius: var(--radius-md);
}

.language-modal .modal-header {
    border-bottom: 1px solid rgba(15, 76, 129, 0.12);
}

.language-modal .modal-title {
    color: var(--color-dark);
    font-size: 1rem;
    letter-spacing: 0.03rem;
}

.language-modal .modal-body {
    display: grid;
    gap: 0.55rem;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.68rem 0.8rem;
    color: var(--color-dark);
    background: var(--color-white);
}

.language-option:hover {
    background: rgba(15, 76, 129, 0.06);
    border-color: rgba(15, 76, 129, 0.24);
}

.language-option.is-current {
    border-color: rgba(15, 76, 129, 0.42);
    background: rgba(120, 198, 247, 0.15);
}

.language-option .language-current-note {
    display: none;
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--color-primary);
    font-weight: 600;
}

.language-option.is-current .language-current-note {
    display: inline;
}

.language-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.language-name {
    font-weight: 500;
}

#mainNav {
    --hamburger-color: rgba(255, 255, 255, 0.98);
}

#mainNav.scrolled {
    --hamburger-color: var(--color-primary);
}

.navbar-light .navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.3rem;
}

.navbar-light .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-light .navbar-toggler-icon {
    width: 34px;
    height: 24px;
    display: block;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.98)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-size: 100%;
    transition: none;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .home-rooms-section .moodboard img:nth-child(2) {
        margin-left: 0;
    }

    .detail-card,
    .detail-card.reverse {
        grid-template-columns: 1fr;
    }

    .detail-card.reverse {
        direction: ltr;
    }

    .event-highlight-grid {
        grid-template-columns: 1fr;
    }

    .event-video-teaser-card {
        width: 100%;
        max-width: min(320px, 100%);
        margin-inline: auto;
    }
}

@media (max-width: 991px) {
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
    }

    .footer-modern {
        padding-bottom: calc(2rem + 74px + env(safe-area-inset-bottom));
    }

    .mobile-fixed-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        background: rgba(14, 42, 71, 0.96);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.28);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-fixed-cta-link {
        min-height: 72px;
        padding: 0.45rem 0.2rem 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.22rem;
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.64rem;
        font-weight: 600;
        letter-spacing: 0.01rem;
        text-align: center;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-fixed-cta-link:last-child {
        border-right: none;
    }

    .mobile-fixed-cta-link i {
        font-size: 0.92rem;
    }

    .mobile-fixed-cta-link-book {
        background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
        color: #fff;
    }

    .hero-scroll-indicator {
        bottom: calc(5.6rem + env(safe-area-inset-bottom));
    }

    #mainNav {
        padding-block: 0.8rem;
    }

    #mainNav .container-fluid {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        min-height: 74px;
    }

    #mainNav .navbar-brand {
        margin-inline: auto;
    }

    .lang-switch-btn-mobile {
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
        min-height: 34px;
        padding: 0.34rem 0.6rem;
        font-size: 0.7rem;
        letter-spacing: 0.06rem;
    }

    #mainNav .navbar-toggler {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
        padding: 0.25rem;
    }

    #mainNav.scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f4c81' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .logo-navbar {
        height: 62px;
    }

    #mainNav .navbar-collapse {
        position: absolute;
        top: calc(100% + 1.25rem);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.98);
        border-radius: var(--radius-md);
        padding: 1rem;
        box-shadow: var(--shadow-soft);
        max-height: calc(100dvh - 110px);
        overflow-y: auto;
        transform-origin: top center;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    #mainNav .navbar-collapse.collapse:not(.show) {
        display: block;
        opacity: 0;
        transform: translateY(-10px) scale(0.985);
        pointer-events: none;
        visibility: hidden;
    }

    #mainNav .navbar-collapse.collapse.show {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        visibility: visible;
    }

    #mainNav .navbar-collapse.collapsing {
        display: block;
        height: auto !important;
        opacity: 0;
        transform: translateY(-10px) scale(0.985);
        pointer-events: none;
    }

    #mainNav .navbar-collapse .nav-link {
        color: var(--color-muted);
    }

    #mainNav .navbar-collapse .nav-link:hover,
    #mainNav .navbar-collapse .nav-link.active {
        color: var(--color-primary);
    }

    #mainNav .navbar-collapse .nav-submenu-toggle {
        color: var(--color-primary);
        margin-left: 0 !important;
    }

    #mainNav .navbar-collapse .nav-item-split-dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    #mainNav .navbar-collapse .nav-item-split-dropdown .nav-link-parent {
        flex: 1 1 auto;
        padding-right: 0.9rem !important;
    }

    #mainNav .navbar-collapse .nav-item-split-dropdown .nav-submenu-toggle {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        order: 2;
        margin-right: 0.2rem;
    }

    #mainNav .navbar-collapse .nav-item-split-dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        inset: auto !important;
        float: none;
        width: 100%;
        order: 3;
        margin-top: 0.3rem;
    }

    #mainNav .navbar-collapse .nav-submenu-toggle i {
        font-size: 1rem;
        margin-right: 0;
    }

    #mainNav .nav-link,
    .btn-book {
        margin: 0.2rem 0;
    }

    /* Mobile: nasconde il pulsante Prenota Ora nel menu */
    #mainNav .btn-book {
        display: none !important;
    }

    .hero-content {
        padding-block: 8rem 4rem;
    }

    .page-hero .container {
        padding-block: 8rem 4rem;
        max-width: 680px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header.section-header-center {
        align-items: center;
    }

    .section-header.section-header-center h2 {
        text-align: center;
    }

    .booking-benefits {
        grid-template-columns: 1fr;
    }

    /* Mobile: nasconde la barra fissa tipologie in pagina Camere */
    .tabs-nav-sticky {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container,
    .container.narrow {
        width: min(100% - 32px, var(--max-width));
    }

    .hero-home {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: clamp(2.4rem, 8vw, 3.4rem);
    }

    .page-hero {
        height: 100dvh;
        min-height: 100dvh;
        max-height: none;
    }

    .page-hero-parallax {
        background-attachment: scroll;
    }

    .gallery-masonry {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3px;
    }

    .room-services {
        grid-template-columns: 1fr;
        max-width: 560px;
        justify-items: center;
    }

    .room-services li {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .mini-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .mini-cards.mini-cards-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mini-card {
        padding: 0.7rem 0.5rem;
    }

    .mini-card .mini-card-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .mini-card .mini-card-text {
        font-size: 0.72rem;
    }

    .rooms-carousel .room-carousel-card {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 220px;
    }

    .page-hero .container {
        padding-block: 7.3rem 3.2rem;
    }

    .page-hero h1 {
        font-size: clamp(2.35rem, 8vw, 3.3rem);
    }

    .grid-4,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .list-check-cols-3 {
        grid-template-columns: 1fr;
    }

    .card-highlight img {
        height: 260px;
    }

    .home-rooms-section .moodboard img:nth-child(2) {
        margin-left: 0;
    }

    .section-header h2 {
        text-align: center;
    }

    .section-header.section-header-center h2 {
        text-align: center;
    }

    .content-block .actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .detail-card img {
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .event-highlight-card {
        padding: 1.15rem 1.2rem;
    }

    .event-dates-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-bottom p,
    .footer-bottom a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 576px) {
    .mobile-fixed-cta-link {
        min-height: 68px;
        font-size: 0.62rem;
    }

    .mobile-fixed-cta-link i {
        font-size: 0.88rem;
    }

    .gallery-masonry {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3px;
    }

    .rooms-carousel .room-carousel-card {
        flex: 0 0 calc(100% - 0.5rem);
        min-width: 200px;
    }

    .hero-actions.center {
        align-items: stretch;
    }

    .hero-actions.center .btn-primary,
    .hero-actions.center .btn-outline {
        justify-content: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-brand {
        max-width: none;
        text-align: center;
    }

    .footer-logo {
        width: 130px;
        margin-inline: auto;
        display: block;
    }

    .footer-modern h4,
    .footer-links {
        text-align: center;
    }

    .footer-list li {
        justify-content: center;
        text-align: center;
    }
}

