/**
 * Luiggia's Table Custom Styles
 * Warm, intimate, old-world Italian aesthetic
 * Colors: Warm Sepia Brown #6F5A48, Muted Antique Gold #C2A15A, Soft Charcoal #2E2A26
 */

/* =========================================
   1. TYPOGRAPHY & BODY
   ========================================= */
.luiggias-body {
    font-family: 'Cormorant Garamond', serif;
    color: #2E2A26;
    padding-top: 80px !important;
    background-color: #FAF6EF;
}

.luiggias-script {
    font-family: 'Great Vibes', 'Bickham Script Pro', cursive;
    font-weight: 400;
    font-style: italic;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.luiggias-header {
    background-color: #6F5A48 !important;
}

.luiggias-header .header-top {
    background-color: #5A4737 !important;
    border-bottom: 1px solid #8B7355;
}

.luiggias-header .header-upper {
    background-color: #6F5A48 !important;
}

.luiggias-header .logo-box {
    background-color: #6F5A48 !important;
    opacity: 1 !important;
    padding: 20px 0 !important;
}

/* Text Colors */
.luiggias-header .header-top a,
.luiggias-header .header-top li,
.luiggias-header .navigation a {
    color: #FAF6EF !important;
}

.luiggias-header .navigation a:hover {
    color: #FFF7F4 !important;
}

/* Accents (Dividers & Underlines) */
.luiggias-header .header-top .top-info li:after,
.luiggias-header .main-menu .navigation>li.dropdown>a:after,
.luiggias-header .main-menu .navigation>li>a::before {
    border-color: #FFF7F4 !important;
    color: #FFF7F4 !important;
}

/* Back Link */
.back-to-pasta-prego {
    font-size: 0.9em;
    opacity: 0.8;
}

.back-to-pasta-prego:hover {
    opacity: 1;
}

/* =========================================
   3. LOGO STYLES
   ========================================= */
.luiggias-text-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Desktop Logo */
.logo-photo {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 5px solid #FAF6EF !important;
    background-color: #FAF6EF !important;
    padding: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s ease;
}

.luiggias-text-logo a:hover .logo-photo {
    border-color: #C2A15A !important;
}

.logo-script {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    color: #FFF7F4 !important;
    line-height: 1.2;
    margin-bottom: 5px;
}

.logo-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFF7F4 !important;
    font-weight: 500;
}

.luiggias-text-logo a:hover .logo-script,
.luiggias-text-logo a:hover .logo-subtitle {
    color: #C2A15A !important;
}

/* =========================================
   4. FIXED HEADER (SCROLL) BEHAVIOR
   ========================================= */
.luiggias-header.fixed-header .header-upper,
body.luiggias-body .main-header.fixed-header,
body.luiggias-body .main-header.fixed-header .header-upper {
    background: #6F5A48 !important;
}

.luiggias-header.header-down,
.luiggias-header.header-up {
    top: 0 !important;
}

/* Shrink Logo on Scroll */
.luiggias-header.fixed-header .logo-photo {
    width: 60px !important;
    height: 60px !important;
}

.luiggias-header.fixed-header .logo-script {
    font-size: 32px !important;
}

.luiggias-header.fixed-header .logo-subtitle {
    font-size: 9px !important;
}

.luiggias-header.fixed-header .main-menu .navigation>li {
    padding: 15px 0 !important;
}

.luiggias-header.fixed-header .header-upper .links-box {
    padding: 10px 0 !important;
}

/* =========================================
   5. MOBILE MENU & HIDDEN BAR
   ========================================= */

/* Hamburger Icon & Colors */
html body.luiggias-body .luiggias-header .nav-toggler .hamburger i,
html body.luiggias-body .luiggias-header .nav-toggler .hamburger,
html body.luiggias-body .luiggias-header .nav-toggler .icon-bar {
    color: #FAF6EF !important;
    border-color: #FAF6EF !important;
}

/* Menu Background */
html body.luiggias-body .hidden-bar .inner-box {
    background-color: #2E2A26 !important;
    border-left: 1px solid #5A4737;
}

/* Logo Styling */
html body.luiggias-body .hidden-bar .logo-box img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 auto 20px auto;
    border: 3px solid #C2A15A !important;
    background: transparent !important;
}

/* Font Styling */
html body.luiggias-body .hidden-bar .side-menu ul.navigation>li>a {
    color: #FAF6EF !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    padding-left: 0 !important;
    background: none !important;
}

