/*
Theme Name: MIEL.IT Theme
Theme URI: https://miel.it
Author: Antigravity
Description: Minimal WordPress theme for the MIEL.IT project.
Version: 1.0
Text Domain: mielit-theme
*/

:root {
    --primary-color: #EDB100; /* Honey Golden */
    --secondary-color: #2D5A27; /* Natural Green */
    --accent-color: #F9F7F2; /* Cream/Light Neutral */
    --text-dark: #1A1A1A;
    --text-muted: #4A4A4A;
    --white: #FFFFFF;
    --section-padding: 80px 0;
    --container-width: 1100px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(237, 177, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(45, 90, 39, 0.03) 0%, transparent 40%);
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

@media (max-width: 600px) {
    .logo-img {
        height: 40px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.nav-links li a:hover,
.nav-links li.current-menu-item a {
    color: var(--primary-color);
}

/* Page Titles */
.page-header {
    padding: 100px 0 60px;
    background-color: var(--accent-color);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-stacked .container {
    display: block;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero-image-wide {
    width: 100%;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-image {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    border-radius: 40px 0 0 40px;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d9a200;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(237, 177, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cards */
.content-block {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.content-block h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* News List */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.news-card span {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.news-card h2 {
    font-size: 1.5rem;
    margin: 10px 0 15px;
}

.news-empty {
    text-align: center;
    padding: 100px 0;
    color: var(--text-muted);
    font-style: italic;
}

/* News Single */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Partners */
.partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.partner-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 40px;
    margin-top: auto;
}

.footer-logos {
    display: block;
    margin-top: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
}

.footer-info h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 80px 0; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-image { display: none; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-logos { justify-content: center; }

    /* Mobile Nav */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        text-align: center;
        border-bottom: 2px solid var(--accent-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        display: flex; /* Ensure it stays flex */
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}
