:root {
    --gold: #c5a059;
    --gold-dark: #9f7f42;
    --ink: #1f1a12;
    --muted: #5f635e;
    --paper: #faf9f6;
    --line: rgba(31, 26, 18, 0.12);
    --white: #ffffff;
    --green: #315a4f;
}

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

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    animation: villaPageFade 0.6s ease both;
}

.villa-hero {
    min-height: 78vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
    align-items: stretch;
    background: #16221f;
}

.villa-hero__image {
    min-height: 520px;
    background:
        linear-gradient(90deg, rgba(15, 24, 21, 0.08), rgba(15, 24, 21, 0.62)),
        url("../img/interni/esternoalto.avif") center/cover no-repeat;
    animation: heroImageReveal 0.95s ease both;
}

.villa-hero__content {
    padding: 132px 48px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    animation: heroTextReveal 0.85s ease 0.12s both;
}

.eyebrow {
    margin: 0 0 12px;
    font-family: "Ysabeau SC", sans-serif;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.villa-hero h1,
.section-heading h2,
.intro-card h2,
.notice-card h2,
.important-note h2 {
    font-family: "Ysabeau SC", sans-serif;
}

.villa-hero h1 {
    margin: 0;
    font-size: clamp(3.6rem, 7vw, 6.8rem);
    line-height: 0.92;
    letter-spacing: 2px;
}

.villa-hero p:not(.eyebrow) {
    max-width: 56ch;
    margin: 24px 0 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.quick-facts span,
.services-grid span {
    border: 1px solid rgba(197, 160, 89, 0.38);
    border-radius: 999px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
}

.quick-facts span {
    opacity: 0;
    transform: translateY(12px);
    animation: smallItemReveal 0.45s ease both;
}

.quick-facts span:nth-child(1) {
    animation-delay: 0.5s;
}

.quick-facts span:nth-child(2) {
    animation-delay: 0.58s;
}

.quick-facts span:nth-child(3) {
    animation-delay: 0.66s;
}

.quick-facts span:nth-child(4) {
    animation-delay: 0.74s;
}

.content-wrap {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 72px 0 86px;
}

.intro-card {
    max-width: 920px;
    margin: 0 auto 72px;
    text-align: center;
}

.intro-card h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    color: var(--green);
}

.intro-card p,
.text-block,
.split-section p,
.notice-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
}

.info-section {
    padding: 48px 0;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 24px;
}

.section-heading span {
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--ink);
}

.info-grid,
.notice-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.info-panel,
.notice-card,
.important-note,
.registration-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(31, 26, 18, 0.07);
}

.info-panel,
.notice-card {
    padding: 26px;
}

.info-panel h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

ul {
    margin: 0;
    padding-left: 20px;
}

li {
    margin: 10px 0;
    color: var(--muted);
    line-height: 1.65;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 36px;
    align-items: start;
}

.feature-list {
    padding: 22px 26px 22px 44px;
    background: #edf3ef;
    border-left: 4px solid var(--green);
    border-radius: 8px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.services-grid span {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}

.notice-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 42px;
}

.notice-card h2,
.important-note h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
    color: var(--green);
}

.important-note {
    margin-top: 22px;
    padding: 28px;
    border-color: rgba(197, 160, 89, 0.38);
    background: #fff8ea;
}

.important-note p {
    margin: 0;
    color: #5c4720;
    font-weight: 600;
    line-height: 1.65;
}

.registration-box {
    margin-top: 22px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.registration-box span {
    color: var(--muted);
}

.registration-box strong {
    letter-spacing: 1px;
}

.page-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 42px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-family: "Ysabeau SC", sans-serif;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: var(--gold);
    box-shadow: 0 12px 24px rgba(197, 160, 89, 0.24);
}

.btn-secondary {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.reveal-item {
    opacity: 0;
    transform: translateY(28px);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal-group > * {
    opacity: 0;
    transform: translateY(18px);
}

.reveal-group.is-visible > * {
    animation: smallItemReveal 0.62s ease both;
}

.reveal-group.is-visible > *:nth-child(2) {
    animation-delay: 0.08s;
}

.reveal-group.is-visible > *:nth-child(3) {
    animation-delay: 0.16s;
}

.reveal-group.is-visible > *:nth-child(4) {
    animation-delay: 0.24s;
}

.reveal-group.is-visible > *:nth-child(5) {
    animation-delay: 0.32s;
}

.reveal-group.is-visible > *:nth-child(6) {
    animation-delay: 0.4s;
}

.reveal-group.is-visible > *:nth-child(7) {
    animation-delay: 0.48s;
}

.reveal-group.is-visible > *:nth-child(8) {
    animation-delay: 0.56s;
}

@keyframes villaPageFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroImageReveal {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateX(26px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@media (max-width: 900px) {
    .villa-hero {
        grid-template-columns: 1fr;
    }

    .villa-hero__image {
        min-height: 48vh;
    }

    .villa-hero__content {
        padding: 44px 26px 54px;
    }

    .info-grid,
    .split-section,
    .notice-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .content-wrap {
        width: min(100% - 28px, 1120px);
        padding: 48px 0 64px;
    }

    .villa-hero__content {
        padding: 34px 18px 44px;
    }

    .villa-hero h1 {
        font-size: clamp(3rem, 18vw, 4.5rem);
    }

    .section-heading {
        gap: 12px;
    }

    .info-panel,
    .notice-card,
    .important-note {
        padding: 22px;
    }

    .registration-box,
    .page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

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

    .reveal-item,
    .reveal-group > *,
    .quick-facts span {
        opacity: 1;
        transform: none;
    }
}
