/*
Theme Name:         kalihome
Author:             AlfaPi - Serena
Author URI:         https://www.alfapi.com
Description:        Un tema WordPress sviluppato su misura per Kalihome.
Version:            1.0.0
Text Domain:        kalihome
*/

:root {
    --oliva: #5B6440;
    --lavanda-scura: #6D5C7E;
    --oliva-scura: #3F4630;
    --oliva-chiara: #B5BB97;
    /*--petalo-chiaro: #FBF5F6;
    --petalo: #F4E3EA;*/
    --lavanda: #8a4b7a;

   

    --pistillo: #F2BE4B;
    --lino: #F7F3EC;
    --sabbia: #ECE5D8;

    --bg: #FBF5F6;
    --bg2: #F4E3EA; --bg3: #e3b9cf;

    --ph: #EAD5DE;
    --hdr: #FBF5F6F0;
    --tint: #9B5C8A14;
    --ctaInk: #3A2A1E;
    --cta: radial-gradient(130% 160% at 50% 30%, #FFD976 0%, #F6B941 48%, #EE9338 78%, #D8643A 100%);
    --ctaH: radial-gradient(130% 160% at 50% 30%, #FFE08A 0%, #F8C24E 45%, #F09A3C 76%, #D45A36 100%);
    --ctaShadow: inset 0px 0px 0px 1.5px #C9583A, inset 0px 1px 0px #FFF1C2, 0px 6px 18px -4px #B8466A55, 0px 2px 4px #8E3A4A26;



    --font-1: "Figtree", sans-serif;



    --text: #39362F;
    --font-awesome: 'Font Awesome 7 Free';
    --radius-sm: 14px;
    --radius: 16px;
    --radius-lg: 24px;
 
}

.bg {
    background-color: var(--bg);
}

.bg-2 {
    background-color: var(--bg2);
}

.bg-hero {
    background: linear-gradient(rgb(244, 227, 234) 0%, rgb(248, 236, 240) 70%, rgb(251, 245, 246) 100%);
    padding-top: 120px !important;
}





/* TIPOGRAFIA */
body {
    font-family: var(--font-1);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text);
    padding-top: 120px;
    background-color: var(--bg);
}


/* Previene lo scroll orizzontale causato dai margini negativi delle .row */
html,
body,
.site-main {
    overflow-x: hidden;
    max-width: 100%;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--text);
    
}

h1,
h2,
h3 {
    font-weight: 600;
    
}

/* 1. STILI BASE COMUNI A TUTTI GLI H1 */
h1 {
    margin: 0;
 
    font-weight: 600;
 
    letter-spacing: -0.045em;
}

/* 2. CLASSI PER DIMENSIONI SPECIFICHE */

