/********** VARIABILI & BASE **********/
:root {
    /* palette template */
    --primary:   #7EBC12;
    --secondary: #FF0F10;
    --light:     #F2F2F2;
    --dark:      #1D2833;

    /* Quatio brand */
    --quatio-primary:   #0f766e;   /* verde petrolio */
    --quatio-secondary: #022c22;   /* verde molto scuro */
    --quatio-accent:    #22c55e;   /* verde acceso */
    --quatio-light:     #ecfdf5;   /* sfondo chiaro verdino */
}

html {
    scroll-behavior: smooth;
}

body {
    color: #111827;
}

/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}

/*** Bottoni ***/
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

/* Pulsanti principali Quatio */
.btn-primary,
.btn.btn-primary {
    background-color: var(--quatio-primary);
    border-color: var(--quatio-primary);
}

.btn-primary:hover,
.btn.btn-primary:hover {
    background-color: var(--quatio-secondary);
    border-color: var(--quatio-secondary);
}

.btn-outline-light,
.btn.btn-outline-light {
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-light:hover,
.btn.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--quatio-primary);
}

/* Square buttons */
.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 8px;
}

/*** Spinner & Back-to-top ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/********** NAVBAR + LOGO **********/
.navbar {
    transition: all 0.3s ease;
}

/* Link base (navbar sopra l'hero) */
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    outline: none;
    transition: .3s;
    color: #FFFFFF !important; /* bianche sopra hero */
}

/* Underline sopra + sotto */
.navbar-light .navbar-nav .nav-link::before,
.navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease, background-color .2s ease;
}

.navbar-light .navbar-nav .nav-link::before {
    top: 0;
}

.navbar-light .navbar-nav .nav-link::after {
    bottom: 0;
}

/* Hover / Active */
.navbar-light .navbar-nav .nav-link:hover {
    color: #e5e5e5 !important;
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--quatio-accent) !important;
}

.navbar-light .navbar-nav .nav-link:hover::before,
.navbar-light .navbar-nav .nav-link:hover::after {
    background: #e5e5e5;
    transform: scaleX(1);
}

.navbar-light .navbar-nav .nav-link.active::before,
.navbar-light .navbar-nav .nav-link.active::after {
    background: var(--quatio-accent);
    transform: scaleX(1);
}

/* Brand */
.navbar-light .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

/* Sticky desktop */
@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
    }

    .sticky-top.navbar-light {
        position: fixed;
        background: #FFFFFF;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 20px 0;
        color: #333333 !important;
    }

    .sticky-top.navbar-light .navbar-brand img {
        max-height: 45px;
    }

    .sticky-top.navbar-light .navbar-brand h1 {
        color: var(--primary);
    }
}

/* Mobile navbar */
@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }

    .navbar-light .navbar-brand h1 {
        color: var(--primary);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

/* Mantieni attivo evidenziato anche in sticky */
.sticky-top.navbar-light .navbar-nav .nav-link.active {
    color: var(--quatio-accent) !important;
}

.sticky-top.navbar-light .navbar-nav .nav-link.active::before,
.sticky-top.navbar-light .navbar-nav .nav-link.active::after {
    background: var(--quatio-accent);
}

/* Logo brand in navbar (SVG come background) */
.logo-brand {
    display: block;
    width: 180px;
    height: 50px;
    background: transparent url("../img/logo_quatio_grigio_bianco.svg") left center no-repeat;
    background-size: contain;
}

/* Quando la navbar diventa sticky, cambio logo */
.sticky-top.navbar-light .logo-brand {
    background-image: url("../img/logo_quatio_verde_grigio.svg");
}

/* Forzo la visibilità del logo in navbar (fallback img) */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img#logo-quatio {
    display: block;
    max-height: 42px;
}


