/* ============================================
   TEXEKO - Sito Web Professionale
   Schema Colori e Stile Visivo

   PALETTE COLORI:
   - Verde Primario:    #2D6A4F (foresta, sostenibilità)
   - Verde Chiaro:      #52B788 (accenti, hover)
   - Verde Pallido:     #D8F3DC (sfondi leggeri)
   - Blu Profondo:      #1B4965 (professionalità)
   - Grigio Scuro:      #343A40 (testo principale)
   - Grigio Medio:      #6C757D (testo secondario)
   - Sfondo:            #F8F9FA (bianco sporco)
   - Bianco:            #FFFFFF

   FONT:
   - Titoli: 'Montserrat', sans-serif
   - Corpo:  'Open Sans', sans-serif
   ============================================ */

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

:root {
    --primary-green: #2D6A4F;
    --light-green: #52B788;
    --pale-green: #D8F3DC;
    --deep-blue: #1B4965;
    --dark-gray: #343A40;
    --medium-gray: #6C757D;
    --light-gray: #E9ECEF;
    --background: #F8F9FA;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-gray);
}

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

p { margin-bottom: 1rem; }

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

a:hover {
    color: var(--light-green);
}

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

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

/* === UTILITIES === */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-primary { background-color: var(--primary-green); }
.bg-light { background-color: var(--pale-green); }
.bg-white { background-color: var(--white); }

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--light-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

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

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

/* === HEADER & NAVIGATION === */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin: 0;
}

.logo span {
    font-size: 0.75rem;
    color: var(--medium-gray);
    display: block;
    margin-top: -5px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

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

nav ul li a {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-green);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: var(--transition);
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--deep-blue) 100%);
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--pale-green);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .placeholder-img {
    width: 100%;
    max-width: 450px;
    height: 350px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    backdrop-filter: blur(10px);
}

/* === FEATURES/CARDS === */
.features {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(45, 106, 79, 0.15);
    border-color: var(--light-green);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pale-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-green);
}

.feature-card p {
    color: var(--medium-gray);
    margin-bottom: 0;
}

/* === STATS SECTION === */
.stats {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--deep-blue) 100%);
    color: var(--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(--pale-green);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

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

.about-image .placeholder-img {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--pale-green), var(--light-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.about-text h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 20px;
}

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

.values-list li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 25px;
    height: 25px;
    background-color: var(--light-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(45, 106, 79, 0.15);
}

.service-card .image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.service-card .content {
    padding: 30px;
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

/* === PROCESS SECTION === */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 55px;
    top: 90px;
    width: 4px;
    height: calc(100% + 30px);
    background: var(--light-green);
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step-content h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--medium-gray);
    margin: 0;
}

/* === CTA SECTION === */
.cta {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--deep-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === NEWS/BLOG SECTION === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(45, 106, 79, 0.15);
}

.news-card .image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--pale-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.news-card .content {
    padding: 25px;
}

.news-card .date {
    color: var(--light-green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

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

.news-card h3 a {
    color: var(--dark-gray);
}

.news-card h3 a:hover {
    color: var(--primary-green);
}

.news-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* === CONTACT SECTION === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--pale-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--primary-green);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--medium-gray);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-form h3 {
    color: var(--primary-green);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--light-green);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* === MAP PLACEHOLDER === */
.map-placeholder {
    width: 100%;
    height: 300px;
    background: var(--light-gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    font-size: 2rem;
    color: var(--medium-gray);
}

/* === CERTIFICATIONS === */
.certifications {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cert-badge {
    background: var(--pale-green);
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-green);
}

.cert-badge .icon {
    font-size: 1.5rem;
}

/* === CLIENTS SECTION === */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.client-type {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.client-type:hover {
    border-color: var(--light-green);
}

.client-type .icon {
    width: 70px;
    height: 70px;
    background: var(--pale-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.client-type h4 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

.client-type p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* === WASTE TYPES === */
.waste-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.waste-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px var(--shadow);
}

.waste-item .icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: var(--pale-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--deep-blue) 100%);
    color: var(--white);
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 20px;
}

.breadcrumb a {
    color: var(--pale-green);
}

.breadcrumb span {
    opacity: 0.7;
}

/* === FOOTER === */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3 {
    color: var(--light-green);
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--light-green);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-links ul li a:hover {
    color: var(--light-green);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: var(--light-green);
}

/* === RESPONSIVE DESIGN === */

/* Tablet */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .header-container {
        padding: 10px 15px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 20px var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid var(--light-gray);
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image .placeholder-img {
        height: 250px;
    }

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

    .stat-item h3 {
        font-size: 2rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .process-step::before {
        display: none;
    }

    .step-number {
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .certifications {
        justify-content: center;
    }
}

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

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 25px;
    }

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* === PRINT STYLES === */
@media print {
    header, footer, .cta, .hero-buttons {
        display: none;
    }

    .hero {
        background: none;
        color: var(--dark-gray);
        padding: 20px 0;
    }

    .hero-text h1 {
        color: var(--dark-gray);
    }
}
