/*
Theme Name: Pavone Cosmetics
Author: AI
Description: Theme for pavonecosmetics.it
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Oswald:wght@300;500;700;800&display=swap');

:root {
    --primary: #1a5632;
    --secondary: #e86c5a;
    --accent: #2d7a4a;
    --bg-main: #f5f2ed;
    --white: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #4a4a4a;
    --glass: rgba(255, 255, 255, 0.9);
    --border: #1a5632;
    
    --container-width: 1280px;
    --content-width: 800px;
    --transition: all 0.3s ease;
    --radius: 0px;

    --section-pad: clamp(5rem, 12vw, 10rem);
}

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

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, .logo, .btn-arc {
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(1.8rem, 8vw, 6rem); margin-bottom: 2rem; word-break: break-word; }
h2 { font-size: clamp(1.6rem, 5vw, 3rem); margin-bottom: 4rem; text-align: center; word-break: break-word; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Axis 7: V-B Neobrutalism */
.neo-brutal {
    background: var(--white);
    border: 3px solid var(--border);
    box-shadow: 6px 6px 0px var(--border);
    border-radius: 0;
}

/* Decor D-E: Accent color stripes */
section {
    border-left: 5px solid var(--secondary);
}

/* Axis 1: N-A Classic Split Header */
.site-header {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    transition: var(--transition);
    background: var(--white);
    border-bottom: 3px solid var(--border);
}
.site-header.scrolled { height: 70px; }

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    gap: 3rem;
}

.logo {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem !important;
    color: var(--primary) !important;
    text-transform: lowercase;
    min-width: 180px;
    flex-shrink: 0;
}
.logo span { color: var(--secondary); font-weight: 300; }

.main-nav ul { display: flex; list-style: none; gap: 3rem; }
.main-nav a { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-main); opacity: 0.8; }
.main-nav a:hover { color: var(--primary); opacity: 1; }

.nav-toggle { display: none; }

/* Axis 2: H-B Split-screen 50/50 */
.hero-split {
    display: flex;
    min-height: 100vh;
    align-items: center;
    background: var(--bg-main);
    border-bottom: 3px solid var(--border);
    border-left: 5px solid var(--secondary);
}
.hero-text {
    flex: 1;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-image {
    flex: 1;
    height: 100vh;
    border-left: 3px solid var(--border);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.btn-arc {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--white);
    border: 3px solid var(--border);
    box-shadow: 6px 6px 0px var(--border);
    text-transform: uppercase;
    font-weight: 700;
}
.btn-arc:hover { 
    transform: translate(2px, 2px); 
    box-shadow: 4px 4px 0px var(--border); 
    background: var(--secondary); 
}

/* Axis 3: F-A Horizontal stripes */
.features-section { padding: 0; }
.feature-stripe {
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--border);
    background: var(--white);
}
.feature-stripe:nth-child(even) {
    background: var(--bg-main);
    flex-direction: row-reverse;
}
.feature-stripe .feature-icon {
    flex: 0 0 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: var(--primary);
    color: var(--white);
    border-right: 3px solid var(--border);
}
.feature-stripe:nth-child(even) .feature-icon {
    border-right: none;
    border-left: 3px solid var(--border);
    background: var(--secondary);
}
.feature-stripe .feature-text {
    flex: 1;
    padding: 4rem;
}
.feature-stripe h3 { font-size: 2rem; margin-bottom: 1rem; }

/* Axis 5: U-A Quote */
.quote-section {
    padding: var(--section-pad) 2rem;
    background: var(--accent);
    color: var(--white);
    text-align: center;
    border-bottom: 3px solid var(--border);
}
.quote-section blockquote {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    max-width: 1000px;
    margin: 0 auto 2rem;
    line-height: 1.3;
}
.quote-section cite {
    font-size: 1.2rem;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Axis 4: C-A Vertical classic Cards */
.posts-section { padding: var(--section-pad) 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

.post-card-arc { 
    transition: var(--transition);
}
.post-card-arc:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0px var(--border); }
.post-card-arc .thumb { height: 250px; position: relative; border-bottom: 3px solid var(--border); }
.post-card-arc .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.post-card-arc .meta-tag { 
    position: absolute; top: 0; left: 0; background: var(--secondary); 
    color: var(--white); padding: 5px 15px; font-size: 0.75rem; font-weight: 700;
    border-right: 3px solid var(--border); border-bottom: 3px solid var(--border);
}

.post-card-content { padding: 2rem; }
.post-card-content h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 1rem; line-height: 1.3; }
.post-card-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 1rem; margin: 6rem 0; }
.pagination .page-numbers { 
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--border); background: var(--white); 
    font-weight: 700; color: var(--text-main); font-family: 'Oswald', sans-serif;
    box-shadow: 4px 4px 0px var(--border);
}
.pagination .page-numbers.current { background: var(--primary); color: var(--white); }
.pagination .page-numbers:hover { background: var(--secondary); color: var(--white); transform: translate(2px,2px); box-shadow: 2px 2px 0px var(--border); }

/* Axis 6: FT-D CTA Footer */
.site-footer { background: var(--white); color: var(--text-main); border-top: 3px solid var(--border); }
.footer-cta {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--bg-main);
    border-bottom: 3px solid var(--border);
}
.footer-cta h2 { margin-bottom: 2rem; }

.footer-main { padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; }

.footer-logo { 
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-size: 2.2rem; 
    margin-bottom: 1rem; 
    color: var(--primary); 
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
}
.footer-logo span { color: var(--secondary); font-weight: 300; }
.footer-desc { color: var(--text-muted); line-height: 1.8; }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1rem; }
.footer-nav a { color: var(--text-main); font-weight: 700; font-family: 'Oswald', sans-serif; text-transform: uppercase; }
.footer-nav a:hover { color: var(--secondary); }

.footer-bottom { border-top: 3px solid var(--border); padding: 2rem 0; display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; }

@media (max-width: 1200px) {
    .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-header { height: 80px; }
    .header-inner { padding: 0; }
    
    .hero-split { flex-direction: column; }
    .hero-text { padding: 8rem 2rem 4rem; text-align: center; }
    .hero-image { height: 50vh; width: 100%; border-left: none; border-top: 3px solid var(--border); }
    
    .feature-stripe, .feature-stripe:nth-child(even) { flex-direction: column; }
    .feature-stripe .feature-icon { width: 100%; border-right: none; border-bottom: 3px solid var(--border); }
    .feature-stripe:nth-child(even) .feature-icon { border-left: none; }
    
    .main-nav { display: none; }
    .nav-toggle { 
        display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 10001; 
        position: fixed; top: 25px; right: 25px;
    }
    .nav-toggle span { width: 30px; height: 3px; background: var(--text-main); transition: 0.3s; }
    
    body.menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    body.menu-open .main-nav { 
        display: flex; position: fixed; inset: 0; background: var(--white); 
        z-index: 10000; align-items: center; justify-content: center;
    }
    body.menu-open .main-nav ul { flex-direction: column; text-align: center; gap: 2.5rem; }
    body.menu-open .main-nav a { font-size: 2rem; }

    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
/* RULE 21 FIX */
.post-card-arc {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.post-card-arc .thumb {
    display: block !important;
    height: clamp(180px, 25vw, 300px) !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.post-card-arc .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.post-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.post-card-content h3 {
    flex-grow: 1 !important;
}
.btn-read, .read-more-link {
    margin-top: auto !important;
}
