/* ===== CSS VARIABLES ===== */
:root {
    --header-height: 3.5rem;
    
    /* Colors - Matching business card */
    --primary-color: #2563eb; /* Medium blue for main name */
    --primary-color-alt: #1d4ed8;
    --secondary-color: #f59e0b;
    --title-color: #000000; /* Black for titles */
    --text-color: #000000; /* Black for main text */
    --text-color-light: #666666; /* Darker gray for secondary text */
    --body-color: #f8f8f8; /* Light off-white background */
    --container-color: #ffffff; /* White for cards */
    --border-color: #000000; /* Black separator line */
    
    /* Typography - Clean sans-serif matching business card */
    --body-font: 'Arial', 'Helvetica', sans-serif;
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
    
    /* Font Weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    
    /* Margins */
    --mb-1: 0.5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;
    
    /* Z Index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (min-width: 968px) {
    :root {
        --biggest-font-size: 4rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: 0.875rem;
        --smaller-font-size: 0.813rem;
    }
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.8s ease-out forwards;
}

.animate-slide-in-top {
    animation: slideInFromTop 0.8s ease-out forwards;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.grid {
    display: grid;
}

.section {
    padding: 4rem 0 2rem;
}

.section__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    text-align: center;
    margin-bottom: var(--mb-3);
    text-transform: uppercase;
    font-weight: var(--font-bold);
}

.section__description {
    text-align: center;
    margin-bottom: var(--mb-6);
    color: var(--text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    font-weight: var(--font-medium);
}

.section__header {
    margin-bottom: var(--mb-6);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: var(--normal-font-size);
    min-height: 48px;
    justify-content: center;
}

.btn:hover {
    background-color: var(--primary-color-alt);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    animation: pulse 0.6s ease-in-out;
}

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

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

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--full {
    width: 100%;
}

/* ===== HEADER & NAV ===== */
.header {
    width: 100%;
    background-color: var(--body-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: 0.4s;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    font-size: var(--h3-font-size);
}

.nav__logo i {
    font-size: 1.5rem;
}

.nav__list {
    display: none;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.btn--nav {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: var(--small-font-size);
    min-height: auto;
}

.btn--nav:hover,
.btn--nav.active-link {
    background-color: var(--primary-color-alt);
    color: #fff !important;
    transform: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Hamburger button */
.nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--title-color);
    font-size: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

@media screen and (min-width: 768px) {
    .nav__list {
        display: flex;
    }
    .nav__toggle {
        display: none;
    }
}

/* Mobile nav dropdown */
@media screen and (max-width: 767px) {
    .nav {
        justify-content: flex-end;
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1.25rem 1.5rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        transform: translateY(calc(-100% - var(--header-height) - 10px));
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        z-index: 99;
        gap: 0.25rem;
        border-top: 2px solid var(--primary-color);
        visibility: hidden;
    }

    .nav__list.show-menu {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.3s ease, visibility 0s linear 0s;
    }

    .nav__link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: var(--normal-font-size);
    }

    .nav__list li:last-child .nav__link {
        border-bottom: none;
        margin-top: 0.5rem;
        text-align: center;
        padding: 0.875rem;
    }

    .btn--nav {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
}

/* ===== MOBILE STICKY CALL BUTTON ===== */
.mobile-call-fab {
    display: none;
}

@media screen and (max-width: 767px) {
    .mobile-call-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.625rem;
        position: fixed;
        bottom: 1.25rem;
        left: 50%;
        transform: translateX(-50%);
        background-color: #16a34a;
        color: white !important;
        padding: 0.875rem 2.5rem;
        border-radius: 50px;
        font-weight: var(--font-semi-bold);
        font-size: 1rem;
        box-shadow: 0 4px 20px rgba(22, 163, 74, 0.45);
        z-index: 200;
        text-decoration: none;
        white-space: nowrap;
        animation: fabPulse 2.5s ease-in-out infinite;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .mobile-call-fab i {
        font-size: 1rem;
    }

    @keyframes fabPulse {
        0%, 100% { box-shadow: 0 4px 20px rgba(22, 163, 74, 0.45); }
        50% { box-shadow: 0 6px 28px rgba(22, 163, 74, 0.65); }
    }

    /* Evita che il FAB copra il contenuto in fondo */
    .footer {
        padding-bottom: 5rem;
    }

    .mobile-call-fab.fab--hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(100px);
    }
}


/* ===== HERO ===== */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
    align-items: center;
}

.hero__content {
    text-align: left;
    order: 2;
}

.hero__title {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-2);
    line-height: 1.2;
    color: var(--primary-color);
    text-align: left;
}


