/* 
* ContaItalia - Accounting Services Landing Page
* Color Scheme:
* - Background: lavender (#E6E6FA)
* - Accents: sunny yellow (#FFD700), coral (#FF6F61)
* - Fonts: dark blue (#2B2D42), soft gray (#8D99AE)
* - Hover effects: turquoise gradient (#00CED1 → #20B2AA)
*/

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #E6E6FA;
    color: #2B2D42;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #2B2D42;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(to right, #FFD700, #FF6F61);
    color: #2B2D42;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #00CED1, #20B2AA);
    box-shadow: 0 6px 16px rgba(0, 206, 209, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.btn-cookie {
    padding: 0.5rem 1.2rem;
    background: #2B2D42;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background: #00CED1;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(43, 45, 66, 0.95);
    color: #fff;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
}

/* === HEADER & NAVIGATION === */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: block;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-weight: 600;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #00CED1, #20B2AA);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(to right, #FFD700, #FF6F61);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #2B2D42;
}

.nav-cta:hover {
    background: linear-gradient(to right, #00CED1, #20B2AA);
    color: #fff;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, rgba(230, 230, 250, 0.9), rgba(230, 230, 250, 0.7)), url('img/30YiYH.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 8rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #2B2D42;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #8D99AE;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === ABOUT SECTION === */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1 1 500px;
}

.about-image {
    flex: 1 1 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
}

.about ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* === SERVICES SECTION === */
.services {
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #E6E6FA;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.service-icon.contabilita {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232B2D42'%3E%3Cpath d='M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H3V6h18v12zM8 8h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");
}

.service-icon.fiscale {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232B2D42'%3E%3Cpath d='M18 22l-6-6 6-6 6 6-6 6zm6-15h-2V5h-10v2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h8v-2H4V9h8V7h2v2h8V9c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
}

.service-icon.analisi {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232B2D42'%3E%3Cpath d='M9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4zm2 2H5V5h14v14zm2-16H3c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z'/%3E%3C/svg%3E");
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #2B2D42;
}

.service-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* === BENEFITS SECTION === */
.benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #00CED1, #20B2AA);
    color: #fff;
}

.benefit-item:hover h3 {
    color: #fff;
}

.benefit-item h3 {
    color: #2B2D42;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* === CTA SECTION === */
.cta {
    background: linear-gradient(135deg, #FFD700, #FF6F61);
    text-align: center;
    padding: 6rem 0;
}

.cta h2 {
    color: #2B2D42;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    color: #2B2D42;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === CONTACT SECTION === */
.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1 1 400px;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-image {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

.contact-form {
    flex: 1 1 400px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2B2D42;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00CED1;
    box-shadow: 0 0 8px rgba(0, 206, 209, 0.3);
    outline: none;
    background-color: #fff;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
}

.form-group.checkbox label {
    margin-bottom: 0;
    flex: 1;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #E6E6FA;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid #FFD700;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    color: #2B2D42;
    margin-bottom: 0.2rem;
}

.company {
    color: #8D99AE;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* === FAQ SECTION === */
.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-item label {
    display: block;
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.faq-item label:hover {
    background-color: #f5f5f5;
}

.faq-item label:after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item input[type="checkbox"]:checked ~ label:after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.faq-answer p {
    padding: 1.2rem;
    margin: 0;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 400px;
}

/* === THANK YOU PAGE === */
.thank-you {
    text-align: center;
    padding: 6rem 0;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}

.check-icon {
    margin: 2rem auto;
}

/* === LEGAL PAGES === */
.legal-page {
    padding: 4rem 0;
}

.legal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* === FOOTER === */
footer {
    background-color: #2B2D42;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #FFD700, #FF6F61);
}

.footer-section p {
    color: #ddd;
}

.contact span {
    color: #FFD700;
}

.footer-section.links ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.footer-section.legal ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.footer-section a {
    color: #ddd;
}

.footer-section a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .nav-toggle-label {
        display: block;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: #2B2D42;
        height: 2px;
        width: 2rem;
        border-radius: 2px;
        position: relative;
    }
    
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }
    
    .nav-toggle-label span::before {
        bottom: 7px;
    }
    
    .nav-toggle-label span::after {
        top: 7px;
    }
    
    nav {
        position: absolute;
        top: 100%;
        background: #fff;
        width: 100%;
        left: 0;
        padding: 0;
        margin: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 0.3s ease;
    }
    
    nav ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
        gap: 0;
    }
    
    nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    nav a {
        display: block;
        padding: 1rem 0;
    }
    
    nav a::after {
        display: none;
    }
    
    .nav-toggle:checked ~ nav {
        transform: scale(1,1);
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .cta {
        padding: 3rem 0;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .service-card, 
    .benefit-item, 
    .testimonial-card {
        padding: 1.5rem;
    }
} 