/* H1 BOX HOME */
h1.home {
    font-size: clamp(2rem, 4.2vw, 4.375rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-wrap: balance;
}


/* H1 PAGE / NEGOZIO / BLOG */
h1.page,
h1.prodotto,
h1.blog {
    font-size: clamp(2.875rem, 6vw, 5.25rem);
    line-height: 0.98;
}

/* H1 TRATTAMENTO / PERCORSO */
h1.trattamento,
h1.percorso {
    font-size: clamp(2.625rem, 5vw, 4.125rem);
    line-height: 1.04;
}

/* H1 SINGOLO POST */
h1.approfondimento {
    font-size: clamp(2.5rem, 4.8vw, 3.875rem);
    line-height: 1.05;
}



h2 {
    font-size: clamp(2.125rem, 3.6vw, 3.125rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

h2.wp-block-heading {
    font-size: clamp(2.25rem, 3.6vw, 3.5rem);

        font-size: clamp(1.75rem, 3vw, 2.375rem);
}


 

.header-section h2 {
   
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
    line-height: 1.02;
    
    
}
 
/* SOSTITUISCI QUESTA VECCHIA REGOLA:
.container.page-contatti h2 {
    font-weight: 500;
    line-height: 1.3;
    font-size: 1.375rem;
}
*/

/* CON QUESTA (applica lo stile ridotto solo alle colonne info dove siamo / orari): */
.container.page-contatti .contact-info-col h2,
.container.page-contatti .contact-details-section h2 {
    font-weight: 500;
    line-height: 1.3;
    font-size: 1.375rem;
}

   


/* Titolo Prodotto */
.box-acf-block .card-prodotto h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    
    line-height: 1.1;
 
}

 
.box-acf-block .card-prodotto h3{
    font-size: 1.125rem;
    
    line-height: 1.1;
 
}


h3 {
    font-size: clamp(1.1875rem, 2vw, 1.75rem);
}

/* Se un h2 segue immediatamente un p */
p+h2,
p+h3,
 l {
    margin-block: 60px 30px;
}
 

  ul+h2,
ol+h2,
  ul+h3,
ol+h3 {
    margin-block: 60px  20px;
}


h2+ul,
h2+ol,
h3+ul,
h3+ol {
    margin-block: 0  60px;
}

/* Selettore per un H2 seguito immediatamente da un paragrafo */
.wp-block-heading + .wp-block-paragraph {
    margin-top: 20px; /* Spazio tra il titolo e il testo sottostante */
}

 
 
.wp-block-paragraph, 
.wp-block-heading {
    max-width: 1320px;
    margin-inline: auto ;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
} 

.wp-block-paragraph a {
    color: var(--lavanda);
    font-weight: 600;
}

p a {
    color: var(--lavanda);
    font-weight: 400;
        text-decoration: underline;
    text-underline-offset: 3px;
    position: relative;
}


p a:hover {
    color: var(--lavanda-scura);
  
}


p a::after {
    content: "→";
    position: absolute;    margin-left: 3px;
}


.container.blog .wp-block-paragraph a {
     
    font-weight:400;
}

/* UTILITÀ ACCESSISIBILITÀ WCAG (Per Screen Reader e Focus Tastiera) */
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* LAYOUT GENERALE */
/* --- FORMATTAZIONE GLOBALE LISTE UNORDERED (SPUNTA ✓) */
/*#main-content ul {
    list-style: none;
    margin-block: 1rem;
    padding-left: 0;
}*/


#main-content ol li,
#main-content ul li {
    /*position: relative;
    padding-left: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    border-left: 2px solid var(--polvere);*/
     margin-bottom: 0.75rem;
}

#main-content ul li a,
#main-content ol li a{
       color:var(--lavanda);
    text-decoration: underline;
    text-underline-offset: 3px;
}



/* ==========================================================================
   BLOCCO IMMAGINE GUTENBERG
   ========================================================================== */
#main-content .wp-block-image {
    margin-block: 2rem;
}

#main-content .wp-block-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    height: auto;
    display: block;
}

#main-content .wp-block-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.75rem;
    line-height: 1.4;
}




/* ==========================================================================
   BLOCCO GALLERIA MEDIA FOLDER GUTENBERG
   ========================================================================== */
 

   .wpmf-gallerys  {
    max-width: 1320px;
    margin: 40px auto !important;
   }

   .wpmf-gallery-item  {
    border-radius: 16px;
    background:    #6B356012 ;
    padding: 12px;
   }
      .wpmf-gallery-item img {
    border-radius: 16px;
 
   }
/* ==========================================================================
   BLOCCO CITAZIONE EVIDENZIATA GUTENBERG
   ========================================================================== */
.wp-block-pullquote {
margin: 0 auto !important;
    
    max-width: 820px;
 
    font-weight: 400;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
 
}

.wp-block-pullquote cite  {
      font-size: 1rem;
        letter-spacing: 0.02rem;
    font-style: normal;
}


/* ==========================================================================
   1.   CTA
   ========================================================================== */
