@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Montserrat:wght@200;300;400;500;600;700&display=swap');

/* ==========================================================================
   THE POSITANO QUIET LUXURY DESIGN SYSTEM (VILLA TREVILLE INSPIRED)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Harmony Color Tokens */
    --bg-primary: #FAF8F5;       /* Warm ivory base */
    --bg-secondary: #F5F1EB;     /* Soft lino/sand cards */
    --text-dark: #1F1E1C;        /* Elegant warm charcoal-black */
    --text-muted: #5A5752;       /* Classic premium taupe */
    --accent-gold: #A28B67;      /* Antique gold / bronze */
    --accent-gold-light: #BCA374;/* Champagne gold */
    --accent-light: #F3EFE9;     /* Soft ivory glow */
    --border-color: #EAE5DB;     /* Fine line guides */
    --white: #ffffff;
    
    /* Typography Tokens */
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Timing & Easing Curves */
    --ease: cubic-bezier(0.16, 1, 0.3, 1); /* Luxury deceleration curve */
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.8;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Elegant Focus Rings */
*:focus-visible {
    outline: 1px solid var(--accent-gold);
    outline-offset: 3px;
}

/* Typography Reset */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    line-height: 1.25;
}

p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* ==========================================================================
   LAYOUT CONTAINERS & SPACING
   ========================================================================= */

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 64px;
}

@media (max-width: 992px) {
    .container { padding: 0 40px; }
}

@media (max-width: 576px) {
    .container { padding: 0 24px; }
}

.section-padding {
    padding: 9rem 0;
}

@media (max-width: 768px) {
    .section-padding { padding: 6rem 0; }
}

/* ==========================================================================
   TRANSLUCENT FLOATING NAVIGATION BAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 2.2rem 0;
    transition: var(--transition);
}

/* Scrolled Navbar Style — sfondo bianco pieno, testi neri */
.navbar.scroll-active {
    padding: 1.1rem 0;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(31, 30, 28, 0.06);
}

/* Light-page variant: navbar scura da subito (pagine senza hero scuro) */
.navbar--light-page .logo-link,
.navbar--light-page .nav-link {
    color: var(--text-dark);
}
.navbar--light-page .nav-link:hover,
.navbar--light-page .nav-link:focus {
    color: var(--text-dark);
}
.navbar--light-page .language-select {
    border-color: var(--border-color);
    color: var(--text-muted);
}
.navbar--light-page .menu-toggle span {
    background: var(--text-dark);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
}

.logo-svg {
    height: 26px;
    width: auto;
    display: block;
}

/* Scrolled Navbar active state overrides */
.navbar.scroll-active .logo-link {
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 3.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    position: relative;
    padding: 6px 0;
}

.navbar.scroll-active .nav-link {
    color: var(--text-muted);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--white);
}