/********** HERO **********/
.hero-header {
    background:
        url(../img/bg-round.png),
        url(../img/bg-round-2.png),
        url(../img/bg-square.png),
        url(../img/bg-line.png),
        url(../img/bg-bottom-hero.png);
    background-position:
        0px 40%,
        right 0 top 0,
        left 50% top 0,
        left 50% top 50%,
        center bottom -1px;
    background-repeat: no-repeat;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

/* Hero WordPress Quatio (sezione custom opzionale) */
.hero-wp {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, #22c55e 0, #0f766e 25%, #022c22 65%, #020617 100%);
    color: #ecfdf5;
}

.hero-wp .badge,
.hero-wp h1,
.hero-wp p,
.hero-wp li {
    color: #ecfdf5;
}

.hero-wp h1 {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-wp .hero-subtitle {
    opacity: 0.92;
}

.hero-wp .pill-list li {
    background: rgba(15, 118, 110, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

/* Immagine hero illustrazione */
.hero-wp-illustrazione {
    max-width: 480px;
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
}


/********** SECTION TITLE **********/
.section-title::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 11px;
    bottom: 0;
    left: 0;
    border-top: 1px solid #5A5A5A;
    border-bottom: 1px solid #5A5A5A;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 1px;
    bottom: 5px;
    left: 0;
    background: var(--primary);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -30px;
}

.section-title.text-center::after {
    width: 120px;
    left: 50%;
    margin-left: -60px;
}


/********** DOMAIN SEARCH (sezione "Domini") **********/
.domain {
    background: url(../img/bg-domain.png) center center no-repeat;
    background-size: contain;
}

.domini-error-message {
    display: none;
    font-size: 0.85rem;
    color: #b91c1c;
    padding-left: 2px;
}

.domini-error-message.is-visible {
    display: block;
    animation: alert-bounce 0.8s ease-in-out;
}

.domain-error-message.is-visible {
    display: block;
}

/* Campo dominio e form footer invalidi */
.domain .form-control.is-invalid,
.footer-contact-form .form-control.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}


/********** PIANO HOSTING (sezione #piani-hosting) **********/
#piani-hosting .pricing-featured {
    border-radius: 24px;
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.40),
        0 0 0 1px rgba(148, 163, 184, 0.30);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background-color: #ffffff;
}

/* Hover leggero */
#piani-hosting .pricing-featured:hover {
    transform: translateY(-4px);
    box-shadow:
        0 32px 80px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(148, 163, 184, 0.40);
}

/* Lista caratteristiche a 2 colonne */
#piani-hosting .pricing-features-list {
    margin: 0;
}

#piani-hosting .pricing-features-list .icon {
    font-size: 1.1rem;
    line-height: 1;
    color: var(--quatio-primary);
    margin-top: 2px;
}

/* Testo delle features */
#piani-hosting .pricing-features-list p {
    font-size: 0.95rem;
}


/********** SEZIONE VALORE SERVIZIO **********/
#valore-quatio {
    background-color: #f9fafb;
}

.valore-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 1.4rem 1.3rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.valore-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(103, 172, 31, 0.12);
    color: var(--quatio-primary);
    font-size: 1.2rem;
}

/* Box confronto prezzi */
.valore-confronto {
    border-radius: 18px;
    background: #ffffff;
    border: 1px dashed rgba(103, 172, 31, 0.7);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

/* Divisore grafico tra card e box confronto */
.valore-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem auto 1.8rem;
    max-width: 280px;
}

.valore-separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

.valore-separator-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    margin: 0 0.75rem;
    background: rgba(15, 118, 110, 0.08);
    color: var(--quatio-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}


/********** CONFRONTO SHARED VS DEDICATO (sezione alternativa) **********/
#confronto-hosting {
    background: #020617;
    color: #e5e7eb;
}

#confronto-hosting h2 {
    color: #f9fafb;
}

#confronto-hosting .card-col {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

#confronto-hosting .badge-shared {
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
}

#confronto-hosting .badge-dedicato {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

#confronto-hosting ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#confronto-hosting li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
}

#confronto-hosting li .icon {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

#confronto-hosting li.neg .icon {
    color: #f97316;
}

#confronto-hosting li.pos .icon {
    color: #22c55e;
}

/* Nota tra parentesi nei titoli del confronto */
.comparison-title-note {
    font-size: 0.65em;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 0.35rem;
    white-space: nowrap;
}

/* Linea verticale di separazione nella sezione confronto classica */
@media (min-width: 992px) {
    .comparison::after {
        position: absolute;
        content: "";
        width: 1px;
        top: 56px;
        bottom: 20px;
        left: 50%;
        background: #DDDDDD;
    }
}


/********** SEZIONE CARATTERISTICHE (se usata) **********/
#caratteristiche-hosting {
    background: var(--quatio-light);
}

#caratteristiche-hosting .card {
    border-radius: 18px;
}


/********** TESTIMONIAL **********/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--secondary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item .position-absolute {
    background: var(--secondary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF;
}

.testimonial-carousel .owl-item.center .testimonial-item h6 {
    color: var(--dark) !important;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}


/********** TEAM (template) **********/
.team-item,
.team-item .bg-primary,
.team-item .bg-primary i {
    transition: .5s;
}

.team-item:hover {
    border-color: var(--secondary) !important;
}

.team-item:hover .bg-primary {
    background: var(--secondary) !important;
}

.team-item:hover .bg-primary i {
    color: var(--secondary) !important;
}


/********** FAQ **********/
#faq .accordion-item {
    border-radius: 16px;
    border: 1px solid #d4d4d8;
    overflow: hidden;
    margin-bottom: 14px;
    background-color: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

#faq .accordion-button {
    font-weight: 600;
    padding: 0.9rem 1.25rem;
    background-color: #e5e7eb;
    color: #111827;
    box-shadow: none;
}