.cta {

    border: 1.5px solid var(--text);
    color: var(--text);
    font-weight: 500;
    padding: 16px 28px;
    border-radius: 999px;
    
    white-space: nowrap;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.cta:hover {
    background-color: var(--text);
    color: #fff;
}

.cta.zafferano {
    background: var(--cta);

    box-shadow: var(--ctaShadow);
}

.cta.zafferano:hover {
    background: var(--ctaH);
    color: var(--text);
    box-shadow: var(--ctaShadow);
}

.cta.text {
    background: transparent;
    border-radius: unset;
    color: var(--lavanda);
   
    font-weight: 500  ;
    font-size: 1rem;
    line-height: 1;
    border: unset;
    border-bottom: 1.5px solid var(--lavanda);
       padding: 0 0 6px 0;
     
    }

/* ==========================================================================
   1. MAIN BAR (DESKTOP FISSA IN ALTO)
   ========================================================================== */
.main-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 1030;
    background: rgba(251, 245, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(155, 92, 138, 0.12);
    box-shadow: rgba(155, 92, 138, 0.15) 0px 8px 24px -8px;
}

/* Compensazione padding per il body */
body {
    padding-top: 72px !important;
}

/* Gestione Admin Bar WP se sei loggato */
.admin-bar .main-bar {
    top: 32px !important;
}

@media (max-width: 782px) {
    .admin-bar .main-bar {
        top: 46px !important;
    }
}

/* ==========================================================================
   2. STILI NAVIGAZIONE DESKTOP
   ========================================================================== */
.nav-menu-list {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu-list>li {
    position: relative !important;
    list-style: none;
}

.nav-menu-list>li>a {
    position: relative;
    font-size: 1rem;

    color: var(--text);
    padding: 8px 0;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.nav-menu-list>li>a:hover {
    color: var(--lavanda);
}

/* Freccetta indicatore sottomenu */
.nav-menu-list>li.menu-item-has-children>a::after {
    content: "\f107";
    font-family: var(--font-awesome);
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: 6px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-menu-list>li.menu-item-has-children:hover>a::after {
    opacity: 1;
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   PALLINO SOTTO LA PAGINA ATTIVA O CORRENTE (CURRENT MENU ITEM / ANCESTOR)
   -------------------------------------------------------------------------- */
.nav-menu-list>li.current-menu-item>a,
.nav-menu-list>li.current-menu-ancestor>a {
    color: var(--lavanda);

}

/* Disegna il pallino centrato sotto il testo */
.nav-menu-list>li.current-menu-item>a::before,
.nav-menu-list>li.current-menu-ancestor>a::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--lavanda);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   PULSANTE "CONTATTACI" (ULTIMA VOCE DEL MENU DESKTOP)
   -------------------------------------------------------------------------- */
.nav-menu-list>li:last-child {
    margin-left: 10px;
    /* Spaziatura extra prima del bottone */
}

.nav-menu-list>li:last-child>a {
    background: var(--cta);
    color: var(--ctaInk);
    box-shadow: var(--ctaShadow);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 26px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

/* Disabilita il pallino sotto l'ultimo elemento se attivo */
.nav-menu-list>li:last-child.current-menu-item>a::before,
.nav-menu-list>li:last-child.current-menu-ancestor>a::before {
    display: none !important;
}

.nav-menu-list>li:last-child>a:hover {
    background: var(--ctaH) !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   3. DROPDOWN SUB-MENU (Stile allegato)
   ========================================================================== */
.nav-menu-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    margin-top: 10px;
    list-style: none;
    z-index: 9999;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    padding: 12px;
    background-color: var(--bg);
}

/* Ponte invisibile per non far chiudere il menu al passaggio del mouse */
.nav-menu-list .sub-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-menu-list>li:hover>.sub-menu {
    display: block !important;
}

.nav-menu-list .sub-menu li {
    margin-bottom: 4px;
}

.nav-menu-list .sub-menu li:last-child {
    margin-bottom: 0;
    border-top: 1px solid var(--sabbia);
    padding-top: 8px;
    margin-top: 8px;
}

.nav-menu-list .sub-menu li a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.2s ease;
}

.nav-menu-list .sub-menu li a:hover {
    background-color: var(--bg);
    color: var(--lavanda);
}

/* Stile dell'ultima voce con la freccia (es. Altri trattamenti ->) */
.nav-menu-list .sub-menu li:last-child a {
    color: var(--lavanda);

}


/* ==========================================================================
   MOBILE OVERLAY & MENU LIST
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg);
    z-index: 2000000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.btn-close-mobile {
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* LISTA PRINCIPALE MOBILE */
.mobile-menu-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list>li {
    width: 100%;
    margin-bottom: 12px;
}

/* Voci di primo livello */
.mobile-menu-list>li>a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid rgba(155, 92, 138, 0.15);
}

/* SOTTOMENU (Badge / Pillole arrotondate) */
.mobile-menu-list .sub-menu {
    list-style: none;
    padding: 14px 0 6px 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-menu-list .sub-menu li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.mobile-menu-list .sub-menu li a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--lavanda-scura);
    background-color: #fff;
    border: 1px solid var(--bg2);
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover e Stato Attivo delle pillole */
.mobile-menu-list .sub-menu li a:hover,
.mobile-menu-list .sub-menu li.current-menu-item a {
    background-color: var(--lavanda);
    color: #fff;
    border-color: var(--lavanda);
}

/* ULTIMA VOCE DEL MENU (Pulsante CTA principale es. Contattaci) */
.mobile-menu-list>li:last-child {
    margin-top: 20px;
}

.mobile-menu-list>li:last-child>a {
    border-bottom: none;
    background-color: var(--pistillo);
    color: var(--text);
    text-align: center;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(242, 190, 75, 0.3);
}

.mobile-menu-list>li:last-child>a:hover {
    background-color: var(--ctaH);
}


/* ==========================================================================
   HEADER PAGE (SEZIONE HEADER DELLE PAGINE)
   ========================================================================== */
.header-page-section {
    background-color: var(--bg2);
    width: 100%;
}

 

 

.header-page-img-container img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius, 16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}



/* ==========================================================================
   HEADER PAGE: FILTRI CATEGORIE (PILLOLE)
   ========================================================================== */

.btn-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lavanda);
    background-color: transparent;
    border: 1px solid var(--lavanda);
    border-radius: 999px;
    
    transition: all 0.25s ease;
}

