/* ============================================
   ECOTRASPORTIEUROPA — azienda.css
   Design system + nuove sezioni pagina Azienda
   ============================================ */

:root {
    --grigio-antracite: #242526;
    --grigio-sfondo-hero: #3a3b3c;
    --grigio-testo: #333333;
    --grigio-testo-chiaro: #606266;
    --verde-eco: #237d00;
    --verde-eco-hover: #36af07;
    --verde-eco-contrasto: #36af07;
    --bianco: #ffffff;
    --grigio-chiaro: #f5f5f5;
    --grigio-bordo: #e4e7ed;
}

/* --- RESET & BASE --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--grigio-testo);
    line-height: 1.7;
    background-color: var(--bianco);
    -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--verde-eco-contrasto);
    outline-offset: 3px;
}

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

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--verde-eco);
    color: var(--bianco);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    z-index: 200;
    position: relative;
}
.top-bar-content { display: flex; align-items: center; gap: 15px; }
.top-bar-title { font-weight: 400; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.top-bar-title svg { width: 14px; height: 14px; }
.top-bar a { color: var(--bianco); text-decoration: none; font-weight: 700; transition: opacity 0.3s ease; }
.top-bar a:hover { opacity: 0.8; text-decoration: underline; }
.top-bar-divider { opacity: 0.5; font-size: 10px; }

/* --- HEADER --- */
header {
    background-color: var(--grigio-antracite);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--verde-eco);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
header .site-logo { margin: 0; font-size: 22px; letter-spacing: 1px; color: var(--bianco); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
header .site-logo-mark { width: 77px; height: auto; flex: 0 0 auto; display: block; }
header .site-logo span { color: var(--verde-eco-contrasto); }
nav { display: flex; gap: 35px; }
nav a {
    color: var(--bianco); text-decoration: none; font-weight: 500; font-size: 14px;
    text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 5px;
    transition: color 0.3s ease;
}
nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--verde-eco-contrasto); transition: width 0.3s ease;
}
nav a:hover, nav a.active { color: var(--verde-eco-contrasto); }
nav a:hover::after, nav a.active::after { width: 100%; }

/* --- MENU MOBILE --- */
.menu-toggle { display: none; }
.menu-toggle-label {
    display: none; width: 42px; height: 42px;
    border: 1px solid rgba(255,255,255,0.18); border-radius: 4px;
    align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer;
}
.menu-toggle-label span { display: block; width: 22px; height: 2px; background-color: var(--bianco); transition: all 0.3s ease; }

/* --- PAGE BANNER --- */
.page-banner {
    background-color: var(--grigio-antracite);
    padding: 100px 50px;
    text-align: center;
    color: var(--bianco);
}
.banner-label {
    color: var(--verde-eco-contrasto);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin: 0 0 16px;
}
.page-banner h1 {
    font-size: 46px; margin: 0 0 20px; font-weight: 700; letter-spacing: -1px; line-height: 1.1;
    animation: fadeInUp 0.8s ease-out forwards;
}
.banner-sub {
    font-size: 17px; color: rgba(255,255,255,0.6); margin: 0; font-weight: 400; max-width: 600px;
    margin: 0 auto;
}

/* --- UTILITY: SECTION LABEL --- */
.section-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--verde-eco);
    margin-bottom: 16px;
}

/* ============================================
   SEZIONE STORIA (LE ORIGINI)
   ============================================ */
.story-section {
    padding: 100px 10%;
    background-color: var(--bianco);
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.story-text h3 {
    font-size: 34px;
    font-weight: 700;
    color: var(--grigio-antracite);
    margin: 0 0 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.story-text p {
    font-size: 16px;
    color: var(--grigio-testo-chiaro);
    margin-bottom: 18px;
    line-height: 1.8;
}
.story-text strong { color: var(--grigio-antracite); font-weight: 600; }

.story-image {
    border-radius: 10px;
    min-height: 420px;
    background-color: var(--grigio-chiaro);
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--verde-eco);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.story-image--warehouse {
    background-image: url('../img/interno_magazzino-1920.jpg');
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-section {
    background-color: var(--grigio-antracite);
    padding: 100px 10%;
    color: var(--bianco);
}
.timeline-inner { max-width: 800px; margin: 0 auto; }
.timeline-inner .section-label { color: var(--verde-eco); }

.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--verde-eco), rgba(35,125,0,0.2));
}
.timeline-item {
    position: relative;
    margin-bottom: 52px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--grigio-antracite);
    border: 2px solid var(--verde-eco);
    transition: background 0.3s;
}
.timeline-dot--active {
    background-color: var(--verde-eco);
    box-shadow: 0 0 0 4px rgba(35,125,0,0.2);
}