/* Stato SELEZIONATO (FAQ aperta) */
#faq .accordion-button:not(.collapsed) {
    background-color: #d4d4d8;
    color: #111827;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.2);
}

#faq .accordion-button:focus {
    box-shadow: none;
}

/* Iconcina freccia */
#faq .accordion-button::after {
    filter: grayscale(0.4);
    opacity: 0.9;
}

#faq .accordion-body {
    font-size: 0.95rem;
    color: #4b5563;
    padding: 0.85rem 1.25rem 1rem;
    background-color: #ffffff;
}


/********** FOOTER **********/
.footer {
    background:
        url(../img/bg-round.png),
        url(../img/bg-round-2.png),
        url(../img/bg-square.png),
        url(../img/bg-line.png),
        url(../img/bg-bottom-footer.png);
    background-position:
        0px 112px,
        right 0 bottom 0,
        left 50% top 80px,
        left 50% bottom 0,
        top center;
    background-repeat: no-repeat;
}

.footer p {
    font-size: 15px;
}

/* Social */
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

/* Link testuali footer */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

/* Copyright */
.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .3);
}

.footer .copyright a {
    color: var(--light);
}

/* Menu footer */
.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Layout footer top */
.footer-top {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-brand-block {
    max-width: 320px;
}

.footer-logo {
    max-width: 240px;
}

/* Link email footer (in scuro) */
.footer-link {
    color: #111827;
    text-decoration: underline;
    font-weight: 500;
}

.footer-link:hover {
    color: #374151;
}

/* Box form scuro */
.footer-contact-wrapper {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 22px;
    padding: 26px 26px 22px;
    position: relative;
    top: -6px;
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.70),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(4px);
}

.footer-contact-form .form-label {
    color: #e5e7eb;
}

.footer-contact-form .form-control {
    font-size: 0.95rem;
    border-radius: 10px;
    background-color: #020617;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #f9fafb;
}

.footer-contact-form .form-control::placeholder {
    color: #9ca3af;
}

/* Bottone form footer */
.btn-footer-submit {
    background-color: #ffffff;
    color: var(--quatio-primary);
    border: 1px solid var(--quatio-primary);
    font-weight: 600;
}

.btn-footer-submit:hover {
    background-color: var(--quatio-primary);
    color: #ffffff;
    border-color: var(--quatio-primary);
}

/* Mobile footer */
@media (max-width: 991.98px) {
    .footer-top {
        text-align: left;
    }

    .footer-brand-block {
        margin-bottom: 2rem;
    }
}


/********** OFFSET ANCORE (menu -> sezioni) **********/
#domini,
#about,
#piani-hosting,
#valore-quatio,
#confronto,
#faq,
#clienti,
#contatti {
    scroll-margin-top: 100px;
}

/* Su mobile la navbar è più bassa: offset minore */
@media (max-width: 991.98px) {
    #domini,
    #about,
    #piani-hosting,
    #valore-quatio,
    #confronto,
    #faq,
    #clienti,
    #contatti {
        scroll-margin-top: 80px;
    }
}


/********** ALERT & MESSAGGI (preventivo) **********/
.preventivo-alert {
    background: rgba(255, 255, 255, 0.95);
    color: #14532d;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
    transform-origin: center;
}

/* quando attivo, dondola avanti/indietro */
.preventivo-alert.is-active {
    animation: alert-bounce 1.4s ease-in-out infinite;
}

@keyframes alert-bounce {
    0%, 100%   { transform: translateX(0); }
    25%        { transform: translateX(6px); }
    50%        { transform: translateX(-6px); }
    75%        { transform: translateX(3px); }
}


/********** PULSANTE WHATSAPP **********/
.whatsapp-chat-btn {
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: var(--quatio-secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    animation: whatsapp-bounce 1.8s ease-in-out infinite;
}

.whatsapp-chat-btn:hover {
    animation-play-state: paused;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    text-decoration: none;
}

@keyframes whatsapp-bounce {
    0%, 100% { transform: translateY(0); }
    30%      { transform: translateY(-6px); }
    60%      { transform: translateY(0); }
}

/* Leggermente più piccolo su schermi molto piccoli */
@media (max-width: 575.98px) {
    .whatsapp-chat-btn {
        width: 58px;
        height: 58px;
        font-size: 28px;
        right: 18px;
        bottom: 18px;
    }
}

/* Su schermi molto piccoli, solo l'icona */
@media (max-width: 575.98px) {
    .whatsapp-chat-btn span {
        display: none;
    }

    .whatsapp-chat-btn {
        border-radius: 50%;
        padding: 0.6rem 0.7rem;
        right: 16px;
        bottom: 100px;
    }
}

/* CTA hero: bottoni allineati e su una sola riga su schermi medi/grandi */
@media (min-width: 768px) {
    .hero-cta-group .btn {
        white-space: nowrap;
        text-align: center;
    }
}


/********** CLIENTI: CARD + LOGHI **********/

/* Azzeriamo qualunque ombra/sfondo di contenitori nell'area clienti */
#clienti .clients-carousel,
#clienti .clients-carousel .owl-stage-outer,
#clienti .clients-carousel .owl-stage,
#clienti .clients-carousel .owl-item {
    background: transparent !important;
    box-shadow: none !important;
    border: 0;
}