.btn-category-pill:hover {
    color: var(--lavanda);
    background-color: rgba(138, 75, 122, 0.08);
    text-decoration: none;
}

/* Stato Attivo (es. Tutti o Categoria Selezionata) */
.btn-category-pill.active {
    color: var(--text);
    background-color: var(--pistillo);
    border-color:var(--pistillo);
}



/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumb-list {
    font-size: 0.95rem;
}

.breadcrumb-list li {
    padding-left: initial !important;
    margin-bottom: initial !important;
}

.breadcrumb-list li::before {
    content: none !important;
}

.breadcrumb-item a {
    color: var(--lavanda);
    text-decoration: underline;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

 

/* ==========================================================================
   ACF BLOCK - GENERALE
   ========================================================================== */
.box-acf-block .card {
    border-radius: var(--radius);
}
 
.occhiello {
    display: inline-flex;
    align-items: center;

    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lavanda-scura);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}


.occhiello-small {
    display: inline-flex;
    align-items: center;

    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lavanda-scura);
 
}

/* ==========================================================================
   BLOCK: BOX PUNTI
   ========================================================================== 
.box-punti-block .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(180deg, #4285f4 0%, #1a365d 100%);
}

.box-punti-block h3 {
    font-size: 1.4375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--blu-notte);
}

.box-punti-block p {
    font-size: 0.875rem;
    color: var(--grigio);
    margin-block: 5px 0;
    line-height: 1.45;
}*/


/* ==========================================================================
   BLOCK: BOX IMMAGINE E TESTO & DECORAZIONE FIORE
   ========================================================================== */

 


/* Contenitore esterno (permette il trabocco del fiore all'esterno) */
.box-img-decor-container {
    position: relative !important;
    overflow: visible !important;
    width: 100%;
    min-height: 320px;
}

/* Immagine di Sfondo con bordi arrotondati */
.box-bg-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-lg, 24px);
    box-shadow: rgba(10, 40, 79, 0.18) 0px 24px 55px;
    overflow: hidden;
    /* Mantiene l'immagine ritagliata nei bordi arrotondati */
    z-index: 2 !important;
    /* L'immagine sta sopra con z-index 2 */
}




/* DECORAZIONE FIORE (Attiva SOLO in Home Page) */
.box-img-decor-container.is-home::after {
    content: "";
    position: absolute;
    background-image: url(images/fiore.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center center;
    width: clamp(150px, 19vw, 270px);
    height: clamp(150px, 19vw, 270px);
    right: calc(-30px + (-1 * clamp(20px, 7vw, 120px)));
    top: calc(-1 * clamp(30px, 5vw, 70px));
    transform: rotate(72deg);
}


/* Adattamento Responsive per Smartphone e Tablet */
@media (max-width: 991px) {
    .box-img-decor-container.is-home::after {
        width: 160px;
        height: 160px;
        top: -35px;
        right: -25px;
    }
}

/* ==========================================================================
   BOX IMMAGINE ADATTIVA IN BACKGROUND
   ========================================================================== */
.box-bg-image-wrapper {
    width: 100%;
    min-height: 280px;
    /* Altezza minima su mobile */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-lg, 24px);
    box-shadow: rgba(10, 40, 79, 0.18) 0px 24px 55px;
}

