/* ==========================================
   LAGINESTRA 01 - Corporate Design
   Color Palette:
   - Primary Blue: #1e3a5f
   - Secondary Gray: #f5f5f5
   - White: #ffffff
   - Accent Green: #2e7d32
   - Dark: #212529
   ========================================== */

/* ==========================================
   Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a5f;
    --primary-blue-dark: #152b47;
    --secondary-gray: #f5f5f5;
    --accent-green: #2e7d32;
    --accent-green-light: #4caf50;
    --white: #ffffff;
    --dark: #212529;
    --text-gray: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   Container & Layout
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: var(--secondary-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-brand i {
    font-size: 1.5rem;
    color: var(--accent-green);
}

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

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    background-image: url('../images/solar-farm-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(21, 43, 71, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    animation: fadeInUp 1.2s ease;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 40px;
    animation: fadeInUp 1.4s ease;
}

.hero-location i {
    color: var(--accent-green-light);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 40px;
    animation: fadeInUp 1.6s ease;
}

.stat {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green-light);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    animation: fadeInUp 1.8s ease;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--accent-green-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-document {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-document:hover {
    background-color: var(--primary-blue-dark);
}

/* ==========================================
   Project Intro Section
   ========================================== */
.project-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.intro-text h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    gap: 15px;
    align-items: start;
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-top: 5px;
    flex-shrink: 0;
}

