.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;
}

/* =====================================================
   TOKENS
   ===================================================== */
:root {
    --clr-red:    #E41925;
    --clr-dark:   #28282a;
    --clr-bg:     #ebe8e7;
    --clr-border: #dcd7d7;
    --clr-white:  #fafafa;
}


* {
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #28282a !important;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.anim-hidden {
    opacity: 0;
}

.anim-fade-up.anim-hidden    { transform: translateY(28px); }
.anim-fade-right.anim-hidden { transform: translateX(-28px); }
.anim-fade-left.anim-hidden  { transform: translateX(28px); }

.anim-hidden,
.anim-fade-up,
.anim-fade-right,
.anim-fade-left {
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.anim-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* =====================================================
   TYPOGRAPHY TOKENS (usati su più pagine)
   ===================================================== */
.preTitle {
    font-size: 18px;
    color: #E41925;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.title-general {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.decoration {
    color: #E41925;
}

@media screen and (max-width: 800px) {
    .title-general {
        font-size: clamp(28px, 8vw, 36px);
    }
}

/* =====================================================
   BASE
   ===================================================== */


/* =====================================================
   HERO BACKGROUND (tutte le pagine con sfondo grigio)
   ===================================================== */
.colored {
    background-color: var(--clr-bg);
    padding-top: 100px;
}

/* =====================================================
   DECORATION
   ===================================================== */
.decoration {
    color: var(--clr-red);
    position: relative;
}

/* =====================================================
   UTILITY TESTO
   ===================================================== */
.text-red {
    color: var(--clr-red);
}

.pre-title {
    font-size: 14px;
    color: var(--clr-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 10px 0;
}

/* =====================================================
   VISIBILITY
   ===================================================== */
@media screen and (min-width: 801px) {
    .hide-desktop { display: none !important; }
}
@media screen and (max-width: 800px) {
    .hide-mobile { display: none !important; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.primary {
    all: unset;
    border-radius: 40px;
    width: max-content;
    padding: 5px 5px 5px 10px;
    background-color: var(--clr-red);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary i {
    height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e44444;
    border-radius: 50%;
}

.secondary {
    all: unset;
    border-radius: 40px;
    width: max-content;
    padding: 5px 5px 5px 10px;
    background-color: var(--clr-dark);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.secondary i {
    height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #454549;
    border-radius: 50%;
}

/* Bottone tondo con freccia (usato in storie, news, lavoraconnoi) */
.around-button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.around-button button {
    all: unset;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--clr-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* =====================================================
   CIRCLE COMPONENT (SVG, animato)
   ===================================================== */
@keyframes spinText {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.circle-container {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    right: 50px;
}

.circle-text-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spinText 8s linear infinite;
    transform-origin: center;
}

.circle-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    fill: var(--clr-dark);
}

.inner-circle {
    position: relative;
    width: 120px;
    height: 120px;
    background-color: var(--clr-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.inner-circle p {
    color: white;
    text-align: center;
    font-size: 14px;
    margin: 0;
}

@media screen and (max-width: 800px) {
    .circle-container {
        display: none !important;
    }
}

/* =====================================================
   CASE CARD (success story card, image + content)
   ===================================================== */
.case-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    width: 100%;
    aspect-ratio: 21 / 9;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.case-card__image {
    position: relative;
    overflow: hidden;
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-card__image img {
    transform: scale(1.05);
}

.case-card__content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.case-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0;
}

.case-card__services {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.case-card__services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-card__services li {
    background: #f4f4f4;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #333;
}

/* =====================================================
   CARD NEWS (small card with image + title)
   ===================================================== */
.cards-news {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

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

/* =====================================================
   MOBILE FILTER MODAL (bottom sheet)
   ===================================================== */
@keyframes modal-bg-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modal-bg-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes modal-slide-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes modal-slide-out {
    from { transform: translateY(0); }
    to   { transform: translateY(100%); }
}

.background {
    position: fixed;
    background-color: rgba(20, 20, 22, 0.55);
    backdrop-filter: blur(6px);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    animation: modal-bg-in 0.25s ease both;
}

.background.closing {
    animation: modal-bg-out 0.25s ease both;
}

.modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 101;
    padding: 24px 28px 40px;
    box-sizing: border-box;
    animation: modal-slide-in 0.3s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.background.closing .modal {
    animation: modal-slide-out 0.25s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.modal__handle {
    width: 40px;
    height: 4px;
    background-color: #ddd;
    border-radius: 4px;
    margin: 0 auto 20px;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal__title {
    font-size: 13px;
    font-weight: 700;
    color: #E41925;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.modal .close {
    font-size: 16px;
    cursor: pointer;
    color: #555;
    background: #f0f0f0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.modal .filters p {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 16px 0 8px;
}

.modal .filters p:first-child {
    margin-top: 0;
}

.modal label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    cursor: pointer;
}

.modal label:last-child {
    border-bottom: none;
}

.modal input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.modal input[type="checkbox"]:checked {
    background-color: #E41925;
    border-color: #E41925;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
}

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-news {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.card-news--animate {
    animation: card-fade-in 0.4s ease both;
}

.card-news:hover {
    transform: translateY(-4px);
}

.card-news img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-news-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
}

.card-news-content p {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

/* =====================================================
   CLIENTI (carosello loghi)
   ===================================================== */
.clienti-container,
.clienti-track,
.clientiImage {
    background-color: #ebe7e7;
}

.clienti-container {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    background-color: #ececec;
}

.clienti-track {
    padding: 40px 0 0 0;
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    animation: scroll-logos 80s linear infinite;
}

.clientiImage {
    flex-shrink: 0;
}

.clientiImage img {
    margin: 0 40px;
    height: 150px;
    width: 150px;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    filter: grayscale(1);
}

@keyframes scroll-logos {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


@media screen and (max-width: 800px) {
    .case-card {
        grid-template-columns: 1fr;
        aspect-ratio: auto;
    }

    .case-card__image {
        aspect-ratio: 16 / 10;
    }

    .case-card__content {
        padding: 1.5rem;
    }

    .case-card__title {
        font-size: 1.25rem;
    }

    .cards-news {
        flex-direction: column;
    }
}

/* =====================================================
   NEWSLETTER CTA
   ===================================================== */
.newsletter {
    display: flex;
    align-items: center;
    background-color: var(--clr-border);
    position: relative;
    width: 70%;
    margin: 80px 0 80px auto;
}

.newsletter .around-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--clr-red);
    border-radius: 50%;
    height: 60px;
    min-width: 60px;
    margin: 30px;
}

.newsletter .icon {
    background-color: var(--clr-red);
    background-image: var(--image);
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    background-size: 25px;
}

.newsletter .info {
    margin: 30px;
    max-width: 30%;
}

.newsletter .around-button {
    margin: 30px;
}

@media screen and (max-width: 800px) {
    .newsletter {
        width: 85%;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        padding: 30px 30px 20px 0;
        margin: 30px 0 50px auto;
    }

    .newsletter .around-icon {
        margin: -25px 20px 0 0;
    }

    .newsletter .info {
        margin: 10px 20px 0 0;
        max-width: unset;
        width: 100%;
    }

    .newsletter .info h4 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .newsletter .around-button {
        margin: 5px 20px 20px 0;
    }

    .newsletter button {
        width: 30px;
        height: 30px;
    }
}

/* =====================================================
   STAT CARDS
   ===================================================== */
.stat-section {
    padding: 80px 10% 0;
}

.stat-intro {
    font-size: 18px;
    margin-top: 16px;
    max-width: 640px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.stat-card {
    border: 1px solid var(--clr-border);
    border-radius: 15px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    background-color: var(--clr-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--clr-dark);
}

.stat-card__icon:has(img) {
    background-color: var(--clr-red);
}

.stat-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    filter: brightness(0) invert(1);
}

.stat-card__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #888;
}

.stat-card__value {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    color: var(--clr-dark);
}

.stat-card__value span {
    font-size: 32px;
    font-weight: 700;
}

.stat-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--clr-dark);
}

.stat-card__desc {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.6;
}

.stat-disclaimer {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 24px;
    margin-bottom: 0;
}

@media screen and (max-width: 800px) {
    .stat-section {
        padding: 60px 20px 0;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    .stat-card__value {
        font-size: 48px;
    }
}

/* =====================================================
   RECENSIONI CLIENTI
   ===================================================== */
.clienti {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 0 auto 50px auto;
    flex-direction: column;
    padding-top: 80px;
}

.clienti .upper {
    text-transform: uppercase;
    font-size: 18px;
    color: #e51c28;
}

.clienti p {
    margin: 0;
}

.clienti .claim {
    font-size: 48px;
    margin: 0;
}

.clienti .review-cards {
    margin: 20px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.clienti .review-card {
    flex: 0 0 calc(100% / 3);
    border: 2px solid #dcd7d7;
    background-color: #ebe8e7;
    padding: 24px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clienti .stars {
    display: flex;
    gap: 4px;
    color: #e41925;
    font-size: 18px;
}

.clienti .comment {
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    flex: 1;
}

.clienti .name {
    font-weight: 700;
}

.clienti .job {
    font-size: 13px;
    color: #666;
}

.clienti .avatar {
    background-color: #28282a;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    min-width: 60px;
    min-height: 60px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    color: white;
}

.clienti .user {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.clienti .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

@media screen and (max-width: 800px) {
    .clienti {
        width: 90%;
    }

    .clienti .claim {
        font-size: clamp(26px, 7vw, 36px);
        text-align: center;
    }

    .clienti .upper {
        text-align: center;
    }

    .clienti .review-cards {
        flex-direction: column;
        gap: 16px;
    }

    .clienti .review-card {
        flex: 0 0 auto;
        width: 100%;
    }
}
