:root {
    --primary: #009246; /* Verde italiano */
    --secondary: #CE2B37; /* Rosso italiano */
    --neutral: #FFFFFF; /* Bianco italiano */
    --dark: #212121;
    --light: #f5f5f5;
    --light-text: #ffffff;
    --dark-text: #212121;
    --accent: #FFC107;
    --gradient: linear-gradient(45deg, var(--primary), var(--neutral), var(--secondary));
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 10px;
    --font-main: 'Montserrat', 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: var(--light);
    line-height: 1.6;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

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

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

.logo h1 {
    font-size: 1.4rem;
    color: var(--dark-text);
}

.logo .it {
    color: var(--primary);
    font-weight: 800;
}

.logo .love {
    color: var(--secondary);
}

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

nav a {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    position: relative;
}

nav a:hover {
    color: var(--secondary);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.menu-icon .bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--light-text);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 80%;
    max-width: 280px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    transform: perspective(1000px) rotateY(-15deg);
}

.telegram-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.telegram-badge span {
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-button {
    background-color: var(--accent);
    color: var(--dark-text);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: #FFD54F;
}

.no-card {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 8px;
    margin-left: 5px;
}

/* How It Works Section */
.how-it-works {
    padding: 90px 0;
    background-color: #fff;
    position: relative;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #555;
}

.how-it-works h2,
.benefits h2,
.testimonial-section h2,
.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.how-it-works h2::after,
.benefits h2::after,
.testimonial-section h2::after,
.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 60px;
    background: var(--gradient);
    border-radius: 2px;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    position: relative;
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
}

.step-icon span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

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

.step p {
    color: #666;
}

.action-center {
    text-align: center;
    margin-top: 40px;
}

/* Benefits Section */
.benefits {
    padding: 90px 0;
    background-color: var(--light);
}

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

.benefit-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-8px);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.benefit-icon {
    margin: 0 auto 25px;
    width: 70px;
    height: 70px;
}

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

.benefit-card p {
    color: #666;
}

/* Testimonials Section */
.testimonial-section {
    padding: 90px 0;
    background: linear-gradient(135deg, rgba(0, 146, 70, 0.05), rgba(206, 43, 55, 0.05));
}

.testimonials {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 0;
    margin-top: 50px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.testimonials::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonial {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: scale(1.03);
}

.quote-icon {
    margin-bottom: 15px;
}

.quote-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
}

.quote-author {
    text-align: right;
    font-weight: 600;
}

.quote-author p {
    color: #666;
}

/* FAQ Section */
.faq-section {
    padding: 90px 0;
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    background-color: #f9f9f9;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    font-size: 1.1rem;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: all 0.3s ease;
}

.faq-question.active {
    background: var(--gradient);
}

.faq-question.active h3 {
    color: var(--light-text);
}

.faq-question.active .toggle-icon {
    color: var(--light-text);
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}

.faq-answer p {
    padding: 20px 0;
    color: #555;
}

/* Final CTA Section */
.final-cta {
    padding: 80px 0;
    background: var(--gradient);
    color: var(--light-text);
    text-align: center;
}

.final-cta h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo p {
    margin-top: 15px;
    font-weight: 600;
}

.footer-links h3,
.footer-terms h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-terms h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
}

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

.footer-links a {
    color: #aaa;
    display: inline-block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.footer-terms p {
    color: #aaa;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #aaa;
}

/* Animations and effects */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column-reverse;
    }
    
    .hero-text {
        text-align: center;
        margin-top: 30px;
        max-width: 100%;
    }
    
    .hero h2 {
        font-size: 2.3rem;
    }
    
    .telegram-badge {
        margin: 0 auto 25px;
    }
    
    .cta-group {
        align-items: center;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .phone-mockup {
        transform: none;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    nav a {
        display: block;
        padding: 10px 0;
    }
    
    #menu-toggle:checked ~ nav {
        max-height: 300px;
    }
    
    #menu-toggle:checked ~ .menu-icon .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    #menu-toggle:checked ~ .menu-icon .bar:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .menu-icon .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .how-it-works h2,
    .benefits h2,
    .testimonial-section h2,
    .faq-section h2,
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .testimonial {
        flex: 0 0 85%;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .how-it-works h2,
    .benefits h2,
    .testimonial-section h2,
    .faq-section h2 {
        font-size: 1.7rem;
    }
}
