/* Explain: Styles for decorative elements, layout, and overlay panels. */
.site-header {
    background: linear-gradient(180deg, rgba(244, 235, 208, 0.9), rgba(244, 235, 208, 0.6));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--gold-accent);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(244, 235, 208, 0.85), rgba(255, 255, 255, 0.35));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(244, 235, 208, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.story-card {
    position: absolute;
    right: 0;
    bottom: 2.5rem;
    max-width: 290px;
    border-radius: 2rem;
    padding: 1.5rem;
}

.quiet-detail,
.amenity-row,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(244, 235, 208, 0.65);
    padding: 1.25rem;
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--gold-accent);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.class-card {
    min-height: 360px;
    border-radius: 2.2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.class-card:hover {
    border-color: rgba(88, 129, 87, 0.58);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
    transform: translateY(-6px);
}

.amenity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.amenity-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--gold-accent);
    box-shadow: 0 0 0 0.45rem rgba(197, 168, 128, 0.15);
}

.deco-divider {
    width: 100%;
    height: 45px;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='40' viewBox='0 0 400 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M200 4 L204 15 L215 19 L204 23 L200 34 L196 23 L185 19 L196 15 Z' fill='%23A87C4F'/%3E%3Cpath d='M175 19 Q125 -5 60 19 T0 19' stroke='%23A87C4F' stroke-width='1.5' fill='none'/%3E%3Cpath d='M225 19 Q275 -5 340 19 T400 19' stroke='%23A87C4F' stroke-width='1.5' fill='none'/%3E%3Cpath d='M160 19 Q140 35 100 19' stroke='%23A87C4F' stroke-width='1' fill='none'/%3E%3Cpath d='M240 19 Q260 35 300 19' stroke='%23A87C4F' stroke-width='1' fill='none'/%3E%3Ccircle cx='80' cy='19' r='2' fill='%23A87C4F'/%3E%3Ccircle cx='320' cy='19' r='2' fill='%23A87C4F'/%3E%3Ccircle cx='30' cy='19' r='1.5' fill='%23A87C4F'/%3E%3Ccircle cx='370' cy='19' r='1.5' fill='%23A87C4F'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.95;
    margin: 0 auto 4rem auto;
}

.bg-botanical {
    position: absolute;
    width: 300px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 300' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 300Q150 200 120 100T50 0' stroke='%23588157' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M110 230Q160 210 180 160Q140 180 110 230' fill='%23588157' opacity='0.5'/%3E%3Cpath d='M125 150Q180 120 190 70Q150 100 125 150' fill='%23588157' opacity='0.5'/%3E%3Cpath d='M95 180Q50 160 30 110Q70 130 95 180' fill='%23588157' opacity='0.5'/%3E%3Cpath d='M80 80Q30 50 10 10Q60 30 80 80' fill='%23588157' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.bg-botanical-right {
    right: -50px;
    top: 50px;
    transform: rotate(15deg);
}

.bg-botanical-left {
    left: -50px;
    bottom: 50px;
    transform: scaleX(-1) rotate(15deg);
}

.amenity-image-wrap {
    height: 660px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 3rem 999px 999px 3rem;
    box-shadow: var(--shadow-soft);
}

.booking-form,
.booking-overlay-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #4A6B53;
}

.form-status.error {
    color: #9B4A3D;
}

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

.lang-flag-btn {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    transition: all 300ms ease;
}

.lang-flag-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.lang-flag-btn.lang-active {
    border-color: var(--accent-color);
    background: var(--glass-bg);
    box-shadow: 0 0 0 2px var(--sage-soft);
}

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(244, 235, 208, 0.9);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(31, 46, 35, 0.32);
    padding: 1rem;
}

.booking-overlay.is-open {
    display: block;
}

.booking-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.22);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium,
    .amenity-image-wrap {
        height: 510px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 450px);
    }

    .floating-note,
    .story-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }

    .amenity-image-wrap {
        border-radius: 999px 999px 2rem 2rem;
    }
}

.arch-frame img,
.amenity-image-wrap img,
.class-card img,
.product-card img {
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.arch-frame:hover img,
.amenity-image-wrap:hover img,
.class-card:hover img,
.product-card:hover img {
    transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
    .arch-frame img,
    .amenity-image-wrap img,
    .class-card img,
    .product-card img {
        transition: none;
    }

    .arch-frame:hover img,
    .amenity-image-wrap:hover img,
    .class-card:hover img,
    .product-card:hover img {
        transform: none;
    }
}

/* Scroll Reveal & Asymmetrical Overlaps */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(70px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-70px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 {
    transition-delay: 150ms;
}

.reveal-delay-2 {
    transition-delay: 300ms;
}

/* Messaggio del Presidente (overlay) */
.president-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(31, 46, 35, 0.42);
}

.president-overlay.is-open {
    display: block;
}

.president-overlay-panel {
    position: relative;
    width: 100%;
    max-width: 62rem;
    margin: 4vh auto;
    border: 1px solid var(--glass-border);
    border-radius: 2.4rem;
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.22);
    padding: clamp(1.75rem, 4vw, 3rem);
}

.president-photo {
    height: 360px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 999px 999px 2rem 2rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 767px) {
    .president-photo {
        height: 300px;
    }
}

.page-documents-bg {
    position: relative;
    background-image:
        linear-gradient(160deg, rgba(244, 235, 208, 0.66) 0%, rgba(234, 225, 195, 0.72) 55%, rgba(225, 214, 180, 0.7) 100%),
        url("https://files.cdn-files-a.com/uploads/12420151/normal_6ad8b0282fbb2.png?format=avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    .page-documents-bg {
        background-position: center top;
        background-size: auto 100%;
    }
}


