:root {

    --bg: #f7f7f5;

    --hero-text: #ffffff;

    --accent: #1a6273;
    --accent-dark: #124d5b;

    --title: #203e3c;

    --text: #000000;

    --muted: #647271;

    --line:
        rgba(32, 62, 60, 0.14);

    --surface: #ffffff;

    --soft: #eef5f4;

    --both:
        #e3f1ec;

    --both-text:
        #245b50;

    --partial:
        #f3e7d1;

    --partial-text:
        #775b2b;

    --none:
        #ecd7d1;

    --none-text:
        #81483e;

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;

    --shadow:
        0 18px 50px
        rgba(22, 51, 50, 0.09);

    --title-font:
        "Inria Serif",
        Georgia,
        serif;

    --ui-font:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Segoe UI",
        sans-serif;

    --content:
        min(
            1180px,
            calc(100vw - 48px)
        );

}



/* =====================================================
   RESET
   ===================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background: var(--bg);

    color: var(--text);

    font-family: var(--ui-font);

    font-size: 16px;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}


body.modal-open {
    overflow: hidden;
}


button,
input,
select,
textarea {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


a {
    color: inherit;
}


img {

    display: block;

    max-width: 100%;

}


svg {

    fill: none;

    stroke: currentColor;

    stroke-width: 1.65;

    stroke-linecap: round;

    stroke-linejoin: round;

}



/* =====================================================
   ACCESSIBILITÀ
   ===================================================== */

.skip-link {

    position: fixed;

    left: 16px;

    top: -60px;

    z-index: 999;

    background: var(--surface);

    color: var(--title);

    padding: 10px 14px;

    border-radius: 10px;

    box-shadow: var(--shadow);

    transition: top 0.2s ease;

}


.skip-link:focus {
    top: 16px;
}


:focus-visible {

    outline: 3px solid #68b9c9;

    outline-offset: 3px;

}



/* =====================================================
   HEADER
   ===================================================== */

.site-header {

    position: absolute;

    inset: 0 0 auto;

    z-index: 20;

    width: var(--content);

    margin-inline: auto;

    height: 104px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--hero-text);

}


.brand {

    width: 116px;

    flex: 0 0 auto;

}


.brand img {

    width: 100%;

    max-height: 80px;

    object-fit: contain;

}


.header-actions {

    display: flex;

    align-items: center;

    gap: 26px;

}



/* =====================================================
   NAVBAR
   ===================================================== */

.primary-nav {

    display: flex;

    align-items: center;

    gap:
        clamp(
            16px,
            2vw,
            28px
        );

}


.primary-nav a {

    position: relative;

    text-decoration: none;

    font-size: 14px;

    font-weight: 520;

    white-space: nowrap;

    text-shadow:
        0 1px 14px
        rgba(0, 0, 0, 0.35);

}


.primary-nav a::after {

    content: "";

    position: absolute;

    left: 0;

    right: 100%;

    bottom: -5px;

    height: 1px;

    background: currentColor;

    transition:
        right 0.25s ease;

}


.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {

    right: 0;

}



/* =====================================================
   LINGUE
   ===================================================== */

.lang-menu {
    position: relative;
}


.lang-menu summary {

    list-style: none;

    cursor: pointer;

    min-width: 76px;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 8px 10px;

    border:
        1px solid
        rgba(255, 255, 255, 0.45);

    border-radius: 999px;

    background:
        rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(8px);

    font-size: 13px;

    font-weight: 650;

}


.lang-menu summary::-webkit-details-marker {
    display: none;
}


.lang-options {

    position: absolute;

    top: calc(100% + 8px);

    right: 0;

    min-width: 116px;

    padding: 7px;

    background:
        rgba(255, 255, 255, 0.96);

    color: var(--title);

    border:
        1px solid
        rgba(32, 62, 60, 0.12);

    border-radius: 14px;

    box-shadow: var(--shadow);

    backdrop-filter: blur(16px);

}


.lang-options button {

    width: 100%;

    border: 0;

    background: transparent;

    color: inherit;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 10px;

    border-radius: 9px;

    cursor: pointer;

    text-align: left;

}


.lang-options button:hover,
.lang-options button:focus-visible {
    background: var(--soft);
}


.mobile-menu-toggle {
    display: none;
}



