/* =========================================================
   HOME
   ========================================================= */

.home-page {
    padding-bottom: 30px;
}


/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    margin-top: 30px;
    margin-bottom: 30px;
}

.home-hero img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* =========================================================
   COME POSSIAMO AIUTARTI
   ========================================================= */

.home-help {
    margin-top: 45px;
    margin-bottom: 55px;
    text-align: center;
    max-width: 900px;
}

.home-help h2 {
    margin: 0 0 18px;

    color: var(--color-black);

    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
}


/* wrapper lente + select */

.home-help__select-wrap {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    align-items: center;

    gap: 22px;

    width: 100%;
    max-width: 1220px;

    margin: 0 auto;
}


/* lente */

.home-help__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
}

.home-help__icon svg {
    display: block;

    width: 41px;
    height: 42px;
}


/* select */

.home-help__select {
    width: 100%;
    padding: 18px 60px 18px 30px;

    color: #454446;
    background-color: #fff;

    border: 1px solid #3D93A8;
    border-radius: 999px;

    font-family: inherit;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}


/* placeholder */

.home-help__select:invalid {
    color: #777;
}


/* focus */

.home-help__select:focus {
    outline: none;
    border-color: #27C3D1;
    box-shadow: 0 0 0 3px rgba(39, 195, 209, .12);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .home-help h2 {
        font-size: 34px;
    }

    .home-help__select-wrap {
        max-width: 100%;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .home-help {
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .home-help h2 {
        margin-bottom: 20px;

        font-size: 28px;
    }

    .home-help__select-wrap {
        grid-template-columns: 38px minmax(0, 1fr);

        gap: 12px;
    }

    .home-help__icon {
        width: 38px;
        height: 38px;
    }

    .home-help__icon svg {
        width: 32px;
        height: auto;
    }

    .home-help__select {
        height: 56px;

        padding: 0 42px 0 20px;

        font-size: 16px;

        border-width: 1.5px;
    }

}


/* =========================================================
   FONDAZIONE
   ========================================================= */

.home-foundation {
    margin-bottom: 50px;
}

.home-foundation__inner {
    padding: 40px 45px 50px;

    color: #fff;

    background-color: var(--color-blue-3);
    background-image: url("../images/bg-home-box.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;

    border-radius: 10px;
    overflow: hidden;
}

.home-foundation__inner h2 {
    margin: 0 0 20px;

    color: #fff;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.home-foundation__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: flex-start;
}

.home-foundation__image img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 10px;
}

.home-foundation__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-foundation__small {
    margin-bottom: 35px;
font-size: 18px;
  line-height: 24px;
}

.home-foundation__small p,
.home-foundation__highlight p {
    margin-top: 0;
}

.home-foundation__small p:last-child,
.home-foundation__highlight p:last-child {
    margin-bottom: 0;
}

.home-foundation__highlight {
    margin-bottom: 10%;
font-size: 30px;
  line-height: 34px;
  letter-spacing: -1px;
}

.home-foundation__button {
    display: block;

    width: 100%;
    border-radius: 50px;

    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    background: #FFFFFF;
  color: #56ACCA;
  border: 1px solid #35AECC;
    font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  padding: 14px 40px;
}
.home-foundation__button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .home-hero {
        margin-top: 15px;
        margin-bottom: 25px;
    }

    .home-search h2 {
        font-size: 20px;
    }

    .home-search__form {
        max-width: 100%;
    }

    .home-foundation__inner {
        padding: 35px 20px;
    }

    .home-foundation__inner h2 {
        font-size: 24px;
    }

    .home-foundation__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home-foundation__highlight {
        font-size: 24px;
        line-height: 30px;
    }
    .home-foundation__small {
  font-size: 16px;
  line-height: 20px;
}

}
/* =========================================================
   CAROUSEL HOME
   ========================================================= */

.home-carousel {
    margin-bottom: 35px;
}

.carousel-container {
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 33.3333%;
    box-sizing: border-box;
    padding: 0 25px;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 0.78;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    padding: 0;

    color: #2196F3;
    background: #fff;
    border: 0;
    border-radius: 50%;

    cursor: pointer;
    z-index: 10;

    box-shadow: 0 4px 10px rgba(0,0,0,.2);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

.carousel-btn.prev {
    left: 5px;
}

.carousel-btn.next {
    right: 5px;
}


/* Tablet */
@media (max-width: 991px) {

    .carousel-slide {
        flex-basis: 50%;
        padding: 0 15px;
    }

}


/* Mobile */
@media (max-width: 767px) {

    .carousel-slide {
        flex-basis: 100%;
        padding: 0 10px;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
    }

    .carousel-btn svg {
        width: 28px;
        height: 28px;
    }

}
/* =========================================================
   CURA COME MISSIONE
   ========================================================= */

.home-mission {
    margin-top: 35px;
    margin-bottom: 45px;
}

.home-mission__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items:flex-start;
}

.home-mission__content {
    min-width: 0;
}

.home-mission h2 {
    margin: 0 0 25px;

    color: var(--color-black);
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.home-mission__highlight {
    margin-bottom: 22px;

    color: var(--color-blue);
    font-size: 30px;
    line-height: 32px;
}

.home-mission__highlight p {
    margin: 0;
}

.home-mission__text {
    color: var(--color-black);
    font-size: 18px;
    line-height: 24px;
}

.home-mission__text p {
    margin: 0;
}

.home-mission__image img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 10px;
}
@media (max-width: 991px) {

    .home-mission__grid {
        gap: 40px;
    }

    .home-mission h2 {
        font-size: 34px;
    }

    .home-mission__highlight {
        font-size: 24px;
    }

}

@media (max-width: 767px) {

    .home-mission {
        margin-top: 25px;
        margin-bottom: 35px;
    }

    .home-mission__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-mission h2 {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .home-mission__highlight {
        font-size: 21px;
        line-height: 1.2;
    }

    .home-mission__text {
        font-size: 16px;
    }

}
/* =========================================================
   UN SERVIZIO PER OGNI ESIGENZA
   ========================================================= */

.home-services {
    margin-top: 45px;
    margin-bottom: 45px;
}

.home-services__title {
    margin: 0 0 25px;

    color: var(--color-black);
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin: 0;

    background-color: var(--color-green);

    padding: 50px 0;

    border-radius: 10px;

    row-gap: 30px;
    column-gap: 0;
}

.home-services__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 160px;

    padding: 20px;

    color: #fff;
    text-align: center;

    border-right: 1px solid rgba(255, 255, 255, 0.6);
}

/* quarta e ottava voce */
.home-services__item:nth-child(4n) {
    border-right: 0;
}

.home-services__item p {
    margin: 0;

    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
}

.home-services__item a {
    color: #fff;
    text-decoration: none;
}

.home-services__item a:hover {
    text-decoration: underline;
}


/* =========================================================
   SPRITE
   ========================================================= */

.icon-sprite {
    display: inline-block;

    width: 53px;
    height: 53px;

    margin: 0 auto 15px;

    background-image: url("../images/sprite.png");
    background-repeat: no-repeat;
    background-size: 424px 245px;
}

.icon-autosufficiente {
    background-position: 0 0;
}

.icon-cure-ricovero {
    background-position: -53px 0;
}

.icon-conforto {
    background-position: -106px 0;
}

.icon-alzheimer {
    background-position: -159px 0;
}

.icon-compagnia {
    background-position: -212px 0;
}

.icon-assistenza {
    background-position: -265px 0;
}

.icon-palliative {
    background-position: -318px 0;
}

.icon-sicurezza {
    background-position: -371px 0;
}
@media (max-width: 991px) {

    .home-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-services__item {
        border-right: 1px solid rgba(255, 255, 255, 0.6);
    }

    .home-services__item:nth-child(2n) {
        border-right: 0;
    }

}

@media (max-width: 767px) {

    .home-services {
        margin-top: 35px;
        margin-bottom: 35px;
    }

    .home-services__title {
        font-size: 28px;
    }

    .home-services__grid {
        grid-template-columns: 1fr;
        padding: 20px;
        row-gap: 0;
    }

    .home-services__item,
    .home-services__item:nth-child(2n),
    .home-services__item:nth-child(4n) {
        min-height: 0;
        padding: 25px 10px;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    }

    .home-services__item:last-child {
        border-bottom: 0;
    }

}
/* =========================================================
   IL TUO AIUTO È IMPORTANTE
   ========================================================= */

.home-help-important {
    margin-top: 45px;
    margin-bottom: 45px;
}

.home-help-important__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
   
}

