/*
Theme Name: FotoSandro Minimal
Description: Tema minimalista ispirato allo stile Fine Art.
Version: 5.0
*/

/* --- 1. RESET E FONDAMENTA --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background: #ffffff; 
    color: #111; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. HEADER DINAMICO (HOME, PROGETTI, PAGINE) --- */
.site-header {
    position: relative; 
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    background: #ffffff;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.4s ease;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.site-title {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #111; 
    text-decoration: none;
    white-space: nowrap; 
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.main-navigation ul li a {
    color: #666;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

/* Override per testate con Hero (Home, Single Progetto, Page) */
.home .site-header, 
.single-progetto .site-header, 
.page .site-header {
    position: absolute;
    top: 0; left: 0;
    background: transparent;
    border-bottom: none;
    padding: 40px 0;
}

.home .site-title, .single-progetto .site-title, .page .site-title { color: #fff; }
.home .main-navigation ul li a, .single-progetto .main-navigation ul li a, .page .main-navigation ul li a { color: rgba(255, 255, 255, 0.8); }
.home .main-navigation ul li a:hover, .single-progetto .main-navigation ul li a:hover, .page .main-navigation ul li a:hover { color: #fff; }

/* --- 3. TIPOGRAFIA FINE ART E TITOLI --- */

/* Titoli Hero */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(45px, 10vw, 90px);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 6px;
    opacity: 0.9;
    position: relative;
    padding-bottom: 15px;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 1px;
    background: rgba(255,255,255,0.4);
}

/* Contenuto Testuale */
.project-content, .entry-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 2;
    color: #333;
    font-weight: 300;
}

.project-content p, .entry-content p {
    max-width: 750px;
    margin: 0 auto 40px;
}

/* Titoli H2 e H3 Interni */
.project-content h2, .entry-content h2,
.project-content h3, .entry-content h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #111;
    text-align: center;
    margin: 100px auto 45px;
    line-height: 1.2;
}

.project-content h2::before, .entry-content h2::before {
    content: '—';
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 5px;
    color: #ccc;
    margin-bottom: 15px;
}

/* Capilettera */
.project-content p:first-of-type::first-letter,
.entry-content p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    float: left;
    line-height: 1;
    margin-right: 15px;
    margin-top: 5px;
    color: #111;
}

/* --- 4. FORMATTAZIONE TABELLE FINE ART --- */
table, .wp-block-table {
    width: 100%;
    max-width: 800px;
    margin: 60px auto;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #444;
}

table th, .wp-block-table th {
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    padding: 20px;
    border-bottom: 1px solid #111;
    color: #111;
}

table td, .wp-block-table td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

/* --- 5. HERO SLIDER & SECTIONS --- */
.hero, .hero-slider {
    width: 100vw !important;
    height: 100vh;
    min-height: 600px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    background-size: cover;
    background-position: center;
}

.hero-overlay, .hero-content {
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

/* --- 6. GALLERIA PORTFOLIO HOME (MANTENUTO CON ESTRATTI) --- */
.portfolio-section { padding: 120px 0; background: #fff; }

.filter-bar { text-align: center; margin-bottom: 60px; }
.filter-list { list-style: none; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.filter-item {
    font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: #999;
    cursor: pointer; transition: 0.3s; padding-bottom: 5px; border-bottom: 1px solid transparent;
}
.filter-item.active { color: #000; border-bottom: 1px solid #000; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 30px;
    max-width: 1600px; margin: 0 auto; padding: 0 5%;
}

.portfolio-card { display: block; text-decoration: none; position: relative; }

.card-img-wrapper { 
    aspect-ratio: 4/5; 
    overflow: hidden; 
    background: #f9f9f9; 
    position: relative; 
    margin-bottom: 25px; 
}

.card-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 1.5s cubic-bezier(0.19, 1, 0.22, 1); 
}

.portfolio-card:hover img { transform: scale(1.04); }

.card-info { text-align: center; padding: 0 10px; }
.card-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 20px; 
    font-style: italic; 
    color: #111; 
    margin-bottom: 10px; 
    font-weight: 400; 
}
.card-excerpt { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 9px; 
    color: #888; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    line-height: 1.5;
}

/* Overlay hover */
.gallery-icon-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.portfolio-card:hover .gallery-icon-overlay { opacity: 1; }
.view-project-text { color: #fff; font-size: 10px; text-transform: uppercase; letter-spacing: 3px; border: 1px solid rgba(255,255,255,0.3); padding: 12px 20px; }

/* --- 7. FOOTER FINE ART --- */
.site-footer {
    background: #0f0f0f;
    color: #ffffff;
    padding: 120px 0 0;
    margin-top: 100px;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
}

.footer-tagline {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 25px;
}

.footer-bio {
    font-size: 14px;
    line-height: 1.9;
    color: #aaa;
    max-width: 420px;
    margin-bottom: 35px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.footer-social a:hover { opacity: 1; }

.column-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #555;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 14px;
    margin-bottom: 18px;
    color: #aaa;
    line-height: 1.6;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover { color: #ccc; }

/* Modulo Footer Minimale */
.minimal-footer-form {
    display: flex;
    border-bottom: 1px solid #333;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.minimal-footer-form input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    flex-grow: 1;
    outline: none;
}

.minimal-footer-form input::placeholder { color: #444; }

.minimal-footer-form button {
    background: transparent;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    padding-left: 25px;
    transition: letter-spacing 0.3s ease;
}

.minimal-footer-form button:hover { letter-spacing: 4px; }

.form-note {
    font-size: 11px;
    color: #444;
    line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid #1a1a1a;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.copyright, .legal-links {
    font-size: 10px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-links a {
    color: #444;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.legal-links a:hover { color: #777; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .header-container { flex-direction: column; gap: 20px; }
    .footer-container { 
        grid-template-columns: 1fr 1fr; 
        gap: 50px; 
    }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; }
    .footer-bottom-flex { 
        flex-direction: column; 
        gap: 20px; 
        text-align: center;
    }
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 42px; }
}