/*
Theme Name: WNU Architects Theme
Theme URI: https://wnua.eu
Author: WNU
Description: Custom minimalist theme replicating wnu_architects-3ce96a09.base44.app
Version: 2.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #F2F2F2;
    --text-color: #000000;
    --accent-orange: #FF6600;
    --border-radius-lg: 80px;
    --border-radius-md: 32px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="black"/></svg>') 8 8, auto !important;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    padding: var(--spacing-sm) var(--spacing-md);
    overflow-x: hidden;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.6;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Header Fixed */
.site-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
    z-index: 1000;
}

.header-col {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left { justify-content: flex-start; }
.header-center { justify-content: center; }
.header-right { justify-content: flex-end; }

.header-col a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.site-title-fixed {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-main {
    margin-top: 100px;
}

/* Home / Hero Section */
.hero-section {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    display: block; /* Standard block layout for bulletproof centering */
}

.hero-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 85vh; /* Force perfect square on wide screens */
    max-height: 85vh;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    margin: 0 auto var(--spacing-sm) auto;
}

/* Hero swiper centrato al 90% della viewport */
.hero-section .mySwiper {
    width: 90%;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* Black Banner CTA - Sfondo 100% larghezza schermo */
.cta-banner {
    background-color: #000000;
    color: #FFFFFF;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0; /* 100% no arrotondamenti */
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.cta-banner h2 {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.cta-banner p {
    font-size: 1.2rem;
}

/* Archive Grid */
.archive-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.category-filters {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.category-filters a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 20px;
}

.category-filters a:hover {
    border-color: var(--text-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    width: 100%;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.project-item .wp-post-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: var(--border-radius-md);
}

.project-id {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Accordion Dettagli Progetto */
.project-details-accordion {
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--text-color);
}
.project-details-accordion summary {
    font-weight: 700;
    text-transform: uppercase;
    cursor: inherit;
    padding: var(--spacing-sm) 0;
    outline: none;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
}
.project-details-accordion summary::after {
    content: '+';
}
.project-details-accordion[open] summary::after {
    content: '-';
}
.accordion-content {
    padding: var(--spacing-sm) 0;
}

/* Swiper Carousel */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.swiper-slide {
    text-align: center;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--text-color) !important;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 50%;
    transform: scale(0.6);
}

.swiper-pagination-bullet-active {
    background: var(--text-color) !important;
}

/* Team Page */
.team-container {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.team-title {
    color: var(--accent-orange);
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 3px;
}

.team-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.team-list li {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    text-transform: lowercase;
}

/* Standard Pages */
.page-content {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    text-align: left;
}

.page-content h1 {
    text-transform: uppercase;
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

/* Footer */
.site-footer {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.footer-col h4 {
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p, .footer-col a {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    border-top: none;
    padding-top: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-links .dot {
    font-size: 1.2rem;
    line-height: 0;
}

.copyright {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 600px) {
    body {
        padding: var(--spacing-xs);
    }
    .site-title {
        font-size: 1.8rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .team-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero-image {
        max-height: calc(100vh - 120px);
        width: 95%;
        margin: 0 auto;
    }
    .hero-section .mySwiper {
        width: 95%;
    }
}