/* =============================================================
   DOMUS CURA – Foglio di stile principale
   File: styleMwn.css
   ============================================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== CSS VARIABLES ===== */
:root {
    --teal: #00897B;
    --teal-dark: #206E6F;
    --teal-light: #E0F2F1;
    --teal-hard-dark: #004849;
    --orange: #FF6F00;
    --orange-light: #FFEFE5;
    --red-var01: #CE2B37;
    --text-dark: #1A1A2E;
    --text-mid: #4A4A4A;
    --text-light: #777;
    --bg-light: #E5F6F6;
    --bg-section: #EEF6F5;
    --white: #FFFFFF;
    --gray: #F8F8F8;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --black: #000;
    --red: #9F1414;
    --red-light: #e8c4c4;
}

/* ===== UTILITY ===== */
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

.ink-teal { color: var(--teal-dark) !important; }
.ink-orange { color: var(--orange) !important; }
.ink-black { color: var(--black) !important; }

.section-tag {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.section-tag h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.section-tag.tag-green {
    color: var(--teal);
}
.section-tag.tag-orange {
    color: var(--orange);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
/*    font-size: clamp(22px, 3vw, 32px);*/   
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.section-sub {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-mid);
    margin-top: 10px;
    max-width: 850px;
    margin-bottom: 5rem;
    display: block;
}

/* Linea decorativa sotto i titoli di sezione — opzionale, scelta dal programmatore */
.section-title.green-line::after,
.section-title.orange-line::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  border-radius: 2px;
  margin-top: 10px;
}
.section-title.green-line::after  { background: var(--teal); }
.section-title.orange-line::after { background: var(--orange); }

/* Allineamento della linea — da combinare con linea-verde o linea-arancio */
.section-title.left-line::after {
  margin-left: 0;
}
.section-title.center-line::after {
  margin-left: auto;
  margin-right: auto;
}

/* ===== LINE SIZES ===== */
/* Spessore */
.section-title.line-thin::after {
    height: 2px;
} /* sottile */
.section-title.line-medium::after {
    height: 4px;
} /* medio */
.section-title.line-thick::after {
    height: 6px;
    margin-top: 1rem;
    margin-bottom: 1rem;
} /* spesso */
.section-title.line-bold::after {
    height: 10px;
} /* molto spesso */

/* Lunghezza */
.section-title.line-short::after {
    width: 50px;
} /* corta */
.section-title.line-long::after {
    width: 150px;
} /* lunga */
.section-title.line-full::after {
    width: 100%;
} /* intera larghezza */


.text-align-center {
    text-align: center !important;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-teal    { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-light); }
.btn-orange  { background: var(--orange); color: #fff; }
.btn-orange:hover { filter: brightness(.92); }
.btn-orange-light {
    background: var(--orange-light);
    color: var(--orange);
    border: 2px solid var(--orange);
}
    .btn-orange-light:hover {
        background: var(--orange);
        color: var(--white);
    }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-white   { background: #fff; color: var(--teal); }
.btn-white:hover { background: var(--teal-light); }
.btn-white-orange { background: #fff; color: var(--orange); }
.btn-white-orange:hover { background: var(--orange-light); }

.btn-teal-light {
    background: var(--teal-light);
    color: var(--teal) !important;
    border: 2px solid var(--teal);
}

    .btn-teal-light:hover {
        background: var(--teal);
        color: var(--white);
    }

.btn-red {
    background: var(--red);
    color: #fff;
}

    .btn-red:hover {
        background: var(--red-light);
        color: var(--red) !important;
    }


/* ===== BUTTON SIZES ===== */
/* Piccolo */
.btn-sm {
    font-size: 13px;
    padding: 6px 14px;
}
/* Medio (default attuale) */
.btn-md {
    font-size: 18px;
    padding: 9px 20px;
}
/* Grande (dimensione attuale) */
.btn-lg {
    font-size: 24px;
    padding: 11px 26px;
}
/* Extra grande */
.btn-xl {
    font-size: 30px;
    padding: 14px 32px;
}
/* ===== BUTTON ALIGNMENT ===== */
/* Il bottone da solo è inline, per allinearlo serve un contesto block */
.btn-left {
    display: flex;
    justify-content: flex-start;
}

.btn-center {
    display: flex;
    justify-content: center;
}

.btn-right {
    display: flex;
    justify-content: flex-end;
}

/* ===== BUTTON SIZES ===== */
.btn.btn-xs {
    padding: 6px 14px;
    font-size: 11px;
}

.btn.btn-sm {
    padding: 8px 20px;
    font-size: 12px;
}

.btn.btn-md {
    padding: 11px 28px;
    font-size: 13px;
}

.btn.btn-lg {
    padding: 14px 36px;
    font-size: 15px;
}

.btn.btn-xl {
    padding: 18px 48px;
    font-size: 17px;
}

.btn.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== BUTTON GROUPS ===== */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}
.btn-row.gap-lg {
    margin-bottom: 48px;
}


.btn.btn-w-xs {
    min-width: 100px;
    justify-content: center;
}

.btn.btn-w-sm {
    min-width: 150px;
    justify-content: center;
}

.btn.btn-w-md {
    min-width: 200px;
    justify-content: center;
}

.btn.btn-w-lg {
    min-width: 260px;
    justify-content: center;
}

.btn.btn-w-xl {
    min-width: 320px;
    justify-content: center;
}

/* ===== FILTER BUTTONS ===== */
.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--teal-dark);
    background: #fff;
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    display: none;
}

    .btn-filter:hover {
        border-color: var(--teal);
    }

    .btn-filter.active {
        border-color: var(--teal);
        background: var(--teal-light);
    }

    .btn-filter-clear:hover {
        background: var(--orange);
        color: #fff;
    }

