/*
Theme Name: Models Vogue
Author: Antigravity AI
Description: A minimalist, high-fashion theme for model agencies.
Version: 1.0
*/
:root {
    --sfondo: #FAFAFA;
    --testo-principale: #181818;
    --grigio-testo: #888888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--sfondo);
    color: var(--testo-principale);
    -webkit-font-smoothing: antialiased;
    top: 0 !important; /* Fix for GTranslate bar space */
}

/* Hide GTranslate Banner and Widgets */
.goog-te-banner-frame.skiptranslate, 
#goog-gt-tt, 
.goog-te-balloon-frame,
#google_translate_element,
.goog-te-gadget,
.goog-te-menu-value,
.goog-te-menu-frame,
.skiptranslate,
#goog-gt-sh,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
iframe.goog-te-banner-frame { 
    display: none !important; 
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Frontend Admin Bar - Alpesoft Style */
#wpadminbar {
    background: #006ebc !important;
}

#wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon {
    color: #fff !important;
}

#wpadminbar .ab-top-menu > li:hover > .ab-item, #wpadminbar .ab-top-menu > li.hover > .ab-item, #wpadminbar .ab-top-menu > li > .ab-item:focus, #wpadminbar .ab-top-menu > li.nm-menu-item > a {
    background: #005a9a !important;
    color: #fff !important;
}

#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
    content: "" !important;
    background: url('assets/alpesoft-logo.png') no-repeat center center / contain !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

#wpadminbar #wp-admin-bar-wp-logo > .ab-item {
    pointer-events: none;
}
#google_translate_element2 { display: none; }

.lang-switcher a { transition: opacity 0.3s; }
.lang-switcher a:hover { opacity: 1 !important; }

h1, h2, h3, h4, h5, h6, .logo-testuale {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5%;
    position: absolute;
    width: 100%;
    z-index: 100;
    color: #fff; /* Colore chiaro per l'header trasparente in Home */
}

header a { color: inherit; text-decoration: none; }

header.dark-text {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    color: var(--testo-principale); /* Colore scuro per le altre pagine */
}

.logo-testuale {
    font-size: 1.4rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.logo-testuale a { color: inherit; text-decoration: none; }

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: opacity 0.3s;
}

nav a:hover { opacity: 0.5; }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

/* Swiper Slideshow Copertina */
.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}
.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center 30%;
}

.hero-testo {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero h1 { font-size: 4.5rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1rem; letter-spacing: 4px; text-transform: uppercase; }

/* Grid Portfolio */
.portfolio {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: auto;
}
.portfolio-titolo { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; }

.griglia-modelle {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.modella-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background-color: #111;
}
.modella-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}
.modella-card:hover img { 
    transform: scale(1.08); 
    opacity: 0.6;
}

.info-modella {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.info-modella h3 { 
    font-size: 1.6rem; 
    margin-bottom: 0.5rem; 
    font-weight: 400; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}
.info-modella h3 a { color: #fff; text-decoration: none; }
.info-modella h3 a::after { content: ''; position: absolute; inset: 0; }
.info-modella p { 
    font-size: 0.75rem; 
    color: #ddd; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    line-height: 1.8;
    border-left: 2px solid #fff;
    padding-left: 10px;
}

/* Contenuto Articolo Singolo e Paginazione */
.contenuto-modella img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* Layout con Sidebar */
.layout-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contenuto-centrale {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.sidebar-sinistra, .sidebar-destra {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

.widget {
    margin-bottom: 3rem;
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header Utility Widget Area */
.header-right {
    gap: 2rem;
}
.header-widget {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Before Footer CTA Area */
.before-footer-area {
    padding: 6rem 5%;
    background: #fff;
    border-top: 1px solid #eaeaea;
    margin-top: 5rem;
}

/* Responsive Sidebar */
@media (max-width: 1100px) {
    .layout-container {
        flex-direction: column;
        gap: 3rem;
    }
    .sidebar-sinistra, .sidebar-destra {
        width: 100%;
        position: static;
    }
    .sidebar-sinistra { order: 2; }
    .contenuto-centrale { order: 1; width: 100%; }
    .sidebar-destra { order: 3; }
}

/* Nav Links Centered */
.nav-links { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; font-family: 'Playfair Display', serif; }
.nav-links a, .nav-links span { padding: 0.8rem 1.2rem; border: 1px solid #eaeaea; text-decoration: none; color: inherit; transition: all 0.3s; }
.nav-links a:hover { background: #f0f0f0; }
.nav-links .current { background: var(--testo-principale); color: #fff; border-color: var(--testo-principale); }

/* Responsive Menu */
@media (max-width: 768px) {
    header { padding: 1.5rem 5%; }
    
    .menu-toggle { display: flex !important; z-index: 1001; }
    
    #site-navigation-container {
        position: fixed;
        top: 0; right: 0;
        width: 100%; height: 100vh;
        background: #fff;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    #site-navigation-container.nav-active {
        transform: translateX(0);
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    nav a { font-size: 1.2rem; }
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid #eaeaea;
    margin-top: 5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
