/* CSS Variables per "Premium Corporate Dark" */
:root {
    --bg-dark: #0a0d0b; /* Very dark green/black */
    --bg-card: #141a16;
    --text-main: #e8eade;
    --text-muted: #a0a8a3;
    --gold: #d4af37;
    --gold-dark: #aa7a00;
    --green-accent: #1e3b2b;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
}

.gold-text {
    color: var(--gold);
}

.gold-line {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 20px 0;
}

.center-line {
    margin: 20px auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.center-title {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 13, 11, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    object-fit: contain;
    background-color: #f9f9f6; /* Colore chiaro affine al bianco */
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Leggero bordo oro */
}

.center-logo {
    height: 140px;
    margin-bottom: 25px;
    object-fit: contain;
    background-color: #f9f9f6;
    padding: 5px 15px; /* Molto meno padding per far "esplodere" il logo all'interno */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.logo span {
    color: var(--gold);
    font-weight: 300;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* We'll inject the background via js or inline, let's setup the fallback */
    background: url('../assets/hero_bg.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Reduced opacity to make the bright daytime image shine through */
    background: linear-gradient(180deg, rgba(10,13,11,0.2) 0%, rgba(10,13,11,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.3s;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.6s;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.9s;
}

.cta-btn:hover {
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* General Sections */
section {
    padding: 100px 0;
}

.flex-row {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-stats {
    display: flex;
    gap: 30px;
    flex: 1;
}

.stat-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    flex: 1;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cards Grid - Sectors */
.sectors-section {
    background-color: var(--bg-card);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.sector-card {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(212, 175, 55, 0.4);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

#img-agriculture { background-image: url('../assets/agriculture.png'); }
#img-livestock { background-image: url('../assets/livestock.png'); }
#img-mining { background-image: url('../assets/mining.png'); }

.card-content {
    padding: 30px;
    position: relative;
}

.card-content .icon {
    position: absolute;
    top: -25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Export Section */
.export-section {
    background: linear-gradient(135deg, var(--green-accent) 0%, var(--bg-dark) 100%);
}

.export-box {
    text-align: center;
    max-width: 800px;
}

.export-content h2 {
    font-size: 2.5rem;
}

.export-content p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer / Contact */
.footer {
    background-color: #050605;
    padding-bottom: 20px;
}

.contact-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.05);
}

.submit-btn {
    padding: 15px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--gold-dark);
}

.footer-bottom {
    text-align: center;
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .flex-row {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hidden for mobile mockup */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* STORIA PAGE SPECIFIC STYLES (Light Mode) */
.storia-body {
    background: #FAF9F6; /* Avorio / Light Mode */
    color: #333333;
}

.storia-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    color: #2c3e35;
    line-height: 1.8;
}

.storia-section {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.storia-section h3 {
    color: #1a2a22;
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 10px;
}

.founders-list, .styled-list {
    list-style: none;
    padding-left: 0;
}

.founders-list li, .styled-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.founders-list li::before, .styled-list li::before {
    content: "•";
    color: var(--color-gold);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Founder Inline Layout */
.founder-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}
.founder-item:last-child {
    border-bottom: none;
}
.founder-item img.founder-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-gold);
    cursor: pointer;
    transition: transform 0.3s;
}
.founder-item img.founder-img:hover {
    transform: scale(1.05);
}
.founder-info {
    flex: 1;
}
.founder-info strong {
    font-size: 1.2rem;
    color: #000;
}

/* Lightbox overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    border: 2px solid var(--color-gold);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--color-gold);
}

/* Organigram Styles */
.org-container {
    padding: 40px 20px;
    text-align: center;
    background: #fdfdfc;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    margin-top: 40px;
}
.org-level {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
}
/* Vertical line connector */
.org-level:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: var(--color-gold);
}
.org-box {
    background: #FFFFFF;
    border: 2px solid var(--color-gold);
    border-radius: 8px;
    padding: 15px 20px;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    z-index: 2;
}
.org-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}
.org-box h4 {
    color: #1a2a22;
    font-size: 1.1rem;
    margin-bottom: 5px;
    border-bottom: none;
    padding-bottom: 0;
}
.org-box p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}
.org-box.main {
    background: linear-gradient(135deg, #1a2a22 0%, #0a110d 100%);
    border-color: #1a2a22;
}
.org-box.main h4, .org-box.main p {
    color: #fff;
}

/* Agriculture Page Specific Styles */
body.page-agricoltura {
    background-color: #F2F8F4; /* Very light pastel green */
    color: #2c3e34;
}
body.page-agricoltura .page-banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px; /* Offset for fixed navbar */
}
body.page-agricoltura .banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 20, 15, 0.4);
}
body.page-agricoltura .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
body.page-agricoltura .banner-content h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
body.page-agricoltura .page-content {
    padding: 60px 0;
    max-width: 900px;
}
body.page-agricoltura .back-link-container {
    margin-bottom: 30px;
}
body.page-agricoltura .back-link {
    color: #2c5e3f;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}
body.page-agricoltura .back-link:hover {
    color: var(--color-gold);
}
body.page-agricoltura .content-box {
    background: #ffffff;
    border-left: 4px solid #6cb17b;
    box-shadow: 0 4px 15px rgba(108, 177, 123, 0.1);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    color: #2c3e34 !important;
}
body.page-agricoltura .section-title {
    color: #2c5e3f !important;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}
body.page-agricoltura .text-content {
    color: #4a5c52 !important;
}
body.page-agricoltura .text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5c52 !important;
    margin-bottom: 15px;
}