/* =====================================================
   HERO
   ===================================================== */

.hero {

    position: relative;

    min-height: 650px;

    height:
        min(
            78vh,
            800px
        );

    overflow: hidden;

    background: #18495c;

}


.hero-media {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center 54%;

}


.hero-shade {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(8, 31, 38, 0.35) 0%,
            rgba(8, 31, 38, 0.09) 40%,
            rgba(8, 31, 38, 0.20) 100%
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    height: 100%;

    width: var(--content);

    margin-inline: auto;

    display: grid;

    place-content: center;

    text-align: center;

    color: var(--hero-text);

    padding-top: 60px;

}


.hero h1 {

    max-width: 820px;

    margin: 0;

    font-family: var(--title-font);

    font-size:
        clamp(
            48px,
            6vw,
            82px
        );

    line-height: 0.98;

    font-weight: 400;

    text-wrap: balance;

    text-shadow:
        0 3px 24px
        rgba(0, 0, 0, 0.26);

}



/* =====================================================
   CATCH PHRASES
   ===================================================== */

.highlights {

    width: var(--content);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    gap: 12px;

    padding: 46px 0 58px;

}


.highlight-item {

    display: grid;

    justify-items: center;

    text-align: center;

    gap: 12px;

    color: var(--accent);

}


.highlight-item img {

    width: 48px;

    height: 48px;

    object-fit: contain;

}


.highlight-item h2 {

    margin: 0;

    font-family: var(--title-font);

    font-size:
        clamp(
            18px,
            1.5vw,
            22px
        );

    font-weight: 400;

    color: var(--accent);

}



/* =====================================================
   SEZIONI
   ===================================================== */

.section {

    width: var(--content);

    margin-inline: auto;

    padding: 82px 0;

}


.section-heading {

    max-width: 820px;

    margin-bottom: 42px;

}


.section-heading.compact {
    max-width: 710px;
}


.eyebrow {

    margin: 0 0 8px;

    color: var(--accent);

    font-size: 12px;

    font-weight: 720;

    letter-spacing: 0.14em;

    text-transform: uppercase;

}


.section-heading h2,
.about-heading h2 {

    margin: 0 0 16px;

    color: var(--title);

    font-family: var(--title-font);

    font-size:
        clamp(
            42px,
            5vw,
            64px
        );

    line-height: 1.02;

    font-weight: 400;

}


.section-heading > p:last-child {

    margin: 0;

    color: #2d3837;

    max-width: 760px;

}



/* =====================================================
   VILLE
   ===================================================== */

.villa-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 24px;

}


.villa-card {

    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    padding: 0;

    border: 0;

    border-radius: var(--radius-md);

    background: #dce4e3;

    cursor: pointer;

    box-shadow:
        0 8px 24px
        rgba(31, 60, 58, 0.07);

}


.villa-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        filter 0.45s ease,
        transform 0.55s
        cubic-bezier(
            0.2,
            0.8,
            0.2,
            1
        );

}


.villa-overlay {

    position: absolute;

    inset: 0;

    display: grid;

    place-content: center;

    justify-items: center;

    gap: 4px;

    color: white;

    background:
        rgba(15, 52, 59, 0);

    opacity: 0;

    transition:
        opacity 0.35s ease,
        background 0.35s ease;

}


.villa-overlay > span {

    font-family: var(--title-font);

    font-size:
        clamp(
            30px,
            4vw,
            52px
        );

    line-height: 1;

}


.villa-overlay small {

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.13em;

    font-weight: 680;

}


.villa-card:hover img,
.villa-card:focus-visible img {

    filter:
        blur(3px)
        saturate(1.08);

    transform: scale(1.025);

}


.villa-card:hover .villa-overlay,
.villa-card:focus-visible .villa-overlay {

    opacity: 1;

    background:
        rgba(15, 52, 59, 0.48);

}



/* =====================================================
   SERVIZI
   ===================================================== */

.services-section {
    padding-top: 96px;
}


.service-tabs {

    display: inline-flex;

    gap: 6px;

    padding: 5px;

    background: #e9efed;

    border-radius: 999px;

    margin-bottom: 26px;

}


.service-tab {

    border: 0;

    background: transparent;

    color: var(--title);

    padding: 10px 18px;

    border-radius: 999px;

    cursor: pointer;

    font-weight: 650;

}


