/* Google Fonts loaded via HTML links for performance optimization */

:root {
    --bg-dark: #080a09;
    --bg-dark-lighter: #111513;
    --text-light: #f0f4f2;
    --text-muted: #8d9691;
    --accent-gold: #c5a059; /* Un oro più profondo */
    --accent-gold-light: #dec08d;
    --accent-green: #5a6458;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    scroll-padding-top: 80px; /* Evita l'overlap dell'header sulle ancore */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header & Navigation */
/* Hero Section Common Animations */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(2.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

@keyframes labelReveal {
    from { opacity: 0; letter-spacing: 0.625rem; }
    to { opacity: 1; letter-spacing: 0.125rem; }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem; /* Ridotto per dare spazio ai link */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(8, 10, 9, 0.95);
    backdrop-filter: blur(0.9375rem);
    padding: 0.8rem 3rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-smooth);
}

.logo-img {
    height: 3.5rem;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition-smooth);
}

header.scrolled .logo-img {
    height: 2.8rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.15rem;
    line-height: 1;
    text-align: center;
    color: var(--text-light);
}

.logo-text span {
    font-size: 0.65rem;
    letter-spacing: 0.15rem;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.mobile-menu-toggle span {
    display: block;
    width: 1.5625rem;
    height: 0.125rem;
    background: var(--text-light);
    transition: var(--transition-smooth);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(0.5rem) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-0.5rem) rotate(-45deg); }

.nav-logo {
    display: none;
}

nav ul {
    display: flex;
    gap: 1.8rem; /* Ridotto da 2.5rem */
}

nav ul li a {
    font-size: 0.8rem; /* Leggermente più piccolo per eleganza */
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    font-weight: 400;
    opacity: 0.7;
}

nav ul li a:hover, nav ul li a.current {
    opacity: 1;
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    align-items: center;
}

.header-actions a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions .mobile-icon {
    display: none;
    font-size: 1.2rem;
}

.header-actions a:hover {
    color: var(--accent-gold);
}

.lang-switcher {
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 1rem;
    color: var(--text-muted);
}