.btn-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    background: #fff;
    border: 1.5px solid var(--orange);
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}



/* ===== TOP BAR ===== */
.top-bar {
  background: var(--teal-dark);
  color: #ddd;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Lato sinistro: social icons + telefono */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-bar-left .social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-bar-left .social a {
  color: rgba(255,255,255,1);
  font-size: 18px;
  transition: color .15s;
}
.top-bar-left .social a:hover { color: #fff; }
.top-bar-left .phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,1);
}
.top-bar-left .phone::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,.3);
  margin-right: 4px;
}
/* Lato destro: lingua + azioni utente */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap; /* impedisce il ritorno a capo del testo */
    flex-wrap: nowrap; /* impedisce che i figli vadano su righe diverse */
    flex-shrink: 0; /* impedisce che il blocco si restringa */
}
.top-bar-right a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    transition: color .15s;
    white-space: nowrap;
}
.top-bar-right a:hover { color: #fff; }
.top-bar-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,1);
}

#divLogIn, #divLogOut {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #fff;
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--teal);
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}
/* Menu centrale */
.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: .4px;
  text-transform: uppercase;
  border-radius: 0;
  transition: color .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--teal); background: transparent; }
/* Azione destra: solo bottone CONTATTACI */
.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-actions .btn { padding: 9px 20px; font-size: 12px; }

/* ===== LANGUAGE SELECTOR ===== */
.lang-selector {
    position: relative;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,1);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.12);
    user-select: none;
}

.lang-selected:hover {
    background: rgba(255,255,255,.2);
}
/* Freccia giù */
.lang-selected::after {
    content: '▾';
    font-size: 10px;
    margin-left: 2px;
}
/* Dropdown nascosto — il display è gestito dal JavaScript */
.lang-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 4px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    min-width: 150px;
    overflow: visible;
    z-index: 200;
}
/* Prima voce (lingua attiva) con sfondo teal */
.lang-dropdown .lang-active {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--teal-dark);
    cursor: default;
}
    /* Voci secondarie — tag <a> statici */
    .lang-dropdown a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 14px;
        font-size: 12px;
        color: var(--text-dark) !important;
        font-weight: 400;
        border-top: 1px solid #f0f0f0;
        transition: background .15s;
    }

        .lang-dropdown a:hover {
            background: var(--teal-light);
            color: var(--teal) !important;
        }
    /* Voci secondarie — LinkButton ASP.NET */
    .lang-dropdown .dropdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 14px;
        font-size: 12px;
        color: var(--text-dark) !important;
        font-weight: 400;
        border-top: 1px solid #f0f0f0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        transition: background .15s;
        width: 100%;
        text-decoration: none;
        background: transparent;
        box-sizing: border-box;
    }

        .lang-dropdown .dropdown-item:hover {
            background: var(--teal-light);
            color: var(--teal) !important;
        }


/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, var(--teal-dark) 0%, var(--teal) 60%, #4DB6AC 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1576765607924-3f7b8410a787?w=1200&q=60');
  background-size: cover;
  background-position: center right;
  opacity: .22;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  max-width: 520px;
}
.hero-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 80px; /*clamp(30px, 4.5vw, 52px);*/
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 14px;
}
.hero-content p {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255,255,255,.85);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 28px;
}

/* ===== CHI SIAMO ===== */
.about {
    padding: 70px 0;
    background: #fff;
    vertical-align: top;
}
.about .grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 50px;
  align-items: center;
}
.about .img-block {
  border-radius: 12px;
  overflow: hidden;
/*  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--bg-section); */
}
.about .img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about .text-block h2 {
    margin-bottom: 2rem;
    line-height: 1.2;
}
.about .text-block p {
  font-size: 22px;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* ===== COME INIZIARE ===== */
.how-to-start {
  padding: 70px 0;
  background: var(--bg-light);
  text-align: center;
}
.how-to-start .head { 
    margin-bottom: 40px; 
}
.how-to-start .head h2 {
    margin-bottom: 2rem;
    line-height: 1.2;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 32px;
}
.steps-grid-x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 32px;
}