.service-tab.is-active {

    background: var(--accent);

    color: white;

}


.services-content {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 18px;

}


.service-group {

    padding: 24px;

    background:
        rgba(255, 255, 255, 0.7);

    border:
        1px solid
        var(--line);

    border-radius: var(--radius-md);

}


.service-group h3 {

    margin: 0 0 16px;

    color: var(--title);

    font-family: var(--title-font);

    font-size: 22px;

    font-weight: 400;

}


.service-list {

    list-style: none;

    padding: 0;

    margin: 0;

    display: grid;

    gap: 9px;

}


.service-list li {

    position: relative;

    padding-left: 20px;

    color: #24312f;

    font-size: 14px;

}


.service-list li::before {

    content: "✓";

    position: absolute;

    left: 0;

    color: var(--accent);

    font-weight: 800;

}


.service-note {

    grid-column: 1 / -1;

    margin: 4px 0 0;

    font-size: 13px;

    color: var(--muted);

}



/* =====================================================
   DISPONIBILITÀ
   ===================================================== */

.availability-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, 0.65fr);

    gap: 24px;

    align-items: stretch;

}


.availability-card {

    background: var(--surface);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    padding: 34px;

}


.calendar-toolbar {

    display: grid;

    grid-template-columns:
        44px 1fr 44px;

    align-items: center;

    margin-bottom: 20px;

}


.calendar-toolbar h3 {

    margin: 0;

    text-align: center;

    color: var(--title);

    font-family: var(--title-font);

    font-size: 28px;

    font-weight: 400;

    text-transform: capitalize;

}


.calendar-arrow,
.reviews-controls button {

    border:
        1px solid
        var(--line);

    background: var(--bg);

    color: var(--title);

    width: 42px;

    height: 42px;

    border-radius: 50%;

    cursor: pointer;

}


.calendar-arrow:hover,
.calendar-arrow:focus-visible,
.reviews-controls button:hover,
.reviews-controls button:focus-visible {

    border-color: var(--accent);

    color: var(--accent);

}


.calendar-weekdays,
.calendar-grid {

    display: grid;

    grid-template-columns:
        repeat(
            7,
            1fr
        );

    gap: 7px;

}


.calendar-weekdays {
    margin-bottom: 7px;
}


.calendar-weekdays span {

    text-align: center;

    color: var(--muted);

    font-size: 11px;

    font-weight: 750;

    text-transform: uppercase;

}


.calendar-day {

    aspect-ratio: 1;

    display: grid;

    place-items: center;

    border: 0;

    border-radius: 10px;

    font-size: 13px;

    cursor: pointer;

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        outline-color 0.16s ease;

}


.calendar-day:not(:disabled):hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 15px
        rgba(32, 62, 60, 0.1);

}


.calendar-day.is-loading {

    background: #eef1f0;

    color: #9ca6a4;

    cursor: wait;

}


.calendar-day.is-available {

    background: var(--both);

    color: var(--both-text);

}


.calendar-day.is-partial {

    background: var(--partial);

    color: var(--partial-text);

}


.calendar-day.is-unavailable {

    background: var(--none);

    color: var(--none-text);

}


.calendar-day.is-selected {

    outline:
        2px solid
        var(--accent);

    outline-offset: -2px;

    font-weight: 800;

}


.calendar-day.is-today {

    box-shadow:
        inset 0 0 0 1px
        rgba(26, 98, 115, 0.42);

}


.calendar-day.is-past {

    background: #eef1f0;

    color: #a2aaa8;

    opacity: 0.48;

    cursor: default;

}


.calendar-day.is-empty {

    background: transparent;

    pointer-events: none;

}


.calendar-legend {

    display: flex;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 22px;

    color: var(--muted);

    font-size: 12px;

}


.calendar-legend > span {

    display: flex;

    align-items: center;

    gap: 7px;

}


.legend-dot {

    width: 11px;

    height: 11px;

    border-radius: 3px;

    display: inline-block;

}


.legend-dot.both {

    background: var(--both);

    border:
        1px solid
        #c8dfd7;

}


.legend-dot.partial {
    background: var(--partial);
}


.legend-dot.none {
    background: var(--none);
}



