/* ==========================================================================
   CSS VARIABLES & RESET (AVANT-GARDE LUXURY)
   ========================================================================== */
   :root {
    --gold: #d4af37;
    --gold-dark: #b5952f;
    --gold-light: #fcf6ba;
    
    --bg-base: #ffffff; /* Total white */
    --bg-surface: #f8f8fa; /* Slight off-white */
    --bg-elevated: #f1f1f4;
    
    --text-primary: #121214; /* Dark grey for readability */
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    
    --font-ui: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body.modern-dark {
    font-family: var(--font-ui);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   SFONDO ANIMATO SICILIA (OVERLAY)
   ========================================================================== */
.sicily-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999; /* Overlay su tutta la pagina */
    overflow: hidden;
    pointer-events: none;
}

.s-shape {
    position: absolute;
    opacity: 0.4; /* Opacita solida per essere sempre visibile */
}

.s-brush-1 {
    width: 300px;
    height: 100px;
    top: 15%;
    left: -50px;
    animation: drift-slow 40s infinite ease-in-out alternate;
}

.s-sun {
    width: 200px;
    height: 200px;
    top: -50px;
    right: 5%;
    animation: rotate-slow 50s infinite linear;
    opacity: 0.1;
}

.s-brush-2 {
    width: 400px;
    height: 120px;
    bottom: 25%;
    right: -100px;
    animation: drift-slow 45s infinite ease-in-out alternate-reverse;
}

.s-fico {
    width: 150px;
    height: 150px;
    bottom: -20px;
    left: 10%;
    animation: float-slow 35s infinite ease-in-out alternate;
    opacity: 0.1;
}

@keyframes drift-slow {
    0% { transform: translate(0, 0) rotate(-5deg) scale(1); }
    50% { transform: translate(150px, 50px) rotate(5deg) scale(1.1); }
    100% { transform: translate(0, 0) rotate(-5deg) scale(1); }
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes float-slow {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -40px) rotate(15deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 15px;
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 20px;
}

.eyebrow {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
}

/* ==========================================================================
   MUSIC TOGGLE BUTTON
   ========================================================================== */
.music-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.music-toggle-btn:hover {
    background: var(--gold);
    color: #fff;
    transform: scale(1.1);
}
.music-toggle-btn.playing svg {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   PRELOADER (INK D'ORO)
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-base);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s;
    overflow: hidden;
}

.splash-photos {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.splash-photo {
    position: absolute;
    width: clamp(120px, 20vw, 280px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    opacity: 0;
    animation: popInSplash 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: grayscale(40%) brightness(0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.p1 { top: 5%; left: 5%; --rot: -12deg; animation-delay: 0.1s; }
.p2 { top: 10%; right: 5%; --rot: 15deg; animation-delay: 0.3s; }
.p3 { bottom: 10%; left: 8%; --rot: -8deg; animation-delay: 0.5s; }
.p4 { bottom: 5%; right: 10%; --rot: 20deg; animation-delay: 0.2s; }
.p5 { top: 45%; left: -5%; --rot: 25deg; animation-delay: 0.6s; width: clamp(80px, 15vw, 200px); }
.p6 { top: 55%; right: -2%; --rot: -18deg; animation-delay: 0.4s; width: clamp(80px, 15vw, 200px); }

@keyframes popInSplash {
    0% { opacity: 0; transform: scale(0.6) rotate(var(--rot)); filter: blur(10px) grayscale(100%) opacity(0.3); }
    100% { opacity: 0.15; transform: scale(1) rotate(var(--rot)); filter: blur(0px) grayscale(100%) opacity(0.3); }
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* ==========================================================================
   MINIMAL NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 50px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img-main {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
    transition: height 0.3s ease;
}

.navbar.scrolled .logo-img-main {
    height: 65px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}


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

.btn-minimal {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px 24px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: var(--transition);
}

.btn-minimal:hover {
    background: var(--gold);
    color: var(--bg-base);
}

/* ==========================================================================
   IMMERSIVE HERO
   ========================================================================== */
.immersive-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.4) 70%, rgba(255,255,255,0.8) 100%);
    z-index: 2;
}

.hero-content-center {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-typography-container {
    margin-bottom: 20px;
}

.hero-title-modern {
    color: var(--text-primary);
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
}

.hero-title-modern .font-light {
    font-family: var(--font-ui);
    font-weight: 300;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 12px;
    display: block;
    margin-bottom: -10px;
}

.hero-title-modern .font-serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--gold);
    text-transform: none;
    margin-right: 15px;
}

.hero-title-modern .font-bold-accent {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    letter-spacing: 5px;
}

.hero-subtext {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 20px;
    font-style: italic;
    opacity: 0.9;
}

.spa-badge {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.spa-icon { color: var(--gold); margin-right: 5px; }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 50%;
    background: var(--gold);
    animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.section-padding { padding: 120px 0; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.bg-dark { background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-top: 1px solid rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.03); }
.bg-darker { background-color: rgba(250, 250, 250, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); }

.section-header { margin-bottom: 80px; }
.section-header h2 { max-width: 800px; }

/* ==========================================================================
   EDITORIAL GRID (LA STRUTTURA)
   ========================================================================== */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.editorial-text h2 {
    color: var(--text-primary);
}

.editorial-features {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--gold);
}

.feature-item h3 {
    font-size: 1.5rem;
    font-family: var(--font-ui);
    margin-bottom: 5px;
}

/* ==========================================================================
   SUITE LIST (EDGE TO EDGE FEEL)
   ========================================================================== */
.suite-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.suite-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.suite-image-container {
    flex: 1.2;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.suite-img {
    width: 100%;
    height: 120%; /* Extra height for parallax */
    object-fit: cover;
    transform: translateY(-10%); /* Start position for parallax */
}

.suite-info {
    flex: 1;
}

.suite-info-reverse {
    order: -1;
}

.suite-desc {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.suite-amenities {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.suite-amenities li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suite-amenities li::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

.suite-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-base);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 15px 30px;
    border-radius: 30px;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ==========================================================================
   FLUID MASONRY GALLERY
   ========================================================================== */
.section-gallery {
    padding-top: 120px;
    background: transparent;
}

.gallery-header { margin-bottom: 60px; }

.gallery-cover-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gallery-cover-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s;
    filter: brightness(0.9);
}

.gallery-cover-container:hover .gallery-cover-img {
    transform: scale(1.05);
    filter: brightness(0.5);
}

.gallery-cover-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 1; /* SEMPRE VISIBILE */
    z-index: 2;
    pointer-events: none;
}

.gallery-cover-text {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: 1px solid rgba(255,255,255,0.7);
    padding: 15px 30px;
    border-radius: 30px;
    background: rgba(0,0,0,0.6); /* SFONDO PIU SCURO PER LEGGIBILITA */
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: background 0.3s ease;
}

.gallery-cover-container:hover .gallery-cover-text {
    background: rgba(0,0,0,0.8);
}

/* ==========================================================================
   HORIZONTAL SCROLL (VIVI)
   ========================================================================== */
.horizontal-scroll-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--bg-dark);
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.horizontal-scroll-container {
    display: flex;
    gap: 20px;
    width: max-content;
}

.scroll-card {
    width: 280px;
    background-color: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
}

.scroll-card:hover {
    transform: translateY(-5px);
}

.scroll-card img:not(.cover-borghi-badge) {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.scroll-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    text-shadow: 2px 2px 4px rgba(0,0,0,1);
}

.scroll-card-content h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--gold);
    font-family: var(--font-serif);
    text-shadow: 2px 2px 8px rgba(0,0,0,1);
}