@media (min-width: 992px) {
    .box-bg-image-wrapper {
        height: 100%;
        min-height: 0;
    }
}




/* ==========================================================================
   BLOCK: BOX CARD
   ========================================================================== */
.box-card {
    
    
    border-radius: var(--radius );
    overflow: hidden;
    gap: 14px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.25s ease;
}

.box-card:hover {
transform: translateY(-4px);
    box-shadow: none !important;
    border-color: transparent !important;
} 

.box-card-body {
    padding: 24px;
}

.box-card-body h2,
.box-card-body h3 {
    font-weight: 500;
    font-size: 1.375rem;
    line-height:  1.3  ;
   
}

.box-card-body h2 a,
.box-card-body h3 a {
    color: inherit;
}

.box-card-body p {
    font-size: 1rem;
    line-height: 1.55;
    
}


.box-card  .box-card-img-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius );
    overflow: hidden;
}

.box-card .box-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* Mantiene le proporzioni e riempie il contenitore */
    object-position: center;      /* Centra il soggetto dell'immagine */
    display: block;
    transition: transform 0.35s ease;
}

.box-card  .box-card-img {
    transform: scale(1.03);
}

/*
.box-img-wrapper img {
    border-radius: var(--radius);
}*/


/* ==========================================================================
   BLOCK: BOX STAFF
   ========================================================================== */
/* ==========================================================================
   PROPORZIONI CARD STAFF (MOCKUP ACCURATO)
   ========================================================================== */

/* 1. Ratio dell'immagine: leggermente più alta che larga (es. 5:4 o 4:3.5) */
.box-staff-block .box-card-img-wrapper {
    
    aspect-ratio: 5 / 4; /* Proporzione bilanciata come da foto */
     border-bottom-left-radius: unset;
       border-bottom-right-radius: unset;
}

.box-staff-block h3 {
    
    font-size: 1.875rem;
}


/* 2. Riempimento totale della foto senza bande laterali o deformazioni */
.box-staff-block .box-card-img {
    
    object-position: top center;/* Allinea la testa in alto per non tagliarla */
}

/* 3. Normalizzazione del padding interno del testo per bilanciare la card */
.box-staff-block .box-card-body {
    padding: 28px 28px 32px 28px;
}





/* ==========================================================================
   BLOCK: BOX PERCORSI
   ========================================================================== */
 

 .box-card.card-percorso {
    
    background: linear-gradient(rgb(244, 227, 234) 0%, rgb(244, 227, 234) 45%, rgba(244, 227, 234, 0) 100%);
 
 }

  .box-card.card-percorso .box-card-img-wrapper {
    
   border-bottom-left-radius: unset;
      border-bottom-right-radius: unset;
 }



/* Pillola Badge bianca arrotondata */
 .box-card.card-percorso .badge {
    color: var(--text);
    
    border-radius: 999px;
   
    padding: 7px 12px;
    white-space: nowrap;
    background: var(--bg);
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.25;
}

 .box-card.card-percorso .box-card-body h2,  .box-card.card-percorso .box-card-body h3 {
    font-weight: 600;
    font-size: 1.75rem;
     
    line-height: 1.15;
     
}




/* Link CTA in basso */
.percorso-cta {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lavanda, #8a4b7a);
    transition: transform 0.2s ease;
}

.box-card.card-percorso:hover .percorso-cta {
    transform: translateX(4px); /* Anima leggermente la freccia all'hover */
}


/* ==========================================================================
   PAGINA: PERCORSI ed EVENTI
   ========================================================================== */
 

  .box-percorso-info  {
        
    border-radius: var(--radius);
    padding: 32px 36px;
    
 
  }

.box-percorso-info .border-x span:first-of-type {
      border-top: 1px solid rgba(107, 53, 96, 0.15);
    padding-top: 1rem; /* Aggiungi un piccolo padding per staccare il testo dalla linea superiore */
    font-size: 1.125rem;
  font-weight: 500;
  
   
}

/* Seleziona il secondo span (il valore) per dargli font-weight 500 */
.box-percorso-info .border-x span:last-of-type {
      font-size: 0.925rem;
       font-weight:400;
}



/* ==========================================================================
   BLOCK: BOX TRATTAMENTI
   ========================================================================== */
 
 

