/* ============================================================
 * TITANIUM TEMPLATE 3: SIGNATURE WARM BISTRO (Warm, Artisanal & Inviting)
 * Digital Mode / Digital Magix - World-Class Standard
 * ============================================================ */

:root {
    --tmpl-bg: #faf8f5;
    --tmpl-surface: #f4efe9;
    --tmpl-surface-alt: #ece4db;
    --tmpl-surface-card: #ffffff;
    --tmpl-border: #e7ded5;
    --tmpl-border-warm: rgba(194, 65, 12, 0.22);
    --tmpl-border-subtle: rgba(41, 37, 36, 0.05);
    --tmpl-text: #292524;
    --tmpl-text-muted: #78716c;
    --tmpl-text-light: #a8a29e;
    --tmpl-accent: #c2410c;
    --tmpl-accent-hover: #9a3412;
    --tmpl-accent-rgb: 194, 65, 12;
    --tmpl-accent-subtle: #ffedd5;
    --tmpl-navbar-bg: rgba(250, 248, 245, 0.94);
    --tmpl-navbar-border: rgba(194, 65, 12, 0.12);
    --tmpl-card-shadow: 0 10px 30px -8px rgba(67, 34, 18, 0.07), 0 2px 6px -1px rgba(67, 34, 18, 0.03);
    --tmpl-card-shadow-hover: 0 20px 40px -10px rgba(67, 34, 18, 0.15), 0 4px 10px -2px rgba(67, 34, 18, 0.06);
    --tmpl-footer-bg: #1c1410;
    --tmpl-footer-text: #e7ded5;
    --tmpl-radius: 16px;
}

body {
    background-color: var(--tmpl-bg);
    color: var(--tmpl-text);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.015em;
    color: var(--tmpl-text);
}

/* NAVBAR TRASLUCIDA WARM BISTRO */
.navbar-titanium {
    background: var(--tmpl-navbar-bg) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--tmpl-navbar-border);
    transition: all 0.3s ease;
    padding: 14px 0;
}

.navbar-titanium .brand-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1c1410;
    text-decoration: none;
    text-transform: uppercase;
}

.navbar-titanium .nav-link-custom {
    color: var(--tmpl-text);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    border-radius: 9999px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.navbar-titanium .nav-link-custom:hover {
    color: var(--tmpl-accent);
    background: var(--tmpl-accent-subtle);
}

.navbar-titanium .btn-menu-cta {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    color: #ffffff !important;
    padding: 9px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(194, 65, 12, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}
.navbar-titanium .btn-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 65, 12, 0.5);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff !important;
}

/* ZERO-BANNER LANGUAGE SWITCHER */
.lang-selector-btn {
    background: var(--tmpl-surface-alt);
    border: 1px solid var(--tmpl-border);
    color: var(--tmpl-text);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lang-selector-btn:hover {
    border-color: var(--tmpl-accent);
    background: #ffffff;
    color: var(--tmpl-accent);
}

.lang-dropdown-menu {
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--tmpl-border);
    box-shadow: 0 10px 30px rgba(67, 34, 18, 0.12);
    padding: 6px;
}
.lang-dropdown-menu .dropdown-item {
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* HERO SLIDER CON ATMOSFERA & FALLBACK */
.hero-carousel {
    position: relative;
    height: 86vh;
    min-height: 590px;
    max-height: 860px;
    background: #1c1410;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.68) sepia(0.12) contrast(1.05);
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 20, 16, 0.45) 0%, rgba(28, 20, 16, 0.2) 40%, rgba(28, 20, 16, 0.9) 100%);
    z-index: 2;
}

.hero-content-inner {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-content-inner h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    margin-bottom: 16px;
}

.hero-content-inner .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: #fdba74;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    color: #ffffff !important;
    padding: 13px 32px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(194, 65, 12, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px;
    border: none;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 12px 30px rgba(194, 65, 12, 0.55);
    color: #ffffff !important;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 186, 116, 0.4);
    color: #ffffff !important;
    padding: 13px 32px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fdba74 !important;
    border-color: #fdba74;
}

/* SMART BAR DI CONVERSIONE (Micro-Azioni) */
.smart-action-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--tmpl-border);
    box-shadow: 0 4px 20px -2px rgba(67, 34, 18, 0.05);
    padding: 14px 0;
    position: relative;
    z-index: 10;
}