/* MOBILE MENU DIAMOND FIX - Consolidated Single Solution */
/* Hide ALL diamonds by default */
html body.luiggias-body .hidden-bar .side-menu ul.navigation>li>a::before,
html body.luiggias-body .hidden-bar .side-menu ul.navigation>li:hover>a::before,
html body.luiggias-body .hidden-bar .side-menu ul.navigation>li:focus>a::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    border: none !important;
}

/* Show cream diamond ONLY on current page */
html body.luiggias-body .hidden-bar .side-menu ul.navigation>li.current>a {
    color: #C2A15A !important;
    padding-left: 25px !important;
    position: relative !important;
}

html body.luiggias-body .hidden-bar .side-menu ul.navigation>li.current>a::before {
    content: "◆" !important;
    display: block !important;
    color: #FAF6EF !important;
    font-size: 14px !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    border-radius: 0 !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    margin-top: -12px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Close Button Colors */
html body.luiggias-body .hidden-bar .cross-icon {
    color: #FAF6EF !important;
    background-color: #6F5A48 !important;
}

html body.luiggias-body .hidden-bar h2 {
    color: #C2A15A !important;
}

html body.luiggias-body .hidden-bar .info li {
    color: #FAF6EF !important;
}

/* =========================================
   6. BUTTONS
   ========================================= */
body.luiggias-body .btn,
body.luiggias-body .luiggias-btn,
body.luiggias-body .luiggias-btn-gold,
.luiggias-header .btn {
    background-color: #C2A15A !important;
    background: #C2A15A !important;
    border-color: #C2A15A !important;
    color: #2E2A26 !important;
}

body.luiggias-body .btn:hover,
.luiggias-header .btn:hover {
    background-color: #FAF6EF !important;
    background: #FAF6EF !important;
    border-color: #C2A15A !important;
    color: #2E2A26 !important;
}

/* Button Slide Effect */
body.luiggias-body .btn:before,
body.luiggias-body .btn:after {
    background: #C2A15A !important;
    display: block !important;
}

body.luiggias-body .btn:hover:before,
body.luiggias-body .btn:hover:after {
    width: 0 !important;
}

/* =========================================
   7. HERO & BANNERS
   ========================================= */
.luiggias-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.luiggias-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6F5A48 0%, #5A4737 100%) !important;
    z-index: 1;
}

.luiggias-hero .auto-container {
    position: relative;
    z-index: 2;
}