/* Wrapper slider: ci serve per la “luce” solo sotto */
#clienti .clients-carousel {
    position: relative;
}

/* Ombra MORBIDA solo SOTTO all’intera riga di card */
#clienti .clients-carousel::after {
    content: "";
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: -18px;              /* sposta leggermente sotto */
    height: 24px;
    pointer-events: none;
    border-radius: 999px;       /* ellisse centrale */
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.10);
}

/* Spazio orizzontale tra card, così non sembrano un unico blocco */
#clienti .clients-carousel .owl-item {
    padding: 0 12px;
}

/* Card clienti: ombra più blanda e solo verso il basso */
.clients-carousel .client-logo-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 20px 24px 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 220px; /* Realizzazione + 3 servizi ci stanno comodi */
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);  /* ombra leggera, verso il basso */
    transform: translateY(0);
    transition: box-shadow .25s ease, transform .25s ease;
}

/* Hover / slide centrale: un filo più sollevata, ma sempre soft */
.clients-carousel .owl-item.center .client-logo-card,
.clients-carousel .client-logo-card:hover {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
    transform: translateY(-4px);
}

/* Box logo */
.client-logo-inner {
    width: 210px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
}

/* Logo SEMPRE in scala di grigio */
.client-logo-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
    opacity: 0.95;
}

/* Caption / contenuto sotto il logo */
.client-caption {
    width: 100%;
}

/* Riga con tipologia + dominio */
.client-type-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 4px;
    row-gap: 2px;
    margin-bottom: 0.35rem;
}

/* Etichetta tipologia (E-COMMERCE, STUDIO PROFESSIONALE, ecc.) */
.client-type {
    font-size: 0.80rem;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Due punti dopo la tipologia */
.client-type::after {
    content: ":";
    margin-left: 2px;
}

/* Dominio cliccabile */
.client-domain {
    font-size: 0.78rem;
    color: var(--quatio-primary);
    text-decoration: none;
    word-break: keep-all;
}

.client-domain:hover {
    text-decoration: underline;
    color: var(--quatio-secondary);
}

/* Checklist servizi */
.client-services-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.client-services-list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #4b5563;
    margin-bottom: 0.18rem;
}

/* Pallino verde con check (Font Awesome 5) */
.client-services-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: #ffffff;
    background-color: var(--quatio-primary);
    border-radius: 999px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 1px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.40);
}

/* Mobile: card un filo più compatte */
@media (max-width: 575.98px) {
    #clienti .clients-carousel .owl-item {
        padding: 0 6px;
    }

    .clients-carousel .client-logo-card {
        padding: 16px 16px 18px;
        min-height: 0; /* su schermi piccoli lasciamo crescere liberamente */
    }

    .client-logo-inner {
        width: 180px;
        height: 80px;
    }
}

/* Mantieni tipologia+dominio su una sola riga dove c'è spazio */
@media (min-width: 768px) {
    .client-type-row {
        flex-wrap: nowrap;
    }
}

/********** CLIENTI – RESET TOTALE OMBRE **********/

/* Nessuna ombra / sfondo sui contenitori Owl */
#clienti .clients-carousel,
#clienti .clients-carousel::before,
#clienti .clients-carousel::after,
#clienti .clients-carousel .owl-stage-outer,
#clienti .clients-carousel .owl-stage,
#clienti .clients-carousel .owl-item {
    box-shadow: none !important;
    background: transparent !important;
}

/* Disattiva qualunque pseudo-elemento "barra" sotto lo slider */
#clienti .clients-carousel::before,
#clienti .clients-carousel::after {
    content: none !important;
}

/* Card clienti piatte, solo bordo leggero */
.clients-carousel .client-logo-card {
    box-shadow: none !important;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Logo mobile: usa sempre la versione verde/grigio */
@media (max-width: 991.98px) {
    .logo-brand {
        background-image: url("../img/logo_quatio_verde_grigio.svg");
    }
}
/* Domini: su mobile input sopra e bottone sotto */
@media (max-width: 575.98px) {
    .domain-input-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .domain-input-group #domain-input {
        width: 100%;
        padding-right: 1rem !important; /* non serve più lo spazio per il bottone sovrapposto */
    }

    .domain-input-group #dominio-top-btn {
        position: static !important;   /* niente più absolute */
        width: 100%;
        margin-top: 0.5rem !important;
        margin-right: 0 !important;
        display: block;
    }
}