.navbar.scroll-active .nav-link:hover,
.navbar.scroll-active .nav-link:focus {
    color: var(--text-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-language {
    display: flex;
    align-items: center;
}

.language-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.4rem 0.8rem;
    border-radius: 0px;
    cursor: pointer;
    font-size: 0.72rem;
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.language-select option {
    background-color: var(--bg-primary);
    color: var(--text-dark);
}

.navbar.scroll-active .language-select {
    border-color: var(--border-color);
    color: var(--text-muted);
}

.language-select:hover,
.language-select:focus {
    border-color: var(--white);
    color: var(--white);
}

.navbar.scroll-active .language-select:hover,
.navbar.scroll-active .language-select:focus {
    border-color: var(--accent-gold);
    color: var(--text-dark);
}

.menu-toggle {
    display: none !important;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-only {
    display: none !important;
}

.mobile-logo-item {
    display: none !important;
}

.mobile-lang-item {
    display: none !important;
}

.menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scroll-active .menu-toggle span {
    background: var(--text-dark);
}

@media (max-width: 992px) {
    .menu-toggle { 
        display: flex !important; 
        z-index: 1001; /* Sopra il drawer */
        position: relative;
    }
    
    /* Quando il drawer è attivo, l'hamburger diventa scuro per risaltare sullo sfondo chiaro */
    .menu-toggle.active span {
        background: var(--text-dark) !important;
    }
    
    /* Animazione hamburger in X di chiusura */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: 4rem;
        z-index: 999;
        transition: right 0.5s var(--ease);
    }
    .nav-menu.active { right: 0; }
    
    /* Garantisce che i link nel menu mobile abbiano un contrasto leggibile scuro su sfondo chiaro */
    .nav-menu .nav-link {
        color: var(--text-muted) !important;
    }
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--text-dark) !important;
    }
    
    .navbar-language { display: none; } /* Nascosta barra superiore su mobile */
    
    .mobile-only {
        display: block !important;
    }

    .mobile-logo-item {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 2rem;
        width: 100%;
        text-align: center;
    }

    .mobile-lang-item {
        display: block !important;
        margin-top: 1.5rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .luxury-divider--left {
        justify-content: center !important;
    }

    .luxury-line-divider {
        margin: 1.5rem auto 2rem !important;
    }

    .luxury-card {
        text-align: center;
    }

    .editorial-logbook-form button {
        align-self: center !important;
    }

    .editorial-logbook-form {
        text-align: left;
    }
}

/* ==========================================================================
   IMMERSIVE HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transform: scale(1.03);
    transition: transform 12s var(--ease);
    filter: brightness(0.9) contrast(1.02);
}

.hero:hover .hero-image {
    transform: scale(1.0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--white) !important;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: heroFadeInUp 1.6s var(--ease) forwards;
}

.hero-content p {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3.5rem;
    animation: heroFadeInUp 1.8s var(--ease) forwards;
}

@keyframes heroFadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.2rem; letter-spacing: 4px; }
    .hero-content p { font-size: 1.1rem; }
}

/* ==========================================================================
   BUTTONS (SQUARE OUTLINE LUXURY DESIGN)
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    border-radius: 0px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--white);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: var(--text-dark);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: var(--white);
    color: var(--text-dark);
}

/* Quiet Micro-copy Button (Villa Treville Inspired) */
.btn-micro-quiet {
    font-family: var(--font-sans) !important;
    font-size: 0.7rem !important;
    text-transform: lowercase !important;
    letter-spacing: 1.5px !important;
    padding: 0.55rem 1.6rem !important;
    border-radius: 20px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: var(--transition) !important;
    cursor: pointer !important;
}

.btn-micro-quiet:hover,
.btn-micro-quiet:focus {
    background: var(--accent-gold) !important;
    color: var(--white) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 4px 15px rgba(162, 139, 103, 0.15) !important;
}

/* ==========================================================================
   VILLA TREVILLE LUXURY ORNAMENTS
   ========================================================================== */

/* Star Emblem Fine-Line Divider */
.luxury-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 1.5rem 0 2rem;
    width: 100%;
}

.luxury-divider--left {
    justify-content: flex-start;
}

.luxury-line-divider {
    width: 30px;
    height: 1px;
    background: var(--accent-gold);
    margin: 1.5rem 0 2rem;
    opacity: 0.6;
}

.luxury-divider::before,
.luxury-divider::after {
    content: '';
    display: block;
    width: 45px;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.5;
}

.luxury-divider-icon {
    color: var(--accent-gold);
    font-size: 0.72rem;
    line-height: 1;
    font-family: var(--font-serif);
}

/* Serif italic inline quotes */
.serif-italic {
    font-family: var(--font-serif) !important;
    font-style: italic !important;
    font-weight: 300 !important;
}

/* All-caps airy subtitles */
.subtitle-uppercase {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 400;
    margin-bottom: 0.6rem;
    display: block;
}

/* Architectonic Arched Mask Divider */
.arched-header-mask {
    position: relative;
    border-radius: 50% 50% 0 0 / 10% 10% 0 0 !important;
    overflow: hidden;
    margin-top: -120px !important;
    background: var(--bg-primary) !important;
    z-index: 10;
    padding-top: 80px !important;
}