.smart-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--tmpl-surface);
    border: 1px solid var(--tmpl-border);
    text-decoration: none !important;
    color: var(--tmpl-text);
    transition: all 0.22s ease;
}
.smart-action-card:hover {
    border-color: var(--tmpl-accent);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 34, 18, 0.08);
    color: var(--tmpl-accent);
}
.smart-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.smart-icon-call { background: #ffedd5; color: #ea580c; }
.smart-icon-wa { background: #dcfce7; color: #16a34a; }
.smart-icon-delivery { background: #fee2e2; color: #dc2626; }
.smart-icon-map { background: #fef3c7; color: #d97706; }

/* SEZIONI & CARD TITANIUM */
.section-titanium {
    padding: 85px 0;
}
.section-alt {
    background: var(--tmpl-surface);
}

.section-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--tmpl-accent-subtle);
    color: var(--tmpl-accent);
    border: 1px solid var(--tmpl-border-warm);
    margin-bottom: 12px;
}

.section-divider-accent {
    width: 50px;
    height: 3px;
    border-radius: 2px;
    background: var(--tmpl-accent);
    margin: 14px auto 0;
}

.card-content-titanium {
    background: var(--tmpl-surface-card);
    border: 1px solid var(--tmpl-border);
    border-radius: var(--tmpl-radius);
    box-shadow: var(--tmpl-card-shadow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-content-titanium:hover {
    transform: translateY(-4px);
    box-shadow: var(--tmpl-card-shadow-hover);
    border-color: #d6c7b9;
}

/* FOTOGRAFIA PURA (Ratio coerenti 4:3) */
.photo-card-pure {
    border-radius: var(--tmpl-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--tmpl-card-shadow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    background: var(--tmpl-surface-alt);
}
.photo-card-pure:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--tmpl-card-shadow-hover);
}
.photo-card-pure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.photo-card-pure:hover img {
    transform: scale(1.05);
}

/* RECENSIONI SOCIAL PROOF */
.review-card-modern {
    background: var(--tmpl-surface-card);
    border: 1px solid var(--tmpl-border);
    border-radius: var(--tmpl-radius);
    padding: 24px;
    box-shadow: var(--tmpl-card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.review-stars {
    color: #ea580c;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.review-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tmpl-text);
    flex-grow: 1;
    font-style: italic;
    margin-bottom: 16px;
}
.review-author-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--tmpl-border-subtle);
}
.review-author-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--tmpl-text);
}

/* FAQ ACCORDION WARM */
.accordion-titanium .accordion-item {
    background: #ffffff;
    border: 1px solid var(--tmpl-border);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(67, 34, 18, 0.03);
}
.accordion-titanium .accordion-button {
    font-weight: 700;
    font-size: 1rem;
    color: var(--tmpl-text);
    background: #ffffff;
    padding: 18px 22px;
    box-shadow: none !important;
}
.accordion-titanium .accordion-button:not(.collapsed) {
    color: var(--tmpl-accent);
    background: var(--tmpl-accent-subtle);
}
.accordion-titanium .accordion-body {
    padding: 20px 22px;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--tmpl-text-muted);
}

/* FOOTER TITANIUM */
.footer-titanium {
    background: var(--tmpl-footer-bg);
    color: var(--tmpl-footer-text);
    padding: 70px 0 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-heading {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fdba74;
    margin-bottom: 20px;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 10px;
}
.footer-links-list a {
    color: #d6c7b9;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-links-list a:hover {
    color: #ffffff;
}

/* MOBILE OFFCANVAS APP STYLE */
.offcanvas-app {
    background: #ffffff;
}
.offcanvas-app .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tmpl-text);
    text-decoration: none;
    transition: all 0.2s ease;
}
.offcanvas-app .mobile-nav-link:hover {
    background: var(--tmpl-surface-alt);
    color: var(--tmpl-accent);
}

/* TITANIUM MOBILE BOTTOM DOCK (Warm Bistro Edition - Flat Instagram Style) */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 66px !important;
    }
    .hero-carousel {
        height: 78vh !important;
        min-height: 480px !important;
        max-height: 600px !important;
        padding-top: 70px;
    }
    .hero-content-inner h1 {
        font-size: clamp(1.85rem, 7vw, 2.6rem) !important;
    }
    .hero-content-inner .hero-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 22px !important;
    }
}

.titanium-mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(194, 65, 12, 0.15);
    box-shadow: 0 -2px 12px rgba(67, 34, 18, 0.06);
    z-index: 1045;
}
.dock-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 6px;
}
.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #78716c;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex: 1;
    height: 100%;
    gap: 2px;
    transition: color 0.15s ease;
}
.dock-item i {
    font-size: 1.25rem;
    line-height: 1;
}
.dock-item:hover, .dock-item.active {
    color: #c2410c;
    font-weight: 700;
}

/* SUBPAGE HERO TITANIUM STANDARD */
.subpage-hero {
    padding: 38px 0 24px;
}

/* LIGHTBOX UNIVERSALE TITANIUM (World-Class Photo Viewer) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 10, 8, 0.94);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.lightbox.active,
.lightbox[style*="display: flex"] {
    display: flex !important;
}
.lightbox img {
    max-width: 90vw;
    max-height: 84vh;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
    object-fit: contain;
    transition: opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000001;
    line-height: 1;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.lb-close:hover {
    color: #fdba74;
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg) scale(1.1);
}
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000001;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}
.lb-nav:hover {
    background: var(--tmpl-accent, #c2410c);
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 24px rgba(194, 65, 12, 0.5);
}
.lb-l { left: 24px; }
.lb-r { right: 24px; }

.lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 20, 16, 0.75);
    color: #fdba74;
    padding: 6px 18px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    z-index: 1000001;
    border: 1px solid rgba(253, 186, 116, 0.25);
    backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
    .lb-nav {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }
    .lb-l { left: 10px; }
    .lb-r { right: 10px; }
    .lb-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   FIRMA & DOPPIO LOGO AGENZIA (DIGITAL MODE + DIGITAL MAGIX)
   ========================================================================== */
.agency-text {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    opacity: 0.75;
    color: #94a3b8;
    transition: opacity 0.25s ease, color 0.25s ease;
}
.agency-text:hover {
    opacity: 1;
    color: #ffffff;
}

.footer-logos-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-wrap: wrap;
    gap: 28px; 
    margin-top: 6px;
}
.footer-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.footer-logo-box:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}
.footer-logo-img { 
    height: 50px; 
    width: auto; 
    object-fit: contain; 
}
.footer-logo-magix { 
    height: 38px; 
    width: auto; 
    object-fit: contain; 
}
