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

:root {
    --primary-color: #0080B3; /* Blu Hera */
    --secondary-color: #00AA87; /* Verde Hera */
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --card-bg: rgba(255, 255, 255, 0.95);
}

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

.container {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    text-align: center;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
}

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

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

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-size: 1rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 102, 179, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(118, 183, 41, 0.2);
}

.btn-full {
    width: 100%;
}

/* Header */
header {
    padding: 15px 0;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.logo img {
    height: 50px;
}

.hero {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease forwards;
}

.hero h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    animation: fadeInUp 0.8s 0.1s ease forwards;
}

.price-tag {
    display: inline-block;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px 30px;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--secondary-color);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.5s ease;
    animation: fadeInUp 0.8s 0.2s ease forwards;
}

.price-tag:hover {
    transform: perspective(1000px) rotateX(5deg);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 1rem;
    color: var(--gray-color);
}

.price-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s 0.3s ease forwards;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 0.8s 0.4s ease forwards;
}

/* Sezione Vantaggi */
.benefits {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, #e9ecef, transparent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    z-index: -1;
}

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

.benefit-card .icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.5s;
}

.benefit-card:hover .icon {
    background: var(--primary-color);
}

.benefit-card:hover .icon i {
    color: var(--white);
}

.benefit-card .icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.5s;
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Sezione Dettagli */
.details {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f6ff 0%, #e9ecef 100%);
    position: relative;
}

.details-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.details-content {
    width: 100%;
}

.detail-item {
    margin-bottom: 25px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.detail-item:hover::before {
    height: 100%;
}

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

.detail-item h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.detail-item h3 i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.detail-item p {
    color: var(--gray-color);
    margin-bottom: 0;
    position: relative;
}

/* Sezione Testimonianze */
.testimonials {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
}

.testimonial-slider {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px;
    /* box-shadow: var(--box-shadow); */
    position: relative;
    text-align: center;
    border-top: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial .quote {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(0, 102, 179, 0.1);
    font-size: 3rem;
}

.testimonial p {
    margin: 30px 0;
    font-style: italic;
    color: var(--gray-color);
}

.author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-info h4 {
    margin-bottom: 0;
    color: var(--primary-color);
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: normal;
}

/* Stili per il carousel delle testimonianze */
.testimonial-carousel {
    position: relative;
    margin: 40px 0;
    overflow: hidden;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-track .testimonial {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    transition: opacity 0.3s ease;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin: 0 15px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Stile responsive per il carousel */
@media (min-width: 768px) {
    .carousel-track {
        display: flex;
    }
    
    .carousel-track .testimonial {
        padding: 0 25px;
    }
}

/* Animazione per il carousel */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial.active {
    animation: fadeIn 0.5s ease forwards;
}

/* Sezione Contatti */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f6ff 0%, #e9ecef 100%);
    position: relative;
}

.contact-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--dark-color);
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Sezione FAQ */
.faq {
    padding: 80px 0;
    background-color: var(--white);
}

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

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

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

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-align: left;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3 {
    color: var(--secondary-color);
}

.toggle-icon {
    width: 30px;
    height: 30px;
    background: rgba(0, 102, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-answer {
    background: var(--light-color);
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    text-align: left;
    padding: 0;
}

.faq-item.active {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    background: var(--secondary-color);
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px 0 20px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

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

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

/* Stile avviso offerta scaduta */
.offer-expired-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
}

.offer-expired-notice a {
    color: #856404;
    text-decoration: underline;
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animazioni aggiuntive e ottimizzazioni mobile */

/* Pulsante back-to-top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: var(--box-shadow);
    border: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Animazioni elementi allo scroll */
.will-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Evidenziazione sezione dopo click link */
.highlight-section {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% {
        background-color: transparent;
    }
    20% {
        background-color: rgba(0, 102, 179, 0.05);
    }
    100% {
        background-color: transparent;
    }
}

/* Header sticky ottimizzato */
header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Effetti touch per mobile */
.touch-active {
    transform: scale(0.98);
    transition: transform 0.2s ease !important;
}

/* Effetti sul form e sui campi input */
.form-group.input-focused label {
    color: var(--primary-color);
    transform: translateY(-2px);
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.form-group.input-filled label {
    color: var(--secondary-color);
}

/* Loading spinner sul bottone di invio form */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
    vertical-align: text-bottom;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Messaggio di successo form */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: inline-block;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Ottimizzazioni aggiuntive per mobile */
@media screen and (max-width: 767px) {
    /* Miglioramento spaziatura per touch */
    .benefit-card, .detail-item, .faq-item, .testimonial {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    /* Bottoni più grandi su mobile per area di tocco */
    .btn {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Header compatto su mobile */
    header.scrolled .logo img {
        height: 35px;
    }
    
    /* Back to top più piccolo e vicino al bordo su mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Più spazio cliccabile nelle FAQ */
    .faq-question {
        padding: 18px 20px;
    }
}

/* Icone dei vantaggi ottimizzate */
@media screen and (max-width: 575px) {
    .benefit-card .icon {
        width: 70px;
        height: 70px;
    }
    
    .benefit-card .icon i {
        font-size: 1.7rem;
    }
    
    /* Riduzione padding per elementi piccoli */
    .price-tag {
        padding: 15px;
    }
    
    /* Input più facili da toccare */
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 16px; /* Previene zoom automatico su iOS */
    }
    
    /* Centraggio perfetto anche per viewport molto piccoli */
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
}

/* Media Queries per Responsive Design */
@media screen and (max-width: 991px) {
    .container {
        max-width: 95%;
    }
    
    .price-tag {
        padding: 15px 20px;
    }
    
    .contact-form {
        padding: 30px;
    }
}

@media screen and (max-width: 767px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .detail-item h3 {
        font-size: 1.1rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group input, 
    .form-group select {
        padding: 12px 15px;
    }
    
    .price {
        font-size: 2rem;
    }
}

@media screen and (max-width: 575px) {
    header .container {
        gap: 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .header-cta .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .benefits, .details, .testimonials, .contact, .faq {
        padding: 60px 0;
    }
    
    .price-tag {
        padding: 15px;
        width: 90%;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}