.scroll-card-content p {
    color: #fff !important;
    font-size: 0.95rem;
    margin-top: 8px;
    text-shadow: 1px 1px 4px rgba(0,0,0,1);
}

.gallery-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    color: white;
    text-align: center;
    pointer-events: none;
    display: none;
}
.gallery-description h3 {
    margin: 0 0 8px 0;
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,1);
}
.gallery-description p {
    margin: 0;
    font-size: 1.05rem;
    color: #eee;
    text-shadow: 1px 1px 4px rgba(0,0,0,1);
}

/* ==========================================================================
   EXPERIENCE GRID
   ========================================================================== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.exp-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-surface);
}

.exp-img {
    height: 300px;
    overflow: hidden;
}

.exp-img img:not(.cover-borghi-badge) {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.exp-img.view-cinema {
    height: auto;
    max-height: 450px;
    background: #000;
}

.exp-img.view-cinema img:not(.cover-borghi-badge) {
    object-fit: contain;
    height: 100%;
    max-height: 450px;
}

.exp-card:hover .exp-img img:not(.cover-borghi-badge) { transform: scale(1.08); }

.exp-content { padding: 40px; }
.exp-content h3 { font-size: 1.5rem; font-family: var(--font-ui); }

/* ==========================================================================
   MAP & CONTACT (MINIMAL)
   ========================================================================== */
