/* Theme Name: AltoVolo Custom Theme
Description: Stylesheet v3.4 - "Bravo" Layout Restored + Birds Page + Safe Text Fix
*/

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #1a1a1a;       /* Nero scuro elegante */
    --accent-color: #C5A059;        /* Oro elegante */
    --accent-hover: #b08d4b;
    --bg-light: #f4f1ea;            /* Beige chiaro */
    --bg-dark: #151515;             /* Nero footer */
    --text-color: #333;
    --white: #ffffff;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --header-height: 100px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
}

body.home { padding-top: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-top: 0;
    line-height: 1.2;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed; top: 0; width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo img { height: 60px; width: auto; }

.nav-links { display: flex; gap: 40px; }
.nav-links li { display: inline-block; }
.nav-links a {
    color: var(--primary-color); font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
}
.nav-links a:hover { color: var(--accent-color); }

.header-cta {
    background: var(--primary-color); color: var(--white);
    padding: 12px 25px; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 1px; font-weight: 600;
}

/* =========================================
   3. GLOBAL HERO (Home - "Bravo" Version)
   ========================================= */
.hero {
    height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
    background-color: #000; overflow: hidden;
}
.hero-slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; animation: slideAnimation 16s infinite;
}
.slide-1 { background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url('../img/ban3.jpg'); animation-delay: 0s; }
.slide-2 { background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url('../img/ban2.jpg'); animation-delay: 8s; }
@keyframes slideAnimation { 0% { opacity: 0; } 10% { opacity: 1; } 50% { opacity: 1; } 60% { opacity: 0; } 100% { opacity: 0; } }

.hero-content { position: relative; z-index: 2; padding-top: 60px; }
.hero-content h1 { 
    font-size: 4.5rem; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3); 
    color: var(--white); 
    margin-bottom: 20px; 
}
/* RIPRISTINATO: Stile testo Hero che era andato perso */
.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--white);
}

.hero-btn {
    display: inline-block; background-color: transparent; border: 2px solid var(--white);
    color: var(--white); padding: 15px 35px; margin-top: 20px;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
}
.hero-btn:hover { background-color: var(--white); color: var(--primary-color); }

/* =========================================
   4. HOME SECTIONS (Philosophy & Showcase)
   ========================================= */
.philosophy { padding: 100px 0; text-align: center; background: var(--bg-light); }
.philosophy h2 { font-size: 3rem; margin-bottom: 20px; }
.philosophy p { max-width: 700px; margin: 0 auto; font-size: 1.1rem; color: #555; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--white); }
.showcase-img { width: 100%; height: 700px; object-fit: cover; }
.showcase-text { padding: 80px 10%; text-align: left; }
.showcase.reverse { display: flex; flex-direction: row-reverse; }

.showcase-text h3 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 25px;
}
.showcase-text p {
    margin-bottom: 40px;
    color: #555;
    font-size: 1.05rem;
}

/* =========================================
   5. BIRDS PAGE STYLES
   ========================================= */