.step-card {
    background: var(--teal-dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: left;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.step-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.step-card .img { height: 170px; background: var(--bg-section); overflow: hidden; }
.step-card .img img { width: 100%; height: 100%; object-fit: cover; }
.step-card .body {
    padding: 35px;
    flex: 1;
}

    .step-card .body.no-padding {
        padding: 0px !important;
    }
    .step-card .body.no-padding {
        padding: 0px !important;
    }

    .step-card .body.padding10 {
        padding: 10px !important;
    }

    .step-card .body.padding10 {
        padding: 10px !important;
    }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.step-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(17px * 1.4 * 2);
}
.step-card p {
    font-size: 17px;
    color: var(--white);
    line-height: 1.4;
    text-align: center;
    margin-bottom: 0.5rem;
}
.step-card .btn-center {
    margin-top: auto; 
    padding: 0 35px 25px; 
}
.step-card h4.fs16 {
    font-size: 16px;
    color: var(--teal);
    line-height: 1.3;
    text-align: center;
    margin-bottom: 0 !important;
}
.step-card p.fs14 {
    font-size: 16px;
    color: var(--black);
    line-height: 1.3;
    text-align: center;
    margin-bottom: 0.5rem;
}


/* ===== NEWS ===== */
.news {
    padding: 70px 0;
    background: #f5f5f5;
}

.news .head {
    text-align: center;
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.news-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        transform: translateY(-3px);
    }
    /* Immagine */
    .news-card .img {
        height: 220px;
        overflow: hidden;
        flex-shrink: 0;
    }

        .news-card .img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .3s;
        }

    .news-card:hover .img img {
        transform: scale(1.04);
    }
    /* Corpo */
    .news-card .body {
        padding: 32px 32px 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    /* Titolo */
    .news-card h4 {
        font-family: 'Montserrat', sans-serif;
        font-size: 22px;
        font-weight: 800;
        color: var(--teal-dark);
        margin-bottom: 16px;
        line-height: 1.4;
        text-transform: uppercase;
        /* Blocca il titolo a esattamente 4 righe */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: calc(22px * 1.4 * 4); /* font-size × line-height × righe */
    }
    /* Testo descrittivo */
    .news-card p {
        font-size: 22px;
        color: var(--text-mid);
        line-height: 1.2;
        flex: 1;
        margin-bottom: 20px;
        /* Tronca il testo se troppo lungo, opzionale */
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    /* Link "Leggi tutto" */
    .news-card .news-read-more {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 14px;
        font-weight: 700;
        color: var(--teal-dark);
        text-decoration: none;
        padding-bottom: 14px;
        border-bottom: 1px solid #e0e0e0;
        margin: 0 32px;
        transition: gap .2s;
    }

        .news-card .news-read-more:hover {
            gap: 8px;
            color: var(--teal);
        }
    /* Footer card: data + commenti */
    .news-card .news-footer {
        padding: 12px 32px 24px;
        font-size: 13px;
        color: var(--teal);
        display: flex;
        align-items: center;
        gap: 6px;
    }

.news .cta {
    text-align: center;
}


/* ===== HERO RICERCA ===== */
.hero-search {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(100deg, var(--teal-dark) 0%, var(--teal) 100%);
}
.hero-search .bg {
    position: absolute;
    inset: 0;
    background: url('/assets/images/banner/senior01b.jpg') center/cover;
    opacity: 1;
}
.hero-search .content { position: relative; z-index: 2; padding: 50px 0; }
.hero-search .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 6px;
}
.hero-search h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.hero-search h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}
.hero-search .head h4 {
    margin-bottom: 28px;
}
.hero-search subhead {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.30;
}


/* ===== UTENTI CARDS SECTION ===== */
.users-section {
    padding: 60px 0;
    background: #eaf4f7;
}

.users-section .head {
    text-align: center;
    margin-bottom: 14px;
}

.users-section .subhead {
    text-align: center;
    font-size: 15px;
    color: var(--text-mid);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 50px;
}

/* Card */
.user-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,.13);
}

/* Foto quadrata in alto con sfondo pastello */
.user-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fde8d8; /* pastello arancio di default */
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Corpo card */
.user-card .user-body {
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Nome */
.user-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--teal);
    margin-bottom: 8px;
    text-transform: uppercase;
    /* Blocca a 1 riga */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(18px * 1 * 1); /* font-size × line-height × righe */
    line-height: 1;
}
.user-card .user-city {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(16px * 1.3 * 2);
    line-height: 1.3;
    text-align: center;
}
/* Icone azione */
.user-card .user-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.user-card .user-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--orange);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    transition: background .15s;
}

.user-card .user-actions a:hover {
    background: var(--teal);
}

/* Ruolo */
.user-card .role {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: center;
    /* Blocca a 2 righe */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(20px * 1.3 * 2); /* font-size × line-height × righe */
}

/* Descrizione */
.user-card p {
    font-size: 18px;
    color: var(--text-mid);
    line-height: 1.30;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(18px * 1.3 * 3); /* font-size × line-height × righe */
}

.users-section .cta {
    text-align: center;
    margin-top: 32px;
}

.user-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.user-card-footer {
    padding: 0 16px 16px;
}

.user-card-footer .news-read-more {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* ===== HERO OFFERTA ===== */
.hero-offer {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(100deg, #E65100 0%, var(--orange) 100%);
}
.hero-offer .bg {
    position: absolute;
    inset: 0;
    background: url('https://www.domuscura.it/assets/images/banner/caregiver04c.jpg') center/cover;
    opacity: 1;
}
.hero-offer .content { position: relative; z-index: 2; padding: 50px 0; }
.hero-offer .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 6px;
}
.hero-offer h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
}
.hero-offer h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

.hero-offer .head h4 {
    margin-bottom: 28px;
}

.hero-offer .subhead {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.30;
}

/* ===== ABBONAMENTO ===== */
.pricing {
  padding: 70px 0 80px;
  background: #f7f3ee;
}
.pricing .head {
  text-align: center;
  margin-bottom: 50px;
}
.pricing .head h2 { margin-bottom: 12px; }
.pricing .head p {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.4;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== GRIGLIA PIANI A SCALARE ===== */
/* Contenitore flex con allineamento in basso:
   ogni card ha margin-top diverso per creare l'effetto scalare */
.plans-grid {
  display: flex;
  align-items: flex-end;
  gap: 25px;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

/* Tutte le card condividono la stessa base */
.plan-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0d8d0;
    padding: 28px 30px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    position: relative;
    transition: transform .2s, box-shadow .2s;
    align-items: center;
    text-align: center;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.13);
}