@media (max-width: 768px) {
    .arched-header-mask {
        border-radius: 50% 50% 0 0 / 5% 5% 0 0 !important;
        margin-top: -60px !important;
        padding-top: 50px !important;
    }
}

/* ==========================================================================
   ASYNCHRONOUS EDITORIAL BLOCKS (TABULA RASA INTERFACES)
   ========================================================================== */

.editorial-section {
    background: var(--bg-primary);
}

.editorial-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

@media (max-width: 992px) {
    .editorial-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.editorial-text {
    padding-right: 2rem;
}

@media (max-width: 992px) {
    .editorial-text {
        padding-right: 0;
        text-align: center;
    }
}

.editorial-text h2 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1.8rem;
}

.editorial-text p {
    margin-bottom: 2.2rem;
    font-size: 1.05rem;
}

/* Slanted Image Clippings */
.editorial-image-wrapper {
    position: relative;
    width: 100%;
}

.luxury-slanted-image-right {
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
    transition: var(--transition) !important;
}

.luxury-slanted-image-left {
    clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
    transition: var(--transition) !important;
}

.luxury-slanted-image-right:hover,
.luxury-slanted-image-left:hover {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.editorial-image-wrapper img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .editorial-image-wrapper img { height: 380px; }
    .editorial-text h2 { font-size: 2.3rem; }
}

/* ==========================================================================
   PREMIUM CARD GRID (SQUARE TAILORED OUTLINES)
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    margin-top: 4.5rem;
}

.luxury-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0px !important;
    padding: 3rem 2.2rem !important;
    transition: var(--transition) !important;
    box-shadow: none !important;
}

.luxury-card:hover {
    background: var(--white) !important;
    border-color: var(--accent-gold) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 45px rgba(162, 139, 103, 0.05) !important;
}

.luxury-card i {
    font-size: 1.8rem !important;
    color: var(--accent-gold) !important;
    margin-bottom: 1.8rem !important;
    display: inline-block;
}

.luxury-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
}

.luxury-card p {
    font-size: 0.92rem;
    margin-bottom: 1.8rem;
}

/* ==========================================================================
   CAMERE SHOWCASE (EXCLUSIVE SUITES)
   ========================================================================== */

.room-showcase {
    background: var(--bg-secondary);
}

.room-strip {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 0;
}

.room-strip:last-child {
    border-bottom: none;
}

.room-strip.reversed {
    grid-template-columns: 0.9fr 1.1fr;
}

.room-strip-image {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.room-strip-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.room-strip-text .room-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: block;
}

.room-strip-text p {
    margin-bottom: 2rem;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.room-amenities li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-amenities li i {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .room-strip,
    .room-strip.reversed {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 4rem 0;
    }
    .room-strip-text {
        text-align: center;
    }
    .room-amenities {
        justify-content: center !important;
        align-items: center !important;
    }
    .room-amenities li {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   CATEGORY-FILTERED LUXURY GALLERY (6-UNIT MATHEMATICAL GRID)
   ========================================================================== */

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-dark);
}

.filter-btn.active::after {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Custom fade transitions for filtering */
.gallery-item.hidden {
    display: none;
}

@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-filters { gap: 1.5rem; flex-wrap: wrap; }
}

/* ==========================================================================
   EXCLUSIVE HANDHELD VISUAL LIGHTBOX MODAL
   ========================================================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 24, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.lightbox-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 1100px;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    animation: lightboxFade 0.4s var(--ease) forwards;
}

@keyframes lightboxFade {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition);
    padding: 10px;
}

.lightbox-nav:hover {
    color: var(--accent-gold);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { right: 20px; top: 20px; }
}

/* ==========================================================================
   SCROLL REVEAL VIEWPORT INJECTORS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   EDITORIAL GUESTBOOK BOOKING & CONTACT FORMS
   ========================================================================== */

.editorial-form-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    margin-top: 4.5rem;
}