/* =====================================================
   PANNELLO DISPONIBILITÀ
   ===================================================== */

.availability-details {

    min-height: 100%;

    padding: 34px;

    border:
        1px solid
        var(--line);

    border-radius: var(--radius-lg);

    background:
        rgba(255, 255, 255, 0.72);

    display: flex;

    flex-direction: column;

}


.availability-details h3 {

    margin: 2px 0 10px;

    color: var(--title);

    font-family: var(--title-font);

    font-size:
        clamp(
            27px,
            3vw,
            36px
        );

    line-height: 1.08;

    font-weight: 400;

    text-transform: capitalize;

}


.availability-summary {

    margin: 0 0 30px;

    color: var(--muted);

    font-size: 14px;

}


.availability-villas {

    display: grid;

    gap: 0;

}


.availability-villa {

    min-height: 64px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    border-top:
        1px solid
        var(--line);

}


.availability-villa:first-child {
    border-top: 0;
}


.availability-villa > span {

    color: var(--title);

    font-weight: 650;

}


.availability-status {

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 750;

    white-space: nowrap;

}


.availability-status.is-free {

    background: var(--both);

    color: var(--both-text);

}


.availability-status.is-booked {

    background: var(--none);

    color: var(--none-text);

}


.availability-status.is-neutral {

    background: var(--soft);

    color: var(--muted);

}


.availability-note {

    margin-top: auto;

    padding-top: 28px;

    display: flex;

    align-items: flex-end;

    gap: 10px;

    color: var(--accent);

}


.availability-note > span {

    font-family: var(--title-font);

    font-size: 30px;

    line-height: 1;

}


.availability-note p {

    margin: 0;

    max-width: 240px;

    color: var(--muted);

    font-size: 12px;

}



/* =====================================================
   RECENSIONI
   ===================================================== */

.reviews-section {
    overflow: hidden;
}


.reviews-shell {

    overflow: hidden;

    padding: 4px;

}


.reviews-track {

    display: flex;

    transition:
        transform 1.15s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        );

}


.review-card {

    min-width: 100%;

    padding: 26px 30px;

    border:
        1px solid
        var(--line);

    background:
        rgba(
            255,
            255,
            255,
            0.72
        );

    border-radius:
        var(--radius-md);

    min-height: 220px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.review-card.is-empty {
    text-align: center;
}


.review-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;

}

.review-date {

    color: var(--muted);

    font-size: 12px;

    font-weight: 500;

}


.review-title {

    margin:
        0 0 10px;

    color:
        var(--accent);

    font-family:
        var(--ui-font);

    font-size: 12px;

    line-height: 1.4;

    font-weight: 750;

    letter-spacing: 0.055em;

    text-transform: uppercase;

}

.booking-badge {

    color: var(--accent);

    font-size: 12px;

    font-weight: 750;

}


.review-score {

    font-family: var(--title-font);

    color: var(--title);

    font-size: 26px;

}


.review-card blockquote {

    max-width: 920px;

    margin: 0;

    color:
        var(--title);

    font-family:
        var(--title-font);

    font-size:
        clamp(
            18px,
            1.7vw,
            23px
        );

    line-height: 1.45;

    font-weight: 300;

}

.review-expand {

    align-self: flex-start;

    margin-top: 13px;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        var(--accent);

    cursor: pointer;

    font-size: 12px;

    font-weight: 750;

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 4px;

}


.review-expand:hover {

    color:
        var(--accent-dark);

}

.review-meta {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;

    font-size: 12px;

    color:
        var(--muted);

}

.review-link {

    color: var(--accent);

    font-weight: 700;

    text-decoration-thickness: 1px;

    text-underline-offset: 4px;

}


.review-empty-title {

    margin: 0 0 12px;

    font-family: var(--title-font);

    color: var(--title);

    font-size: 34px;

    font-weight: 400;

}


.review-empty-copy {

    max-width: 520px;

    margin: 0 auto 22px;

    color: var(--muted);

}


.reviews-controls {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 14px;

    margin-top: 22px;

}


.reviews-dots,
.gallery-dots {

    display: flex;

    gap: 7px;

}


.reviews-dots button,
.gallery-dots button {

    width: 7px;

    height: 7px;

    min-width: 0;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #b8c6c4;

    cursor: pointer;

}