/* Scalatura verticale: align-items flex-end sul container,
   min-height diverso per ogni card crea l'effetto scalare.
   La card 1 è la più alta, la 2 è intermedia, la 3 e 4 sono le più basse. */
    /* desktop */
    .plan-card:nth-child(1) { height: 800px; background: #e8f5f0; }
    .plan-card:nth-child(2) { height: 750px; background: #fff3e8; }
    .plan-card:nth-child(3) { height: 700px; }
    .plan-card:nth-child(4) { height: 700px; }

/* Titolo piano */
.plan-card .plan-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text-dark) !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
/* Sottotitolo descrittivo sotto il titolo */
.plan-card .plan-subtitle {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}
/* Separatore teal sotto il titolo */
.plan-card .plan-divider-orange {
  width: 54px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 16px;
}
/* Separatore teal sotto il titolo */
.plan-card .plan-divider-green {
    width: 54px;
    height: 3px;
    background: var(--teal-dark);
    border-radius: 2px;
    margin-bottom: 16px;
}
/* Prezzo */
.plan-card .plan-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 4px;
}
.plan-card.promo .plan-price {
  color: var(--teal);
}
/* Validità */
.plan-card .plan-validity-green {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.plan-card .plan-validity-orange {
    font-size: 20px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
/* Corpo testo descrittivo */
.plan-card .plan-desc {
  font-size: 20px;
  color: var(--text-dark);
  line-height: 1.40;
  flex: 1;
  margin-bottom: 16px;
  align-items: center;
}
.plan-card .plan-desc strong {
  color: var(--text-dark);
  font-weight: 700;
}
/* Note a piè di card */
.plan-card .plan-note {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  align-items: center;
}
/* Icone pagamento */
.plan-card .plan-payment {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 10px;
  color: var(--text-light);
}
.plan-card .plan-payment img {
  /*height: 18px;*/
  width: auto;
  display: inline;
}
/* Bottone */
.plan-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  padding: 11px 20px;
  border-radius: 30px;
  margin-top: auto;
}
/* Card PROMOZIONE: sfondo bianco con bordo teal */
.plan-card.promo {
  border: 2px solid var(--teal);
}
.plan-card.promo .plan-title { color: var(--teal); }
/* Card MENSILE: bordo arancione (evidenziata) */
.plan-card.mensile {
  border: 2px solid var(--orange);
}
.plan-card.mensile .plan-price { color: var(--orange); }
/* Card SEMESTRALE e ANNUALE: standard */
.plan-card.semestrale .plan-price,
.plan-card.annuale .plan-price { color: var(--teal); }

/* ===== BANNER INFO ===== */
.info-banner {
    background: #f7f3ee;
    padding: 0 0 40px;     
}
.info-banner .container {
    background: var(--red-var01);
    border-radius: 12px;
    padding: 18px 180px;
    text-align: center;
}
.info-banner .container hr {
    border: none;
    border-top: 1px solid #fff;
    opacity: 1;
}
.info-banner p {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
}
.info-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* ===== RAPPORTO ===== */
.report {
  padding: 60px 0;
  background: var(--gray);
}
.report .head { margin-bottom: 16px;  text-align: center; }
.report .subhead { 
  font-size: 22px;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 28px;
  text-align: center;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.report-card {
  border-radius: var(--radius);
  overflow: hidden;
/*  background: #fff;
  box-shadow: var(--shadow);*/
}
.report-card .img { height: 485px; background: var(--bg-section); }
.report-card .img img { width: 100%; height: 100%; object-fit: cover; }
.report-card .body { padding: 12px; }
.report-card h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.report-card p { font-size: 14px; color: var(--text-dark); line-height: 1.4; }

/* ===== CTA FINALE ===== */
/* Sezione autonoma a larghezza piena, esterna al footer */
.cta-final {
  background: var(--gray);
  padding: 40px 0;
}
.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 100px;
  background: var(--teal-dark);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 100px 108px;
  position: relative;
  overflow: hidden;
}
/* texture diagonale sottile */
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.03) 0px,
    rgba(255,255,255,.03) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}
.cta-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.cta-box .btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  min-width: 220px;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  text-align: center;
  justify-content: center;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--teal-hard-dark);
  color: #aaa;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 1.3fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.footer h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange);
    display: inline-block;
}

.footer ul li { margin-bottom: 8px; }
.footer ul a {
    font-size: 18px;
    color: rgba(255,255,255,.8);
    transition: color .15s;
}
.footer ul a:hover { color: #fff; }

/* Mission column */
.footer-mission p {
    font-size: 18px;
    color: #ffffff;
    line-height: 1.4;
    margin-top: 0;
    font-weight: 400;
}

/* Contact items with icons */
.footer-contacts { padding: 0; }
.contact-item {
    font-size: 18px;
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
}
.contact-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--teal);
}
.contact-item a {
  font-size: 18px !important;
  word-break: break-all;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 16px;
    color: rgba(255,255,255,.8);
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0px;
    background: rgba(255,255,255,1);
    font-size: 18px;
    font-weight: 700;
    transition: background .15s, color .15s;
}
.social-icon:hover {
  background: var(--teal);
  color: #fff;
}

.footer-social a {
    font-size: 18px;
    color: rgba(255,255,255,.8);
    transition: color .15s;
}

    .footer-social a:hover {
        color: #fff;
    }