@media (max-width: 992px) {
    .editorial-form-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.editorial-logbook-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

.form-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    padding: 0.6rem 0;
    border-radius: 0px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

/* ==========================================================================
   GORGEOUS CALENDAR STYLING (FLATPICKR OVERRIDES)
   ========================================================================== */

.calendar-widget {
    display: flex;
    justify-content: center;
    width: 100%;
}

.flatpickr-calendar {
    font-family: var(--font-sans) !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    margin: 0 auto !important;
}

.flatpickr-months {
    background: var(--bg-secondary) !important;
    padding: 12px 0 !important;
}

.flatpickr-month {
    color: var(--text-dark) !important;
}

.flatpickr-current-month {
    font-weight: 300 !important;
}

.flatpickr-weekday {
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.flatpickr-day {
    color: var(--text-dark) !important;
    border-radius: 0px !important;
    border: 1px solid transparent !important;
    transition: var(--transition) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--white) !important;
}

.flatpickr-day.inRange {
    background: var(--accent-light) !important;
    border-color: transparent !important;
    color: var(--text-dark) !important;
}

.flatpickr-day.today {
    border-color: var(--accent-gold) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    background: #ede8e0 !important;
    color: rgba(74, 74, 71, 0.4) !important;
    border-color: #e8e4df !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    opacity: 0.6 !important;
}

/* ==========================================================================
   IMMERSIVE LUXURY FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 7rem 0 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-section {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-section p {
        margin: 0 auto;
    }
    .social-links {
        justify-content: center;
    }
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
}

.footer-section p {
    max-width: 320px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-dark);
}

.social-links {
    display: flex;
    gap: 1.8rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 2.2rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem;
    }
}

/* ==========================================================================
   CUSTOM FLATPICKR STYLES FOR OCCUPIED (DISABLED) DATES IN RED
   ========================================================================== */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #B93C3C !important;               /* Elegant Venetian red */
    background: rgba(185, 60, 60, 0.05) !important; /* Soft, warm red translucent wash */
    text-decoration: line-through !important; /* Line-through to emphasize booked status */
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Diagonal split style for transitions (check-in / check-out days) */
.flatpickr-day.check-in-transition:not(.selected):not(.startRange):not(.endRange):not(.inRange) {
    background: linear-gradient(135deg, transparent 50%, rgba(185, 60, 60, 0.08) 50%) !important;
    text-decoration: none !important;
}

.flatpickr-day.check-out-transition:not(.selected):not(.startRange):not(.endRange):not(.inRange) {
    background: linear-gradient(135deg, rgba(185, 60, 60, 0.08) 50%, transparent 50%) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   FAQ ACCORDION COMPONENT (AEO & GEO OPTIMIZATION)
   ========================================================================== */
.faq-section {
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.8rem 0;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    transition: color 0.4s var(--ease);
}

.faq-trigger:hover {
    color: var(--accent-gold);
}

.faq-icon {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--accent-gold);
    transition: transform 0.4s var(--ease);
    margin-left: 1.5rem;
    user-select: none;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s var(--ease);
    padding-right: 2rem;
}

.faq-content p {
    margin-top: 1.1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==========================================================================
   RESPONSIVE REVERSED LAYOUT (NO INLINE COLUMNS)
   ========================================================================== */
@media (min-width: 993px) {
    .editorial-layout.reversed-layout {
        grid-template-columns: 0.9fr 1.1fr;
    }
    .editorial-layout.reversed-layout .editorial-text {
        padding-left: 3rem;
        padding-right: 0;
    }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (MOBILE CALL & WHATSAPP)
   ========================================================================== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.floating-btn--whatsapp {
    background-color: #25D366; /* WhatsApp Official Green */
}

.floating-btn--whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

.floating-btn--phone {
    background-color: var(--accent-gold);
}

.floating-btn--phone:hover {
    background-color: var(--accent-gold-light);
    transform: translateY(-3px);
}

/* Nasconde su schermi desktop grandi */
@media (min-width: 993px) {
    .floating-actions {
        display: none !important;
    }
}