.hero__separator {
    width: 100px;
    height: 2px;
    background-color: var(--border-color);
    margin: 1rem 0;
}

.hero__subtitle {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight: var(--font-semi-bold);
}

.hero__services {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    text-align: left;
    margin-bottom: var(--mb-3);
    font-weight: var(--font-medium);
}

.hero__description {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-4);
    color: var(--text-color);
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

.hero__image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


/* ===== SERVICES ===== */
.services {
    background-color: var(--container-color);
    padding: 2rem 0;
    margin: 2rem 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Riga 1: 3 card che occupano 2 colonne ciascuna */
.service__card:nth-child(1) { grid-column: 1 / 3; }
.service__card:nth-child(2) { grid-column: 3 / 5; }
.service__card:nth-child(3) { grid-column: 5 / 7; }

/* Riga 2: 2 card centrate (1 colonna di margine per lato) */
.service__card:nth-child(4) { grid-column: 2 / 4; }
.service__card:nth-child(5) { grid-column: 4 / 6; }

.service__card {
    background-color: var(--body-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service__card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service__card:hover .service__icon {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

.service__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-3);
}

.service__icon i {
    font-size: 2rem;
    color: white;
}

.service__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-2);
    color: var(--title-color);
}

.service__description {
    color: var(--text-color);
    line-height: 1.6;
}


/* ===== BRANDS ===== */
.zone__container,
.brands__container {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.brands__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.brand__item {
    background-color: var(--body-color);
    padding: 1rem;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
    color: var(--title-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== ZONE SERVITE ===== */
.zone__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 4rem;
    max-width: 600px;
    margin: 0 auto;
}

.zone__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zone__list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: var(--normal-font-size);
}

.zone__list li:last-child {
    border-bottom: none;
}

.zone__list li i {
    color: var(--primary-color);
    font-size: 0.75rem;
    flex-shrink: 0;
}

@media screen and (max-width: 567px) {
    .zone__grid {
        grid-template-columns: 1fr;
    }

    .zone__list:first-child li:last-child {
        border-bottom: 1px solid var(--border-color);
    }
}

/* ===== ABOUT ===== */
.about__container {
    gap: 2rem;
}

.about__content {
    text-align: center;
}

.about__description {
    margin-bottom: var(--mb-4);
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

.about__description:last-of-type {
    margin-top: var(--mb-3);
    margin-bottom: var(--mb-4);
}

.about__features {
    display: grid;
    gap: 0.75rem;
    text-align: left;
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--container-color);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.about__feature:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
    transform: translateX(4px);
}

.about__feature i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.about__feature span {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--title-color);
    line-height: 1.4;
}

.about__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__image-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3);
}

.about__image-placeholder i {
    font-size: 4rem;
    color: white;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background-color: var(--container-color);
}

/* Reviews Carousel */
.reviews__carousel-container {
    position: relative;
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem; /* spazio per i bottoni prev/next */
}

.reviews__carousel-wrapper {
    overflow: hidden;
    border-radius: 1rem;
}

.reviews__carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0;
}

.reviews__carousel .review__card {
    flex: 0 0 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: 1px solid var(--border-color);
}

.reviews__carousel .review__card:first-child {
    border-radius: 1rem 0 0 1rem;
}

.reviews__carousel .review__card:last-child {
    border-radius: 0 1rem 1rem 0;
    border-right: none;
}

@media screen and (min-width: 768px) {
    .reviews__carousel .review__card {
        flex: 0 0 50%;
    }
}

@media screen and (min-width: 1024px) {
    .reviews__carousel .review__card {
        flex: 0 0 33.333%;
    }
}