.reviews-dots button.is-active,
.gallery-dots button.is-active {

    background: var(--accent);

    transform: scale(1.35);

}



/* =====================================================
   DOVE SIAMO
   ===================================================== */

.location-section {
    padding-bottom: 100px;
}


.location-address {
    color: var(--muted) !important;
}


.location-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

}


.place-card {

    display: grid;

    grid-template-columns:
        54px 1fr;

    gap: 18px;

    padding: 28px;

    border-radius: var(--radius-md);

    background:
        rgba(255, 255, 255, 0.68);

    border:
        1px solid
        var(--line);

}


.place-icon {

    width: 54px;

    height: 54px;

    border-radius: 15px;

    background: var(--soft);

    color: var(--accent);

    display: grid;

    place-items: center;

    font-family: var(--title-font);

    font-size: 30px;

}


.place-card h3 {

    margin: 0 0 14px;

    font-family: var(--title-font);

    color: var(--title);

    font-size: 26px;

    font-weight: 400;

}


.place-card ul {

    list-style: none;

    padding: 0;

    margin: 0;

    display: grid;

    gap: 12px;

}


.place-card li {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid
        var(--line);

    padding-top: 12px;

    font-size: 14px;

}


.place-card li:first-child {

    border-top: 0;

    padding-top: 0;

}


.place-card strong {

    color: var(--accent);

    white-space: nowrap;

}


.map-link {

    margin-top: 20px;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--accent);

    font-weight: 700;

    text-decoration: none;

}


.map-link:hover {

    text-decoration: underline;

    text-underline-offset: 4px;

}



/* =====================================================
   ABOUT
   ===================================================== */

.about-section {

    width: 100%;

    background: var(--title);

    color: white;

}


.about-card {

    width: var(--content);

    margin: 0 auto;

    padding: 92px 0 100px;

    display: grid;

    grid-template-columns:
        0.75fr 1.6fr;

    column-gap: 70px;

    align-items: start;

}


.about-heading h2 {
    color: white;
}


.about-heading .eyebrow {
    color: #9bcbd4;
}


.about-copy {

    display: grid;

    gap: 18px;

    font-size: 17px;

    line-height: 1.75;

    color:
        rgba(255, 255, 255, 0.9);

}


.about-copy p {
    margin: 0;
}


.about-signature {

    grid-column: 2;

    margin: 30px 0 0;

    font-family: var(--title-font);

    font-style: italic;

    font-size: 30px;

    color: #d9ecef;

}



/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {

    width: var(--content);

    margin-inline: auto;

    padding: 36px 0 42px;

    display: flex;

    justify-content: space-between;

    gap: 40px;

    align-items: flex-end;

}


.footer-contact {

    display: flex;

    align-items: center;

    gap: 18px;

}


.footer-contact img {
    width: 76px;
}


.footer-contact div {

    display: grid;

    gap: 3px;

}


.footer-contact a {

    color: var(--accent);

    text-decoration: none;

    font-size: 13px;

}


.footer-credit {

    text-align: right;

    display: grid;

    gap: 3px;

    font-size: 13px;

    color: var(--muted);

}


.footer-credit a {

    color: var(--accent);

    font-weight: 700;

    text-decoration: none;

}



/* =====================================================
   WHATSAPP
   ===================================================== */

.whatsapp-float {

    position: fixed;

    right:
        max(
            22px,
            calc(
                (100vw - 1180px) / 2
            )
        );

    bottom: 24px;

    z-index: 50;

    height: 56px;

    width: 56px;

    border: 0;

    border-radius: 999px;

    background: var(--accent);

    color: white;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 10px;

    padding: 0 16px;

    box-shadow:
        0 12px 32px
        rgba(26, 98, 115, 0.34);

    cursor: pointer;

    overflow: hidden;

    transition:
        width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.2s ease,
        transform 0.2s ease,
        bottom 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    

}

.whatsapp-float.footer-visible {

    bottom: 105px;

}


.whatsapp-float svg {

    flex: 0 0 24px;

    width: 24px;

    height: 24px;

    stroke-width: 1.8;

}