.home-help-important__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.home-help-important__content h2 {
    margin: 0 0 20px;

    color: var(--color-black);
    font-size: 40px;
    line-height: 1.08;
    font-weight:800;
    letter-spacing: -1.5px
}

.home-help-important__text {
    margin-bottom: 30px;

    color: var(--color-black);
    font-size: 18px;
    line-height: 1.35;
}

.home-help-important__text p {
    margin: 0;
}

.home-help-important__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.home-help-important__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 12px 32px;

    border-radius: 50px;

    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.home-help-important__button--primary {
    min-width: 205px;

    color: #fff;
    background-color: var(--color-blue-3);
}
.home-help-important__button--primary:hover {
    background-color: #2E6C8D;
  color: #FFFFFF;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    
}

.home-help-important__button--secondary {
    min-width: 490px;

    color: var(--color-blue-2);
    background-color: #fff;

    border: 1px solid var(--color-blue-2);
}
.home-help-important__button--secondary:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
@media (max-width: 991px) {

    .home-help-important__grid {
        gap: 35px;
    }

    .home-help-important__content h2 {
        font-size: 34px;
    }

    .home-help-important__button--secondary {
        min-width: 100%;
    }
}

@media (max-width: 767px) {

    .home-help-important {
        margin-top: 35px;
        margin-bottom: 35px;
    }

    .home-help-important__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-help-important__content h2 {
        font-size: 28px;
    }

    .home-help-important__text {
        font-size: 16px;
    }

    .home-help-important__actions {
        align-items: stretch;
    }

    .home-help-important__button,
    .home-help-important__button--primary,
    .home-help-important__button--secondary {
        width: 100%;
        min-width: 0;
    }
}
/* =========================================================
   IMMAGINI FINALI HOME
   ========================================================= */

