:root {
    --paper: #f8f3ea;
    --cream: #fffaf2;
    --white: #ffffff;
    --ink: #2d2a27;
    --muted: #766c63;
    --navy: #0f2b3a;
    --navy-deep: #071924;
    --gold: #c6a15c;
    --terracotta: #cf704c;
    --terracotta-dark: #a95135;
    --line: rgba(94, 77, 59, 0.16);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Poppins", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(129, 102, 71, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(129, 102, 71, 0.028) 1px, transparent 1px),
        var(--paper);
    background-size: 34px 34px;
    font-family: var(--sans);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(7, 25, 36, 0.92);
    box-shadow: 0 14px 36px rgba(7, 25, 36, 0.18);
    backdrop-filter: blur(16px);
}

.nav-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1180px, calc(100% - 44px));
    min-height: 88px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
}

.brand-logo-img {
    display: block;
    width: 156px;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    position: relative;
    color: rgba(255, 250, 242, 0.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu .active a::after {
    transform: scaleX(1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, #d9825d, var(--terracotta));
    box-shadow: 0 16px 30px rgba(160, 82, 52, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 20px 38px rgba(160, 82, 52, 0.3);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(198, 161, 92, 0.44);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(9, 36, 52, 0.78);
    cursor: pointer;
    line-height: 0;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: var(--gold);
    background: rgba(9, 36, 52, 0.94);
}

.nav-toggle span {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.booking-hero {
    padding: 86px 0 40px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(7, 25, 36, 0.92), rgba(7, 25, 36, 0.58)),
        url("../images/sfondo.jpg") center / cover;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    align-items: end;
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 620px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(44px, 6vw, 78px);
    font-weight: 600;
    line-height: 0.98;
}

.hero-copy p {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 250, 242, 0.84);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.8;
}

.booking-prefill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    width: fit-content;
    margin-top: 24px;
    padding: 13px 16px;
    border: 1px solid rgba(198, 161, 92, 0.28);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.11);
    color: rgba(255, 250, 242, 0.9);
}

.booking-prefill span,
.booking-prefill em {
    color: var(--gold);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.booking-prefill strong {
    font-size: 14px;
    font-weight: 800;
}

.booking-note {
    display: grid;
    gap: 8px;
    padding: 28px;
    border: 1px solid rgba(198, 161, 92, 0.28);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.12);
}

.booking-note strong {
    color: var(--white);
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
}

.booking-note span {
    color: rgba(255, 250, 242, 0.78);
    line-height: 1.7;
}

.booking-widget-section {
    padding: 46px 0 78px;
}

.widget-card {
    overflow: hidden;
    border: 1px solid rgba(198, 161, 92, 0.28);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: 0 24px 58px rgba(57, 42, 26, 0.16);
}

.holidu-widget-shell {
    background: var(--cream);
}

.holidu-widget-frame {
    display: block;
}

.site-footer {
    border-top: 1px solid rgba(94, 77, 59, 0.12);
    background: rgba(255, 250, 242, 0.82);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--terracotta);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 620ms ease var(--reveal-delay, 0ms), transform 620ms ease var(--reveal-delay, 0ms);
}

.reveal[data-reveal="left"] {
    transform: translateX(-24px);
}

.reveal[data-reveal="right"] {
    transform: translateX(24px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 900px) {
    .nav-shell {
        min-height: 78px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 22px;
        right: 22px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border: 1px solid rgba(198, 161, 92, 0.24);
        border-radius: 8px;
        background: rgba(7, 25, 36, 0.96);
        box-shadow: 0 18px 38px rgba(7, 25, 36, 0.25);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        display: block;
        padding: 14px 10px;
    }

    .header-cta {
        display: none;
    }

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

@media (max-width: 640px) {
    .container,
    .nav-shell {
        width: min(100% - 28px, 1180px);
    }

    .brand-logo-img {
        width: 132px;
    }

    .booking-hero {
        padding: 58px 0 32px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .booking-note {
        padding: 22px;
    }

    .widget-card {
        margin: 0 -6px;
    }

    .holidu-widget-frame {
        min-height: 560px !important;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 0;
    }
}