/* Footer bottom — box arrotondato dentro il container, agganciato al fondo del footer */
.footer-bottom-wrap {
  padding: 0 0 0px;
}
.footer-bottom {
  background: var(--teal-dark);
  border-radius: 10px 10px 0 0;
  padding: 22px 22px;
  text-align: center;
}
.footer-bottom p {
  font-size: 20px;
  color: #ffffff;
  line-height: 1.5;
}
.footer-bottom p:first-child {
  font-size: 18px;
  color: ffffff;
  font-weight: 400;
  margin-bottom: 2px;
}

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

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--teal-dark);
        border-radius: 2px;
        transition: all .25s ease;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


/* ===== SEZIONI COMPONIBILI ===== */
.page-section {
    padding: 16px 5px;
    width: 100%;
}

.section-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

    /* Layouts */
    .section-grid.col-1 {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .section-grid.col-2 {
        grid-template-columns: 1fr 1fr;
    }

    .section-grid.col-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }


    /* ===== SECTION GRID VARIANTI ASIMMETRICHE ===== */
    .section-grid.col-1-3 {
        grid-template-columns: 1fr 2fr;
    }

    .section-grid.col-3-1 {
        grid-template-columns: 2fr 1fr;
    }

    .section-grid.col-1-4 {
        grid-template-columns: 1fr 3fr;
    }

    .section-grid.col-4-1 {
        grid-template-columns: 3fr 1fr;
    }



/* Riquadro base */
.section-box {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 32px;
}

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

    .section-box.align-center {
        text-align: center;
    }

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

    .section-box.align-left img {
        margin-left: 0;
        margin-right: auto;
    }

    .section-box.align-center img {
        margin-left: auto;
        margin-right: auto;
    }

    .section-box.align-right img {
        margin-left: auto;
        margin-right: 0;
    }

    .section-box h6 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        font-size: 18px;
    }

.page-section.gap-sm {
    margin-bottom: 12px;
}

.page-section.gap-md {
    margin-bottom: 24px;
}

.page-section.gap-lg {
    margin-bottom: 48px;
}

.section-grid.col-1 .section-box {
    width: 100%;
}

.section-grid.col-1-centered {
    grid-template-columns: minmax(0, 1440px);
    justify-content: center;
}

.section-grid.col-2-centered {
    grid-template-columns: repeat(2, minmax(0, 720px));
    justify-content: center;
}

.section-grid.col-3-centered {
    grid-template-columns: repeat(3, minmax(0, 480px));
    justify-content: center;
}

.section-box.px-sm {
    padding-left: 16px;
    padding-right: 16px;
}

.section-box.px-md {
    padding-left: 32px;
    padding-right: 32px;
}

.section-box.px-lg {
    padding-left: 64px;
    padding-right: 64px;
}

.section-box.px-xl {
    padding-left: 120px;
    padding-right: 120px;
}

.section-box.px-xxl {
    padding-left: 240px;
    padding-right: 240px;
}

    /* Colori di sfondo */
    .section-box.bg-white {
        background: #ffffff;
    }

    .section-box.bg-gray {
        background: #f7f3ee;
    }

    .section-box.bg-teal {
        background: var(--teal-light);
    }

    .section-box.bg-orange {
        background: var(--orange-light);
    }

.section-box.bg-orange-light {
    background: #FFEFE5;
    border: var(--orange), solid, 1px;
}

    .section-box.bg-red {
        background: #fdecea;
    }

    .section-box.bg-yellow {
        background: #fffde7;
    }

    .section-box.bg-blue {
        background: #e8f0fe;
    }

    .section-box.bg-dark {
        background: var(--teal-dark);
        color: #fff;
    }

    /* Titolo sezione */
    .section-box h2,
    .section-box h3 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        text-transform: uppercase;
        text-align: center;
        margin-bottom: 8px;
    }

    .section-box .section-divider {
        width: 54px;
        height: 3px;
        background: var(--teal-dark);
        border-radius: 2px;
        margin: 0 auto 20px;
    }

        .section-box .section-divider.orange {
            background: var(--orange);
        }

.section-box h4 {
    font-size: 28px;
    color: var(--black);
    line-height: 1.2;
    text-align: center;
}

    .section-box p {
        font-size: 22px;
        color: var(--text-mid);
        line-height: 1.4;
        text-align: center;
    }

.section-box h4.text-left {
    text-align: left !important;
}

.section-box h2.text-left {
    text-align: left !important;
}

.section-box h3.text-left {
    text-align: left !important;
}

.section-box p.text-left {
    text-align: left !important;
}



/* ===== FORM ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

    .form-group label {
        font-size: 14px;
        font-weight: 700;
        color: var(--text-dark);
        text-transform: uppercase;
        letter-spacing: .3px;
    }

.form-control.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-box .form-group > label {
    padding-left: 8px;
}

label.lowercase {
    text-transform: lowercase;
}

label.normal {
    text-transform: none;
}

label.bold-none {
    font-weight: 500;
}

label.italic {
    font-style: italic;
}


/* Campo base: textbox, textarea, select */
.form-control {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--black);
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}

    .form-control:focus {
        border-color: var(--teal);
        box-shadow: 0 0 0 3px rgba(0, 137, 123, .15);
    }

    .form-control:disabled {
        background: #f0f0f0;
        color: var(--text-light);
        cursor: not-allowed;
    }

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Select / Combobox */
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23444' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Checkbox e Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}
    .form-check.gap-lg {
        margin-bottom: 48px;
    }

    .form-check input[type="checkbox"],
    .form-check input[type="radio"] {
        width: 18px;
        height: 18px;
        accent-color: var(--teal);
        cursor: pointer;
        flex-shrink: 0;
    }

    .form-check label {
        font-size: 15px;
        color: var(--text-dark);
        cursor: pointer;
        margin: 0;
    }

    .form-check.center {
        justify-content: center;
    }