.page-hero {
    height: 60vh; min-height: 400px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
    margin-top: calc(var(--header-height) * -1); 
}
.page-hero h1 { font-size: 3.5rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.3); color: #fff; margin-bottom: 10px; }
.page-hero p { font-size: 1.2rem; color: #fff; font-weight: 300; }

.guide-intro { padding: 100px 0 60px 0; text-align: center; background: var(--bg-light); }
.guide-intro h2 { font-size: 2.5rem; margin-bottom: 20px; }
.guide-intro p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; color: #555; }

.considerations {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 40px; padding: 60px 0; margin-top: 40px;
    text-align: center;
    border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
}
.consideration-item h4 { font-size: 1.5rem; margin-bottom: 15px; color: var(--accent-color); }

.category-section { padding: 100px 0; padding-bottom: 0; background-color: var(--white); }
.category-block {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; margin-bottom: 100px;
    background-color: var(--white);
}
.category-block.reverse { direction: rtl; }
.category-block.reverse .category-text { direction: ltr; }
.category-img { width: 100%; height: 500px; object-fit: cover; }
.category-text { padding: 60px; }
.category-text h3 { font-size: 2rem; margin-bottom: 20px; color: var(--primary-color); }
.category-text p { margin-bottom: 25px; color: #555; }
.bird-list { margin-top: 20px; border-left: 3px solid var(--accent-color); padding-left: 20px; }
.bird-list li { margin-bottom: 10px; font-weight: 500; color: #444; }

.consultation-cta { padding: 100px 0; background-color: var(--primary-color); color: var(--white); text-align: center; }
.consultation-cta h2 { color: var(--white); margin-bottom: 20px; }

/* =========================================
   6. UI ELEMENTS
   ========================================= */
.sub-headline {
    color: var(--accent-color); font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 3px;
    margin-bottom: 15px; display: block;
}
.cta-btn {
    display: inline-block; background-color: var(--primary-color);
    color: var(--white) !important; font-family: var(--font-body);
    text-transform: uppercase; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 2px; padding: 16px 35px; border: none; border-radius: 0; cursor: pointer;
}
.cta-btn:hover { background-color: #333; }

/* =========================================
   7. FOOTER & CONTACT (Dark Theme)
   ========================================= */
.contact, footer { background-color: var(--bg-dark); color: var(--text-light); }
.contact { padding: 100px 0; border-bottom: 1px solid #222; }
.contact h2 { font-size: 3rem; color: var(--white); text-align: center; margin-bottom: 50px; font-weight: 300; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; margin-top: 60px; }
.contact-info h3 { font-size: 1.1rem; color: var(--accent-color); text-transform: uppercase; letter-spacing: 2px; margin-top: 40px; margin-bottom: 15px; }
.contact-info p, .contact-info a { color: var(--text-light); }
.whatsapp-link { color: var(--white) !important; font-size: 1.2rem; }

.contact-form input, .contact-form textarea {
    width: 100%; background-color: #1e1e1e; border: 1px solid #333;
    padding: 18px; margin-bottom: 20px; color: var(--white);
    font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-color); }
.submit-btn {
    background-color: #9e824c; color: var(--white); font-family: var(--font-body);
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    padding: 18px 40px; border: none; cursor: pointer; width: 100%; transition: background 0.3s;
}
.submit-btn:hover { background-color: var(--accent-hover); }

footer { padding: 40px 0; text-align: center; font-size: 0.8rem; color: #555; }
footer img { opacity: 0.5; margin-bottom: 20px; height: 30px; }

/* =========================================
   8. GENERIC CONTENT FORMATTING (SICURO)
   ========================================= */
/* Questa parte aggiusta il testo SOLO nelle pagine standard (es. Privacy Policy),
   senza rompere la Home o la Birds page */

.entry-content p {
    margin-bottom: 1.5rem; 
}
.entry-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1.5rem;
}
.entry-content li {
    margin-bottom: 0.5rem;
}
.entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =========================================
   9. RESPONSIVE
   ========================================= */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.bar { height: 3px; width: 25px; background-color: var(--primary-color); margin: 3px 0; transition: 0.4s; }

@media (max-width: 900px) {
    .hero-content h1 { font-size: 3rem; }
    .showcase-text { padding: 50px 30px; }
    .category-text { padding: 40px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; z-index: 1001; }
    .header-cta { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .showcase, .showcase.reverse { grid-template-columns: 1fr; display: block; }
    .showcase-img { height: 400px; }
    .considerations { grid-template-columns: 1fr; gap: 30px; }
    .category-block, .category-block.reverse { grid-template-columns: 1fr; direction: ltr; }
    .category-block.reverse .category-text { direction: ltr; }
    .category-img { height: 300px; }
    .category-text { padding: 40px 25px; }
    .contact-grid { grid-template-columns: 1fr; }
    
    .nav-links {
        position: fixed; top: var(--header-height); left: -100%;
        width: 100%; height: calc(100vh - var(--header-height));
        background-color: var(--bg-dark); flex-direction: column;
        align-items: center; justify-content: center;
        transition: 0.4s ease; padding-top: 20px; border-top: 1px solid #333;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 20px 0; display: block; }
    .nav-links a { color: var(--white); font-size: 1.2rem; }
    
    .menu-toggle.is-active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}