/* ==========================================================================
   BLOCK: CARD PRODOTTO (LAYOUT ORIZZONTALE GALLERIA)
   ========================================================================== */

.box-card.card-prodotto:hover {
    transform:unset;
    box-shadow: none !important;
    border-color: transparent !important;
}



/* Numero progressivo (01, 02) */
.box-card.card-prodotto .numero {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lavanda );
    opacity: 0.8;
}



/* Descrizione / Excerpt */
.box-card.card-prodotto p {
    font-size: 1.125rem;
    line-height: 1.5;
 
    opacity: 0.85;
}

 

/* Contenitore e Ratio delle 3 foto della galleria */
.card-prodotto-img-wrapper {
    width: 100%;
    aspect-ratio:4 / 5;  
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
}

.card-prodotto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}




/* Rettangolo / Quadrato 1:1 applicato esclusivamente al layout semplice */
.card-prodotto-simple-img-wrapper {
    aspect-ratio: 1 / 1 !important;
    border-radius: var(--radius-lg, 24px);
    width: 100%;
}

.card-prodotto-simple-img-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   BLOCK: BOX CITAZIONE
   ========================================================================== */
/* border left */
.box-citazione.border-left {
    font-size: 1.375rem;
    
    max-width: 840px;
    padding-left: 20px;
}

.box-citazione.border-left::before {
    content: "";
    border-left: 2px solid var(--bg3);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}



.box-citazione.border-left p {
    padding-left: 20px;
}

 

 

 /* text */
 
.box-citazione.text   {
    max-width: 840px;
    margin-block: 40px 5px;
    
    margin-top: 16px;
    background: var(--bg2 );
    border-radius: var(--radius);
    padding: 24px 28px;
   
    gap: 8px;
    
}

 

.box-citazione.text p {
        font-size: 1.075rem;
    line-height: 1.55;
}
 /* ==========================================================================
   BLOCK: BOX CITAZIONE BG-IMAGE (FIX FINALE MOCKUP)
   ========================================================================== */

/* Container del box: padding verticale abbondante e altezza minima proporzionata */
.box-citazione-bg-image {
    border-radius: var(--radius-lg, 24px) !important;
       min-height: 580px;
    padding: clamp(72px, 10vw, 136px) clamp(24px, 5vw, 72px);
}

/* Gestione dell'immagine con sfumatura radiale/lineare integrata */
.box-citazione-bg-overlay {
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 1;
    
    mask-image:  linear-gradient(0deg, rgba(247, 236, 240, 0.85), rgba(247, 236, 240, 0.85));
    -webkit-mask-image:  linear-gradient(0deg, rgba(247, 236, 240, 0.85), rgba(247, 236, 240, 0.85));

    
    opacity: 0.15; 


      
}

/* Contenitore e colore del testo */
.box-citazione-bg-image .contenuto-citazione {
    z-index: 5 !important; /* Mantiene il testo in primissimo piano */
 max-width: 820px;
    margin-inline: auto;
}

.box-citazione-bg-image .contenuto-citazione   {
    
 

        margin: 0;
     
     
    font-size: clamp(1.875rem, 3.6vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
    
    text-wrap: balance;
    
}


@media (max-width: 600px) {
    .box-citazione {
        margin-block: 36px 36px;
    }
}

/* ==========================================================================
   BLOCK: BOX CTA    (KALIHOME)
   ========================================================================== */

.box-acf-block.cta-block.cta-layout-scuro .container {
    background: linear-gradient(120deg, rgb(10, 40, 79), rgb(18, 58, 99));
    border-radius: var(--radius-lg);
    padding: 32px 64px;
    color: var(--polvere);
}

.box-acf-block.cta-block.cta-layout-scuro .container h2 {
    color: #fff;
}

.box-acf-block.cta-block.cta-layout-sfumato {
    background: linear-gradient(135deg, rgb(215, 238, 252), rgb(238, 245, 251));
}

.box-acf-block.cta-block.cta-layout-sfumato ol {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
    margin: 0;
}

/* Struttura di ciascun elemento */
.box-acf-block.cta-block.cta-layout-sfumato ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 52px;
    margin-bottom: 24px;
    color: var(--blu-notte);
    font-size: 0.9rem;
}