/* Messaggio di errore */
.form-error {
    font-size: 13px;
    color: var(--red-var01);
    margin-top: 4px;
}

/* Messaggio di successo */
.form-success {
    font-size: 13px;
    color: var(--teal);
    margin-top: 4px;
}

.form-group.gap-none {
    margin-bottom: 0px !important;
    padding-bottom: 0;
}
.form-group.gap-sm {
    margin-bottom: 8px !important;
}

.form-group.gap-md {
    margin-bottom: 18px !important;
}
/* default */
.form-group.gap-lg {
    margin-bottom: 32px !important;
}

.form-control::placeholder {
    color: #aaa;
}

.form-control.ph-dark::placeholder {
    color: var(--text-mid);
}

.form-control.ph-light::placeholder {
    color: #ccc;
}

.form-control.ph-teal::placeholder {
    color: var(--teal);
}

.form-control.ph-orange::placeholder {
    color: var(--orange);
}

.form-control.ph-left {
    text-align: left;
}

.form-control.ph-center {
    text-align: center;
}

.form-control.ph-right {
    text-align: right;
}

.section-box textarea,
.section-box input[type="text"],
.section-box .form-control {
    width: 100% !important;
    box-sizing: border-box !important;
}

    .section-box .form-control.w-75 {
        width: 75% !important;
    }

    .section-box .form-control.w-50 {
        width: 50% !important;
    }

    .section-box .form-control.w-25 {
        width: 25% !important;
    }

    .section-box .form-control.w-75,
    .section-box .form-control.w-50,
    .section-box .form-control.w-25 {
        display: block;
    }

    .section-box .form-control.align-left {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .section-box .form-control.align-center {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .section-box .form-control.align-right {
        margin-left: auto !important;
        margin-right: 0 !important;
    }

.form-group h5.text-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}


/* ===== PAGE HERO BANNER ===== */
.page-hero {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 16px; /*ex 32*/
}

    .page-hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .35);
    }

    .page-hero .hero-content {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 calc((100% - 1440px) / 2 + 30px);
    }


    .page-hero h1 {
        font-family: 'Montserrat', sans-serif;
        font-size: 48px;
        font-weight: 800;
        color: #fff;
        text-transform: uppercase;
        margin-bottom: 6px;
    }

    .page-hero .hero-breadcrumb {
        font-size: 20px;
        font-weight: 500;
        color: #fff;
        white-space: nowrap;
    }

        .page-hero .hero-breadcrumb a {
            color: #fff;
            text-decoration: none;
        }



    /* Immagini per pagina */

    .page-hero.hero-generic {
        background-image: url('/assets/images/banner/caregiver01a.jpg');
    }

    .page-hero.hero-reserved {
        background-image: url('/images/banner_backoffice.jpg');
    }

    .page-hero.hero-mobile {
        background-image: url('/assets/images/banner/caregiver01a.jpg');
        max-height: 145px;
    }



/* ===== IMAGE ROW ===== */
.img-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

    .img-row img {
        object-fit: cover;
        border-radius: var(--radius);
    }

    /* Dimensioni fisse per le immagini */
    .img-row .img-xs {
        width: 60px;
        height: 60px;
    }

    .img-row .img-sm {
        width: 100px;
        height: 100px;
    }

    .img-row .img-md {
        width: 160px;
        height: 160px;
    }

    .img-row .img-lg {
        width: 220px;
        height: 220px;
    }

    .img-row .img-xl {
        width: 300px;
        height: 300px;
    }

    .img-row .img-full {
        width: 100%;
        height: auto;
    }


/* ===== SEARCH USER CARD ===== */
.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px;
}

.search-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

    .search-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
    }

    .search-card .search-avatar {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #fde8d8;
        flex-shrink: 0;
    }

        .search-card .search-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
        }

    .search-card .search-body {
        padding: 10px 10px 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        gap: 4px;
    }

    .search-card .search-name {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 14px;
        color: var(--teal);
        text-transform: uppercase;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 100%;
    }

    .search-card .search-city {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-dark);
        text-align: center;
        text-transform: uppercase;
    }

    .search-card .search-icons {
        font-size: 14px;
        display: flex;
        gap: 6px;
        justify-content: center;
        margin: 4px 0;
    }

    .search-card .search-descr {
        font-size: 13px;
        color: var(--black);
        text-align: center;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-card .search-province {
        font-size: 12px;
        color: var(--teal-dark);
        font-style: italic;
        text-align: center;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-card .search-descr-short {
        font-size: 13px;
        color: var(--black);
        text-align: center;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: calc(13px * 1.3 * 2);
    }

    .search-card .search-descr-long {
        font-size: 13px;
        color: var(--black);
        text-align: center;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.section-box .search-grid {
    padding: 0;
}

.page-indicator {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-mid);
    align-self: center;
}

/* ===== FILTER PANEL ===== */
.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .filter-panel .filter-item {
        padding-left: 25px;
    }

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    width: 100%;
}

.filter-toggle {
    display: none;
}


/* ===== PROFILE PAGE ===== */
.profile-header {
    margin-bottom: 20px;
}

.profile-header-actions {
    float: right;
    display: flex;
    gap: 8px;
    font-size: 20px;
}

.profile-descr-short {
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-match {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 4px;
}

.profile-city {
    font-size: 15px;
    font-weight: 600;
}

.profile-descr-long {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left !important;
}

/* Accordion */
.profile-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    overflow: hidden;
}

.profile-accordion-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    background: var(--bg-section);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--teal-dark);
}

    .profile-accordion-btn:hover {
        background: var(--teal-light);
    }

