/* =============================================
   TechMakers T-Mind - CSS Condiviso
   ============================================= */

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

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background: #fff;
}

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

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

/* =============================================
   Variables
   ============================================= */
:root {
    --green-primary: #2E8B57;
    --green-light: #3CB371;
    --green-dark: #1E5631;
    --green-bg: #f0f7f4;
    --text-dark: #1a1a1a;
    --text-medium: #555;
    --text-light: #666;
    --text-muted: #999;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-border: #e0e0e0;
}

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--green-primary);
    font-weight: 500;
}

/* =============================================
   Layout
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

/* =============================================
   Header
   ============================================= */
.header {
    background: var(--white);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 70px;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-cta {
    background: var(--green-primary);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--green-dark) !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

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

.btn-green:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(46,139,87,0.3);
}

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

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

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* =============================================
   Hero Sections
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 50%, var(--green-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-mascot img {
    max-width: 350px;
}

/* Page Hero (smaller) */
.page-hero {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 50%, var(--green-dark) 100%);
    padding: 140px 2rem 4rem;
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   Cards
   ============================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.card {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card h3 {
    color: var(--green-primary);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
}

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

.card-center .card-icon {
    margin: 0 auto 1.5rem;
}

/* =============================================
   Manifesto / Quote
   ============================================= */
.manifesto {
    background: var(--gray-light);
    padding: 4rem 2rem;
    text-align: center;
}

.manifesto blockquote {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--green-primary);
    font-style: italic;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
}

.manifesto blockquote::before,
.manifesto blockquote::after {
    content: '"';
    color: var(--green-light);
}

/* =============================================
   Highlight Box
   ============================================= */
.highlight-box {
    background: var(--white);
    border-left: 4px solid var(--green-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.highlight-box p {
    margin: 0;
    font-style: italic;
}

/* =============================================
   Steps
   ============================================= */
.steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--green-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-light);
    margin: 0;
}

/* =============================================
   Pillars Section
   ============================================= */
.pillars-section {
    background: var(--green-primary);
    color: var(--white);
    padding: 5rem 2rem;
}

.pillars-section .section-title {
    color: var(--white);
}

.pillar-item {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    align-items: start;
}

.pillar-item:last-child {
    margin-bottom: 0;
}

.pillar-icon {
    width: 100px;
    height: 100px;
}

.pillar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pillar-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pillar-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pillar-content .pillar-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.pillar-content p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.pillar-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pillar-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.pillar-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-light);
}

.pillar-price {
    background: rgba(255,255,255,0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
}

.pillar-price .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.pillar-price .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* =============================================
   Results / Testimonials
   ============================================= */
.result-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.result-card:last-child {
    margin-bottom: 0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-tag {
    background: var(--green-bg);
    color: var(--green-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.result-metrics {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.result-metric {
    text-align: center;
}

.result-metric .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-primary);
    display: block;
}

.result-metric .label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.result-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.result-card .problem,
.result-card .solution,
.result-card .outcome {
    margin-bottom: 1rem;
}

.result-card .label-text {
    font-weight: 600;
    color: var(--green-primary);
}

.result-quote {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-style: italic;
}

.result-quote .author {
    font-style: normal;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* =============================================
   Tech Specs (IT Page)
   ============================================= */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 2rem;
}

.tech-card h3 {
    color: var(--green-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-card h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--green-primary);
    border-radius: 50%;
}

.tech-card ul {
    list-style: none;
}

.tech-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-card ul li:last-child {
    border-bottom: none;
}

.tech-card ul li::before {
    content: '•';
    color: var(--green-primary);
    font-weight: bold;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--green-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}

.footer-eu img {
    height: 50px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }

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

    .hero-text .subtitle {
        margin: 0 auto 2rem;
    }

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

    .hero-mascot {
        display: flex;
        justify-content: center;
    }

    .hero-mascot img {
        max-width: 250px;
    }

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

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

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

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 1rem;
        border-bottom: 1px solid var(--gray-border);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav .nav-cta {
        margin: 1rem 0 0 0;
        text-align: center;
    }

    .header-content {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .pillar-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pillar-icon {
        margin: 0 auto;
    }

    .result-header {
        flex-direction: column;
    }

    .manifesto blockquote {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 3rem 1rem;
    }

    .page-hero {
        padding: 120px 1rem 3rem;
    }

    h1 { font-size: 2rem; }

    .btn {
        width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .result-metrics {
        justify-content: center;
    }
}

/* =============================================
   Infografica 5 Pilastri (Homepage)
   ============================================= */
.pillars-infographic {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 50%, var(--green-dark) 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.pillars-infographic h3 {
    color: white;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pillar-row {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.pillar-row.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.pillar-row .pillar-img {
    flex: 0 0 100px;
}

.pillar-row .pillar-img img {
    width: 100px;
    height: auto;
}

.pillar-row .pillar-text {
    flex: 1;
    color: white;
}

.pillar-row .pillar-text .number {
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pillar-row .pillar-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.pillar-row .pillar-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
}

.pillar-row .pillar-text p.small {
    font-size: 0.85rem;
    opacity: 0.75;
    font-style: italic;
}

/* Connectors between pillars */
.pillars-infographic .connector {
    width: 2px;
    height: 30px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pillars-infographic {
        padding: 2rem 1rem;
    }

    .pillar-row, .pillar-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .pillar-row .pillar-img {
        flex: 0 0 80px;
    }

    .pillar-row .pillar-img img {
        width: 80px;
    }

    .pillar-row .pillar-text .number {
        font-size: 2rem;
    }

    .pillar-row .pillar-text h4 {
        font-size: 1.1rem;
    }
}
