/*
Theme Name: Otak Custom Theme
Theme URI: https://example.com/otak
Author: Tuo Nome
Author URI: https://example.com
Description: Un template dark con un hero slider centrale alto l'80% dello schermo e poster XL da 750x600px.
Version: 1.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: otak
*/

/* --- Importazione Google Fonts (Luckiest Guy + Montserrat) --- */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Montserrat:wght@400;500;600;700&display=swap');

/* --- Reset & Base --- */
body {
    background-color: #060606 !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important; /* Montserrat per il testo di base */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Header Styling & Layout --- */
.site-header {
    background-color: #111111;
    border-bottom: 1px solid #222222;
    padding: 10px 0;
    position: relative;
    z-index: 999;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.site-logo a {
    font-family: 'Luckiest Guy', cursive !important;
    font-size: 28px;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-white { color: #ffffff; }
.logo-yellow { color: #ffcc00; }

.custom-logo {
    max-height: 80px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

/* --- Main Navigation (Macro Categorie & Sottomenu) --- */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-navigation ul.nav-menu,
.main-navigation ul {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 35px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Voce Principale */
.main-navigation li {
    position: relative !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 10px 0 !important;
}

.main-navigation li a {
    font-family: 'Luckiest Guy', cursive !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Hover e Pagina Attiva (Stile Highlight Dorato) */
.main-navigation li:hover > a,
.main-navigation li.current-menu-item > a,
.main-navigation li.current-post-ancestor > a {
    color: #000000 !important;
    background-color: #ffcc00 !important;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* --- Dropdown / Sottomenu per Macro-categorie --- */
.main-navigation ul ul {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #1a1a1a !important;
    min-width: 220px !important;
    padding: 10px 0 !important;
    gap: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8) !important;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    z-index: 1000;
}

/* Mostra il sottomenu al passaggio del mouse */
.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Voci del Sottomenu */
.main-navigation ul ul li {
    width: 100% !important;
    padding: 0 !important;
}

.main-navigation ul ul li a {
    font-family: 'Luckiest Guy', cursive !important;
    display: block !important;
    font-size: 16px !important;
    color: #cccccc !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.2s, color 0.2s;
}

.main-navigation ul ul li a:hover {
    background-color: #262626 !important;
    color: #ffcc00 !important;
}

/* --- HERO SLIDER: Formato 750x600px --- */
.hero-slider-section {
    position: relative !important;
    width: 100% !important;
    height: 80vh !important;
    min-height: 700px !important;
    background: #000000 !important;
    overflow: hidden !important;
    display: block !important;
}

.hero-swiper, 
.hero-swiper .swiper-wrapper {
    width: 100% !important;
    height: 100% !important;
}

.hero-swiper .swiper-slide {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Sfondo in scala di grigi */
.slide-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    filter: grayscale(100%) !important;
    z-index: 1 !important;
}

/* Overlay scuro gradiente */
.slide-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, rgba(6,6,6,0.95) 40%, rgba(6,6,6,0.7) 100%) !important;
    z-index: 2 !important;
}

/* Contenitore principale dello Slider */
.hero-container {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
    gap: 50px !important;
}

/* Blocco Testo Sinistra */
.hero-content {
    flex: 1 !important;
    max-width: 550px !important;
    text-align: left !important;
}

.anime-title {
    font-family: 'Luckiest Guy', cursive !important;
    font-size: 48px !important;
    margin: 0 0 15px 0 !important;
    letter-spacing: 1.5px !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
}

/* Single Category Badge */
.anime-badges {
    display: inline-block !important;
    margin-bottom: 15px !important;
}

.badge-category {
    font-family: 'Luckiest Guy', cursive !important;
    background: #ffcc00 !important;
    color: #000000 !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
}

.anime-date {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    color: #888888 !important;
    font-size: 13px !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.anime-description {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    color: #cccccc !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
    margin-bottom: 25px !important;
}

/* Play Button */
.btn-play {
    font-family: 'Luckiest Guy', cursive !important;
    display: inline-block !important;
    border: 2px solid #ffcc00 !important;
    color: #ffffff !important;
    padding: 10px 40px !important;
    font-size: 16px !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: background 0.3s, color 0.3s;
}

.btn-play:hover {
    background: #ffcc00 !important;
    color: #000000 !important;
}

/* Poster Card Destra (750x600px) */
.hero-poster-wrapper {
    flex: 1.3 !important;
    display: flex !important;
    justify-content: flex-end !important;
    max-width: 750px !important;
}

.hero-poster {
    width: 100% !important;
    max-width: 750px !important;
    height: 600px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 55px rgba(0,0,0,0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.hero-poster img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

/* Paginazione Swiper */
.hero-slider-section .swiper-pagination {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
}

.swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.3 !important;
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet-active {
    background: #ffcc00 !important;
    opacity: 1 !important;
}

/* --- SEZIONE GRID NOTIZIE (ISPIRATO DALLO SCREENSHOT) --- */
.projects-section {
    background-color: #0b0c0e;
    padding: 80px 0;
    color: #ffffff;
}

.projects-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header Sezione */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 45px;
    gap: 40px;
}

.projects-header-left {
    flex: 1.2;
}

.projects-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a2228;
    background-color: #e8ecef;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px dashed #b0b8c0;
}

.projects-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.15;
    color: #ffffff !important;
    margin: 0;
    text-transform: none !important;
}

.projects-header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.projects-desc {
    font-size: 14px;
    color: #9aa0a6;
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

.projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #0d8383;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease;
}

.projects-btn:hover {
    background-color: #096363;
    transform: translateY(-2px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
}

/* Griglia Card Asimmetrica */
.projects-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 25px;
}

.project-card {
    position: relative;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.project-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image {
    transform: scale(1.04);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.85) 100%);
}

.project-card-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
}

.project-category-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.project-card-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.3;
    text-transform: none !important;
}

/* Responsiveness per schermi più piccoli */
@media (max-width: 992px) {
    .projects-header {
        flex-direction: column;
    }
    .projects-header-right {
        flex-direction: column;
        align-items: flex-start;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}