.luiggias-hero h1 {
    font-size: 5em;
    color: #FAF6EF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.luiggias-hero .hero-subtitle {
    font-size: 1.4em;
    color: #FAF6EF;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Page Banners (Interior Pages) */
.luiggias-body .page-banner-area {
    padding-top: 250px !important;
    padding-bottom: 100px !important;
}

.page-banner-area .hero-cta {
    margin-top: 60px !important;
}

.page-banner-area .hero-subtitle {
    margin-bottom: 20px !important;
}

/* =========================================
   8. CONTENT SECTIONS
   ========================================= */
.section-label {
    display: block;
    font-size: 0.9em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C2A15A;
    margin-bottom: 15px;
    font-weight: 500;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background-color: #C2A15A;
    margin: 20px auto;
}

/* Intro & Text */
.luiggias-intro {
    background-color: #FAF6EF;
}

.luiggias-intro h2 {
    font-size: 2.5em;
    color: #2E2A26;
    margin-bottom: 20px;
    font-weight: 600;
}

.luiggias-intro .lead-text {
    font-size: 1.3em;
    color: #2E2A26;
    line-height: 1.8;
    font-weight: 500;
}

.luiggias-intro p {
    font-size: 1.1em;
    color: #2E2A26;
    line-height: 1.8;
}

/* Story Preview */
.luiggias-story-preview {
    background-color: #F5F1E8;
    padding: 100px 0;
}

.vintage-photo {
    max-width: 100%;
    border: 8px solid #FAF6EF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    filter: sepia(20%);
}

.photo-caption {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5em;
    color: #6F5A48;
    margin-top: 20px;
    font-style: italic;
}

.story-content h2 {
    font-size: 2.2em;
    color: #2E2A26;
    margin-bottom: 25px;
    font-weight: 600;
}

.luiggias-link {
    display: inline-block;
    color: #C2A15A;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.luiggias-link:hover {
    color: #A88A48;
}

/* Experience Cards */
.luiggias-experience {
    background-color: #FAF6EF;
}

.experience-card {
    text-align: center;
    padding: 40px 20px;
    background-color: #F5F1E8;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(111, 90, 72, 0.15);
}

.experience-icon {
    font-size: 3em;
    color: #C2A15A;
    margin-bottom: 20px;
}

.experience-card h3 {
    font-size: 1.5em;
    color: #2E2A26;
    margin-bottom: 15px;
    font-weight: 600;
}

/* CTA Section */
.luiggias-cta {
    background: linear-gradient(135deg, #6F5A48 0%, #5A4737 100%);
    padding: 100px 0;
    color: #FAF6EF;
}

.luiggias-cta h2 {
    font-size: 4em;
    color: #FAF6EF;
    margin-bottom: 20px;
}

.luiggias-cta .cta-text {
    font-size: 1.3em;
    color: #FAF6EF;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Story Page Specifics */
.family-quote {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.3em !important;
    color: #6F5A48;
    font-style: italic;
    padding: 30px 40px;
    border-left: 4px solid #C2A15A;
    background-color: #F5F1E8;
    margin: 30px 0;
    font-weight: 500;
}

/* =========================================
   9. FOOTER & UTILITIES
   ========================================= */
.luiggias-footer {
    background-color: #2E2A26;
    color: #FAF6EF;
}

.luiggias-footer .social-title {
    color: #C2A15A;
}

.luiggias-footer a {
    color: #FAF6EF;
    transition: color 0.3s ease;
}

.luiggias-footer a:hover {
    color: #C2A15A;
    text-decoration: none;
}

.luiggias-footer .footer-bottom-area {
    background-color: #1F1C19;
    border-top: 1px solid #3D3631;
}

.back-to-main {
    display: inline-block;
    margin-top: 20px;
    color: #C2A15A !important;
    font-weight: 600;
    font-size: 1.1em;
}

/* Scroll To Top */
.scroll-area i {
    background: #6F5A48 !important;
    color: #FFF7F4 !important;
}

.scroll-area::after,
.scroll-area::before {
    border-color: #6F5A48 !important;
}

.scroll-area i:hover {
    background: #C2A15A !important;
}

/* Preloader */
.luiggias-body .preloader {
    background-color: #6F5A48;
}

.luiggias-body .spinner div {
    background-color: #C2A15A;
}

/* =========================================
   10. RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 991px) {
    .luiggias-hero h1 {
        font-size: 3.5em;
    }

    .story-content {
        padding: 40px 20px;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .luiggias-hero h1 {
        font-size: 2.5em;
    }

    .luiggias-hero .hero-subtitle {
        font-size: 1.1em;
    }

    .luiggias-cta h2 {
        font-size: 2.5em;
    }

    .page-banner-area .hero-cta {
        margin-top: 40px !important;
    }
}

/* =========================================
   TEXT COLOR FIXES
   ========================================= */

/* Experience Cards */
.experience-card h3 {
    color: #6F5A48 !important;
    font-weight: 700 !important;
}

.experience-card p {
    color: #2E2A26 !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
}

/* Section Headers */
.luiggias-intro h2,
.story-content h2,
.luiggias-experience h2 {
    color: #2E2A26 !important;
}

/* Intro Text - Legacy Paragraph */
.luiggias-intro p {
    color: #5A4737 !important;
}

.luiggias-intro p:last-child {
    font-size: 1.4rem !important;
    font-style: italic !important;
    color: #C2A15A !important;
    font-weight: 600 !important;
    margin-top: 25px !important;
    line-height: 1.4 !important;
}

/* Story Section */
.luiggias-story-preview .story-content h2 {
    color: #2E2A26 !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 3rem !important;
}

.luiggias-story-preview .story-content p {
    color: #5A4737 !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
}

.luiggias-story-preview .story-content a {
    color: #C2A15A !important;
    font-weight: 700 !important;
}

/* =========================================
   HERITAGE GALLERY STYLES
   ========================================= */
.gallery-frame {
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(46, 42, 38, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #e0dcd5;
}

.gallery-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(111, 90, 72, 0.2);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(40%) contrast(95%);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-frame:hover .img-wrapper img {
    filter: sepia(0%) contrast(100%);
    transform: scale(1.05);
}

/* Gold Reveal Border */
.img-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid #C2A15A;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-frame:hover .img-wrapper::after {
    opacity: 1;
    transform: scale(1);
}

/* Icon Overlay */
.img-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 42, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.gallery-frame:hover .img-wrapper .overlay {
    opacity: 1;
}

.img-wrapper .overlay i {
    color: #FAF6EF;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-frame:hover .img-wrapper .overlay i {
    transform: translateY(0);
}

/* =========================================
   PAGE TRANSITIONS
   ========================================= */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}