.map-minimal {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.map-contact p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.map-contact a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.map-contact a:hover { color: var(--gold-light); }

.map-frame {
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
}

/* ==========================================================================
   GUIDA TURISTICA
   ========================================================================== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.guide-card {
    background-color: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 12px;
    border-top: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: rgba(212, 175, 55, 0.3); /* Transparent gold */
    margin-bottom: 15px;
    font-style: italic;
}

.section-header h2 {
    color: var(--gold);
    margin-bottom: 20px;
}

.borghi-badge-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-height: 130px;
}

.cover-borghi-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    max-height: 70px;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    border-radius: 8px;
}

.guide-card h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.guide-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ==========================================================================
   LISTINO PREZZI
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.pricing-card:hover {
    transform: translateY(-5px);
}
.pricing-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.cinema-thumbs-container {
    display: block;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.cinema-title {
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.cinema-title:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(197, 168, 128, 0.5);
    transform: translateX(5px);
}

.cinema-thumbs-container img {
    height: 350px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
    background: rgba(0,0,0,0.2);
}
.cinema-thumbs-container img:hover {
    transform: scale(1.02);
}
.cinema-thumbs-container img.active {
    border: 2px solid var(--gold);
}

.thumb-wrapper {
    position: relative;
    flex-shrink: 0;
}

.click-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    animation: pulse-hint 2s infinite;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

.click-hint svg {
    color: var(--gold);
}

@keyframes pulse-hint {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.05); opacity: 1; border-color: var(--gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
    100% { transform: scale(1); opacity: 0.85; }
}

/* Modale */
.pricing-header {
    border-bottom: 1px solid var(--gold-light);
}
.pricing-header h3 {
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}
.season-dates {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}
.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.pricing-list li:last-child {
    border-bottom: none;
}
.room-name {
    font-weight: 500;
}
.room-name small {
    display: block;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 400;
}
.room-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d31522; /* Borghi red */
}
.promo-box {
    margin-top: 20px;
    padding: 15px;
    background: #fdfaf5;
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    text-align: center;
}
.highlight-card {
    background: linear-gradient(145deg, #2b2b2b, #1a1a1a);
    color: #fff;
}
.highlight-card .pricing-header h3 {
    color: var(--gold);
}
.highlight-card .pricing-header {
    border-bottom-color: rgba(255,255,255,0.1);
}
.highlight-card .season-dates {
    color: rgba(255,255,255,0.7);
}
.relax-pricing-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}
.relax-pricing-info strong {
    color: var(--gold);
}
.only-relax {
    font-size: 1.1rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 15px;
}
.relax-hours {
    margin-top: 20px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.relax-hours strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
}
.relax-hours span {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px;
}

.info-booking-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.times-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}
.time-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}
.time-item strong {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* LED Vettoriali Pulsanti */
.led-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.led-green {
    color: #10b981;
    animation: pulseGreen 2s infinite;
}
.led-red {
    color: #ef4444;
    animation: pulseRed 2s infinite;
}
.led-icon svg {
    width: 20px;
    height: 20px;
}
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   FOOTER MINIMAL
   ========================================================================== */
.footer-minimal {
    background: var(--bg-elevated);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.05));
}

.footer-social, .footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-social a, .footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-social a:hover, .footer-links-col a:hover { color: var(--gold); }

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.wa-float {
    position: fixed;
    bottom: 40px; right: 40px;
    width: 60px; height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.15) rotate(-5deg); }

/* ==========================================================================
   MODALS (CLEAN & MINIMAL)
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}

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

.modal-content-minimal {
    background: var(--bg-surface);
    width: 100%; max-width: 500px;
    border-radius: 24px; padding: 50px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) rgba(0,0,0,0.03);
}

/* Stili scrollbar visibile su modali (Webkit) */
.modal-content-minimal::-webkit-scrollbar,
.cinema-desc-container::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 6px;
    background-color: rgba(0,0,0,0.03);
}
.modal-content-minimal::-webkit-scrollbar-track,
.cinema-desc-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03); 
    border-radius: 10px;
}
.modal-content-minimal::-webkit-scrollbar-thumb,
.cinema-desc-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2); 
    border-radius: 10px;
}
.modal-content-minimal::-webkit-scrollbar-thumb:hover,
.cinema-desc-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.4); 
}

.modal-overlay.active .modal-content-minimal { transform: translateY(0); }

.close-modal {
    position: absolute; top: 25px; right: 25px;
    background: none; border: none; color: var(--text-muted);
    font-size: 2rem; cursor: pointer; transition: color 0.3s ease;
}
.close-modal:hover { color: var(--gold); }

.modal-header-minimal h2 { font-family: var(--font-ui); font-size: 1.8rem; margin-bottom: 5px; }

