/* Variabili e Reset CSS */
:root {
    --primary: #1A5D1A;    /* Verde italiano */
    --secondary: #D21312;  /* Rosso italiano */
    --dark: #181818;      /* Colore testo scuro */
    --light: #F8F9FA;     /* Colore sfondo chiaro */
    --gray: #888888;      /* Colore testo secondario */
    --gradient-primary: linear-gradient(135deg, #1A5D1A, #0A3A0A);
    --gradient-secondary: linear-gradient(135deg, #D21312, #A21212);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

.highlight {
    color: var(--secondary);
}

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.subtitle {
    color: var(--gray);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* Header e Navigazione */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-svg {
    margin-right: 5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.menu-toggle span {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    position: relative;
}

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

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-secondary);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(210, 19, 18, 0.3);
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(210, 19, 18, 0.4);
}

.nav-cta::after {
    display: none !important;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.primary-btn {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 5px 15px rgba(210, 19, 18, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(210, 19, 18, 0.4);
}

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

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

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
}

.star {
    width: 20px;
    height: 20px;
}

.hero-visual {
    position: relative;
}

.device-frame {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: rgba(26, 93, 26, 0.03);
}

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

.feature-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent 50%, rgba(210, 19, 18, 0.1) 50%);
    border-radius: 0 0 0 100px;
    transition: var(--transition);
    transform: translate(50px, -50px);
}

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

.feature-card:hover::before {
    transform: translate(0, 0);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

/* How it Works Section */
.how-it-works {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.steps {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: var(--primary);
    opacity: 0.3;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(26, 93, 26, 0.3);
}

.step-content {
    flex: 1;
    padding-top: 10px;
}

.cta-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    color: white;
    margin-top: 80px;
    box-shadow: 0 15px 30px rgba(26, 93, 26, 0.2);
}

.cta-banner h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: rgba(210, 19, 18, 0.03);
}

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

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

.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.arrow {
    width: 20px;
    height: 20px;
    position: relative;
    transition: var(--transition);
}

.arrow::before,
.arrow::after {
    content: '';
    position: absolute;
    background: var(--secondary);
    transition: var(--transition);
}

.arrow::before {
    width: 12px;
    height: 2px;
    top: 9px;
    left: 0;
}

.arrow::after {
    width: 2px;
    height: 12px;
    top: 4px;
    left: 5px;
}

.faq-item.active .arrow::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* Keywords Section */
.keywords {
    padding: 60px 0;
    background-color: white;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tag {
    background: rgba(26, 93, 26, 0.05);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--gray);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(210, 19, 18, 0.1);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 400px;
}

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

.footer-brand .logo {
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-column ul li {
    margin-bottom: 10px;
}

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

.footer-column ul li a:hover {
    color: var(--secondary);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .rating-display {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        z-index: 1000;
        padding: 100px 40px 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .main-nav a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .nav-cta {
        margin-top: 20px;
    }
    
    .step {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .steps::before {
        display: none;
    }
    
    .step-circle {
        margin: 0 auto;
    }
    
    .cta-banner {
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