/* Cerchio blu con il numero */
.box-acf-block.cta-block.cta-layout-sfumato ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background-color: var(--blu);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-acf-block.cta-block.cta-layout-sfumato ol li strong {
    font-size: 1.025rem;
    color: var(--blu-notte);
}
 


/* ==========================================================================
   BLOCK: BOX MODULO CONTATTO
   ========================================================================== */



   .box-contatti-form-block {
    margin-block: 120px 60px ;
   }


   

   .box-contatti-form-block .cta-wa {
       
    gap: 10px;
    border: 1.5px solid var(--text);
    color: var(--text);
    font-weight: 500  ;
        font-size: 1.075rem;
       
    padding: 14px 24px 14px 14px;
    border-radius: 999px;
     
   }
    .box-contatti-form-block .cta-wa span:first-of-type{
       
  width: 28px;
    height: 28px;
    border-radius: 999px;
    
    background: var(--cta);
    color: var(--text);
    box-shadow: var(--ctaShadow);
    transition: background 0.25s, transform 0.25s;
     
      font-weight:600  ;
          font-size: .75rem;
          line-height: 1;
   
     
   }

/* CF7 */

.modulo {
    background: #fff;
  background: rgb(255, 255, 255);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

 

 

/* Form Contact Form 7 integration */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
     
    
    color: var(--text);
    width: 100%;
    box-sizing: border-box;
    
    font-size: 1rem;


        font-weight: 400  ;
        line-height: 1;
    padding: 14px 16px;
    border: 1px solid rgba(107, 53, 96, 0.2);
    border-radius: 14px;
    background: var(--bg );
   
}


textarea {
     
    
   height: 120px;
   
}


input:focus,
select:focus,
textarea:focus {
   
    border-color: var(--text);
}

label {
font-size: 0.875rem;
    font-weight: 500;
    /* color: #5b6573; */
    margin-bottom: 5px;
}

label a, label a:hover{
 color: var(--text);
 text-decoration: underline;
}


input[type="submit"] {
  background: var(--cta);
    color: var(--text);
    border: none;
    
    
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
  
   
    
    box-shadow: var(--ctaShadow);
    transition: background 0.25s, transform 0.25s;
   
    text-align: center;
    padding: 15px 28px;
    border-radius: 999px;
}

input[type="submit"]:hover {
    background: var(--ctaH);
}



/* ==========================================================================
   BLOCK: TIMELINE PERCORSI (RIGHT LIST)
   ========================================================================== */

.box-timeline-block h2  {
         
    line-height: 1;  }

.box-timeline-block h2:last-of-type {
        color: var(--lavanda-scura);
    }

   .percorso-timeline-item h3 a {
    font-size: 1.25rem;
    font-weight: 500;
   }

   
   .percorso-timeline-item .percorso-timeline-info span {
    font-size: .935rem;
    font-weight: 400;
line-height: 1.4;;
        
    color:var(--lavanda-scura);
   }

.percorsi-timeline-list .percorso-timeline-item:first-child {
    border-top: 1px solid rgba(107, 53, 96, 0.12);
}

.percorsi-timeline-list .percorso-timeline-item {
    border-bottom-color: rgba(107, 53, 96, 0.12) !important;
}

 
 

/* Badge Arrotondato */
   .percorso-timeline-item .badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(107, 53, 96, 0.18);
    border-radius: 999px;
 
    font-size: 0.8125rem;
 
    white-space: nowrap;
}

 



/* ==========================================================================
   PAGINAZIONE
   ========================================================================== */
.pagination-wrapper ul.page-numbers {
    display: flex;
    align-items: center;
    gap: 1rem;
 background-color: transparent;
    border: none;border-radius: unset;
}

.pagination-wrapper ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
}