.whatsapp-float span {

    white-space: nowrap;

    opacity: 0;

    transform:
        translateX(8px);

    transition:
        opacity 0.2s ease 0.06s,
        transform 0.25s ease 0.06s;

    font-size: 14px;

    font-weight: 700;

}


.whatsapp-float:hover,
.whatsapp-float:focus-visible {

    width: 208px;

    background: var(--accent-dark);

    transform:
        translateY(-2px);

}


.whatsapp-float:hover span,
.whatsapp-float:focus-visible span {

    opacity: 1;

    transform:
        translateX(0);

}



/* =====================================================
   TOAST
   ===================================================== */

.toast {

    position: fixed;

    left: 50%;

    bottom: 28px;

    z-index: 100;

    transform:
        translate(
            -50%,
            24px
        );

    background: #162b2a;

    color: white;

    padding: 12px 16px;

    border-radius: 12px;

    opacity: 0;

    pointer-events: none;

    transition: 0.25s ease;

    box-shadow: var(--shadow);

    font-size: 13px;

}


.toast.is-visible {

    opacity: 1;

    transform:
        translate(
            -50%,
            0
        );

}



/* =====================================================
   GALLERIA
   ===================================================== */

.gallery-modal {

    width:
        min(
            1180px,
            calc(100vw - 36px)
        );

    max-width: none;

    padding: 0;

    border: 0;

    border-radius: var(--radius-lg);

    overflow: hidden;

    background: #f5f7f6;

    color: var(--text);

    box-shadow:
        0 32px 100px
        rgba(0, 0, 0, 0.32);

}


.gallery-modal::backdrop {

    background:
        rgba(7, 24, 27, 0.74);

    backdrop-filter:
        blur(10px);

}


.gallery-modal-inner {
    padding: 22px;
}


.gallery-head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;

}


.gallery-label {

    color: var(--accent);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.14em;

    font-weight: 750;

}


.gallery-head h2 {

    margin: 2px 0 0;

    font-family: var(--title-font);

    color: var(--title);

    font-size: 34px;

    font-weight: 400;

}


.gallery-close {

    width: 44px;

    height: 44px;

    border:
        1px solid
        var(--line);

    border-radius: 50%;

    background: white;

    color: var(--title);

    cursor: pointer;

    font-size: 26px;

}


.gallery-stage {

    position: relative;

    display: grid;

    grid-template-columns:
        46px
        minmax(0, 1fr)
        46px;

    align-items: center;

    gap: 10px;

}


.gallery-viewport {

    overflow: hidden;

    border-radius: 18px;

    background: #dfe6e4;

}


.gallery-track {

    display: flex;

    transition:
        transform 0.58s
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        );

    touch-action: pan-y;

}


.gallery-slide {

    min-width: 100%;

    aspect-ratio: 16 / 9;

    margin: 0;

    background: #dfe6e4;

}


.gallery-slide img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.gallery-arrow {

    width: 44px;

    height: 44px;

    border:
        1px solid
        var(--line);

    background: white;

    color: var(--title);

    border-radius: 50%;

    cursor: pointer;

}


.gallery-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 15px;

    padding-inline: 58px;

    color: var(--muted);

    font-size: 12px;

}



/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1040px) {

    :root {

        --content:
            min(
                100% - 36px,
                900px
            );

    }


    .primary-nav {
        gap: 14px;
    }


    .primary-nav a {
        font-size: 12px;
    }


    .header-actions {
        gap: 14px;
    }


    .services-content {

        grid-template-columns:
            repeat(
                2,
                1fr
            );

    }


    .availability-layout {

        grid-template-columns:
            1fr;

    }


    .availability-details {
        min-height: 300px;
    }


    .about-card {

        grid-template-columns: 1fr;

        gap: 28px;

    }


    .about-signature {
        grid-column: 1;
    }

}



