/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0a4f9d; /* Blu originale 3W Solution */
    --primary-dark: #073a73;
    --primary-light: #e6f0fa;
    --accent: #1ebd68;  /* Verde 3W Solution */
    --accent-dark: #179653;
    --secondary: #0a4f9d; /* Titoli col colore del logo */
    --brand-blue: #0a4f9d;
    --light-bg: #f8fafc;
    --text-main: #0a4f9d; /* Testo del sito col colore del logo */
    --text-muted: #47709a; /* Un celeste per i testi secondari */
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

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

.text-white {
    color: var(--white);
}

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

/* Section Titles */
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

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

.section-title p, .section-title h3 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 79, 157, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(47, 200, 101, 0.4);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 200, 101, 0.5);
}

.btn-nav {
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

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

.w-100 {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

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

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

.lang-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    padding: 10rem 0 8rem;
    min-height: 75vh; /* Assicura un'ampiezza per far respirare l'immagine completa */
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('hp11_vero_nohand.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(240,253,244,0.6) 40%, rgba(255,255,255,0) 100%);
    z-index: 2;
}
.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}
.hero-text {
    max-width: 600px;
    text-align: left;
}
.hero-text h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-text .payoff {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 90%;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Services Banner */
.services-banner {
    padding: 3rem 0;
    background: var(--white);
    position: relative;
    z-index: 20;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.service-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

/* Boxes & Cards */
.box, .card, .biz-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.box-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.box h3, .card h4, .biz-card h4 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.market-list {
    margin-top: 1rem;
}

.market-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-main);
}

.market-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.how-it-works {
    margin-top: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.how-it-works h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Timeline */
.arch-timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.arch-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.tl-icon {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 4rem;
    height: 4rem;
    background: var(--white);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(30, 189, 104, 0.2);
}

.tl-content h4 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    padding-top: 0.8rem;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.biz-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(5px);
}

.biz-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-8px);
    border-color: var(--accent);
}

.biz-card h4 {
    color: var(--white);
    font-size: 1.4rem;
}

.biz-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-bg);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 79, 157, 0.1);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background-color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 60px;
}

.footer-brand p {
    font-weight: 600;
    color: var(--secondary);
}

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

/* Animations Reveal */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 990px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .business-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}