.highlight-item strong {
    display: block;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.highlight-item p {
    font-size: 0.95rem;
    margin: 0;
}

.intro-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.intro-image img {
    width: 100%;
    height: auto;
}

.image-caption {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================
   Tech Grid
   ========================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.tech-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tech-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon i {
    font-size: 2rem;
    color: var(--white);
}

.tech-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.tech-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ==========================================
   Tracker Benefits
   ========================================== */
.tracker-benefits {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.tracker-benefits h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.benefit-card {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-gray);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.benefit-card:hover {
    background-color: #e8f5e9;
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.benefit-card h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ==========================================
   Connection Info
   ========================================== */
.connection-info {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 40px;
    border-radius: 10px;
    color: var(--white);
}

.connection-info h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.connection-info i {
    color: var(--accent-green-light);
}

.connection-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-row .label {
    font-weight: 500;
    opacity: 0.9;
}

.detail-row .value {
    font-weight: 600;
    text-align: right;
}

/* ==========================================
   Authorization Status
   ========================================== */
.authorization-status {
    text-align: center;
    margin-bottom: 50px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--accent-green);
    color: var(--white);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.status-badge i {
    font-size: 1.5rem;
}

/* ==========================================
   Timeline
   ========================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-green) 0%, var(--primary-blue) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--border-color);
}

.timeline-item.completed .timeline-marker {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.timeline-item.active .timeline-marker {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 8px rgba(30, 58, 95, 0.2);
}

.timeline-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-item.active .timeline-date {
    color: var(--primary-blue);
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

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

/* ==========================================
   Compliance Grid
   ========================================== */
.authorization-details {
    margin-top: 60px;
}

.authorization-details h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.compliance-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-green);
}

.compliance-item i {
    font-size: 2rem;
    color: var(--accent-green);
    flex-shrink: 0;
}

.compliance-item h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.compliance-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* ==========================================
   Location & Land Info
   ========================================== */
.location-grid {
    display: grid;
    gap: 40px;
}

.location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-content {
    padding: 30px;
}

.location-content h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-details p {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-gray);
}

.location-details strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.land-info {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.land-info h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.land-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.land-table thead {
    background-color: var(--primary-blue);
    color: var(--white);
}

.land-table th,
.land-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.land-table tbody tr:hover {
    background-color: var(--secondary-gray);
}

.land-table .total-row {
    background-color: var(--secondary-gray);
    font-weight: 600;
}

.contract-info {
    background-color: var(--secondary-gray);
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.contract-info h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contract-details p {
    margin-bottom: 10px;
    color: var(--text-gray);
}

.contract-details strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ==========================================
   Investment Section
   ========================================== */
.investment-overview {
    text-align: center;
    margin-bottom: 50px;
}

.investment-card {
    display: inline-block;
    padding: 40px 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.investment-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.investment-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.investment-detail {
    font-size: 1rem;
    opacity: 0.9;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.financial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.financial-card h4 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cost-item.total {
    border-top: 2px solid var(--primary-blue);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
}

.cost-value {
    font-weight: 600;
    color: var(--primary-blue);
}

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

.stat-box {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-gray);
    border-radius: 8px;
}

.stat-box.highlight {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.stat-box.highlight .stat-label,
.stat-box.highlight .stat-sublabel {
    color: var(--white);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-box.highlight .stat-number {
    color: var(--white);
}

.stat-sublabel {
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.8;
}

/* ==========================================
   Scenarios Section
   ========================================== */
.scenarios-section {
    margin-bottom: 60px;
}

.scenarios-section h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 15px;
}

.scenarios-intro {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
}

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

.scenario-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.scenario-card.featured {
    border: 3px solid var(--accent-green);
}

.scenario-header {
    padding: 25px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scenario-secure {
    background: linear-gradient(135deg, #0288d1 0%, #01579b 100%);
}

.scenario-balanced {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
}

.scenario-opportunity {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.scenario-header h4 {
    font-size: 1.4rem;
    margin: 0;
}

.scenario-badge {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.scenario-price {
    padding: 20px 25px;
    background-color: var(--secondary-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.scenario-metrics {
    padding: 25px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.metric:last-child {
    border-bottom: none;
}

.metric.highlight {
    background-color: #e8f5e9;
    margin: 10px -25px -25px;
    padding: 15px 25px;
    border-bottom: none;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.metric.highlight .metric-value {
    color: var(--accent-green);
    font-size: 1.4rem;
}

/* ==========================================
   Incentives Section
   ========================================== */
.incentives-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.incentives-section h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.incentives-section i {
    color: #f57c00;
}

.incentives-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.incentive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.incentive-label {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.incentive-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f57c00;
}

.incentive-detail {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.incentive-highlight {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    color: var(--white);
    border-radius: 8px;
}

.incentive-highlight i {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.incentive-highlight strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 10px;
}

.incentive-net {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.incentive-description {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* ==========================================
   Sensitivity Analysis
   ========================================== */
.sensitivity-section h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
}

.sensitivity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sensitivity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sensitivity-item.positive {
    background-color: #e8f5e9;
    border-left: 4px solid var(--accent-green);
}

.sensitivity-item.negative {
    background-color: #ffebee;
    border-left: 4px solid #d32f2f;
}

.sensitivity-label {
    font-size: 1rem;
    color: var(--dark);
}

.sensitivity-impact {
    font-size: 1.2rem;
    font-weight: 700;
}

.sensitivity-item.positive .sensitivity-impact {
    color: var(--accent-green);
}

.sensitivity-item.negative .sensitivity-impact {
    color: #d32f2f;
}

/* ==========================================
   Gallery
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Altezza fissa per layout consistente */
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 58, 95, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
}

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
    display: block;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-green-light);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: var(--white);
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(46, 125, 50, 0.8);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    padding: 10px 20px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

/* ==========================================
   Documents Section
   ========================================== */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.document-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.document-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.document-info {
    flex: 1;
    margin-bottom: 20px;
}

.document-info h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.document-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.document-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.document-meta i {
    color: var(--accent-green);
}

.documents-notice {
    background-color: #fff3e0;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid #f57c00;
    display: flex;
    gap: 15px;
    align-items: start;
}

.documents-notice i {
    font-size: 1.5rem;
    color: #f57c00;
    flex-shrink: 0;
    margin-top: 2px;
}

.documents-notice p {
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .project-intro {
        grid-template-columns: 1fr;
    }

    .location-card {
        grid-template-columns: 1fr;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .connection-details {
        grid-template-columns: 1fr;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .financial-grid {
        grid-template-columns: 1fr;
    }

    .productivity-stats {
        grid-template-columns: 1fr;
    }

    .sensitivity-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 10px;
    }
}