.timeline-year {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--verde-eco);
    margin-bottom: 8px;
}
.timeline-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--bianco);
    letter-spacing: -0.3px;
}
.timeline-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   STATS / NUMERI
   ============================================ */
.stats-section {
    background-color: var(--grigio-chiaro);
    padding: 80px 10%;
    border-top: 1px solid var(--grigio-bordo);
    border-bottom: 1px solid var(--grigio-bordo);
}
.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--bianco);
    position: relative;
}
.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 1px;
    background-color: var(--grigio-bordo);
}
.stat-number {
    font-size: 52px;
    font-weight: 700;
    color: var(--grigio-antracite);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 8px;
}
.stat-plus { font-size: 36px; color: var(--verde-eco); }
.stat-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--verde-eco);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.stat-sub {
    font-size: 13px;
    color: var(--grigio-testo-chiaro);
    line-height: 1.5;
}

/* ============================================
   SPECIALIZZAZIONE
   ============================================ */
.spec-section {
    padding: 100px 10%;
    background-color: var(--bianco);
}
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.spec-image {
    border-radius: 10px;
    min-height: 440px;
    background-color: var(--grigio-chiaro);
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--verde-eco);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    order: 1;
}
.spec-image--tires {
    background-image: url('../img/ceste_magazzino2.jpeg');
}
.spec-text { order: 2; }
.spec-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--grigio-antracite);
    margin: 0 0 24px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.spec-text p {
    font-size: 16px;
    color: var(--grigio-testo-chiaro);
    margin-bottom: 18px;
    line-height: 1.8;
}
.spec-text strong { color: var(--grigio-antracite); font-weight: 600; }

.spec-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.spec-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--grigio-antracite);
}
.spec-list li svg {
    flex-shrink: 0;
    color: var(--verde-eco);
}

/* ============================================
   TEAM
   ============================================ */
.team-section {
    background-color: var(--grigio-chiaro);
    padding: 100px 10%;
    border-top: 1px solid var(--grigio-bordo);
}
.team-inner { max-width: 1100px; margin: 0 auto; }
.team-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--grigio-antracite);
    text-align: center;
    margin: 8px 0 12px;
    letter-spacing: -0.5px;
}
.team-intro {
    text-align: center;
    color: var(--grigio-testo-chiaro);
    font-size: 16px;
    margin: 0 0 60px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.team-card {
    background: var(--bianco);
    border-radius: 10px;
    padding: 36px 28px;
    border-bottom: 4px solid var(--grigio-bordo);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    border-color: var(--verde-eco);
    box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}
.team-card--highlight {
    border-bottom-color: var(--verde-eco);
}
.team-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background-color: var(--grigio-antracite);
    color: var(--bianco);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.team-card--highlight .team-avatar {
    background-color: var(--verde-eco);
}
.team-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--grigio-antracite);
    margin: 0 0 6px;
}
.team-role {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--verde-eco);
    margin-bottom: 16px;
}
.team-card p {
    font-size: 14px;
    color: var(--grigio-testo-chiaro);
    line-height: 1.7;
    margin: 0 0 20px;
}
.team-contact {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--verde-eco);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.team-contact:hover { border-bottom-color: var(--verde-eco); }

/* --- QUOTE --- */
.quote-section {
    background-color: var(--bianco);
    padding: 100px 10%;
    text-align: center;
    border-top: 1px solid var(--grigio-bordo);
}
.quote-box { max-width: 820px; margin: 0 auto; }
.quote-box p {
    font-size: 26px;
    font-style: italic;
    color: var(--grigio-antracite);
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 24px;
}
.quote-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--verde-eco);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- CTA --- */
.cta-section {
    background-color: var(--grigio-antracite);
    padding: 90px 10%;
    text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-section h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--bianco);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.cta-section p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 40px;
    line-height: 1.7;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}
