/* assets/css/style.css - Antonio Di Blasi Pizza (International Luxury) */

:root {
    --bs-dark: #000000;
    --bs-black: #000000;
    --bs-darker: #050505;
    --bs-light: #ffffff;
    --bs-primary: #ffffff; /* Primary is White for the Black & White elegant look */
    --bs-secondary: #aaaaaa;
    --titanium-gold: #C5A059;
}

body {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bs-black);
    color: var(--bs-light);
    overflow-x: hidden;
}

.text-gold {
    color: var(--titanium-gold) !important;
}

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

.btn-black {
    background-color: #000 !important;
    color: var(--titanium-gold);
    border: 1px solid var(--titanium-gold);
}

.btn-black:hover {
    background-color: #111 !important;
    color: #fff;
}

.hover-gold {
    transition: color 0.3s ease;
}
.hover-gold:hover {
    color: var(--titanium-gold) !important;
}

.focus-gold:focus {
    border-color: var(--titanium-gold) !important;
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.5) !important;
}

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

.hover-gold-bg {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hover-gold-bg:hover {
    background-color: var(--titanium-gold) !important;
    border-color: var(--titanium-gold) !important;
    color: #000 !important;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.tracking-wider { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.25em; }

/* --- INTRO LOADER (Ultra Dinamico & Impattante) --- */
#intro-loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.intro-panel {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 1. Pannello Nero Unico (Pure Dark Luxury) */
.intro-black {
    background-color: var(--bs-black);
    z-index: 10000;
    /* Al termine dell'animazione, sfuma ed esce verso l'alto dolcemente */
    animation: fadeSlideUp 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards 2s;
}

.intro-photo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-photo-dark {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Perfetto per PC */
    object-position: center;
    opacity: 0;
    filter: grayscale(100%) contrast(150%) brightness(0.4);
    /* Fade in lentissimo per rivelare il viso nell'ombra */
    animation: fadeInPhoto 1.5s ease forwards, slowZoomOut 5.5s ease forwards;
}

@media (max-width: 767px) {
    .intro-photo-dark {
        object-fit: cover; 
        object-position: 35% center; /* Sposta l'immagine a destra per centrare il viso di Antonio su smartphone */
    }
}

.intro-overlay-logo {
    position: relative;
    z-index: 2;
    text-align: center;
}

.intro-logo-main {
    max-width: 400px;
    width: 80vw;
    height: auto;
    object-fit: contain;
    opacity: 0;
    /* Entra dal basso elegante */
    animation: revealUpText 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

/* Keyframes */
@keyframes revealUpText {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInPhoto {
    0% { opacity: 0; }
    100% { opacity: 0.6; }
}
@keyframes fadeSlideUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}
@keyframes slowZoomIn {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.05); }
}
@keyframes slowZoomOut {
    to { transform: scale(1); }
}

/* --- NAVBAR (Elegant Black Menu) --- */
.titanium-navbar {
    background: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 1.5rem 0;
}
.titanium-navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-brand {
    font-size: 1.1rem;
    padding-top: 0;
    padding-bottom: 0;
}
.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bs-secondary) !important;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--bs-light) !important;
}
.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* --- HERO SLIDE (D'impatto) --- */
.hero-slider {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bs-black);
}
.hero-image-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Utilizza la nuova immagine slide2.webp caricata */
    background-image: url('../img/slide2.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.4; /* Molto scuro per far leggere i testi */
    transform: scale(1.05);
    transition: transform 10s ease;
}
.hero-slider.active .hero-image-bg {
    transform: scale(1);
}
.hero-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease 1s, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1s;
}
.hero-slider.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}
.hero-shadow {
    text-shadow: 0px 5px 25px rgba(0, 0, 0, 0.9);
}
.hero-shadow-sub {
    text-shadow: 0px 3px 15px rgba(0, 0, 0, 0.9);
}

/* --- UTILITIES --- */
.btn-outline-light {
    border-radius: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem 2.5rem;
    transition: all 0.4s ease;
}
.btn-outline-light:hover {
    background-color: var(--bs-light);
    color: var(--bs-black);
}
.btn-primary {
    background-color: var(--bs-light) !important;
    color: var(--bs-black) !important;
    border: none;
    border-radius: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem 2.5rem;
    transition: all 0.4s ease;
}
.btn-primary:hover {
    background-color: var(--bs-secondary) !important;
    color: var(--bs-black) !important;
}

/* --- PHOTO GALLERY SECTION --- */
.photo-frame {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Forza tutte le foto ad avere la stessa proporzione verticale (stile ritratto/lusso) */
    background-color: var(--bs-darker);
}
.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.photo-frame img:hover {
    transform: scale(1.05);
}
.navbar-logo {
    transition: transform 0.3s ease;
}
.navbar-logo:hover {
    transform: scale(1.05);
}
.photo-frame:hover img {
    transform: scale(1.05);
}

.video-frame {
    overflow: hidden;
    position: relative;
    width: 100%;
    background-color: #000;
}
.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery Orizzontale Mobile-First */
.custom-scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.custom-scrollbar-hide::-webkit-scrollbar {
    display: none;
}

#creationsGallery {
    touch-action: pan-y pinch-zoom; /* Fondamentale: non blocca lo scroll verticale della pagina su mobile */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.gallery-card-item {
    scroll-snap-align: start;
    user-select: none;
    flex: 0 0 auto;
    width: 320px;
}
.gallery-card-item img {
    pointer-events: none;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .gallery-card-item {
        width: 85vw !important;
        max-width: none !important;
    }
}

/* --- LUXURY DARK FORM CONTROLS (Titanium Standard) --- */
.form-control-dark {
    background-color: #161616 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-control-dark:focus {
    background-color: #1e1e1e !important;
    border-color: #C5A059 !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2) !important;
    color: #ffffff !important;
    outline: none !important;
}
.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}
select.form-control-dark option {
    background-color: #161616 !important;
    color: #ffffff !important;
}

/* STAMPA PDF REPORT (Titanium Analytics) */
@media print {
    body {
        background-color: #000000 !important;
        -webkit-print-color-adjust: exact; 
        print-color-adjust: exact; 
    }
    .d-print-none {
        display: none !important;
    }
    #printArea {
        border: none !important;
    }
}

/* MOBILE BOTTOM NAV FIXES */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 991px) {
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom));
    }
    .whatsapp-sticky {
        bottom: calc(85px + env(safe-area-inset-bottom)) !important;
    }
}

 / *   N a s c o n d i   i l   b a n n e r   d i   G o o g l e   T r a n s l a t e   i n   a l t o   * / 
 . g o o g - t e - b a n n e r - f r a m e . s k i p t r a n s l a t e   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   } 
 b o d y   {   t o p :   0 p x   ! i m p o r t a n t ;   } 
 # g o o g - g t - t t   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   t o p :   0 p x   ! i m p o r t a n t ;   } 
 . g o o g - t o o l t i p   s k i p t r a n s l a t e   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   t o p :   0 p x   ! i m p o r t a n t ;   } 
 . g o o g - t e x t - h i g h l i g h t   {   b a c k g r o u n d - c o l o r :   t r a n s p a r e n t   ! i m p o r t a n t ;   b o x - s h a d o w :   n o n e   ! i m p o r t a n t ;   } 
  
 