.profile-accordion-body {
    display: none;
    padding: 16px;
    background: #fff;
}

    .profile-accordion-body.open {
        display: block;
    }

/* Info grid */
/*.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.profile-info-item label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
}

.profile-info-item span, .profile-info-item {
    font-size: 14px;
    color: var(--text-dark);
}*/



.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

    .profile-info-item label {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-light);
        margin: 0;
    }

    .profile-info-item span,
    .profile-info-item asp\:Label,
    .profile-info-item .profile-info-value {
        font-size: 13px;
        color: var(--text-dark);
        text-align: right;
    }





/* Box foto */
.profile-photo-box {
    text-align: center;
    margin-bottom: 16px;
}

.profile-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--teal-light);
    margin: 0 auto 12px;
    display: block;
}

.profile-agency-box {
    text-align: center;
    padding: 16px;
    background: var(--bg-section);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* Contatti */
.profile-contact-item {
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

    .profile-contact-item label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--orange);
        display: block;
        margin-bottom: 4px;
    }

.profile-accordion-body {
    display: none;
}

    .profile-accordion-body.open {
        display: block;
    }


.profile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-match {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1.5px solid var(--orange);
    border-radius: 10px;
    font-size: 13px;
    background: var(--orange-light);
    color: var(--orange);
    font-weight: 600;
}

.badge-title {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--white);
    border: 1.5px solid var(--teal-dark);
    border-radius: 10px;
    font-size: 13px;
    color: var(--teal-dark);
    font-weight: 700;
}

.profile-header-actions {
    display: flex;
    gap: 10px;
    font-size: 20px;
    align-items: center;
}

.profile-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 900;
    color: var(--orange);
    margin-bottom: 6px;
    text-align: left !important;
}

.profile-city {
    font-size: 16px !important;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: left !important;
}

.badge-title {
    white-space: normal;
}

.badge-match {
    white-space: normal;
}


/* ===== PROMO CARD ===== */
.promo-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow);
    padding: 14px 10px;
}

.promo-head {
    background: #fff;
    padding: 24px 20px;
    text-align: center;
}

    .promo-head h3 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 900;
        color: var(--text-dark);
        font-size: 28px;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .promo-head p {
        color: var(--text-dark);
        font-size: 19px;
        line-height: 1.4;
        margin-bottom: 0;
    }

.promo-head-note {
    color: var(--text-light) !important;
    font-size: 13px !important;
    margin-top: 10px !important;
}

.promo-body {
    padding: 24px 20px;
    text-align: center;
}

.promo-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--teal);
    margin-bottom: 12px;
}

.promo-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 12px;
}

.promo-validity {
    font-size: 24px !important;
    color: var(--text-dark);
    margin-bottom: 12px;
    color: var(--teal-dark) !important;
}

.promo-note {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 12px;
    padding: 0 8px;
    line-height: 1.2 !important;
}

.promo-fine {
    font-size: 16px !important;
    color: var(--teal-dark) !important;
    line-height: 1.4;
    margin-bottom: 10px;
    padding: 0 4px;
}

.promo-fine-bold {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.2 !important;
    margin-bottom: 10px;
}

.promo-warning {
    font-size: 12px;
    color: var(--red-var01);
    font-style: italic;
    margin-top: 12px;
}

.promo-footer {
    padding: 16px 20px;
    text-align: center;
    border-top: 0px solid #eee;
}

/* ===== PROFILE LANDING PAGE - FORM ICON BOX ===== */
.landing-icon-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

    .landing-icon-row .landing-icon-text {
        flex: 1;
        min-width: 0;
    }

.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 3px solid var(--teal);
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
    padding: 16px 20px;
    gap: 4px;
    position: fixed;
    top: 5rem;
    z-index: 99;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    border-radius: 8px;
    text-transform: uppercase;
    transition: background .15s, color .15s;
}

.mobile-menu a:hover {
    background: var(--teal-light);
    color: var(--teal);
}

.mobile-menu.open {
    display: flex;
}

