/* ===== PROGETTO FOTOVOLTAICO SESSANO - STYLESHEET ===== */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a5f;
    --primary-dark: #0f1f3a;
    --accent-green: #2e7d32;
    --accent-light-green: #4caf50;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-blue);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-green);
    margin: 20px auto 0;
    border-radius: 2px;
}

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

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://sspark.genspark.ai/cfimages?u1=kt4%2BaPz8t0qOI7erkyRf0VEnXPvLE%2BDjc11g1xSHwO04kcK7XH%2B5O4ZqxDZ7gvvRHmfblyiKrlOZfJ6Tt5O53APJJrilmxsAQZsHOJbqXHOBwQBkTy8tbMrPHgBvNR%2F0bNg%3D&u2=hTxDS7Gyy%2BEReQVJ&width=2560') center/cover;
    opacity: 0.15;
    z-index: 0;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
}

.badge-success {
    background: var(--accent-green);
    border-color: var(--accent-light-green);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-light-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

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

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
    margin: 10px 0;
}

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

/* ===== OVERVIEW SECTION ===== */
.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-text h3 {
    margin-bottom: 20px;
}

.overview-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.overview-highlights {
    list-style: none;
    margin-top: 25px;
}

.overview-highlights li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: var(--text-dark);
}

.overview-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.3rem;
}

.overview-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
}

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

/* ===== STATS BANNER ===== */
.stats-banner {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-light-green);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* ===== LOCATION SECTION ===== */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.location-map {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
}

.location-map img {
    max-width: 100%;
    border-radius: 8px;
}

.location-info {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--primary-blue);
}

.info-value {
    color: var(--text-light);
    text-align: right;
}

/* ===== ECONOMICS SECTION ===== */
.economics-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.economics-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.economics-card h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-green);
}

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

.cost-item.total {
    border-top: 2px solid var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-top: 10px;
    padding: 15px 0;
}

.highlight-box {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-light-green));
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.highlight-box h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.highlight-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}

/* ===== CER SECTION ===== */
.cer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.benefit-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* ===== GALLERY ===== */
.gallery {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow);
}

.gallery-container {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 500px;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.gallery-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow);
}

.gallery-btn:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ===== DOCUMENTATION SECTION ===== */
.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.doc-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--accent-green);
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.doc-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.doc-card h4 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.doc-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 60px;
}

.doc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.doc-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-green);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.doc-download:hover {
    background: var(--accent-light-green);
    transform: translateX(5px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin: 5px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
    
    .overview-content,
    .location-grid,
    .economics-layout {
        grid-template-columns: 1fr;
    }

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

    .gallery-slide {
        height: 300px;
    }
}

@media (max-width: 640px) {
    section { padding: 50px 0; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .stat-item h3 { font-size: 2rem; }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-green { color: var(--accent-green); }
.text-blue { color: var(--primary-blue); }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
