﻿:root {
    --recore-red: #e30613;
    --recore-cyan: #56b7d3;
    --recore-cyan-dark: #2d8ea9;
    --recore-cyan-light: #e7f5f9;
    --recore-warm-light: #f5f5ef;
    --recore-text: #171717;
    --recore-muted: #6f6f6f;
    --recore-green: #83945b;
}

html {
    scroll-behavior: smooth;
}

body.recore-site {
    color: var(--recore-text);
    font-family: "Montserrat", "Avenir Next", Avenir, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    background: #fff;
}

.recore-site a {
    color: inherit;
}

.site-header {
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.site-topbar {
    color: #fff;
    background: var(--recore-red);
    font-size: .78rem;
}

.site-topbar__brand {
    font-weight: 500;
}

.site-topbar__contacts a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.site-topbar__contacts a:hover {
    text-decoration: underline;
}

.site-navbar {
    background: #fff;
}

.site-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 64px;
}

.site-logo--mobile {
    max-width: 190px;
    max-height: 74px;
}

.site-nav-link {
    padding: .55rem 0 !important;
    color: #111 !important;
    font-size: .77rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.site-nav-link:hover,
.site-nav-link:focus {
    color: var(--recore-red) !important;
    border-bottom-color: var(--recore-red);
}

.site-contact-button {
    color: #fff !important;
    background: var(--recore-cyan);
    border-color: var(--recore-cyan);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.site-contact-button:hover,
.site-contact-button:focus {
    color: #fff !important;
    background: var(--recore-cyan-dark);
    border-color: var(--recore-cyan-dark);
}

.site-menu-toggle .icon-close {
    display: none;
}

.site-menu-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.site-menu-toggle[aria-expanded="true"] .icon-close {
    display: inline-block;
}

.site-mobile-navigation {
    min-height: calc(100vh - 132px);
    background: #fff;
}

.site-nav-link--mobile {
    display: inline-block;
    padding: .6rem 1rem !important;
    font-size: 1.05rem;
    border-bottom: 0;
}

.site-nav-link--mobile:hover,
.site-nav-link--mobile:focus {
    border-bottom-color: transparent;
}

.site-main {
    overflow: hidden;
}

.page-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f3f3f3;
}

.page-hero picture,
.page-hero__image {
    display: block;
    width: 100%;
}

.page-hero__image {
    object-fit: cover;
}

.page-hero--home .page-hero__image {
    height: clamp(280px, 31vw, 520px);
}

.page-hero--internal .page-hero__image {
    height: clamp(270px, 27vw, 450px);
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.page-hero__claim {
    width: min(390px, 46vw);
    padding: 1.35rem 1.5rem;
    color: #fff;
    background: rgba(86, 183, 211, .94);
    font-size: clamp(1.25rem, 2.2vw, 2.3rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.page-title,
.section-title {
    color: var(--recore-cyan-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.page-title {
    font-size: clamp(1.5rem, 2.2vw, 2.35rem);
}

.section-title {
    font-size: clamp(1.35rem, 1.8vw, 2rem);
}

.page-description {
    max-width: 1180px;
    margin-inline: auto;
    color: #222;
}

.page-description > :last-child {
    margin-bottom: 0;
}

.page-description h2,
.page-description h3,
.page-description h4 {
    margin-top: 1.75rem;
    margin-bottom: .85rem;
    color: var(--recore-cyan-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.page-description ul,
.page-description ol {
    padding-left: 1.25rem;
}

.page-gallery-card,
.home-media-card {
    overflow: hidden;
    border: 3px solid var(--recore-cyan);
    border-radius: 18px;
    background: #fff;
}

.page-gallery-card img,
.home-media-card img {
    display: block;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.page-gallery-card figcaption {
    padding: 0 .75rem .75rem;
}

.home-section:nth-child(3n + 1) {
    background: #fff;
}

.home-section:nth-child(3n + 2) {
    background: var(--recore-cyan-light);
}

.home-section:nth-child(3n + 3) {
    background: var(--recore-warm-light);
}

.home-section__description,
.home-section__secondary {
    max-width: 1180px;
}

.home-child-card {
    padding: 1rem 1.1rem;
    color: #222;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(45, 142, 169, .35);
    border-radius: 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.home-child-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.home-child-card h3 {
    margin-bottom: .55rem;
    color: var(--recore-cyan-dark);
    font-size: 1rem;
    font-weight: 700;
}

.home-child-card p {
    color: #444;
    font-size: .9rem;
}

.site-read-more {
    display: inline-block;
    color: var(--recore-cyan-dark) !important;
    font-weight: 600;
    text-decoration: none;
}

.site-read-more:hover {
    text-decoration: underline;
}

.page-faq {
    background: #fff;
}

.site-footer {
    color: #fff;
    background: var(--recore-cyan);
}

.site-footer a,
.site-footer .btn-link {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer .btn-link:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer-logo {
    width: auto;
    max-width: 190px;
    max-height: 80px;
    filter: brightness(0) invert(1);
}

.site-footer-brand-name {
    font-size: .75rem;
}

.site-footer-menu,
.site-footer-policies {
    font-size: .82rem;
}

.site-footer-legal {
    color: rgba(255, 255, 255, .92);
    font-size: .72rem;
    line-height: 1.55;
}

.contact-form--compact {
    border-radius: 14px;
    background: #fff;
    color: #222;
}

.contact-form--compact .card-body {
    position: relative;
}

.contact-form--compact .form-label,
.contact-form--compact .form-check-label {
    color: #444;
}

.contact-form__control {
    padding-left: 0;
    padding-right: 0;
    border: 0;
    border-bottom: 1px solid #777;
    border-radius: 0;
    box-shadow: none !important;
}

.contact-form__control:focus {
    border-bottom-color: var(--recore-cyan-dark);
}

.site-form-submit {
    color: #fff;
    background: var(--recore-cyan-dark);
    border-color: var(--recore-cyan-dark);
    font-size: .75rem;
}

.site-form-submit:hover,
.site-form-submit:focus {
    color: #fff;
    background: #247b92;
    border-color: #247b92;
}

.breadcrumb {
    font-size: .82rem;
}

.breadcrumb a {
    color: var(--recore-cyan-dark);
}

.site-consent {
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    z-index: 1095;
    display: flex;
    justify-content: center;
}

.site-consent__box {
    width: min(760px, 100%);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 1rem;
    box-shadow: var(--bs-box-shadow-lg);
}

.site-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1090;
    transition: bottom .2s ease;
}

.site-whatsapp--consent-open {
    bottom: 10rem;
}

.site-whatsapp__button {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    box-shadow: var(--bs-box-shadow);
}

.site-whatsapp__panel {
    position: absolute;
    right: 0;
    bottom: 4.25rem;
    width: min(320px, calc(100vw - 2rem));
}

@media (max-width: 991.98px) {
    .site-header {
        position: relative !important;
    }

    .site-topbar .container {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .site-topbar__brand {
        display: none;
    }

    .site-topbar__contacts {
        width: 100%;
        justify-content: center;
        gap: 1rem !important;
        font-size: .88rem;
    }

    .page-hero--home .page-hero__image,
    .page-hero--internal .page-hero__image {
        height: 290px;
    }

    .page-hero__claim {
        width: min(310px, 78vw);
        padding: 1rem 1.1rem;
    }
}

@media (max-width: 767.98px) {
    body.recore-site {
        font-size: 16px;
        line-height: 1.52;
    }

    .site-topbar__contacts {
        flex-direction: column;
        gap: .15rem !important;
        padding: .35rem 0;
    }

    .site-logo--mobile {
        max-width: 210px;
        max-height: 82px;
    }

    .site-mobile-navigation {
        min-height: calc(100vh - 158px);
    }

    .page-hero--home .page-hero__image,
    .page-hero--internal .page-hero__image {
        height: 250px;
    }

    .page-hero__overlay {
        align-items: flex-end;
        padding-bottom: 1rem;
    }

    .page-hero__claim {
        width: min(300px, 86vw);
        font-size: 1.28rem;
    }

    .page-title-section {
        padding-top: 1.6rem !important;
        padding-bottom: 1.2rem !important;
    }

    .page-description h2,
    .page-description h3,
    .page-description h4 {
        font-size: 1.15rem;
    }

    .page-gallery-card img,
    .home-media-card img {
        aspect-ratio: 16 / 6;
    }

    .home-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

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

    .site-footer .contact-form--compact {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .site-consent {
        inset: auto .5rem .5rem .5rem;
    }

    .site-consent__box .btn {
        width: 100%;
    }

    .site-whatsapp {
        right: .75rem;
        bottom: .75rem;
    }

    .site-whatsapp--consent-open {
        bottom: 14rem;
    }
}


/* ==========================================================
   RECORE - ONE PAGE / FEEDBACK CONTENUTI
   ========================================================== */

html {
    scroll-behavior: smooth;
}

.home-chi-siamo,
.home-section,
#richiedi-informazioni {
    scroll-margin-top: 105px;
}

/* Colori di default ReCore.
   Niente !important: i colori scelti nell'editor devono poter prevalere. */
.home-chi-siamo .page-description,
.home-section .page-description,
.home-service-group {
    color: #222;
}

.home-chi-siamo .section-title,
.home-section .section-title,
.home-section .page-description h1,
.home-section .page-description h2,
.home-section .page-description h3,
.home-section .page-description h4,
.home-section .page-description h5,
.home-section .page-description h6 {
    color: var(--recore-cyan-dark);
}

.home-section {
    position: relative;
}

/* Le immagini mantengono sempre la proporzione: nessuno schiacciamento. */
.home-media-card {
    height: 100%;
}

.home-media-card img {
    display: block;
    width: 100%;
    height: clamp(155px, 13vw, 215px);
    object-fit: cover;
    object-position: center;
    aspect-ratio: auto;
}

.home-manifesto-image img {
    height: clamp(200px, 22vw, 315px);
}

.home-manifesto-layout .page-description {
    max-width: none;
}

/* I sottoservizi non sono card cliccabili: sono gruppi di contenuti. */
.home-service-groups {
    display: grid;
    gap: 1.1rem;
}

.home-service-group {
    padding: 0;
    background: transparent;
}

.home-service-group + .home-service-group {
    padding-top: .35rem;
}

.home-service-group__title {
    margin: 0 0 .45rem;
    color: #222;
    font-size: 1rem;
    font-weight: 700;
}

.home-service-group__summary {
    max-width: 1000px;
    margin-bottom: .55rem;
    color: #333;
    font-size: .9rem;
    line-height: 1.5;
}

/* Parole_Chiave => pill del mockup. */
.home-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem .5rem;
}

.home-keyword-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: .22rem .72rem;
    border: 1px solid var(--recore-cyan-dark);
    border-radius: 999px;
    background: transparent;
    color: var(--recore-cyan-dark) !important;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
}

.home-keywords--hyperbaric .home-keyword-pill {
    border-color: #8ca17c;
    color: #65765a !important;
}

.home-keywords--rehab .home-keyword-pill {
    border-color: var(--recore-cyan-dark);
    color: var(--recore-cyan-dark) !important;
}

/* Approfondisci appartiene solo alle vere sottopagine di dettaglio. */
.home-service-group .site-read-more {
    font-size: .82rem;
}

/* Togliamo l'effetto card precedente dai sottoservizi. */
.home-child-grid,
.home-child-card {
    display: none !important;
}

@media (max-width: 767.98px) {
    .home-chi-siamo,
    .home-section,
    #richiedi-informazioni {
        scroll-margin-top: 135px;
    }

    .home-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .home-media-card img,
    .home-manifesto-image img {
        height: 210px;
    }

    .home-keyword-pill {
        padding: .25rem .65rem;
        font-size: .68rem;
    }

    .home-service-group__summary {
        font-size: .95rem;
    }
}


/* ==========================================================
   RECORE - PAGINE SERVIZIO / TEMPLATE LOGOPEDIA
   Hero -> titolo -> descrizione -> 3 immagini -> secondo testo
   ========================================================== */

.page-hero--internal {
    background: #f5f5f5;
}

.page-hero--internal .page-hero__image {
    width: 100%;
    height: clamp(290px, 27vw, 440px);
    object-fit: cover;
    object-position: center;
}

.page-title-section {
    padding-top: 2.2rem !important;
    padding-bottom: 1.5rem !important;
}

.page-title-section .page-title {
    margin: 0;
}

.page-content-section .page-description,
.page-gallery-section .container {
    max-width: 1180px;
}

.page-gallery-section {
    padding-top: .25rem;
}

.page-gallery-card {
    height: 100%;
    border-width: 2px;
    border-radius: 16px;
}

.page-gallery-card__image {
    display: block;
    width: 100%;
    height: clamp(180px, 17vw, 255px);
    object-fit: cover;
    object-position: center;
}

.page-gallery-card figcaption {
    margin: 0 !important;
    padding: .55rem .75rem .7rem;
    color: #444;
    background: #fff;
}

#ctl00_body_ContentSecondarySection {
    padding-top: .75rem;
}

/* Sulle pagine interne i titoli creati nell'editor seguono la palette ReCore. */
#ctl00_body_ContentSecondarySection .page-description h2,
#ctl00_body_ContentSecondarySection .page-description h3,
#ctl00_body_ContentSecondarySection .page-description h4 {
    color: var(--recore-cyan-dark);
}

@media (max-width: 767.98px) {
    .page-hero--internal .page-hero__image {
        height: 260px;
    }

    .page-title-section {
        padding-top: 1.65rem !important;
        padding-bottom: 1rem !important;
    }

    .page-gallery-card__image {
        height: 220px;
    }
}


/* ==========================================================
   RECORE - FOOTER DATI AZIENDA E COLLEGAMENTI
   ========================================================== */

.site-footer-contact-row {
    color: #fff !important;
    line-height: 1.45;
    text-decoration: none;
}

a.site-footer-contact-row:hover {
    color: #fff !important;
    text-decoration: underline;
}

.site-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    color: #fff !important;
    font-size: 1rem;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
}

.site-footer-social:hover {
    background: #fff;
    color: var(--recore-cyan-dark) !important;
}

.site-footer-credit {
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.site-footer-menu .site-footer-link {
    display: inline-block;
}

.site-footer-legal {
    line-height: 1.55;
}

@media (max-width: 767.98px) {
    .site-footer-socials {
        margin-bottom: .5rem;
    }
}




/* ==========================================================
   RECORE - FEEDBACK SIMONA 16/09/2026
   ========================================================== */

/* MANIFESTO: bordo aderente e immagine intera, senza crop. */
.home-section--il-manifesto .home-manifesto-image,
.home-section--manifesto .home-manifesto-image {
    height: auto;
    border: 2px solid var(--recore-cyan);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.home-section--il-manifesto .home-manifesto-image img,
.home-section--manifesto .home-manifesto-image img {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border: 0;
    border-radius: 0;
}

/* Le immagini delle due sezioni servizi devono essere quadrate. */
.home-section--servizi-riabilitativi .home-media-card,
.home-section--terapia-iperbarica .home-media-card {
    aspect-ratio: 1 / 1;
    height: auto;
}

.home-section--servizi-riabilitativi .home-media-card img,
.home-section--terapia-iperbarica .home-media-card img {
    width: 100%;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
    object-position: center;
}

/* Il testo secondario (es. Utilizzo clinico e applicazioni)
   viene renderizzato dal codice prima dei sottoservizi. */
.home-section__secondary {
    clear: both;
}

/* Pill più leggibili rispetto allo sfondo delle sezioni. */
.home-keyword-pill {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.home-keywords--rehab .home-keyword-pill {
    background: #fff;
}

.home-keywords--hyperbaric .home-keyword-pill {
    background: #fff;
    border-color: var(--recore-green);
    color: var(--recore-green) !important;
}

/* Approfondisci rosso. */
.home-service-group .site-read-more {
    color: var(--recore-red) !important;
    font-weight: 700;
}

/* Terapia iperbarica: verde come colore grafico di sezione.
   Sono valori di default: uno style scelto nell'editor può prevalere. */
.home-section--terapia-iperbarica,
.home-section--terapia-iperbarica .section-title,
.home-section--terapia-iperbarica .page-description,
.home-section--terapia-iperbarica .page-description h1,
.home-section--terapia-iperbarica .page-description h2,
.home-section--terapia-iperbarica .page-description h3,
.home-section--terapia-iperbarica .page-description h4,
.home-section--terapia-iperbarica .page-description h5,
.home-section--terapia-iperbarica .page-description h6,
.home-section--terapia-iperbarica .home-service-group,
.home-section--terapia-iperbarica .home-service-group__title,
.home-section--terapia-iperbarica .home-service-group__summary {
    color: var(--recore-green);
}

/* LOGOPEDIA / pagine interne:
   la foto Principale deve vedersi tutta come hero, non ritagliata. */
.page-hero--internal {
    background: #f4f4f2;
    text-align: center;
}

.page-hero--internal picture {
    display: block;
    width: 100%;
}

.page-hero--internal .page-hero__image {
    display: block;
    width: 100%;
    height: clamp(300px, 34vw, 540px);
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

/* Anche i testi delle pagine interne restano modificabili dall'editor:
   niente color !important sulle descrizioni. */
.page-content-section .page-description,
#ctl00_body_ContentSecondarySection .page-description {
    color: var(--recore-text);
}

@media (max-width: 767.98px) {
    .home-section--servizi-riabilitativi .home-media-card img,
    .home-section--terapia-iperbarica .home-media-card img {
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
    }

    .home-section--il-manifesto .home-manifesto-image img,
    .home-section--manifesto .home-manifesto-image img {
        height: auto !important;
    }

    .page-hero--internal .page-hero__image {
        height: min(72vw, 390px);
        object-fit: contain;
    }
}


/* ==========================================================
   RECORE - CORREZIONI MIRATE PROTOTIPO
   Base: CSS precedente al pacchetto "allineamento prototipo".
   Nessun cambio a tipografia, spaziature o struttura.
   ========================================================== */

/* ----------------------------------------------------------
   1. BACKGROUND SEZIONI
   Impostati esplicitamente per evitare l'alternanza nth-child.
   ---------------------------------------------------------- */

.home-section--il-manifesto,
.home-section--manifesto {
    background: #ffffff !important;
}

.home-section--servizi-riabilitativi {
    background: #e7f5f9 !important;
}

.home-section--terapia-iperbarica {
    background: #f5f5ef !important;
}

.home-section--servizi-domiciliari-su-prenotazione {
    background: #ffffff !important;
}


/* ----------------------------------------------------------
   2. BORDI IMMAGINI
   Tutte le immagini delle sezioni: bordo ciano sottile,
   arrotondato e aderente alla foto.
   ---------------------------------------------------------- */

.home-media-card,
.page-gallery-card {
    border: 2px solid var(--recore-cyan) !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: transparent;
}

/* Manifesto: il bordo deve seguire la fotografia,
   non creare un grande riquadro bianco attorno. */
.home-section--il-manifesto .home-manifesto-image,
.home-section--manifesto .home-manifesto-image {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

.home-section--il-manifesto .home-manifesto-image img,
.home-section--manifesto .home-manifesto-image img {
    display: block;
    width: 100%;
    height: auto !important;
    border: 2px solid var(--recore-cyan);
    border-radius: 16px;
    object-fit: cover;
}


/* ----------------------------------------------------------
   3. PILL PAROLE CHIAVE
   Riabilitazione: ciano.
   Iperbarica: verde.
   Sempre fondo bianco per staccarle dal background.
   ---------------------------------------------------------- */

.home-keyword-pill {
    background: #ffffff !important;
    box-shadow: none !important;
}

.home-keywords--rehab .home-keyword-pill {
    border: 1px solid var(--recore-cyan-dark) !important;
    color: var(--recore-cyan-dark) !important;
    background: #ffffff !important;
}

.home-keywords--hyperbaric .home-keyword-pill {
    border: 1px solid var(--recore-green) !important;
    color: var(--recore-green) !important;
    background: #ffffff !important;
}


/* ----------------------------------------------------------
   4. CONTATTACI NELLA NAVBAR
   Pill azzurra compatta come nel prototipo.
   ---------------------------------------------------------- */

.site-contact-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 36px;
    padding: .45rem 1.15rem !important;
    color: #ffffff !important;
    background: var(--recore-cyan) !important;
    border: 1px solid var(--recore-cyan) !important;
    border-radius: 999px !important;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.site-contact-button i {
    color: #ffffff !important;
    font-size: .9rem;
}

.site-contact-button:hover,
.site-contact-button:focus {
    color: #ffffff !important;
    background: var(--recore-cyan-dark) !important;
    border-color: var(--recore-cyan-dark) !important;
    text-decoration: none !important;
}


/* ----------------------------------------------------------
   MOBILE: mantiene gli stessi criteri grafici.
   ---------------------------------------------------------- */

@media (max-width: 767.98px) {
    .site-contact-button {
        min-width: 150px;
        min-height: 42px;
        padding: .55rem 1.25rem !important;
        font-size: .88rem;
    }

    .home-section--il-manifesto .home-manifesto-image img,
    .home-section--manifesto .home-manifesto-image img {
        width: 100%;
        height: auto !important;
    }
}


/* ==========================================================
   RECORE - BORDI IMMAGINI ALLINEATI AL MOCKUP
   SOLO bordi / raggi / ombra. Nessun'altra modifica grafica.
   ========================================================== */

:root {
    --recore-image-border-cyan: #5ab7d4;
    --recore-image-border-green: #92a773;
    --recore-image-border-gray: #9a9a9a;
}

/* MANIFESTO
   Nel mockup NON c'e' un bordo colorato.
   Solo angoli morbidi e ombra leggerissima. */
.home-section--il-manifesto .home-manifesto-image,
.home-section--manifesto .home-manifesto-image {
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

.home-section--il-manifesto .home-manifesto-image img,
.home-section--manifesto .home-manifesto-image img {
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .10);
}

/* SERVIZI MEDICI / RIABILITATIVI
   Bordo azzurro come nel progetto. */
.home-section--servizi-riabilitativi .home-media-card {
    border: 3px solid var(--recore-image-border-cyan) !important;
    border-radius: 22px !important;
    overflow: hidden;
}

/* TERAPIA IPERBARICA
   Nel mockup il bordo e' verde. */
.home-section--terapia-iperbarica .home-media-card {
    border: 3px solid var(--recore-image-border-green) !important;
    border-radius: 22px !important;
    overflow: hidden;
}

/* SERVIZI DOMICILIARI
   Nel mockup il bordo e' grigio. */
.home-section--servizi-domiciliari-su-prenotazione .home-media-card {
    border: 3px solid var(--recore-image-border-gray) !important;
    border-radius: 22px !important;
    overflow: hidden;
}

/* PAGINE INTERNE / GALLERY
   Nel dettaglio Logopedia il bordo resta azzurro. */
.page-gallery-card {
    border: 3px solid var(--recore-image-border-cyan) !important;
    border-radius: 22px !important;
    overflow: hidden;
}



/* ==========================================================
   RECORE - FEEDBACK SIMONA 17/09/2026
   1) rimozione bordi colorati dalle immagini
   2) domiciliari sempre quadrati
   3) pill con fondo al 10% del proprio colore
   4) hero/slide pagine interne a tutta larghezza senza bande laterali
   ========================================================== */

/* Bordi immagini: mantenere quelli previsti dal mockup e già definiti sopra:
   azzurro per riabilitativi, verde per iperbarica, grigio per domiciliari,
   azzurro nelle gallery interne. */

/* Domiciliari: le immagini caricate possono avere qualunque proporzione,
   il frontend le presenta sempre in formato quadrato. */
.home-section--servizi-domiciliari-su-prenotazione .home-media-card {
    aspect-ratio: 1 / 1;
    height: auto;
}

.home-section--servizi-domiciliari-su-prenotazione .home-media-card img {
    display: block;
    width: 100%;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
    object-position: center;
}

/* Parole chiave: stesso colore per testo/bordo e fondo al 10%. */
.home-keywords--rehab .home-keyword-pill {
    color: #3D96B2 !important;
    border-color: #3D96B2 !important;
    background: rgba(61, 150, 178, .10) !important;
}

.home-keywords--hyperbaric .home-keyword-pill {
    color: #92A773 !important;
    border-color: #92A773 !important;
    background: rgba(146, 167, 115, .10) !important;
}

/* Pagine interne (es. Logopedia): l'immagine principale occupa realmente
   tutta la larghezza disponibile. Altezza automatica = niente bande laterali
   e nessun ritaglio della fotografia. */
.page-hero--internal picture,
.page-hero--internal .page-hero__image {
    width: 100%;
}

.page-hero--internal .page-hero__image {
    height: auto !important;
    max-height: none !important;
    margin: 0;
    object-fit: contain !important;
}


/* ==========================================================
   RECORE - MOBILE 22/09/2026
   Banner home completo e spaziatura introduttiva compatta.
   ========================================================== */
@media (max-width: 991.98px) {
    .page-hero--home .page-hero__image {
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}

@media (max-width: 767.98px) {
    /* Un eventuale claim HTML resta leggibile sotto la foto anche
       quando il banner proporzionale e' piu' basso del testo. */
    .page-hero--home .page-hero__overlay {
        position: static;
        padding: 0;
    }

    .page-hero--home .page-hero__claim {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }

    .home-chi-siamo {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }
}

/* Footer with company map - 23 September 2026 */
.site-footer--map { background: var(--recore-cyan); }
.site-footer--map .site-footer-heading { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; }
.site-footer--map .site-footer-contact-row { font-size: .95rem; overflow-wrap: anywhere; }
.site-footer--map .site-footer-brand-name { font-size: .9rem; }
.site-footer-map-address { font-size: .95rem; line-height: 1.5; }
.site-footer-map { border: 1px solid rgba(255,255,255,.25); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.07); }
.site-footer-map iframe { width: 100%; height: 260px; border: 0; display: block; background: #fff; }
.site-footer-map-placeholder { min-height: 260px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.site-footer-map-placeholder > i { font-size: 2rem; }
.site-footer-map-placeholder p { margin: 0; }
.site-footer-map-placeholder small { font-size: .75rem; opacity: .85; }
.site-footer-map [hidden] { display: none !important; }
.site-footer-directions { display: inline-flex; align-items: center; margin-top: 14px; font-weight: 600; padding: 6px 0; }
.site-footer-bottom { border-top: 1px solid rgba(255,255,255,.25); }
.site-footer--map .site-footer-menu, .site-footer--map .site-footer-policies { font-size: .9rem; }
.site-footer--map .site-footer-policies .btn-link { font-size: inherit; }
.site-footer--map .contact-form--compact { border: 0; border-radius: 16px; }
.site-footer--map a:focus-visible, .site-footer--map button:focus-visible { outline: 3px solid #ffda78; outline-offset: 4px; }
@media (max-width: 767.98px) {
    .site-footer--map .site-footer-logo { max-width: 170px; }
    .site-footer-map iframe, .site-footer-map-placeholder { min-height: 240px; height: 240px; }
}