@media (max-width: 1440px) {
    .page-hero .hero-content {
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
  .steps-grid           { grid-template-columns: repeat(2, 1fr); }
  .steps-grid-x3           { grid-template-columns: repeat(3, 1fr); }
  .news-grid            { grid-template-columns: repeat(2, 1fr); }
  .plans-grid           { flex-wrap: wrap; align-items: stretch; }
  .plans-grid .plan-card { min-width: calc(50% - 7px); min-height: auto; }
  .users-grid          { grid-template-columns: repeat(2, 1fr); }
  .report-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid          { grid-template-columns: 1fr 1fr; }
  .cta-box       { grid-template-columns: 1fr; gap: 24px; }
  .cta-box .btns { flex-direction: row; flex-wrap: wrap; min-width: auto; }
}

@media (max-width: 768px) {
    .about .grid { grid-template-columns: 1fr; }
    .top-bar-left .phone { display: none; }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid-x3 {
        grid-template-columns: repeat(1, 1fr);
        margin-left: -20px;
        margin-right: -20px;
    }
        .steps-grid-x3.step-card h4 {
            font-family: 'Montserrat', sans-serif;
            font-size: 14px !important;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 6px;
            text-align: center;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: calc(14px * 1.4 * 2);
        }
        .steps-grid-x3 .step-card p {
            font-size: 16px;
            color: var(--white);
            line-height: 1.3;
            text-align: center;
            margin-bottom: 0.5rem;
        }

  .news-grid { grid-template-columns: 1fr; }
  .plans-grid { flex-direction: column; align-items: stretch; }
  .plans-grid .plan-card { width: 100%; min-height: auto !important; }
  .users-grid { grid-template-columns: repeat(1, 1fr); padding: 0 10px; }
  .info-banner .container { padding: 18px 12px; }
  .report-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 28px 24px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .top-bar-left .phone { display: none; }
  .top-bar-left .social { gap: 6px; }
   
  #divLogOut { max-width: 120px; overflow: hidden; }
  #divLogOut .topbar-hightlight { display: none; }
 .info-banner .container { padding: 18px 12px; }
 .users-grid { grid-template-columns: repeat(1, 1fr); padding: 0 10px; }
}

/* Mobile: sempre 1 colonna */
@media (max-width: 768px) {
    .section-grid.col-2,
    .section-grid.col-3,
    .section-grid.col-1-centered,
    .section-grid.col-2-centered,
    .section-grid.col-3-centered {
        grid-template-columns: 1fr;
    }

    .section-grid.col-1-3,
    .section-grid.col-3-1,
    .section-grid.col-1-4,
    .section-grid.col-4-1 {
        grid-template-columns: 1fr;
        margin-left: -15px;
        margin-right: -15px;
    }

    .section-box { padding: 24px 20px; }

    .section-box.px-sm { padding-left: 20px; padding-right: 20px; }
    .section-box.px-md { padding-left: 20px; padding-right: 20px; }
    .section-box.px-lg { padding-left: 20px; padding-right: 20px; }
    .section-box.px-xl { padding-left: 20px; padding-right: 20px; }
    .section-box.px-xxl { padding-left: 20px; padding-right: 20px; }

    .btn-row { flex-direction: column; align-items: center; }
    .btn.btn-w-xs { min-width: 300px; }
    .btn.btn-w-sm { min-width: 300px; }
    .btn.btn-w-md { min-width: 300px; }
    .btn.btn-w-lg { min-width: 300px; }
    .btn.btn-w-xl { min-width: 300px; }
    .btn.btn-w-full { width: 300px; }

    .page-hero {
        height: 160px;
    }

        .page-hero h1 {
            font-size: 28px;
        }

        .page-hero .hero-content {
            padding: 0 20px;
        }

    .img-row {
        flex-direction: column;
    }

}

/* Responsive */
@media (max-width: 1024px) {
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: repeat(1, 1fr);
        padding: 0 10px;
    }

    .filter-toggle {
        display: flex;
        width: 100%;
        margin-bottom: 12px;
    }

    .filter-extra {
        display: none;
    }

        .filter-extra.open {
            display: block;
        }

    .btn-filter {
        display: inline-flex;
    }

    /* Profile page */
    .profile-header-top {
        flex-direction: column;
        gap: 8px;
    }

    .profile-badges {
        flex-direction: column;
        gap: 4px;
    }

    .badge-title {
        white-space: normal;
    }

    .badge-match {
        white-space: normal;
    }

    .profile-header-actions {
        align-self: flex-start;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .section-grid.col-3-1,
    .section-grid.col-1-3 {
        grid-template-columns: 1fr;
    }

    .section-box {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .landing-icon-row .landing-icon-text {
        max-width: 300px;
    }

    .section-box .form-control.w-75 {
        width: 100% !important;
    }

    .section-box .form-control.w-50 {
        width: 100% !important;
    }

    .section-box .form-control.w-25 {
        width: 100% !important;
    }

    .section-box .form-control.w-75,
    .section-box .form-control.w-50,
    .section-box .form-control.w-25 {
        display: block;
    }


    /* Riduzione font su mobile */
    .section-box h2 {
        font-size: 18px !important;
    }

    .section-box h3 {
        font-size: 16px !important;
    }

    .section-box h4 {
        font-size: 15px !important;
    }

    .section-box p {
        font-size: 14px !important;
    }

    /* Titoli globali */
    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    h4 {
        font-size: 16px !important;
    }

    .btn.btn-w-xs,
    .btn.btn-w-sm,
    .btn.btn-w-md,
    .btn.btn-w-lg,
    .btn.btn-w-xl,
    .btn.btn-w-full {
        min-width: 280px;
    }

    .navbar .container.inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .navbar img {
        max-width: 250px;
        height: auto;
    }

 .mobile-menu {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
 }

    .news-card h4 {
        font-size: 18px !important;
        min-height: calc(18px * 1.4 * 2) !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 8px !important;
    }

    .news-card p {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .news-card .body {
        padding: 16px 0 0;
    }

    .news-card .news-read-more {
        padding-left: 0 !important;
    }

    .news-card .news-footer {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .news-card {
        padding: 0 16px;
    }

        .news-card .img {
            margin: 0 -16px;
        }
    .news .cta {
        text-align: left !important;
    }

}