/* Carousel Navigation Buttons */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel__btn:hover {
    background-color: var(--primary-color-alt);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel__btn--prev {
    left: -25px;
}

.carousel__btn--next {
    right: -25px;
}


/* Carousel Indicators */
.carousel__indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Touch target esteso (invisibile) per mobile */
.indicator::after {
    content: '';
    position: absolute;
    top: -14px;
    left: -14px;
    right: -14px;
    bottom: -14px;
}

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

.indicator:hover {
    background-color: var(--primary-color-alt);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .carousel__btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel__btn--prev {
        left: -20px;
    }
    
    .carousel__btn--next {
        right: -20px;
    }
    
    .carousel__indicators {
        margin-top: 1.5rem;
    }
    
    .reviews__carousel .review__card {
        flex: 0 0 100%;
        margin: 0 1rem;
        border-radius: 1rem;
        border-right: 1px solid var(--border-color);
    }
    
    .reviews__carousel .review__card:first-child {
        border-radius: 1rem;
    }
    
    .reviews__carousel .review__card:last-child {
        border-radius: 1rem;
        border-right: 1px solid var(--border-color);
    }
}

.review__card {
    background-color: var(--body-color);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.review__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

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

.review__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.review__info {
    flex: 1;
}

.review__name {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    margin-bottom: 0.25rem;
}

.review__status {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.review__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: #ffc107;
    font-size: 1rem;
}

.review__date {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.review__content {
    margin-bottom: 1.5rem;
}

.review__content p {
    color: var(--text-color);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.review__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review__tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .reviews__carousel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .review__header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .review__rating {
        align-items: flex-start;
    }
}


.google-reviews__links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media screen and (min-width: 768px) {
    .google-reviews__links {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

.google-reviews__links .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.google-reviews__links .btn--secondary {
    background-color: #4285f4;
    color: white;
}

.google-reviews__links .btn--secondary:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

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

.google-reviews__links .btn--primary:hover {
    background-color: var(--primary-color-alt);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.google-reviews__links .btn i {
    font-size: 1.2rem;
}

/* ===== CONTACT ===== */
.contact__info-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.contact {
    background-color: var(--body-color);
    padding: 2rem 0;
}

.contact__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 0;
}

.contact__form-section {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--container-color);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.contact__icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__icon i {
    color: white;
    font-size: 1.2rem;
}

.contact__details h3 {
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.contact__details p {
    margin-bottom: 0.25rem;
}

.contact__details a {
    color: var(--primary-color);
    font-weight: var(--font-medium);
}

.contact__details span {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.contact__note-inline {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background-color: transparent;
    border: 1px dashed #cbd5e1;
}

.contact__note-inline i {
    color: var(--text-color-light);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.contact__note-inline span {
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    line-height: 1.4;
}


/* ===== FORM ===== */
.contact__form {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}

.form__group {
    margin-bottom: var(--mb-3);
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-medium);
    color: var(--title-color);
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: var(--normal-font-size);
    transition: border-color 0.3s ease;
    background-color: var(--body-color);
    min-height: 48px;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__group--privacy {
    margin-bottom: var(--mb-3);
}

.form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-size: var(--small-font-size);
    color: var(--text-color);
    line-height: 1.5;
}

.form__checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 0.1rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form__checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer__privacy-link {
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.footer__privacy-link:hover {
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--title-color);
    color: var(--text-color-light);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    gap: 2rem;
    margin-bottom: var(--mb-4);
}

.footer__brand {
    text-align: left;
}

.footer__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: var(--mb-2);
    font-size: var(--h3-font-size);
}

.footer__logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer__description {
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer__title {
    color: white;
    margin-bottom: var(--mb-2);
    font-size: var(--h3-font-size);
    text-align: center;
}


.footer__contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer__contact-item i {
    color: var(--primary-color);
    width: 16px;
}

.footer__contact-item a {
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.footer__contact-item a:hover {
    color: white;
}

.footer__contact {
    text-align: center;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer__automation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.footer__automation-text {
    font-size: 0.8rem;
}

.footer__automation-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer__automation-brand {
    font-weight: 600;
    color: #49DD7F;
    font-size: 0.85rem;
}

.footer__automation-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.2s;
}

.footer__automation-link:hover {
    opacity: 0.75;
}

/* ===== RESPONSIVE DESIGN ===== */




/* Small devices */
@media screen and (max-width: 567px) {
    .container {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .hero__container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0.5rem 0.5rem 0.5rem;
        align-items: center;
    }
    
    .hero__content {
        text-align: center;
        order: 1;
        display: block;
        visibility: visible;
        opacity: 1;
        width: 100%;
        padding: 1.5rem 0 1rem 0;
    }
    
    .hero__image {
        order: 2;
    }
    
    .hero__title {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.2;
        font-weight: var(--font-bold);
        display: block;
        visibility: visible;
        opacity: 1;
        margin-bottom: 1rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        text-align: center;
        font-weight: var(--font-semi-bold);
        display: block;
        visibility: visible;
        opacity: 1;
        margin-bottom: 0.5rem;
    }
    
    .hero__services {
        font-size: 0.9rem;
        text-align: center;
        font-weight: var(--font-medium);
        display: block;
        visibility: visible;
        opacity: 1;
        margin-bottom: 1.5rem;
    }
    
    .hero__separator {
        margin: 1rem auto;
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .hero__buttons {
        justify-content: center;
        display: flex;
        visibility: visible;
        opacity: 1;
        margin-top: 1.5rem;
    }
    
    .hero__image-placeholder {
        max-width: 250px;
        height: 300px;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service__card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 200px;
        padding: 1.5rem;
    }

    /* Reset posizionamento esplicito su mobile */
    .service__card:nth-child(1),
    .service__card:nth-child(2),
    .service__card:nth-child(3),
    .service__card:nth-child(4),
    .service__card:nth-child(5) {
        grid-column: auto;
    }
    
    .contact__info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 350px) {
    .container {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        padding: 0 0.25rem;
    }
    
    .hero__container {
        padding: 1.5rem 0.25rem 0.25rem 0.25rem;
    }
    
    .hero__title {
        font-size: 1.3rem;
        line-height: 1.2;
        font-weight: var(--font-bold);
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .hero__subtitle {
        font-size: 0.9rem;
        font-weight: var(--font-semi-bold);
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .hero__services {
        font-size: 0.8rem;
        font-weight: var(--font-medium);
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .hero__image-placeholder {
        max-width: 200px;
        height: 250px;
    }
    
    .btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .service__card {
        padding: 1rem;
        min-height: 180px;
    }
}

/* Mobile specific improvements */
@media screen and (max-width: 767px) {
    .section {
        padding: 2rem 0 1rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .section__title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section__description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .brands__grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .brand__item {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .about__features {
        gap: 0.75rem;
    }
    
    .about__feature {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .contact__form-section {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form__input {
        padding: 0.75rem;
        font-size: 1rem; /* min 16px: evita auto-zoom iOS */
    }

    .form__label {
        font-size: 0.9rem;
    }
    
    .google-reviews__links {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .google-reviews__links .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Footer mobile centering */
    .footer__content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer__brand {
        text-align: center;
    }
    
    .footer__logo {
        justify-content: center;
    }
    
    .footer__description {
        margin: 0 auto;
    }
    
    .footer__contact {
        text-align: center;
    }
    
    .footer__contact-item {
        justify-content: center;
    }
}

/* Medium devices */
@media screen and (min-width: 568px) {
    .hero__container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
    .hero__content {
        text-align: left;
        order: 2;
    }
    
    .hero__image {
        order: 1;
    }
    
    .hero__title {
        text-align: left;
        font-size: 2rem;
    }
    
    .hero__subtitle {
        text-align: left;
        font-size: 1.1rem;
    }
    
    .hero__services {
        text-align: left;
        font-size: 1rem;
    }
    
    .hero__separator {
        margin: 1rem 0;
    }
    
    .hero__buttons {
        justify-content: flex-start;
    }
    
    .services__grid {
        gap: 2rem;
    }
    
    .service__card {
        max-width: 100%;
        height: 250px;
    }
    
    .contact__info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .contact__info-section {
        margin-bottom: 2rem;
    }
}

/* Large devices */
@media screen and (min-width: 768px) {
    .nav__menu {
        position: static;
        width: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .nav__list {
        flex-direction: row;
        column-gap: 2rem;
        padding: 0;
    }
    
    .nav__toggle {
        display: none;
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .hero__content {
        text-align: left;
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .services__grid {
        gap: 2rem;
    }
    
    .about__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .about__content {
        text-align: left;
    }
    
    .testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact__container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .footer__brand {
        text-align: left;
    }
    
    .footer__logo {
        justify-content: flex-start;
    }
    
    .footer__description {
        margin: 0;
    }
}

/* Extra large devices */
@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__container {
        gap: 3rem;
    }
    
    .services__grid {
        gap: 3rem;
    }
    
    .about__container {
        gap: 3rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus styles for better accessibility */
.btn:focus,
.nav__link:focus,
.form__input:focus,
.footer__link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --title-color: #000000;
        --text-color: #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn--chat {
        animation: none !important;
    }
    
    .btn--chat i {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .contact__form {
        display: none;
    }
    
    .hero__title,
    .section__title {
        color: black !important;
    }
    
    .hero__description,
    .service__description {
        color: #333 !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--mb-1); }
.mb-2 { margin-bottom: var(--mb-2); }
.mb-3 { margin-bottom: var(--mb-3); }
.mb-4 { margin-bottom: var(--mb-4); }
.mb-5 { margin-bottom: var(--mb-5); }
.mb-6 { margin-bottom: var(--mb-6); }

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

