/* ===== VARIABLES ===== */
:root {
    --primary-color: #d4af37;
    --secondary-color: #1a1a1a;
    --accent-color: #f8f9fa;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    --overlay-dark: rgba(0, 0, 0, 0.3);
    --overlay-light: rgba(0, 0, 0, 0.3);
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
}

/* ===== INDEX CSS ===== */
    .section-title {
        font-size: 2.5rem;
        color: var(--secondary-color);
        margin-bottom: 1rem;
        position: relative;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--primary-color);
    }

    .section-subtitle {
        font-size: 1.1rem;
        color: var(--text-muted);
        margin-bottom: 2rem;
    }

    .section-subtitle-action {
        font-size: 1.1rem;
        color: var(--text-muted);
        margin-bottom: 2rem;
    }

    .section-subtitle-action:hover{
        font-size: 1.2rem;
        color: var(--primary-color);
    }

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

    /* ===== NAVIGATION ===== */
    .navbar {
        background: transparent;
        transition: var(--transition);
        padding: 1rem 0;
    }

    .navbar.scrolled {
        background: var(--secondary-color) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

    @media screen and (max-width : 2560px){
        .navbar-brand {
            font-family: var(--font-primary);
            font-size: 1.8rem;
            font-weight: 700;
            text-decoration: none;
        }
        
        .only-desk {
            display: block !important;
        }

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

    @media screen and (max-width : 1000px){
        .navbar-brand {
            font-family: var(--font-primary);
            font-size: 1.2rem;
            font-weight: 700;
            text-decoration: none;
        }

        .mobile-hide {
            display: none;
        }

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

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

        .card-flip-mobile {
            height: 425px;
        }
    }

    .brand-text {
        color: var(--text-light);
    }

    .brand-accent {
        color: var(--primary-color);
    }

    .navbar-nav .nav-link {
        color: var(--text-light) !important;
        font-weight: 500;
        margin: 0 0.5rem;
        transition: var(--transition);
        position: relative;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }

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

    /* ===== DROPDOWN STYLES ===== */
    .dropdown-menu {
        background: var(--secondary-color);
        border: none;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        margin-top: 0.5rem;
        padding: 0.5rem 0;
    }

    .dropdown-item {
        color: var(--text-light) !important;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        transition: var(--transition);
        border: none;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: var(--primary-color) !important;
        color: var(--secondary-color) !important;
    }

    .dropdown-item.active {
        background: var(--primary-color) !important;
        color: var(--secondary-color) !important;
    }

    .dropdown-toggle::after {
        margin-left: 0.5rem;
        color: var(--text-light);
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* ===== HERO SECTION ===== */
    .hero-section {
        height: 100vh;
        background: linear-gradient(var(--overlay-dark), var(--overlay-dark)),
                    url('/assets/images/main_banner.webp') center/cover no-repeat;
        display: flex;
        align-items: center;
        position: relative;
        color: var(--text-light);
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--overlay-dark);
    }

    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    @media screen and (max-width : 2560px){
        .main-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            line-height: 1.1;
        }
    }

    @media screen and (max-width : 1000px){
        .main-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            line-height: 1.1;
        }
    }

    .hero-description {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        opacity: 0.9;
    }

    .hero-actions {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-primary {
        background: var(--primary-color);
        border: 2px solid var(--primary-color);
        color: var(--secondary-color);
        font-weight: 600;
        padding: 1rem 2rem;
        border-radius: 0;
        transition: var(--transition);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .book-now {
        background: var(--primary-color);
        border: 2px solid var(--primary-color);
        color: var(--secondary-color);
        font-weight: 600;
        padding: 1rem 2rem;
        border-radius: 0;
        transition: var(--transition);
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
    }

    .btn-primary:hover {
        background: transparent;
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .btn-outline-primary {
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        font-weight: 600;
        padding: 1rem 2rem;
        border-radius: 0;
        transition: var(--transition);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: var(--secondary-color);
        border: var(--primary-color);
    }

    .btn-outline-light {
        border: 2px solid var(--text-light);
        color: var(--text-light);
        font-weight: 600;
        padding: 1rem 2rem;
        border-radius: 0;
        transition: var(--transition);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .btn-outline-light:hover {
        background: var(--text-light);
        color: var(--secondary-color);
    }

    .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: var(--text-light);
        font-size: 1.5rem;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        40% {
            transform: translateX(-50%) translateY(-10px);
        }
        60% {
            transform: translateX(-50%) translateY(-5px);
        }
    }

    /* ===== SERVICES SECTION ===== */
    .services-section {
        background: var(--accent-color);
        padding: 5rem 0;
    }

    .service-card {
        background: var(--text-light);
        padding: 2.5rem 2rem;
        text-align: center;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        height: 100%;
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .service-icon {
        width: 80px;
        height: 80px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        transition: var(--transition);
    }

    .service-icon i {
        font-size: 2rem;
        color: var(--text-light);
    }

    .service-card:hover .service-icon {
        background: var(--secondary-color);
    }

    .service-card h4 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--secondary-color);
    }

    .service-card p {
        color: var(--text-muted);
        margin-bottom: 1.5rem;
    }

    .service-link {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
    }

    .service-link:hover {
        color: var(--secondary-color);
    }

    /* ===== ABOUT SECTION ===== */
    .about-section {
        padding: 5rem 0;
        background: var(--text-light);
    }

    .about-content {
        padding-right: 2rem;
    }

    .about-features {
        margin-top: 2rem;
    }

    .feature-item {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }

    .feature-item i {
        color: var(--primary-color);
        font-size: 1.2rem;
        margin-right: 1rem;
        width: 20px;
    }

    .about-image img {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    /* ===== CONTACT SECTION ===== */
    .contact-section {
        background: linear-gradient(var(--overlay-dark), var(--overlay-dark)),
                    url('/assets/images/contacts.webp') center/cover no-repeat;
        padding: 5rem 0;
        color: var(--text-light);
    }

    .contact-card {
        background: rgba(255, 255, 255, 0.1);
        padding: 2rem;
        text-align: center;
        border-radius: 10px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: var(--transition);
    }

    .contact-card:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-5px);
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
    }

    .contact-icon i {
        font-size: 1.5rem;
        color: var(--text-light);
    }

    .contact-card h4 {
        color: var(--text-light);
        margin-bottom: 1rem;
    }

    .contact-card p {
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
    }

    /* ===== FOOTER ===== */
    .footer {
        background: var(--secondary-color);
        color: var(--text-light);
    }

    .social-links a {
        color: var(--text-light);
        font-size: 1.2rem;
        margin-left: 1rem;
        transition: var(--transition);
    }

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

    /* ===== RESPONSIVE DESIGN ===== */
    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }
        
        .hero-description {
            font-size: 1rem;
        }
        
        .hero-actions {
            flex-direction: column;
            align-items: center;
        }
        
        .section-title {
            font-size: 2rem;
        }
        
        .about-content {
            padding-right: 0;
            margin-bottom: 2rem;
        }
        
        .navbar-nav {
            text-align: center;
            padding-top: 1rem;
        }
        
        .social-links {
            text-align: center !important;
            margin-top: 1rem;
        }
        
        .social-links a {
            margin: 0 0.5rem;
        }
    }

    @media (max-width: 576px) {
        .hero-title {
            font-size: 2rem;
        }
        
        .service-card {
            margin-bottom: 2rem;
        }
        
        .btn-lg {
            padding: 0.8rem 1.5rem;
            font-size: 1rem;
        }
    }

    /* ===== ANIMATIONS ===== */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .fade-in-up {
        animation: fadeInUp 0.6s ease-out;
    }

    /* ===== UTILITY CLASSES ===== */
    .text-primary {
        color: var(--primary-color) !important;
    }

    .bg-primary {
        background-color: var(--primary-color) !important;
    }

    .border-primary {
        border-color: var(--primary-color) !important;
    }

    .menu-btn {
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
    }

    .menu-btn:hover,
    .menu-btn.active {
        border: 2px solid var(--primary-color);
        background: var(--primary-color);
        color: var(--text-light);
    }

    /* ===== MENU SECTION ===== */
    .menu-section {
        background: var(--text-light);
        padding: 5rem 0;
    }

    .menu-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 3rem;
        flex-wrap: wrap;
    }

    .menu-container {
        display: flex;
        gap: 3rem;
        align-items: flex-start;
        min-height: 500px;
    }

    .menu-list {
        flex: 1;
        min-width: 0; /* Prevents flex item from overflowing */
    }

    .menu-item {
        background: var(--accent-color);
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 8px;
        transition: var(--transition);
        cursor: pointer;
        border-left: 4px solid transparent;
    }

    .restaurant-menu-item {
        background: var(--accent-color);
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 8px;
        transition: var(--transition);
        border-left: 4px solid transparent;
    }

    .restaurant-menu-item.active {
        border-left-color: var(--primary-color);
    }

    .menu-item:hover {
        border-left-color: var(--primary-color);
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .menu-item-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.5rem;
    }

    .menu-item-name {
        font-family: var(--font-primary);
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--secondary-color);
        margin: 0;
    }

    .menu-item-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-left: 1rem;
    }

    .menu-item-description {
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.4;
        margin: 0;
    }

    .menu-image-container {
        flex: 0 0 400px;
        height: 500px;
        background: var(--accent-color);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: sticky;
        top: 2rem;
    }

    .restaurant-menu-image-container {
        height: 500px;
        background: var(--accent-color);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: sticky;
        top: 2rem;
    }

    .menu-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-image.active {
        opacity: 1;
    }

    .menu-placeholder {
        color: var(--text-muted);
        font-style: italic;
        text-align: center;
    }

    .menu-content {
        display: none;
    }

    .menu-content.active {
        display: block;
    }

    /* Responsive design for menu section */
    @media (max-width: 992px) {
        .menu-container {
            flex-direction: column;
            gap: 2rem;
        }
        
        .menu-image-container {
            flex: none;
            height: 300px;
            position: static;
        }
    }

    @media (max-width: 768px) {
        .menu-buttons {
            flex-direction: column;
            align-items: center;
        }
        
        .menu-item-header {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .menu-item-price {
            margin-left: 0;
            margin-top: 0.5rem;
        }
    }

    /* =========== CUSTOM CSS =========== */
    .border-transparent {
        border: transparent;
    }

    .bg-color-transparent {
        background-color: transparent;
    }

    .card-animation {
        transition: var(--transition);
    }

    .card-animation:hover {
        transform: translateY(-10px);
        cursor: pointer;
    }

    .color-primary {
        color: var(--primary-color) !important;
    }

    .contact-text {
        color: white;
        text-decoration: none;;
    }
/* ======= END OF INDEX CSS ====== */

/* ======= ROOMS SECTION ====== */
    .rooms-hero {
        height: 60vh;
        background: linear-gradient(var(--overlay-dark), var(--overlay-dark)),
                    url('/assets/images/rooms/rooms_header.jpg') center/cover no-repeat;
        display: flex;
        align-items: center;
        position: relative;
        color: var(--text-light);
    }

    /* Room Card Flip Animation */
    .room-card {
        position: relative;
        width: 100%;
        aspect-ratio: 1;
        perspective: 1000px;
        margin-bottom: 2rem;
    }

    .room-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.8s;
        transform-style: preserve-3d;
        border-radius: 15px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    .room-card.flipped .room-card-inner {
        transform: rotateY(180deg);
    }

    .room-card-front, .room-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 15px;
        overflow: hidden;
    }

    .room-card-front {
        background: var(--text-light);
    }

    .room-card-back {
        background: var(--text-light);
        transform: rotateY(180deg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    .room-image {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .room-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

    .room-card:hover .room-image img {
        transform: scale(1.05);
    }

    .room-price {
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--primary-color);
        color: var(--secondary-color);
        padding: 0.5rem 1rem;
        border-radius: 25px;
        font-weight: 700;
        font-size: 1.1rem;
        z-index: 2;
    }

    .room-title {
        font-family: var(--font-primary);
        font-size: 1.8rem;
        color: var(--secondary-color);
        margin-bottom: 1rem;
    }

    .room-description {
        color: var(--text-muted);
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .room-features {
        list-style: none;
        padding: 0;
        margin: 1.5rem 0;
        text-align: left;
    }

    .room-features li {
        padding: 0.3rem 0;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        font-size: 0.9rem;
    }

    .room-features li i {
        color: var(--primary-color);
        margin-right: 0.5rem;
        width: 20px;
        font-size: 0.8rem;
    }

    .btn-book {
        background: var(--primary-color);
        border: 2px solid var(--primary-color);
        color: var(--secondary-color);
        font-weight: 600;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        transition: var(--transition);
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        display: inline-block;
        font-size: 0.9rem;
    }

    .div-book {
        background: var(--primary-color);
        border: 2px solid var(--primary-color);
        color: var(--secondary-color);
        font-weight: 600;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        transition: var(--transition);
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        display: inline-block;
        font-size: 0.9rem;
    }

    .btn-book:hover {
        background: transparent;
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    /* Slideshow Styles */
    .rooms-slideshow {
        background: var(--accent-color);
        padding: 5rem 0;
    }

    .slideshow-container {
        position: relative;
        max-width: 100%;
        margin: auto;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    .slide {
        display: none;
        position: relative;
    }

    .slide.active {
        display: block;
    }

    .slide img {
        width: 100%;
        height: 500px;
        object-fit: cover;
    }

    .slide-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        color: var(--text-light);
        padding: 3rem 2rem 2rem;
    }

    .slide-title {
        font-family: var(--font-primary);
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .slide-description {
        font-size: 1.1rem;
        opacity: 0.9;
    }

    .slideshow-nav {
        text-align: center;
        margin-top: 2rem;
    }

    .slide-dot {
        height: 15px;
        width: 15px;
        margin: 0 5px;
        background-color: #bbb;
        border-radius: 50%;
        display: inline-block;
        cursor: pointer;
        transition: var(--transition);
    }

    .slide-dot.active,
    .slide-dot:hover {
        background-color: var(--primary-color);
    }

    .slideshow-arrows {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: var(--text-light);
        border: none;
        padding: 1rem;
        cursor: pointer;
        font-size: 1.2rem;
        transition: var(--transition);
    }

    .slideshow-arrows:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    @media (max-width: 768px) {
        .rooms-hero {
            height: 40vh;
        }
        
        .room-card-back {
            padding: 1.5rem;
        }
        
        .room-title {
            font-size: 1.5rem;
        }
        
        .slide img {
            height: 300px;
        }
        
        .slide-content {
            padding: 2rem 1rem 1rem;
        }
        
        .slide-title {
            font-size: 1.5rem;
        }
    }

    .zoom-hover {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .zoom-hover:hover {
        transform: scale(1.05);
    }
/* ======= END OF ROOMS CSS ====== */

/* ======= RESTAURANT SECTION ====== */
    .restaurant-hero {
        height: 60vh;
        background: linear-gradient(var(--overlay-dark), var(--overlay-dark)),
                    url('/assets/images/restaurant/header_ristorante.webp') center/cover no-repeat;
        display: flex;
        align-items: center;
        position: relative;
        color: var(--text-light);
    }

    .box-background-vini {
        background: linear-gradient(var(--overlay-dark), var(--overlay-dark)),
                    url('/assets/images/restaurant/sfondo-vini-box.avif') center/cover no-repeat;;
    }

    .box-background-menu {
        background: linear-gradient(var(--overlay-dark), var(--overlay-dark)),
                    url('/assets/images/restaurant/sfondo-menu-box.avif') center/cover no-repeat;;
    }
/* ======= END OF RESTAURANT SECTION ====== */

/* ======= EVENTS SECTION ====== */
    .events-hero {
        height: 60vh;
        background: linear-gradient(var(--overlay-dark), var(--overlay-dark)),
                    url('/assets/images/events/eventi_header.webp') center/cover no-repeat;
        display: flex;
        align-items: center;
        position: relative;
        color: var(--text-light);
    }
/* ======= END OF EVENTS SECTION ====== */