.btn--primary {
    background-color: var(--verde-eco);
    color: var(--bianco);
    border: 2px solid var(--verde-eco);
}
.btn--primary:hover {
    background-color: var(--verde-eco-hover);
    border-color: var(--verde-eco-hover);
}
.btn--outline {
    background-color: transparent;
    color: var(--bianco);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
    border-color: var(--bianco);
}

/* --- FOOTER --- */
footer {
    background-color: var(--grigio-antracite);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo { width: 300px; height: auto; margin-bottom: 15px; }
.footer-info { color: #9ca3af; font-size: 13px; margin: 0 0 8px 0; }
.footer-info a { color: #9ca3af; text-decoration: none; transition: color 0.3s; }
.footer-info a:hover { color: var(--verde-eco-contrasto); }
.footer-legal { color: #6b7280; font-size: 11px; margin: 0; letter-spacing: 0.3px; }
.footer-legal a { color: #6b7280; text-decoration: none; }
.footer-legal a:hover { color: var(--verde-eco-contrasto); }
.footer-divider { margin: 0 6px; }

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

@media (max-width: 1024px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-card:nth-child(2)::after { display: none; }
    .stat-card:nth-child(4)::after { display: none; }
}

@media (max-width: 900px) {
    .story-grid, .spec-grid { grid-template-columns: 1fr; gap: 40px; }
    .spec-image { order: 2; }
    .spec-text { order: 1; }
    .story-image, .spec-image { min-height: 280px; }
    .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .team-intro { margin-bottom: 40px; }
    .page-banner h1 { font-size: 34px; }
    .story-text h3, .spec-text h3 { font-size: 28px; }
    .quote-box p { font-size: 20px; }
    .cta-section h3 { font-size: 28px; }
}

@media (max-width: 768px) {
    header {
        flex-direction: row; justify-content: space-between;
        align-items: center; padding: 16px 20px; position: sticky; top: 0;
    }
    header .site-logo { font-size: 18px; letter-spacing: 0.5px; }
    .menu-toggle-label { display: flex; }
    nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background-color: var(--grigio-antracite);
        border-top: 1px solid rgba(255,255,255,0.08);
        border-bottom: 3px solid var(--verde-eco);
        padding: 12px 20px 18px; margin-top: 0;
        box-shadow: 0 12px 24px rgba(0,0,0,0.18);
    }
    .menu-toggle:checked ~ nav { display: flex; flex-direction: column; gap: 0; }
    nav a { display: block; padding: 13px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    nav a:last-child { border-bottom: none; }
    .menu-toggle:checked + .menu-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle:checked + .menu-toggle-label span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked + .menu-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .page-banner { padding: 60px 20px; }
    .page-banner h1 { font-size: 30px; }
    .banner-sub { font-size: 15px; }

    .story-section, .spec-section, .timeline-section,
    .team-section, .quote-section, .cta-section { padding: 70px 6%; }

    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-card::after { display: none !important; }
    .stat-number { font-size: 40px; }

    .top-bar { padding: 10px 14px; }
    .top-bar-content {
        width: 100%; display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start; gap: 12px; text-align: center;
    }
    .top-bar-title, .top-bar-divider { display: none !important; }
    .top-bar-content > span:not(.top-bar-title):not(.top-bar-divider) {
        display: block; line-height: 1.35; font-size: 13px; font-weight: 500;
    }
    .top-bar-content > span:not(.top-bar-title):not(.top-bar-divider) a {
        display: block; margin-top: 3px; font-size: 13px; font-weight: 700; white-space: nowrap;
    }

    .footer-logo { width: 220px; max-width: 80%; }
    .footer-info { font-size: 12px; line-height: 1.6; }
    .footer-legal { font-size: 10px; line-height: 1.5; }

    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; text-align: center; box-sizing: border-box; }
}

@media (max-width: 480px) {
    .stats-inner { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 26px; }
    header .site-logo { font-size: 16px; gap: 8px; }
    header .site-logo-mark { width: 60px; }
    .menu-toggle-label { width: 40px; height: 40px; }
    .team-grid { max-width: 100%; }
}
