:root {
    --navy: #0e2d3d;
    --navy-deep: #092434;
    --paper: #fbf7ef;
    --cream: #f1e7d9;
    --terracotta: #c86f4b;
    --terracotta-dark: #a9583b;
    --gold: #c6a15c;
    --ink: #403a35;
    --muted: #766c63;
    --white: #fffaf2;
    --line: rgba(94, 77, 59, 0.17);
    --shadow: 0 18px 45px rgba(34, 25, 18, 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);
    line-height: 1.6;
}

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

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

button {
    font: inherit;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-3px);
}

.btn-primary {
    color: var(--white);
    background: var(--terracotta);
    box-shadow: 0 10px 22px rgba(160, 82, 52, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--terracotta-dark);
}

.btn-outline,
.btn-outline-light {
    color: var(--terracotta);
    background: rgba(255, 250, 242, 0.72);
    border-color: rgba(201, 111, 75, 0.44);
}

.btn-outline-light {
    color: var(--white);
    background: rgba(255, 250, 242, 0.08);
    border-color: rgba(255, 250, 242, 0.34);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    color: var(--white);
    background: var(--terracotta);
    border-color: var(--terracotta);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background: rgba(255, 250, 242, 0.16);
    border-color: var(--gold);
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--terracotta);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.04;
}

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    height: 94px;
    color: var(--white);
}