/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 820px) {

    :root {
        --content:
            calc(100% - 32px);
    }


    .site-header {
        height: 82px;
    }


    .brand {
        width: 94px;
    }


    .mobile-menu-toggle {

        display: grid;

        width: 44px;

        height: 44px;

        padding: 11px;

        border:
            1px solid
            rgba(
                255,
                255,
                255,
                0.45
            );

        border-radius: 50%;

        background:
            rgba(
                0,
                0,
                0,
                0.12
            );

        backdrop-filter:
            blur(8px);

        cursor: pointer;

    }


    .mobile-menu-toggle span {

        height: 1px;

        background: white;

        width: 100%;

        align-self: center;

    }


    .header-actions {

        position: absolute;

        top: 72px;

        right: 0;

        width:
            min(
                330px,
                calc(100vw - 32px)
            );

        padding: 18px;

        border-radius: 20px;

        background:
            rgba(
                247,
                247,
                245,
                0.97
            );

        color: var(--title);

        box-shadow: var(--shadow);

        backdrop-filter:
            blur(16px);

        display: none;

        align-items: stretch;

        flex-direction: column;

    }


    .site-header.menu-open
    .header-actions {

        display: flex;

    }


    .primary-nav {

        display: grid;

        gap: 2px;

    }


    .primary-nav a {

        padding: 9px 8px;

        font-size: 14px;

        text-shadow: none;

        border-radius: 9px;

    }


    .primary-nav a:hover {
        background: var(--soft);
    }


    .lang-menu summary {

        color: var(--title);

        background: white;

        border-color: var(--line);

        justify-content: flex-start;

    }


    .lang-options {

        position: static;

        margin-top: 6px;

        box-shadow: none;

        border-radius: 10px;

    }


    .hero {

        height: 70vh;

        min-height: 560px;

    }


    .highlights {

        grid-template-columns:
            repeat(
                2,
                1fr
            );

        row-gap: 34px;

    }


    .villa-grid,
    .location-grid {

        grid-template-columns: 1fr;

    }


    .services-content {
        grid-template-columns: 1fr;
    }


    .section {
        padding: 66px 0;
    }


    .availability-card,
    .availability-details {

        padding: 24px 18px;

    }


    .review-card {
        padding: 26px;
    }


    .about-card {
        padding: 72px 0 80px;
    }


    .site-footer {

        align-items: flex-start;

        flex-direction: column;

    }


    .footer-credit {
        text-align: left;
    }


    .whatsapp-float {

        right: 18px;

        bottom: 18px;

    }


    .gallery-modal {
        width: calc(100vw - 20px);
    }


    .gallery-modal-inner {
        padding: 14px;
    }


    .gallery-stage {

        grid-template-columns: 1fr;

    }


    .gallery-arrow {

        position: absolute;

        z-index: 2;

        top: 50%;

        transform:
            translateY(-50%);

        background:
            rgba(
                255,
                255,
                255,
                0.9
            );

    }


    .gallery-arrow.prev {
        left: 10px;
    }


    .gallery-arrow.next {
        right: 10px;
    }


    .gallery-footer {
        padding-inline: 4px;
    }

}



/* =====================================================
   SMARTPHONE
   ===================================================== */

@media (max-width: 540px) {

    .hero {
        min-height: 520px;
    }


    .hero h1 {

        font-size:
            clamp(
                42px,
                13vw,
                62px
            );

    }


    .highlights {
        padding: 38px 0 44px;
    }


    .highlight-item img {

        width: 40px;

        height: 40px;

    }


    .highlight-item h2 {
        font-size: 17px;
    }


    .section-heading h2,
    .about-heading h2 {
        font-size: 43px;
    }


    .villa-card {
        aspect-ratio: 4 / 3;
    }


    .service-tabs {

        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(
                3,
                1fr
            );

        border-radius: 16px;

    }


    .service-tab {

        padding: 9px 6px;

        border-radius: 12px;

        font-size: 12px;

    }


    .calendar-weekdays,
    .calendar-grid {
        gap: 4px;
    }


    .calendar-day {

        border-radius: 7px;

        font-size: 12px;

    }


    .calendar-legend {

        flex-direction: column;

        gap: 8px;

    }


    .review-card blockquote {
        font-size: 26px;
    }


    .review-meta {

        align-items: flex-start;

        flex-direction: column;

    }


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


    .about-copy {
        font-size: 16px;
    }


    .whatsapp-float:hover,
    .whatsapp-float:focus-visible {
        width: 56px;
    }


    .whatsapp-float:hover span,
    .whatsapp-float:focus-visible {
        opacity: 0;
    }


    .gallery-slide {
        aspect-ratio: 4 / 3;
    }

}



/* =====================================================
   RIDUZIONE MOVIMENTO
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

    }

}