.pagination-wrapper ul.page-numbers li::before {
    content: none !important;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 12px;
    border-radius: 50%;
    background-color: var(--bg2);
    border: 1px solid var(--lavanda);
    color: var(--lavanda-scura);
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination-wrapper a.page-numbers:hover {
    background-color: var(--bg-2);
    border-color: var(--lavanda);
    color: var(--lavanda-scura);
}

.pagination-wrapper .page-numbers.current {
     background-color: var(--lavanda);
    border-color: var(--lavanda-scura);
    color: #fff;
    font-weight: 600;
}

.pagination-wrapper .prev.page-numbers,
.pagination-wrapper .next.page-numbers {
    padding: 0 16px;
    background: none;
    border: none;
}


/* ==========================================================================
   PAGE: DETTAGLIO STAFF  
   ========================================================================== */
/*.page-staff figure img {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    border-radius: 18px;
    background: rgb(238, 242, 246);
    box-shadow: rgba(10, 40, 79, 0.12) 0px 18px 45px;
    height: 480px;
}

 

.page-staff h2 {
    font-size: 1.25rem;
}
*/
/* ==========================================================================
   PAGE: DETTAGLIO SERVIZIO  
   ========================================================================== */
 

 
  

 
 

 

/* ==========================================================================
   PAGE: DETTAGLIO ARTICOLO  
   ========================================================================== */

 


.container.blog .sommario{
   font-size: 1.375rem;
}

 

 /* ==========================================================================
   PAGE: CONTATTI (PILLOLE & MAPPA)
   ========================================================================== */

.container.page-contatti a{
     color: var(--text);
}
.container.page-contatti a.contact-map-link{
     color: var(--lavanda);
     font-weight: 500;
     font-size: 1rem;
}


/* Card Pillola */
.contact-pill-card {
    transition: transform 0.2s ease, background-color 0.2s ease;
        border-radius: 999px;    padding: 12px 22px 12px 12px;
           background-color: var(--bg2 );
}

.contact-pill-card:hover {
    transform: translateY(-2px);
    background-color: var(--bg2 );
}

/* Badge circolare generico */
.contact-pill-card span.tipo-contatto {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.815rem;
    line-height: 1;
}

/* Colori differenziati dei cerchietti */
.contact-pill-card span.tipo-contatto.wa {
    background-color:var(--lavanda) /* Plum / Malva calda */
}

.contact-pill-card span.tipo-contatto.tel {
     background-color: var(--lavanda-scura); /* Viola Melanzana / Prugna scuro */
    
}

.contact-pill-card span.tipo-contatto.email {
   background-color: #6b3560;
}



.contact-pill-text span:first-of-type  {
    font-size:  .815rem;
       line-height: 1;
   
 }

 
.contact-pill-text span:last-of-type  {
    font-size:  1rem;
      
           font-weight: 600;    
    
 }

 

/* Box Mappa */
.contact-map-box {
    min-height: 220px;
}

.contact-map-box iframe {
    border-radius: var(--radius-lg, 24px);
    opacity: 0.9;
}
 


/* ==========================================================================
   FOOTER 
   ========================================================================== */
footer {
    font-size: 0.95rem;
    background: linear-gradient(rgb(244, 227, 234) 0%, rgb(238, 214, 224) 100%);
    border-top: 1px solid rgba(155, 92, 138, 0.133);
}

footer .footer-bar-nav ul li:first-of-type {
    font-weight: 600;
}

footer a {
    color: var(--text);
}

footer a:hover {
    text-decoration: underline;
    color: var(--text);
}

footer .row {
    border-bottom: 1px solid rgba(107, 53, 96, 0.12);
}


/* Tasto WhatsApp Fluttuante in basso a destra */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: var(--cta);
    box-shadow: var(--ctaShadow);
    color: var(--ctaInk);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 99999;
}



/* 404 */
.error404 h1 {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--blu-notte);
}

.error404 h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--blu-notte);
}

.thankyou {
    display: inline-flex;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: var(--lavanda);
    color: #fff;
    font-size: 1.875rem;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   SE LOGGATO
   ========================================================================== */

.admin-bar .top-bar {
    top: 32px;
}

.admin-bar .top-bar.scrolled {
    transform: translateY(-80px);
}

.admin-bar .main-bar {
    top: 80px;
}

.admin-bar .main-bar.scrolled {
    top: 32px;
}

.admin-bar body {
    padding-top: 152px;
}

@media (max-width: 991px) {
    .admin-bar .main-bar {
        top: 32px !important;
    }

    .admin-bar body {
        padding-top: 102px !important;
    }
}

@media (max-width: 782px) {
    .admin-bar .top-bar {
        top: 46px;
    }

    .admin-bar .top-bar.scrolled {
        transform: translateY(-94px);
    }

    .admin-bar .main-bar {
        top: 46px !important;
    }

    .admin-bar .main-bar.scrolled {
        top: 46px !important;
    }

    .admin-bar body {
        padding-top: 116px !important;
    }
}