.nav-shell {
    width: min(1500px, calc(100% - 70px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 245px 1fr 150px;
    align-items: center;
    gap: 24px;
    opacity: 0;
    animation: navDrop 680ms ease forwards;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.brand-logo-img {
    display: block;
    width: 268px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

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

.nav-menu li,
.header-cta {
    opacity: 0;
    animation: navItemRise 520ms ease forwards;
}

.nav-menu li:nth-child(1) { animation-delay: 90ms; }
.nav-menu li:nth-child(2) { animation-delay: 145ms; }
.nav-menu li:nth-child(3) { animation-delay: 200ms; }
.nav-menu li:nth-child(4) { animation-delay: 255ms; }
.nav-menu li:nth-child(5) { animation-delay: 310ms; }
.header-cta { animation-delay: 365ms; }

.nav-menu a {
    position: relative;
    display: inline-flex;
    color: rgba(255, 250, 242, 0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

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

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    border: 1px solid rgba(198, 161, 92, 0.44);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(9, 36, 52, 0.78);
    cursor: pointer;
    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 {
    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);
}

.header-cta {
    min-height: 46px;
    padding: 0 25px;
    border-radius: 999px;
    font-size: 11px;
    justify-self: end;
}

.services-hero {
    min-height: 610px;
    color: var(--white);
    background-image:
        linear-gradient(90deg, rgba(8, 13, 17, 0.86) 0%, rgba(8, 13, 17, 0.62) 43%, rgba(8, 13, 17, 0.2) 100%),
        linear-gradient(180deg, rgba(7, 10, 12, 0.22), rgba(7, 10, 12, 0.78)),
        url("../images/sfondo.jpg?v=20260626-cover2");
    background-position: center 50%;
    background-size: cover;
    animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-inner {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 52px;
    padding-top: 72px;
}

.hero-copy {
    width: min(760px, 100%);
}

.hero-copy .section-kicker {
    color: var(--gold);
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-family: var(--serif);
    font-size: clamp(48px, 7vw, 76px);
    font-weight: 500;
    line-height: 1.02;
    text-shadow: 0 5px 24px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
    width: min(650px, 100%);
    margin: 0;
    color: rgba(255, 250, 242, 0.9);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-panel {
    padding: 30px;
    border: 1px solid rgba(198, 161, 92, 0.33);
    border-radius: 8px;
    background: rgba(9, 36, 52, 0.58);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
}

.hero-panel strong {
    display: block;
    margin-bottom: 16px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
}

.hero-panel ul,
.feature-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-panel li,
.feature-list li {
    position: relative;
    padding-left: 24px;
    color: rgba(255, 250, 242, 0.84);
    font-size: 14px;
}

.hero-panel li::before,
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(198, 161, 92, 0.14);
}

.quick-services {
    position: relative;
    z-index: 2;
    margin-top: -64px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid rgba(198, 161, 92, 0.22);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(198, 161, 92, 0.22);
    box-shadow: var(--shadow);
}

.quick-item {
    min-height: 166px;
    padding: 26px;
    background: rgba(255, 250, 242, 0.95);
}

.quick-item span {
    display: block;
    margin-bottom: 20px;
    color: var(--terracotta);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.quick-item strong {
    display: block;
    margin-bottom: 10px;
    color: var(--navy-deep);
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.1;
}

.quick-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.services-page-section {
    padding: 86px 0 80px;
}

.section-heading {
    display: grid;
    max-width: 760px;
    gap: 14px;
    margin-bottom: 34px;
    text-align: center;
}

.section-heading p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-detail-card {
    min-height: 285px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.82);
    box-shadow: 0 14px 34px rgba(57, 42, 26, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(198, 161, 92, 0.48);
    box-shadow: 0 19px 42px rgba(57, 42, 26, 0.15);
}

.service-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(198, 161, 92, 0.44);
    border-radius: 50%;
    color: var(--gold);
    background: rgba(198, 161, 92, 0.08);
}

.service-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.service-detail-card h3 {
    margin: 0 0 11px;
    color: var(--navy-deep);
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.08;
}

.service-detail-card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
}

.service-detail-card small {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(198, 161, 92, 0.3);
    border-radius: 999px;
    color: var(--terracotta);
    background: rgba(255, 250, 242, 0.8);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-band {
    padding: 78px 0;
    background:
        radial-gradient(circle at 84% 10%, rgba(198, 161, 92, 0.13), transparent 24rem),
        var(--cream);
}

.feature-layout,
.guest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.feature-media {
    min-height: 430px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-media img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.feature-copy h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 500;
    line-height: 1.04;
}

.feature-copy p,
.guest-copy p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.8;
}

.feature-list {
    margin-bottom: 28px;
}

.feature-list li {
    color: var(--ink);
}

.guest-services {
    padding: 84px 0;
    background: var(--paper);
}

.guest-layout {
    align-items: start;
}

.guest-list {
    display: grid;
    gap: 12px;
}

.guest-row {
    display: grid;
    grid-template-columns: minmax(155px, 0.42fr) minmax(0, 1fr);
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.guest-row:first-child {
    border-top: 1px solid var(--line);
}

.guest-row strong {
    color: var(--navy-deep);
    font-size: 14px;
}

.guest-row span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.services-cta {
    padding: 76px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 250, 242, 0.08), transparent 24rem),
        var(--navy-deep);
}

.cta-inner {
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.cta-inner h2 {
    max-width: 740px;
    margin: 0;
    color: var(--white);
    font-family: var(--serif);
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 500;
    line-height: 1.05;
}

.cta-inner p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 250, 242, 0.78);
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.site-footer {
    padding: 29px 0 21px;
    background: var(--paper);
    border-top: 1px solid rgba(89, 70, 48, 0.12);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    color: #74695f;
    font-size: 12px;
    font-weight: 500;
}

.legal-codes {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 680ms ease, transform 680ms ease;
    transition-delay: 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); }

@keyframes heroDrift {
    from { background-position: center 50%; }
    to { background-position: center 55%; }
}

@keyframes navDrop {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes navItemRise {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1180px) {
    .service-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1050px) {
    .nav-shell {
        width: calc(100% - 38px);
        grid-template-columns: 210px 1fr 130px;
    }

    .nav-menu {
        gap: 17px;
    }

    .nav-menu a {
        font-size: 10px;
    }

    .hero-inner,
    .feature-layout,
    .guest-layout {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 900px) {
    .site-header {
        height: auto;
        padding: 18px 0;
    }

    .nav-shell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        width: calc(100% - 32px);
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border: 1px solid rgba(198, 161, 92, 0.24);
        border-radius: 8px;
        background: rgba(9, 36, 52, 0.96);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
        z-index: 40;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        opacity: 1;
        animation: none;
    }

    .nav-menu a {
        width: 100%;
        justify-content: center;
        padding: 13px 12px;
        color: rgba(255, 250, 242, 0.94);
        font-size: 12px;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

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

    .header-cta {
        display: none;
    }

    .services-hero,
    .hero-inner {
        min-height: 690px;
    }

    .hero-inner {
        align-content: center;
        gap: 28px;
        padding-top: 74px;
    }

    .hero-copy h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .hero-actions,
    .cta-actions,
    .footer-row {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .quick-services {
        margin-top: -36px;
    }

    .services-page-section,
    .guest-services {
        padding: 64px 0;
    }

    .feature-band {
        padding: 64px 0;
    }

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

    .feature-media,
    .feature-media img {
        min-height: 300px;
    }

    .guest-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