.booking-form-minimal .input-group { margin-bottom: 20px; }
.booking-form-minimal label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.booking-form-minimal input {
    width: 100%; padding: 15px; border-radius: 12px;
    background: #ffffff; border: 1px solid #e4e4e7;
    color: var(--text-primary); font-family: var(--font-ui); font-size: 1rem;
    transition: var(--transition);
}
.booking-form-minimal input:focus { outline: none; border-color: var(--gold); }
.flex-row { display: flex; gap: 20px; }
.flex-row .input-group { flex: 1; }

.guest-selector { margin: 30px 0; }
.guest-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.counter { display: flex; align-items: center; background: var(--bg-base); border-radius: 30px; padding: 5px 10px; }
.counter button { background: none; border: none; color: var(--gold); font-size: 1.5rem; width: 30px; height: 30px; cursor: pointer; }
.counter input { width: 40px; background: transparent; border: none; color: var(--text-primary); text-align: center; padding: 0; }
.btn-block { width: 100%; margin-top: 20px; }

/* GALLERY MODAL */
.gallery-overlay { background: #111; flex-direction: column; justify-content: flex-start; padding-top: 5vh; }
.close-gallery { position: absolute; top: 30px; right: 40px; font-size: 3rem; color: white; cursor: pointer; background: none; border: none; z-index: 10; }
.gallery-content-minimal { display: flex; align-items: center; justify-content: center; width: 100%; height: 80vh; position: relative; }
.gallery-img-view { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.gallery-img-view img { width: 100%; height: 100%; max-width: 90vw; max-height: 90vh; object-fit: contain; }
.nav-btn { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 3rem; cursor: pointer; padding: 0 40px; transition: color 0.3s; }
.nav-btn:hover { color: white; }
.gallery-thumbs-minimal { display: flex; gap: 10px; height: 15vh; padding: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; scroll-behavior: smooth; width: 100%; max-width: 100vw; min-width: 0; box-sizing: border-box; }
.gallery-thumbs-minimal::-webkit-scrollbar { height: 6px; }
.gallery-thumbs-minimal::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 4px; }
.gallery-thumbs-minimal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
.gallery-thumbs-minimal img { height: 100%; opacity: 0.3; cursor: pointer; transition: opacity 0.3s; border-radius: 4px; object-fit: cover; width: 100px; flex-shrink: 0; }
.gallery-thumbs-minimal img.active, .gallery-thumbs-minimal img:hover { opacity: 1; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up { transform: translateY(40px); }
.reveal.active { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .editorial-grid { grid-template-columns: 1fr; gap: 60px; }
    .suite-row { flex-direction: column; gap: 40px; }
    .suite-info-reverse { order: 2; }
    .suite-image-container { height: 400px; width: 100%; }
    .gallery-cover-container { height: 50vh; }
    .experience-grid { grid-template-columns: 1fr; }
    .guide-grid { grid-template-columns: 1fr; }
    .map-minimal { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .info-grid { grid-template-columns: 1fr; }
    
    .mobile-logo-adjust {
        max-height: 100px !important;
    }
    
    .cover-borghi-badge {
        max-height: 50px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .nav-container { padding: 0 15px !important; }
    .lang-switcher { margin-right: 10px !important; font-size: 0.8rem !important; gap: 5px !important; }
    .open-booking-modal { padding: 8px 15px !important; font-size: 0.8rem !important; }
    
    .hamburger {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 999;
        margin: 0;
        padding: 0;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin: 20px 0;
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    .hero-logo-large img { width: 90%; }
    .section-padding { padding: 80px 0; }
    .suite-image-container { height: 300px; }
    .modal-content-minimal { padding: 30px; width: 95%; max-height: 90vh; overflow-y: auto; }
    .flex-row { flex-direction: column; gap: 10px; }
    
    /* Fix Gallery on Mobile */
    .gallery-cover-container { height: 50vh; }
    .gallery-cover-img { height: 100%; }

    .gallery-cover-text {
        display: inline-block;
        box-sizing: border-box;
        font-size: 0.9rem;
        padding: 10px 15px;
        letter-spacing: 2px;
        width: 80%;
        max-width: 300px;
        white-space: normal;
        line-height: 1.4;
    }

    .nav-btn { position: absolute; padding: 0 15px; font-size: 2.5rem; top: 50%; transform: translateY(-50%); z-index: 5; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
    .prev-img { left: 0; }
    .next-img { right: 0; }
    .gallery-img-view { width: 100%; height: 100%; }
    .gallery-img-view img { width: 100vw; height: 80vh; max-width: none; max-height: none; object-fit: contain; }
}