.home-final-images {
    margin-top: 35px;
    margin-bottom: 35px;
}

.home-final-images__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
}

.home-final-images img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.home-final-images__big,
.home-final-images__small {
    min-width: 0;
}
.home-final-images__big {
    aspect-ratio: 2 / 1;
}

.home-final-images__small {
    aspect-ratio: 1 / 1;
}
@media (max-width: 767px) {

    .home-final-images {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .home-final-images__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}
/* =========================================================
   HOME NEWS
   ========================================================= */

.home-news {
    padding: 10px 0;
}

.home-news__inner {
    position: relative;
    overflow: hidden;
    padding: 48px 55px 55px;
    background:
        #2E6C8D
        url("../images/pattern-table-blue.png")
        center center / cover
        no-repeat;
    border-radius: 12px;
}

.home-news__title {
    margin: 0 0 25px;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
}

.home-news__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
}

.home-news-card {
    min-width: 0;
}

.home-news-card__image {
    display: block;
    width: 150px;
    height: 135px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 10px;
}

.home-news-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-card__title {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 28px;
    font-weight: bold;
    color: #fff;
    letter-spacing: -1px;
}

.home-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.home-news-card__title a:hover {
    text-decoration: underline;
}

.home-news-card__excerpt {
    font-size: 18px;
    line-height: 1.35;
    color: #fff;
}

.home-news-card__excerpt p {
    margin: 0;
}

.home-news__cta {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.home-news__cta .btn {
    min-width: 330px;
    text-align: center;
}

.home-news__cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
   
    padding: 17px 32px;

    background: #27C3D1;
    border: 0;
    border-radius: 999px;

    color: #fff;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;

    transition: opacity .2s ease;
}

.home-news__cta .btn:hover {
background-color: #FFFFFF;
  color: #2E6C8D;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    

}
/* TABLET */

@media (max-width: 1024px) {

    .home-news__inner {
        padding: 40px 35px 45px;
    }

    .home-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 35px;
    }

}


/* MOBILE */

@media (max-width: 767px) {

    .home-news {
        padding: 35px 0;
    }

    .home-news__inner {
        padding: 30px 22px 35px;
    }

    .home-news__title {
        margin-bottom: 28px;
        font-size: 30px;
    }

    .home-news__grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .home-news-card__image {
        width: 100%;
        height: auto;
        aspect-ratio: 18 / 6;
        margin-bottom: 18px;
    }

    .home-news-card__title {
        font-size: 24px;
    }

    .home-news-card__excerpt {
        font-size: 16px;
        line-height: 1.35;
    }

    .home-news__cta {
        margin-top: 35px;
    }

    .home-news__cta .btn {
        width: 100%;
        min-width: 0;
    }

}