.lang-switcher span, .lang-switcher a {
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

.lang-switcher span:hover, .lang-switcher a:hover {
    color: var(--text-light);
}

.lang-switcher .active, .lang-switcher-mobile .active {
    color: var(--accent-gold);
}

.lang-switcher-mobile {
    display: none;
    margin-top: 3rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.125rem;
}

.lang-switcher-mobile span, .lang-switcher-mobile a {
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

.lang-switcher-mobile span:hover, .lang-switcher-mobile a:hover {
    color: var(--text-light);
}

.desktop-only {
    display: flex;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Necessario per l'effetto zoom dello sfondo */
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/home/Ristorante-lu-nibaru-tavolo-vista-mare-sea-view-dining.webp') center/cover;
    animation: heroZoom 10s ease-out forwards;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: white;
    margin-bottom: 2rem;
    max-width: 62.5rem;
    line-height: 1.1;
    animation: heroFadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: heroFadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    opacity: 0; /* Parte da 0 per l'animazione */
    flex-wrap: wrap;
    justify-content: center;
    z-index: 5;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1875rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

.btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.625rem 1.25rem rgba(0,0,0,0.2);
}

.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Section Common */
section {
    padding: 8rem 4rem;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
}

@media (min-width: 100rem) {
    .container {
        max-width: 90.625rem; /* Più spazio per schermi ultra-wide */
    }
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: block;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* New Split & Impact Sections */
.split-section {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 0;
    overflow: hidden;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
    height: 70vh; /* Ridotta leggermente per evitare scrolling eccessivo */
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.split-content {
    flex: 1;
    padding: 6rem;
    background: var(--bg-dark);
}

.impact-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-attachment: fixed;
    position: relative;
    padding: 0;
}

.impact-overlay {
    background: rgba(8, 10, 9, 0.4);
    padding: 6rem;
    backdrop-filter: blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
    max-width: 62.5rem;
    border: 0.0625rem solid rgba(197, 160, 89, 0.15);
    box-shadow: 0 2.5rem 6.25rem rgba(0,0,0,0.5);
}

.bg-text {
    position: absolute;
    font-size: 15rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    opacity: 0.02;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

.section-accent {
    width: 3.75rem;
    height: 0.125rem;
    background: var(--accent-gold);
    margin: 2rem 0;
}

.impact-section .section-accent {
    margin: 2rem auto;
}

/* Gastronomy Section */
.info-box {
    background: var(--bg-dark-lighter);
    padding: 3rem;
    border-left: 0.0625rem solid var(--accent-gold);
}

.info-box h3 {
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.section-image img {
    width: 100%;
    height: 37.5rem;
    object-fit: cover;
    box-shadow: 1.25rem 1.25rem 0 var(--bg-dark-lighter);
}

/* Mixology Section (Reverse) */
.mixology {
    background: var(--bg-dark-lighter);
}

.mixology .grid-2 {
    direction: rtl;
}

.mixology .grid-2 > div {
    direction: ltr;
}

/* Beach Club Section */
.beach-club {
    text-align: center;
}

.beach-club h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.beach-club p {
    max-width: 37.5rem;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--bg-dark-lighter);
    padding: 0;
}

.contact-info {
    padding: 6rem 4rem;
}

.contact-info h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.details-group {
    margin-bottom: 2.5rem;
}

.details-group h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.125rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.map-container {
    position: relative;
    background: url('assets/images/home/Ristorante-lu-nibaru-ingresso-principale-main-entrance.webp') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-overlay {
    background: white;
    color: black;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.5);
}

/* Form Styles */
form input, form textarea {
    width: 100%;
    background: transparent;
    border: 0.0625rem solid rgba(255,255,255,0.1);
    padding: 1.2rem;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    outline: none;
}

form input:focus, form textarea:focus {
    border-color: var(--accent-gold);
}

form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    padding: 6rem 4rem 2rem;
    background: var(--bg-dark);
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    white-space: nowrap !important;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 18.75rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    color: var(--accent-gold);
}

.footer-brand .logo {
    align-items: flex-start;
}

.footer-brand .logo-text {
    text-align: left;
    margin-left: 5px; /* Slight alignment tweak to match the tree trunk if needed, but flex-start should be good */
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 0.3125rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-0.1875rem);
}

.footer-contact-info p, .footer-contact-info a {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact-info a:hover {
    color: var(--accent-gold);
}

.footer-contact-info i {
    color: var(--accent-gold);
    width: 0.9375rem;
    margin-top: 0.2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Floating Actions Mobile */
.mobile-floating-actions {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 9999;
}

.floating-btn {
    width: 3.2rem; /* Leggermente più piccoli */
    height: 3.2rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.4);
    transition: var(--transition-smooth);
    border: none;
}

.phone-btn {
    background: var(--accent-gold);
}

.whatsapp-btn {
    background: #25D366;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-0.3125rem);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(1.875rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -0.625rem); }
    60% { transform: translate(-50%, -0.3125rem); }
}

/* Vision Section (Storytelling) */
.vision-section {
    padding: 10rem 2rem;
    text-align: center;
    background: var(--bg-dark);
}

.vision-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-style: italic;
    color: var(--text-light);
    max-width: 55rem;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.vision-signature {
    margin-top: 4rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--accent-gold);
    opacity: 0.8;
}

/* Subpage Components */
.subpage-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: heroZoom 12s ease-out forwards;
    z-index: -1;
}

/* Applichiamo gli sfondi specifici al ::before invece che alla sezione */
.hero-ristorante::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/images/ristorante/Ristorante-lu-nibaru-sala-mare-beach-view-dining.webp'); background-position: center 60%; }
.hero-beach::before { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/images/stabilimento/Ristorante-lu-nibaru-spiaggia-budoni-beach-aerial.webp'); }
.hero-contatti::before { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/images/ristorante/Ristorante-lu-nibaru-vista mare sunset21.webp'); background-position: center 40%; }
.hero-menu::before { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/menu/Ristorante-lu-nibaru-grigliata-pesce-seafood-grill-beach.webp'); background-position: center center; }

.subpage-hero .section-label {
    color: white;
    animation: labelReveal 1.5s ease-out forwards;
}

.subpage-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    animation: heroFadeUp 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.subpage-intro {
    padding: 8rem 2rem;
    text-align: center;
    max-width: 50rem;
    margin: 0 auto 4rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.menu-category {
    background: var(--bg-dark-lighter);
    padding: 3rem;
}

.menu-category h3 {
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.menu-list {
    color: var(--text-muted);
}

.menu-item {
    margin-bottom: 1rem;
    border-bottom: 0.0625rem solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.menu-item .price {
    color: var(--text-light);
}

.menu-footer {
    text-align: center;
    margin-top: 4rem;
}

.menu-footer p {
    color: var(--text-muted);
    font-style: italic;
}

.map-section {
    padding: 0;
    height: 31.25rem;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 31.25rem;
    background: transparent;
}

.leaflet-container {
    background: var(--bg-dark) !important;
}

/* Customizing Leaflet controls to match the theme */
.leaflet-control-zoom-in, .leaflet-control-zoom-out {
    background-color: var(--bg-dark-lighter) !important;
    color: var(--text-light) !important;
    border: 0.0625rem solid rgba(255,255,255,0.1) !important;
}

.leaflet-control-attribution {
    background: rgba(0,0,0,0.5) !important;
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem !important; }
.mt-4 { margin-top: 4rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-4 { margin-bottom: 4rem !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.gap-1 { gap: 1rem !important; }
.w-100 { width: 100% !important; }

/* Desktop Adjustment for Split-Section to avoid cramped text */
@media (min-width: 64.0625rem) {
    .split-content {
        padding: 8rem;
    }
}

/* ==========================================================================
   GALERIE & SLIDER - MODELLI STANDARD
   ========================================================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    background: var(--bg-dark-lighter);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* MODELLO 1: LA GRIGLIA (Modello Masonry)
   Layout editoriale con altezze variabili per un look dinamico e premium. */
.gallery-standard-grid {
    columns: 3 350px; /* Determina il numero di colonne in base alla larghezza, max 3 */
    column-gap: 1.5rem;
    width: 100%;
    padding: 0;
}

.gallery-standard-grid .gallery-item {
    display: inline-block; /* Cruciale per evitare break strani */
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid-column;
    position: relative;
    overflow: hidden;
}

.gallery-standard-grid .gallery-item img {
    display: block;
    width: 100%;
    height: auto; /* Mantiene l'altezza originale per l'effetto masonry */
    object-fit: cover;
}

@media (max-width: 992px) {
    .gallery-standard-grid {
        columns: 2 250px;
    }
}

@media (max-width: 576px) {
    .gallery-standard-grid {
        columns: 1;
        column-gap: 0;
    }
    
    .gallery-standard-grid .gallery-item {
        margin-bottom: 1rem;
    }
}

/* MODELLO 2: LO SLIDER (Modello Unificato)
   Scroll orizzontale con proporzioni fisse. */
.gallery-standard-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.gallery-standard-slider::-webkit-scrollbar {
    height: 4px;
}

.gallery-standard-slider::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.gallery-standard-slider::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.gallery-standard-slider .gallery-item {
    flex: 0 0 30rem; /* Grandezza generosa per lo slider */
    scroll-snap-align: start;
    aspect-ratio: 16 / 9;
}

@media (max-width: 48rem) {
    .gallery-standard-slider .gallery-item {
        flex: 0 0 85vw;
        aspect-ratio: 1 / 1;
    }
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 11, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Mixology Experience Grid */
.mixology-experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.experience-item {
    position: relative;
    overflow: hidden;
    height: 25rem;
    transition: var(--transition-smooth);
}

.experience-item.tall {
    height: 34.375rem;
}

.experience-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.experience-item:hover img {
    transform: scale(1.1);
}

.experience-item .item-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: var(--transition-smooth);
}

.experience-item:hover .item-info {
    opacity: 1;
    transform: translateY(0);
}

.experience-item .item-info span {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.125rem;
}

.experience-item .item-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.experience-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.experience-item:hover::after {
    opacity: 1;
}

@media (max-width: 48rem) {
    .mixology-experience-grid {
        grid-template-columns: 1fr;
    }
    .experience-item, .experience-item.tall {
        height: 25rem;
    }
    .experience-item .item-info {
        opacity: 1;
        transform: translateY(0);
    }
    .experience-item::after {
        opacity: 1;
    }
}

.gallery-overlay span {
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    font-size: 0.8rem;
    border: 0.0625rem solid white;
    padding: 0.5rem 1.5rem;
}

/* Feature Image Grid (for subpages) */
.feature-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.feature-grid img {
    width: 100%;
    height: 31.25rem;
    object-fit: cover;
}

.feature-grid.reverse {
    grid-template-columns: 1fr 1.5fr;
}

/* Subpage Heroes Specific Backgrounds - Calibrazione Punti di Fuoco */
.hero-ristorante { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/ristorante/Ristorante-lu-nibaru-sala-mare-beach-view-dining.webp'); background-position: center 60%; }
.hero-contatti { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/contatti/lu-nibaru-entrata-ristorante.webp'); background-position: center 40%; }
.hero-beach { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/stabilimento/Ristorante-lu-nibaru-spiaggia-budoni-beach-aerial.webp'); background-position: center center; }
.hero-menu { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/menu/Ristorante-lu-nibaru-grigliata-pesce-seafood-grill-beach.webp'); background-position: center center; }

@media (max-width: 48rem) {
    .mobile-menu-toggle { display: flex; }
    
    header { 
        padding: 1.2rem 2rem; 
        background: rgba(8, 10, 9, 0.98); 
        backdrop-filter: blur(10px);
    }
    
    .logo-img { height: 2.8rem; }
    .logo-text { font-size: 1.1rem; gap: 0.2rem; }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 12, 11, 0.99);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1500;
        backdrop-filter: blur(1.5rem);
        overflow-y: auto;
        padding: 4rem 2rem;
    }

    .nav-logo {
        margin-bottom: 4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .nav-logo .logo-img {
        height: 4.5rem;
        opacity: 1;
    }

    .nav-logo .logo-text {
        font-size: 1.5rem;
        align-items: center;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem; /* Ridotto per evitare scroll su schermi piccoli */
    }

    nav ul li a { 
        font-size: 1.3rem; 
        letter-spacing: 0.2rem;
    }

    .header-actions .desktop-text { display: none; }
    .header-actions .mobile-icon { 
        display: block; 
        font-size: 1.4rem;
        padding: 0.5rem;
    }
    .header-actions { display: none !important; }
    .mobile-menu-toggle { padding: 0.5rem; margin-left: auto; }

    .desktop-only { display: none !important; }
    .lang-switcher-mobile { display: block; }
    
    .header-actions a { display: none !important; } /* Hide icons in header */
    .mobile-floating-actions { display: flex; } /* Show floating buttons */

    .feature-grid, .feature-grid.reverse, .grid-3 { grid-template-columns: 1fr; }
    .feature-grid img { height: 21.875rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

    .split-section, .split-section.reverse {
        flex-direction: column;
        min-height: auto;
    }
    .split-image {
        width: 100%;
        height: 25rem;
    }
    .split-content {
        padding: 4rem 2rem;
    }
    .impact-overlay {
        padding: 3rem 1.5rem;
        margin: 2rem;
    }
    .bg-text { display: none; }
}

@media (max-width: 30rem) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; margin-top: 4rem; line-height: 1.2; }
    .hero { padding-top: 5rem; }
    .logo { font-size: 1.25rem; letter-spacing: 0.125rem; }
    .logo span { font-size: 0.55rem; }
    .contact-info h2 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .footer-brand .logo { align-items: center; }
    .footer-brand .logo-text { margin-left: 0; text-align: center; }
}

/* Contact Form Refinement */
.contact-form-box {
    border-radius: 0.5rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

/* Mixology Mega Section */
.mixology-mega-section {
    background: var(--bg-dark-light);
    overflow: hidden;
}

.mixology-parallax-bg {
    height: 70vh; /* Leggermente più alta per maggiore respiro */
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('assets/images/ristorante/Ristorante-lu-nibaru-barman-al-lavoro-bar-service.webp');
    background-attachment: fixed;
    background-position: center 30%;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parallax-content h2 {
    font-size: clamp(3rem, 10vw, 6rem);
    color: white;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.625rem;
}

.philosophy-item h4 {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    margin-bottom: 1rem;
}

.philosophy-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mega-slider {
    padding: 0 2rem;
}

.mega-slider .gallery-item {
    flex: 0 0 31.25rem;
    height: 21.875rem;
}

.display-1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

@media (max-width: 48rem) {
    .mixology-parallax-bg {
        background-attachment: scroll; /* Disable parallax on mobile for performance */
        height: 40vh;
    }
    .mega-slider .gallery-item {
        flex: 0 0 85vw;
        height: 18.75rem;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 0.0625rem solid rgba(255,255,255,0.05);
    padding-top: 4rem;
    text-align: center;
}

.service-item i {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.service-item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    color: var(--text-muted);
}

@media (max-width: 48rem) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1rem;
    }
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.08);
}

/* Menu Page Styles */
.menu-section {
    position: relative;
    padding: 4rem 0;
}

.menu-category-title {
    font-size: 3rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.menu-item-box {
    padding: 2rem;
    border-bottom: 0.0625rem solid rgba(197,160,89,0.15);
    transition: var(--transition-smooth);
}

.menu-item-box:hover {
    background: rgba(197,160,89,0.03);
    transform: translateX(0.625rem);
}

.menu-item-box h3 {
    color: var(--accent-gold);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.menu-item-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.italic { font-style: italic; }

.allergens {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.05rem;
}

/* ============================================================
   FINAL POLISH: WIDE & MOBILE OPTIMIZATION
   ============================================================ */

/* Wide Screens (>87.5rem) */
@media (min-width: 87.5rem) {
    .container {
        max-width: 84.375rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

/* Ultra Wide Screens (>112.5rem) */
@media (min-width: 112.5rem) {
    .container {
        max-width: 100rem;
    }
    h1 { font-size: 6rem; }
}

/* Refined Mobile Optimization (<48rem) */
@media (max-width: 48rem) {
    /* Global Spacing */
    section {
        padding: 6rem 1.5rem !important; /* Più respiro verticale */
    }

    .container {
        padding: 0 0.5rem; /* Padding interno di sicurezza */
    }

    /* Typography */
    h1 { font-size: 2.6rem !important; line-height: 1.15 !important; margin-bottom: 2rem !important; }
    h2 { font-size: 2rem !important; margin-bottom: 1.5rem !important; }
    p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
    
    .section-label {
        margin-bottom: 1rem;
        font-size: 0.75rem;
    }

    /* Hero adjustments */
    .hero, .subpage-hero {
        height: 85vh; /* Più corto per mostrare il contenuto sotto */
    }
    
    .hero h1 {
        padding: 0 1rem;
        margin-top: 2rem;
    }

    /* Layout Grids */
    .grid-2, .grid-3, .footer-grid, .services-grid {
        grid-template-columns: 1fr !important;
        gap: 4rem; /* Più spazio tra i blocchi */
    }

    /* Split Sections Stacking */
    .split-section {
        flex-direction: column !important;
        min-height: auto !important;
        margin-bottom: 2rem;
    }

    .split-image {
        width: 100% !important;
        height: 25rem !important;
        order: 1;
        margin-bottom: 0; /* Immagine attaccata al contenuto per continuità o separata */
    }

    .split-content {
        width: 100% !important;
        padding: 4rem 1.5rem !important;
        order: 2;
        text-align: center;
    }
    
    .section-accent {
        margin: 1.5rem auto !important;
    }

    /* UI Elements */
    .hero-buttons, .flex.gap-1 {
        flex-direction: column !important;
        width: 100%;
        max-width: 20rem;
        margin: 1.5rem auto 0 !important;
        gap: 1.2rem !important;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1.1rem 2rem;
    }

    /* Footer adjustments */
    footer {
        padding: 6rem 1.5rem 10rem !important; /* Ancora più spazio per i pulsanti fluttuanti */
        text-align: center;
    }

    .footer-grid {
        gap: 3.5rem;
    }

    .footer-brand p {
        margin: 0 auto 2rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Menu Page Optimization */
    .menu-category-title {
        font-size: 2.2rem !important;
    }
    
    .menu-item-box {
        padding: 1.5rem 0.5rem;
    }

    /* Contacts Page */
    .contact-info {
        padding: 4rem 1.5rem !important;
    }
    
    .contact-form-box {
        padding: 2.5rem 1.5rem !important;
    }
}

/* Very Small Devices */
@media (max-width: 22.5rem) {
    h1 { font-size: 2.2rem !important; }
    .hero-buttons { padding: 0 0.5rem; }
}



/* Utility Spacing */
.mt-6 { margin-top: 6rem; }
.mb-6 { margin-bottom: 6rem; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Mobile-specific Hero Backgrounds for lightning-fast Mobile LCP */
@media (max-width: 768px) {
    .hero::before {
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/home/Ristorante-lu-nibaru-tavolo-vista-mare-sea-view-dining-mobile.webp') !important;
    }
    .hero-ristorante::before {
        background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/images/ristorante/Ristorante-lu-nibaru-sala-mare-beach-view-dining-mobile.webp') !important;
    }
    .hero-beach::before {
        background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/images/stabilimento/Ristorante-lu-nibaru-spiaggia-budoni-beach-aerial-mobile.webp') !important;
    }
    .hero-contatti::before {
        background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/images/ristorante/Ristorante-lu-nibaru-vista mare sunset21-mobile.webp') !important;
    }
    .hero-menu::before {
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/menu/Ristorante-lu-nibaru-grigliata-pesce-seafood-grill-beach-mobile.webp') !important;
    }
}
