/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

body {
    overflow-x: hidden !important;
    width: 100% !important;
}

.lista-cpt,
.lista-cpt-colonna {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lista-cpt a {
    text-decoration: none;
    font-weight: 500;
}

.lista-cpt a:hover {
    text-decoration: underline;
    color: white !important;
}

.info-azienda {
    font-size: 15px;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-weight: 600;
}

#breadcrumbs a:hover {
    color: #fff !important;
}


.breadcrumb_last{
    color: white !important;
}

.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.vantaggio-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 768px) {
    .vantaggio-card {
        padding-top: 15px;
        padding-bottom: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }    
}

.vantaggio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.vantaggio-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

/* 🔥 ICONA circolare con sfondo */
.vantaggio-header .dashicons {
    font-size: 19px;
    background: #E3B077;
    color: #fff;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vantaggio-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.vantaggio-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

body > div.elementor.elementor-339.elementor-location-single.post-236.page.type-page.status-publish.hentry > div.elementor-element.elementor-element-00be52b.e-flex.e-con-boxed.e-con.e-parent.e-lazyloaded > div > div.elementor-element.elementor-element-6ad9114.e-con-full.e-flex.e-con.e-child > div.elementor-element.elementor-element-c488ff4.elementor-widget.elementor-widget-icon-box > div > div > article > div > div > div > div > div > div > p {
    color: white;
}

.cpt-etichette{
    display:flex; flex-wrap:wrap; gap:12px; margin-top:12px;
}
.cpt-pill{
    display:inline-block; padding:8px 14px; border-radius:999px;
    background:#dfb98e !important; border:2px solid #E3B077; text-decoration:none;
    font-weight:600; font-size:15px; line-height:1;
    color:white !important; transition:all .2s ease;
}
.cpt-pill:hover{ background:#E3B077; color:black !important; }
.cpt-pill--more{ opacity:.85; }
.cpt-pill--more:hover{ opacity:1; }

/* === Servizi in evidenza === */
.sei-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}
@media (max-width: 1024px) {
    .sei-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .sei-grid { grid-template-columns: 1fr; }
}

.sei-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    max-height: 400px;
}

/* Overlay scuro sull'immagine per dare contrasto */
.sei-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);*/
    background: linear-gradient(to bottom, rgb(255 255 255 / 40%) 0%, rgb(0 0 0 / 44%) 100%);
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.sei-card__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.sei-card__panel {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    background: #00000070;
    border-radius: 16px;
    padding: 22px 24px 18px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.sei-card__titlewrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    margin-left: 18px;
}

.sei-card__iconwrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E3B077;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    box-shadow: 0 4px 12px rgba(227, 176, 119, 0.35);
}

.sei-card__icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sei-card__title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
    color: #e3b077 !important;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.sei-card__desc {
    margin: 6px 0 14px 18px;
    color: #ffffff !important;
}

.sei-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    font-weight: 600;
    text-decoration: none;
    color: #E3B077;
    margin-left: 18px;
}

.sei-card__cta:hover {
    color: #ffffff !important;
}

.sei-card__cta .arrow {
    transition: transform 0.2s ease;
}

.sei-card__cta:hover .arrow {
    transform: translateX(4px);
}

/* === Carousel Servizi in Evidenza (shortcode servizi_in_evidenza_carousel) === */
.sei-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 50px;
    margin: 0 auto;
    overflow: hidden; /* Previene lo scroll orizzontale */
}

.sei-carousel-wrapper .swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Importante per contenere le slide */
}

.sei-carousel-wrapper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.sei-carousel-wrapper .swiper-slide {
    height: auto;
    flex-shrink: 0; /* Previene il restringimento delle slide */
    width: 100%;
}

/* Adatta le card nel carousel per avere altezza consistente */
.sei-carousel-wrapper .sei-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sei-carousel-wrapper .sei-card__panel {
    flex-grow: 1;
}

/* Paginazione bullets */
.sei-carousel-wrapper .swiper-pagination {
    position: relative;
    margin-top: 30px;
    bottom: auto !important;
}

.sei-carousel-wrapper .swiper-pagination-bullet {
    background: #E3B077;
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.sei-carousel-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* Frecce di navigazione */
.sei-carousel-wrapper .swiper-button-prev,
.sei-carousel-wrapper .swiper-button-next {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sei-carousel-wrapper .swiper-button-prev:hover,
.sei-carousel-wrapper .swiper-button-next:hover {
    background: #E3B077;
    box-shadow: 0 6px 16px rgba(227, 176, 119, 0.4);
}

.sei-carousel-wrapper .swiper-button-prev::after,
.sei-carousel-wrapper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
    color: #11223a;
}

.sei-carousel-wrapper .swiper-button-prev:hover::after,
.sei-carousel-wrapper .swiper-button-next:hover::after {
    color: #fff;
}

.sei-carousel-wrapper .swiper-button-prev {
    left: 0;
}

.sei-carousel-wrapper .swiper-button-next {
    right: 0;
}

/* Nascondi le frecce quando è disabilitato */
.sei-carousel-wrapper .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sei-carousel-wrapper {
        padding: 0 40px;
        overflow-x: hidden !important; /* Forza il contenimento su mobile */
    }
    
    .sei-carousel-wrapper .swiper {
        overflow: hidden !important;
    }
    
    .sei-carousel-wrapper .swiper-button-prev,
    .sei-carousel-wrapper .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .sei-carousel-wrapper .swiper-button-prev::after,
    .sei-carousel-wrapper .swiper-button-next::after {
        font-size: 14px;
    }
    
    /* Card più compatta su mobile */
    .sei-carousel-wrapper .sei-card__img {
        height: 280px;
    }
    
    .sei-carousel-wrapper .sei-card__panel {
        padding: 16px 18px;
    }
    
    .sei-carousel-wrapper .sei-card__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sei-carousel-wrapper {
        padding: 0;
        overflow-x: hidden !important;
    }
    
    /* Nascondi le frecce su schermi molto piccoli (usa solo swipe) */
    .sei-carousel-wrapper .swiper-button-prev,
    .sei-carousel-wrapper .swiper-button-next {
        display: none;
    }
    
    .sei-carousel-wrapper .sei-card__img {
        height: 340px;
    }
}

/* Fix per prevenire overflow orizzontale globale */
.sei-carousel-wrapper * {
    max-width: 100%;
}

.sei-carousel-wrapper .sei-card {
    max-width: 100% !important;
}

/* === Servizi archivio CPT (shortcode servizi_cpt) === */
.servizi-archivio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}
@media (max-width: 1200px) {
    .servizi-archivio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .servizi-archivio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .servizi-archivio-grid { grid-template-columns: 1fr; }
}

.servizi-archivio-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

/* Overlay scuro sull'immagine per dare contrasto */
.servizi-archivio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

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

.servizi-archivio-card:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Rende l'intera card cliccabile estendendo l'area del link */
.servizi-archivio-card__cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.servizi-archivio-card__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.servizi-archivio-card__panel {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.servizi-archivio-card__title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #11223a;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.servizi-archivio-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: #E3B077;
    transition: gap 0.2s ease;
    position: relative;
    z-index: 2;
}

.servizi-archivio-card__cta .arrow {
    transition: transform 0.2s ease;
}

.servizi-archivio-card__cta:hover {
    gap: 8px;
}

.servizi-archivio-card__cta:hover .arrow {
    transform: translateX(2px);
}

/* Mobile: layout verticale con pannello sotto l'immagine */
@media (max-width: 768px) {
    .servizi-archivio-card {
        background: #fff;
        display: flex;
        flex-direction: column;
    }
    
    .servizi-archivio-card__img {
        height: 200px !important;
    }
    
    .servizi-archivio-card__panel {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        border-radius: 0 0 12px 12px;
        padding: 12px 14px;
        box-shadow: none;
    }
    
    .servizi-archivio-card__title {
        font-size: 15px;
        margin: 0 0 8px;
        line-height: 1.3;
    }
    
    .servizi-archivio-card__cta {
        font-size: 15px;
    }
}

/* Small mobile: layout ancora più compatto */
@media (max-width: 480px) {
    .servizi-archivio-card__img {
        height: 120px;
    }
    
    .servizi-archivio-card__panel {
        padding: 10px 12px;
    }
    
    .servizi-archivio-card__title {
        font-size: 14px;
        margin: 0 0 8px;
    }
    
    .servizi-archivio-card__cta {
        font-size: 15px;
    }
}

body > header{
    position: sticky;
    z-index: 1000;
    top: 0;
}

@media (max-width: 768px) {
    body > header{
        position: sticky;
        z-index: 1000;
        top: 0px;
    }
}

/* Lista "Per chi è indicato" */
.per-chi-e-indicato {
    display: grid;
    gap: 10px;
}

.per-chi-e-indicato .pci-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.per-chi-e-indicato .pci-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E3B077;
    border-radius: 9999px;
    padding: 10px;            /* aumenta/diminuisci per icona più grande */
    line-height: 1;
}

.per-chi-e-indicato .pci-icon .dashicons {
    font-size: 16px;          /* grandezza del pittogramma */
    width: 16px;
    height: 16px;
    color: #000;              /* icona nera */
}

.per-chi-e-indicato .pci-title {
    font-weight: 500;
    line-height: 1.35;
    color: rgb(12, 12, 12);
}

/* Grid contenitore */
.fasi-intervento {
    display: grid;
    gap: 18px;
}

/* Card singola */
.fase-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid lightgrey;
    padding: 22px 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Titolo */
.fase-title {
    margin: 0 0 6px;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.25;
    font-weight: 700;
    color: #253647;
}

/* Testo */
.fase-desc {
    color: var(--e-global-color-e2c26df);
    line-height: 1.6;
}
.fase-desc p:last-child { margin-bottom: 0; }

/* Responsive (opzionale: 2 colonne su desktop) */
@media (min-width: 900px) {
    .fasi-intervento.cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Griglia delle card */
.pc-grid {
    display: grid;
    gap: 18px;
}

.pc-card{
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Card singola - Rimossi sfondo, padding, border-radius e ombra per lasciare solo titolo e card pro/contro */

/* Titolo tipologia */
.pc-title {
    margin: 0 0 14px;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.25;
    font-weight: 700;
    color: #253647;
}

/* Corpo a 2 colonne che collassano su mobile */
.pc-body {
    display: grid;
    gap: 16px;
}
@media (min-width: 720px) {
    .pc-body {
        grid-template-columns: 1fr 1fr;
    }
}

/* Colonna */
.pc-col {
    background: #fafbfc;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Testatine Pro/Contro */
.pc-col-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.pc-heading {
    font-weight: 700;
    color: #253647;
}

/* Badge icona rotondo — usa il tuo accent #E3B077 per coerenza brand */
.pc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    width: 36px;
    height: 36px;
    background: #E3B077;
}
.pc-badge .dashicons {
    font-size: 18px;
    width: 18px; height: 18px;
    color: #000; /* nera, come richiesto nelle altre componenti */
}

/* Variante cromatica (se preferisci green/red per semantica) */
.pc-badge--pro    { background: #d9f5e5; }
.pc-col--pro .pc-badge .dashicons { color: #1c7c3a; }

.pc-badge--contro { background: #fde2e2; }
.pc-col--contro .pc-badge .dashicons { color: #b3152b; }

/* Testo WYSIWYG */
.pc-content { color: var(--e-global-color-e2c26df); line-height: 1.6; }
.pc-content p:last-child { margin-bottom: 0; }

/* CONTENITORE TIMELINE CENTRALE */
.rr-timeline--center {
    position: relative;
    display: grid;
    row-gap: 24px;
    /* su desktop niente padding sinistro perché la linea è centrale */
    padding-left: 0;
}

/* Linea verticale al centro */
.rr-timeline--center::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(0,0,0,0.08);
}

/* ITEM */
.rr-item {
    position: relative;
}

/* Marker centrato sulla linea */
.rr-marker {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #E3B077;
    box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0,0,0,0.12);
    z-index: 2;
}

/* Card comune */
.rr-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);   /* un filo più marcata */
    border: 1px solid rgba(0,0,0,0.04);
    padding: 18px 20px;
    transition: box-shadow .3s ease, transform .3s ease;
    width: calc(50% - 36px);                    /* metà colonna meno il gutter dal centro */
}
.rr-card:hover {
    box-shadow: 0 12px 34px rgba(0,0,0,0.16);
    transform: translateY(-1px);
}

/* Alternanza: a sinistra e a destra della linea */
.rr-item--left  .rr-card { margin-right: calc(50% + 18px); }
.rr-item--right .rr-card { margin-left:  calc(50% + 18px); }

/* Titolo & testo */
.rr-title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.25;
    color: #253647;
}
.rr-desc { color: #5f6f82; line-height: 1.6; }
.rr-desc p:last-child { margin-bottom: 0; }

/* MOBILE: ritorna a timeline semplice a sinistra con linea esterna */
@media (max-width: 768px) {
    .rr-timeline--center {
        /* più spazio a sinistra per linea + marker + gutter */
        padding-left: 40px;
    }
    
    /* linea a sinistra */
    .rr-timeline--center::before {
        left: 14px;                 /* posizione della linea */
        transform: none;
        width: 2px;
    }
    
    /* marker centrato sulla linea */
    .rr-marker {
        left: -25px;                 /* stessa x della linea */
        transform: translateX(-50%);/* centra il pallino rispetto alla linea */
        top: 16px;
    }
    
    /* card a larghezza piena su mobile */
    .rr-card {
        width: auto;
        margin: 0;
    }
    
    .rr-item--left  .rr-card,
    .rr-item--right .rr-card {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Contenitore griglia: 1 colonna su mobile, 2 su desktop */
.pd-duo {
    display: grid;
    gap: 18px;
}
@media (min-width: 900px) {
    .pd-duo {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

/* Colonna */
.pd-col { width: 100%; }

/* Card contenitore (ombra coerente con il resto del sito) */
.pd-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 12px;                 /* ridotto: molti slider hanno già padding interno */
    overflow: hidden;              /* evita overflow degli slider */
}

/* Salvagente per contenuti dello slider */
.pd-card img, .pd-card video, .pd-card canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* In caso il plugin imponesse larghezze fisse, puoi sbloccarle così: */
/* .pd-card > * { width: 100% !important; } */

.nomodifica {
    resize: none;
    width: 100%;   /* o ad esempio 400px */
    height: 120px; /* regola a piacere */
}


/* Selettore robusto: colpisce il testo subito dopo la checkbox */

.wpcf7-acceptance input[name="acceptance-1"] + .wpcf7-list-item-label {
    font-size: 15px !important;
    line-height: 1.4;
}
.wpcf7-acceptance input[name="acceptance-1"] + .wpcf7-list-item-label a {
    font-size: inherit !important;
}

/* Mobile: font più piccolo per far stare la privacy su una riga */
@media (max-width: 768px) {
    .wpcf7-acceptance input[name="acceptance-1"] + .wpcf7-list-item-label {
        font-size: 12px !important;
        line-height: 1.3;
    }
}

#wpcf7-f700-p389-o1 > form > p:nth-child(6) > span > span{
    margin-left: -10px;
}

/* Contenitore accordion */
.faq-accordion {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
}

/* Item: rimuovi fondo/ombra/padding esterni */
.faq-item {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header/trigger dell'accordion */
.faq-toggle {
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding: 14px 18px !important;      /* meno "pill" */
    font-weight: 700;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.3;
    color: #fff !important;
    background: #E3B077 !important;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-radius: 10px !important;      /* 10px come richiesto */
    box-shadow: none !important;
    transition: none !important;         /* niente animazioni */
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    gap: 10px;
}

/* Nessun cambio su hover/active */
.faq-toggle:hover,
.faq-toggle:active {
    background: #E3B077 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Stato aperto: stesso aspetto */
.faq-toggle[aria-expanded="true"] {
    background: #E3B077 !important;
}

/* Testo della domanda */
.faq-q-text {
    flex: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
}

/* Icona + / − */
.faq-icon {
    color: #fff !important;
    font-size: 20px;
    line-height: 1;
    margin-left: 0;
    font-weight: 700;
    flex-shrink: 0;
    padding-top: 2px;
}

/* Pannello risposta con animazione fluida */
.faq-answer {
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Contenuto interno con padding fisso */
.faq-answer-inner {
    color: #5f6f82;
    line-height: 1.6;
    padding: 12px 2px 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Quando aperto, mostra il contenuto */
.faq-answer[aria-hidden="false"] .faq-answer-inner {
    opacity: 1;
}

.faq-answer-inner p:last-child { margin-bottom: 0; }

/* Gestione di tutti gli elementi all'interno delle risposte FAQ */
.faq-answer-inner * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* Gestione specifica per immagini, video e iframe */
.faq-answer-inner img,
.faq-answer-inner video,
.faq-answer-inner iframe,
.faq-answer-inner embed,
.faq-answer-inner object {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Gestione tabelle che potrebbero essere larghe */
.faq-answer-inner table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Gestione link e testo lungo */
.faq-answer-inner a {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Gestione pre e code che potrebbero avere testo lungo */
.faq-answer-inner pre,
.faq-answer-inner code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: normal;
    white-space: pre-wrap;
}

/* Ottimizzazioni mobile per FAQ */
@media (max-width: 768px) {
    .faq-toggle {
        padding: 12px 14px !important;
        font-size: 15px;
        gap: 8px;
    }
    
    .faq-answer-inner {
        padding: 10px 4px 0;
    }
}

/* Forza il widget shortcode di Elementor a prendere tutta la larghezza */
.elementor-widget-shortcode {
    width: 100% !important;
    max-width: none !important;
    overflow-x: hidden;
    overflow-y: visible;
}

.elementor-widget-shortcode .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
    overflow-x: hidden;
    overflow-y: visible;
}

.elementor-widget-shortcode .elementor-shortcode {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Forza Contact Form 7 a prendere il 100% della larghezza */
.wpcf7 {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
}

.wpcf7-form {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
}

.wpcf7-form p {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
}

.wpcf7-form label {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
}

.wpcf7-form-control-wrap {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Forza anche il contenitore specifico del form nel div #contatti-archivio */
#contatti-archivio .elementor-widget-shortcode,
#contatti-archivio .elementor-shortcode {
    width: 100% !important;
    max-width: none !important;
}

.guida-rapida { 
    margin-block: 32px; 
    width: 100% !important; 
    max-width: none !important;
    display: block !important;
}

.guida-rapida__list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: grid; 
    gap: 12px; 
    width: 100% !important;
    max-width: none !important;
}
.guida-rapida__list > li { 
    width: 100% !important;
    max-width: none !important;
    display: block;
}
.guida-rapida__item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #faf7f2;
    border: 1px solid #efeadf;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Hover effect per card cliccabili */
a.guida-rapida__item:hover {
    background: #f5f0e7;
    border-color: #E3B077;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 176, 119, 0.2);
}

a.guida-rapida__item:hover .arrow {
    transform: translateX(4px);
}

/* Regole specifiche per desktop */
@media (min-width: 768px) {
    .elementor-widget-shortcode {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    .guida-rapida { 
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .guida-rapida__item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
.guida-rapida__item .q { 
    font-weight: 500;
    font-size: 15px;
}
.guida-rapida__item .arrow { 
    font-size: 18px; 
    opacity: .8;
    order: 2;
    transition: transform 0.3s ease;
}
.guida-rapida__item .a {
    font-weight: 700;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    background: #E3B077;
    color: #fff;
    font-size: 15px;
    order: 3;
}

.indice-archivio__item a{
    color: black;
    font-weight: 700;
}

.indice-archivio__item a:hover{
    color: #E3B077;
    font-weight: 700;
}

.indice-archivio__item{
    color: var(--e-global-color-accent);
}

@media (max-width: 640px) {
    .guida-rapida__item { grid-template-columns: 1fr auto auto; }
    .guida-rapida__item .arrow { font-size: 16px; }
}

/* Media query smartphone per indice archivio */
@media (max-width: 768px) {
    .indice-archivio__item {
        font-size: 15px;
    }
}

#wpcf7-f700-p389-o1 > form > p:nth-child(6) > span > span > span{
    margin-top: -40px !important;
}

#wpcf7-f927-p794-o1 > form > p:nth-child(6) > span > span > span{
    margin-top: -40px !important;
}

div[id^="wpcf7-f700-"] > form > p:nth-child(6) {
    margin-top: -40px;
    margin-left: -10px;
}

.db-prima-dopo-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.db-prima-dopo-card {
    width: 45%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.db-prima-dopo-content {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.db-prima-dopo-card:hover .db-prima-dopo-content {
    box-shadow: 0 12px 34px rgba(0,0,0,0.16);
}

.db-prima-dopo-titolo {
    margin-top: 16px;
    display: inline-block;
    color: #000000;
    font-weight: 700;
    font-size: 15px;
}

@media (max-width: 900px) {
    .db-prima-dopo-card {
        width: 45%;
    }
}
@media (max-width: 600px) {
    .db-prima-dopo-card {
        width: 100%;
    }
}

/* === Effetto Parallax per Vision Section === */
.elementor-element-3926e72 {
    background-attachment: fixed !important;
    background-position: right center !important; /* Cambia questo valore per posizionare il soggetto */
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* 
* GUIDA PER POSIZIONARE LO SFONDO:
* 
* background-position: right center;    → soggetto a destra, centrato verticalmente
* background-position: left center;     → soggetto a sinistra, centrato verticalmente
* background-position: center top;      → soggetto centrato, in alto
* background-position: center bottom;   → soggetto centrato, in basso
* background-position: right top;       → soggetto in alto a destra
* background-position: 70% center;      → soggetto al 70% orizzontale, centrato verticalmente
* background-position: center 30%;      → soggetto centrato orizzontalmente, al 30% verticale
* background-position: 80% 40%;         → posizione custom: 80% orizzontale, 40% verticale
*/

/* Tablet: mantieni parallax e posizione */
@media (max-width: 1024px) {
    .elementor-element-3926e72 {
        background-attachment: fixed !important;
        background-position: 60% center !important; /* Posizione ottimizzata per tablet */
    }
}

/* Mobile: NIENTE parallax, posizione ottimizzata */
@media (max-width: 768px) {
    .elementor-element-3926e72 {
        background-attachment: scroll !important; /* NO parallax su mobile */
        background-position: 85% center !important; /* Leggermente più a sinistra */
        background-size: cover !important;
    }
}

/* ALTERNATIVA: Se ancora non funziona, mostra l'intera immagine (decommentare) */
/*
@media (max-width: 768px) {
.elementor-element-3926e72 {
background-attachment: scroll !important;
background-position: center center !important;
background-size: contain !important;
background-color: #2a2a2a !important;
}
}
*/

/* === Parallax dinamico JavaScript (alternativa) === */
.elementor-element-3926e72.parallax-js {
    background-attachment: scroll !important;
    position: relative;
    overflow: hidden;
}

.elementor-element-3926e72.parallax-js::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: transform;
}

/* === Video Background ottimizzato per mobile === */
.elementor-background-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.elementor-background-video-hosted {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: cover;
}

/* Mobile: zoom maggiore sul video per coprire completamente */
@media (max-width: 768px) {
    .elementor-background-video-hosted {
        min-width: 120%;
        min-height: 120%;
        object-fit: cover;
    }
}

/* Per schermi molto piccoli, zoom ancora più marcato */
@media (max-width: 480px) {
    .elementor-background-video-hosted {
        min-width: 150%;
        min-height: 150%;
        object-fit: cover;
    }
}

/* === Pulsante Prenota Mobile (solo mobile) === */
.prenota-mobile-wrapper {
    display: none; /* Nascosto di default (desktop) */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mostra solo su mobile (tablet e smartphone) */
@media (max-width: 1024px) {
    .prenota-mobile-wrapper {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        width: calc(100% - 40px);
        max-width: 400px;
        pointer-events: none;
    }
    
    .prenota-mobile-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 16px 24px;
        background: #E3B077;
        color: #303030 !important;
        font-weight: 700;
        font-size: 16px;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(227, 176, 119, 0.5);
        transition: all 0.3s ease;
        pointer-events: all;
        cursor: pointer;
    }
    
    .prenota-mobile-btn:hover,
    .prenota-mobile-btn:active {
        background: #d4a167;
        box-shadow: 0 10px 30px rgba(227, 176, 119, 0.6);
        transform: translateY(-2px);
    }
}

/* Mobile: pulsante leggermente più piccolo */
@media (max-width: 480px) {
    .prenota-mobile-wrapper {
        bottom: 15px;
        width: calc(100% - 30px);
    }
    
    .prenota-mobile-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ==========================================
   CAROSELLO FILTRATO SERVIZI ESTETICI
   ========================================== */

.carosello-filtrato-wrapper {
    width: 100%;
}

/* Wrapper carosello filtri */
.carosello-filtri-wrapper {
    max-width: 1600px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.carosello-filtri-track {
    flex: 1;
    background: #f2dec7;
    border-radius: 50px;
    padding: 5px;
    overflow: hidden;
    min-width: 0;
}

.carosello-filtri-track .swiper {
    width: 100%;
}

.carosello-filtri-nav {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 2px solid #E3B077 !important;
    background: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    flex: 0 0 42px !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    position: relative !important;
    z-index: 2;
    color: #000000 !important;
}

@media (min-width: 1025px) {
    .carosello-filtri-nav {
        display: none !important;
    }
}

.carosello-filtri-nav svg {
    width: 20px !important;
    height: 20px !important;
    pointer-events: none !important;
}

.carosello-filtri-nav svg path {
    stroke: currentColor !important;
    transition: stroke 0.25s ease !important;
}

.carosello-filtri-nav:hover {
    background: #E3B077 !important;
    border-color: #E3B077 !important;
    transform: translateY(-2px) !important;
    color: #000000 !important;
}

.carosello-filtri-nav:active {
    transform: translateY(0) !important;
}

.carosello-filtri-nav:hover svg path {
    stroke: currentColor;
}

.carosello-filtri-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    background: #ffffff;
    border-color: #E3B077;
    box-shadow: none;
    color: #000000 !important;
}

.carosello-filtri-nav.swiper-button-disabled:hover {
    background: #ffffff;
    color: #000000 !important;
}

.carosello-filtri-nav.swiper-button-disabled:hover svg path {
    stroke: #000000 !important;
}

.carosello-filtri-nav.swiper-button-disabled svg path {
    stroke: #000000 !important;
}

/* Filtri/Pillole - Desktop: flex, Mobile: swiper */
.carosello-filtri {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

/* Swiper slide per pillole - width auto per contenuto */
.carosello-filtri .swiper-slide {
    width: auto !important;
}

.carosello-pill {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 15px 30px !important;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    outline: none;
    white-space: nowrap;
}

.carosello-pill:hover {
    background: #fff;
    border: 1px solid #E3B077;
    border-color: #E3B077;
    color: #E3B077;
}

.carosello-pill.active {
    border: 1px solid transparent;
    background: #303030;
    color: #fff;
    border-color: #ffffff;
}

/* Container con le due colonne */
.carosello-filtrato-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* Colonna Sinistra - senza più filtri */
.carosello-filtrato-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 120px;
}

/* Titolo */
.carosello-titolo {
    font-size: 24px !important;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    transition: opacity 0.3s ease;
    color: black !important;
    font-family: 'Marcellus', sans-serif !important;
}

/* Testo */
.carosello-testo {
    font-size: 15px !important;
    line-height: 1.6;
    color: #303030;
    margin: 0;
    transition: opacity 0.3s ease;
}

/* Contenitore azioni: pulsante + navigazione */
.carosello-actions-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Pulsante Scopri tutti */
.carosello-btn-scopri {
    display: inline-block;
    padding: 11px 24px;
    background: #E3B077;
    color: #303030 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid #E3B077;
    width: auto;
    max-width: fit-content;
    white-space: nowrap;
}

.carosello-btn-scopri:hover {
    background: transparent;
    color: #E3B077 !important;
    border-color: #E3B077;
    transform: translateY(-2px);
}

/* Frecce Navigazione */
.carosello-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 16px;
    z-index: 5;
}

.carosello-navigation .carosello-prev,
.carosello-navigation .carosello-next {
    pointer-events: auto;
}

.carosello-prev,
.carosello-next {
    min-width: 48px !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border: 2px solid #E3B077 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: visible !important;
}

.carosello-prev svg,
.carosello-next svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    pointer-events: none !important;
}

.carosello-prev:hover,
.carosello-next:hover {
    background: #E3B077 !important;
    border-color: #E3B077 !important;
    transform: scale(1.1) !important;
}

.carosello-prev:hover svg path,
.carosello-next:hover svg path {
    stroke: #ffffff !important;
}

.carosello-prev:disabled,
.carosello-next:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    transform: none !important;
    border-color: #ddd !important;
}

.carosello-prev:disabled svg path,
.carosello-next:disabled svg path {
    stroke: #ddd !important;
}

/* Colonna Destra - Carousel */
.carosello-filtrato-content {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carosello-filtrato-content .swiper {
    overflow: visible;
}

.carosello-slider {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carosello-slider.active {
    display: block;
    opacity: 1;
}

/* Card Styling */
.carosello-card {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.carosello-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.carosello-card-bg {
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.carosello-card:hover .carosello-card-bg {
    transform: scale(1.05);
}

.carosello-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.carosello-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .carosello-filtrato-container {
        grid-template-columns: 260px 1fr;
        gap: 35px;
    }

    .carosello-filtrato-content {
        padding: 0 50px;
    }
    
    .carosello-titolo {
        font-size: 22px !important;
    }
    
    .carosello-card-title {
        font-size: 18px;
    }
    
    .carosello-card-bg {
        height: 400px;
    }
}

@media (max-width: 1024px) {
    .carosello-filtri-wrapper {
        margin-bottom: 35px;
        gap: 14px;
    }

    .carosello-filtri-track {
        padding: 4px;
    }

    .carosello-filtri-nav {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
    }

    .carosello-filtri-nav svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .carosello-pill {
        padding: 12px 20px !important;
        font-size: 14px;
    }
    
    .carosello-filtrato-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .carosello-filtrato-content {
        padding: 0 48px;
    }

    .carosello-filtrato-sidebar {
        position: relative;
        top: 0;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }
    
    .carosello-titolo {
        font-size: 26px !important;
    }
    
    .carosello-testo {
        font-size: 15px !important;
    }
    
    .carosello-card-title {
        font-size: 18px;
    }
    
    .carosello-actions-row {
        justify-content: center;
        gap: 16px;
    }
    
    .carosello-btn-scopri {
        padding: 11px 26px;
        font-size: 14px;
    }
    
    .carosello-navigation {
        padding: 0 12px;
    }
    
    .carosello-card-bg {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .carosello-filtrato-wrapper {
        padding: 40px 15px;
    }
    
    .carosello-filtri-wrapper {
        margin-bottom: 30px;
        gap: 12px;
    }

    .carosello-filtri-track {
        padding: 4px;
    }

    .carosello-filtri-nav {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
    }

    .carosello-filtri-nav svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .carosello-filtri {
        gap: 8px;
    }
    
    .carosello-pill {
        padding: 10px 18px !important;
        font-size: 13px;
    }
    
    .carosello-filtrato-container {
        gap: 30px;
    }

    .carosello-filtrato-content {
        padding: 0 34px;
    }
    
    .carosello-filtrato-sidebar {
        gap: 20px;
        margin-top: 10px;
    }
    
    .carosello-titolo {
        font-size: 24px !important;
    }
    
    .carosello-testo {
        font-size: 14px !important;
    }
    
    .carosello-actions-row {
        gap: 12px;
    }
    
    .carosello-navigation {
        padding: 0 8px;
    }

    .carosello-btn-scopri {
        padding: 20px 40px 20px 40px !important;
        font-size: 14px;
    }
    
    .carosello-card-bg {
        height: 360px;
    }
    
    .carosello-card-title {
        font-size: 17px;
    }
    
    .carosello-card-overlay {
        padding: 20px;
    }
    
    .carosello-prev,
    .carosello-next {
        min-width: 42px !important;
        width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    
    .carosello-prev svg,
    .carosello-next svg {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 480px) {
    .carosello-filtrato-wrapper {
        padding: 30px 10px;
    }
    
    .carosello-filtri-wrapper {
        margin-bottom: 25px;
        gap: 10px;
    }

    .carosello-filtri-track {
        padding: 3px;
    }

    .carosello-filtri-nav {
        width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px !important;
    }

    .carosello-filtri-nav svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .carosello-filtri {
        gap: 6px;
    }
    
    .carosello-pill {
        padding: 8px 16px !important;
        font-size: 12px;
    }
    
    .carosello-titolo {
        font-size: 22px !important;
    }
    
    .carosello-testo {
        font-size: 13px !important;
    }
    
    .carosello-actions-row {
        gap: 10px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .carosello-filtrato-content {
        padding: 0 24px;
    }

    .carosello-navigation {
        padding: 0 6px;
    }
    
    .carosello-btn-scopri {
        padding: 15px 30px 15px 30px !important;
        font-size: 14px;
        flex-shrink: 1;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
    }
    
    .carosello-card-bg {
        height: 340px;
    }
    
    .carosello-card-title {
        font-size: 16px;
    }
    
    .carosello-prev,
    .carosello-next {
        min-width: 40px !important;
        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .carosello-prev svg,
    .carosello-next svg {
        width: 18px !important;
        height: 18px !important;
    }
}

.row-item-more a svg {
    margin-bottom: -8px !important;
}

.jeg-elementor-kit.jkit-portfolio-gallery .row-item-more {
    bottom: 55px !important; /* o il valore che vuoi */
}

@media (max-width: 768px) {
    .jeg-elementor-kit.jkit-portfolio-gallery .row-item-more {
        display: none !important;
    }
}

/* ==========================================
   MEGAMENU CHIRURGIA VISO / CPT
   Layout: 4 colonne post + 1 colonna promo
   ========================================== */

.megamenu-chirurgia-wrapper {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    align-items: start;
}

/* ========== SEZIONE POST (4 colonne di default) ========== */
.megamenu-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    /* Impedisce alle card di allungarsi verticalmente */
    align-items: start;
    align-self: start;
}

/* Variante 5 colonne per Medicina Estetica */
/* Colonna promo più stretta: da 2.5fr 1fr → 3fr 0.8fr */
.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] {
    grid-template-columns: 3fr 0.8fr;
    align-items: start;
}

.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-posts-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* Card leggermente più grandi grazie allo spazio extra */
.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-post-item__thumb {
    height: 105px;
}

.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-post-item__content {
    padding: 10px 12px;
    min-height: 48px;
}

.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-post-item__title {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

/* Promo box più compatto per Medicina Estetica */
.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-promo-box {
    padding: 28px 22px;
    min-height: 260px;
    max-height: 260px;
}

.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-promo-box__title {
    font-family: 'Marcellus', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-promo-box__text {
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-promo-box__text p {
    margin: 0 0 8px;
}

.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-promo-box__text p:last-child {
    margin-bottom: 0;
}

.megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-promo-box__cta {
    padding: 11px 20px;
    font-size: 14px;
}

/* Item singolo post */
.megamenu-post-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 10px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    /* Rimuovo height: 100% per evitare che si allunghino */
    height: auto;
}

.megamenu-post-item:hover {
    border-color: #E3B077;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(227, 176, 119, 0.2);
}

/* Thumbnail post - PIÙ PICCOLO */
.megamenu-post-item__thumb {
    width: 100%;
    height: 110px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    flex-shrink: 0;
}

.megamenu-post-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.megamenu-post-item:hover .megamenu-post-item__thumb img {
    transform: scale(1.1);
}

/* Placeholder se non c'è immagine */
.megamenu-post-item__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.megamenu-post-item__placeholder::after {
    content: '';
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.3;
}

/* Content area post - PIÙ COMPATTO */
.megamenu-post-item__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    min-height: 50px;
    background: #ffffff;
}

/* Titolo post - PIÙ PICCOLO */
.megamenu-post-item__title {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #303030;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.megamenu-post-item:hover .megamenu-post-item__title {
    color: #E3B077;
}

/* Freccia post */
.megamenu-post-item__arrow {
    font-size: 16px;
    color: #E3B077;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

.megamenu-post-item:hover .megamenu-post-item__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========== PROMO BOX (colonna 3) ========== */
.megamenu-promo-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 28px;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
    border-radius: 16px;
    border: 1px solid rgba(227, 176, 119, 0.2);
    box-sizing: border-box;
    /* Altezza ridotta ulteriormente */
    min-height: 260px;
    max-height: 260px;
    height: 260px;
    /* Posiziona in alto invece che estendersi */
    align-self: start;
    margin-top: 0;
}

.megamenu-promo-box__title {
    font-family: 'Marcellus', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #303030;
    margin: 0 0 16px;
}

.megamenu-promo-box__text {
    font-size: 14px;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0 0 24px;
}

.megamenu-promo-box__text p {
    margin: 0 0 10px;
}

.megamenu-promo-box__text p:last-child {
    margin-bottom: 0;
}

.megamenu-promo-box__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #E3B077;
    color: #303030 !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid #E3B077;
}

.megamenu-promo-box__cta:hover {
    background: transparent;
    color: #E3B077 !important;
    transform: translateX(4px);
}

.megamenu-promo-box__cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.megamenu-promo-box__cta:hover svg {
    transform: translateX(4px);
}

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

/* Desktop Grande (< 1400px) - Riduci gap */
@media (max-width: 1400px) {
    .megamenu-chirurgia-wrapper {
        gap: 26px;
        padding: 26px;
        align-items: start;
    }
    
    .megamenu-posts-grid {
        gap: 12px;
    }
    
    .megamenu-promo-box {
        min-height: 250px;
        max-height: 250px;
        height: 250px;
    }
    
    /* Medicina Estetica: 4 colonne invece di 5 */
    .megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (< 1200px) - 3 colonne invece di 4 */
@media (max-width: 1200px) {
    .megamenu-chirurgia-wrapper {
        padding: 24px;
        gap: 24px;
        align-items: start;
    }
    
    .megamenu-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .megamenu-post-item__thumb {
        height: 120px;
    }
    
    .megamenu-promo-box {
        padding: 26px 22px;
        min-height: 240px;
        max-height: 240px;
        height: 240px;
    }
    
    .megamenu-promo-box__title {
        font-family: 'Marcellus', serif;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 14px;
    }
    
    .megamenu-promo-box__text {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    /* Medicina Estetica: 3 colonne come gli altri */
    .megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-post-item__thumb {
        height: 120px;
    }
    
    .megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-post-item__content {
        padding: 10px 12px;
        min-height: 50px;
    }
    
    .megamenu-chirurgia-wrapper[data-megamenu-type="medicina-estetica"] .megamenu-post-item__title {
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 600;
    }
}

/* Tablet (< 1024px) - Layout verticale: post sopra, promo sotto */
@media (max-width: 1024px) {
    .megamenu-chirurgia-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        align-items: start;
    }
    
    .megamenu-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .megamenu-post-item__thumb {
        height: 130px;
    }
    
    .megamenu-promo-box {
        padding: 24px 20px;
        /* Su tablet diventa width 100% sotto i post, quindi height auto */
        min-height: auto;
        max-height: none;
        height: auto;
        margin-top: 0;
    }
}

/* Tablet Piccolo (< 768px) - 2 colonne */
@media (max-width: 768px) {
    .megamenu-chirurgia-wrapper {
        padding: 16px;
        gap: 16px;
        align-items: start;
    }
    
    .megamenu-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .megamenu-post-item__thumb {
        height: 120px;
    }
    
    .megamenu-post-item__content {
        padding: 10px;
        min-height: 48px;
    }
    
    .megamenu-post-item__title {
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 600;
    }
    
    .megamenu-promo-box {
        padding: 20px 18px;
        /* Mobile: altezza automatica */
        min-height: auto;
        max-height: none;
        height: auto;
    }
    
    .megamenu-promo-box__title {
        font-family: 'Marcellus', serif;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 12px;
    }
    
    .megamenu-promo-box__text {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .megamenu-promo-box__text p {
        margin: 0 0 8px;
    }
    
    .megamenu-promo-box__cta {
        padding: 11px 22px;
        font-size: 14px;
    }
}

/* Mobile (< 480px) - 1 colonna */
@media (max-width: 480px) {
    .megamenu-chirurgia-wrapper {
        padding: 12px;
        gap: 14px;
        align-items: start;
    }
    
    .megamenu-posts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .megamenu-post-item__thumb {
        height: 140px;
    }
    
    .megamenu-post-item__content {
        padding: 10px;
    }
    
    .megamenu-post-item__title {
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 600;
    }
    
    .megamenu-post-item__arrow {
        font-size: 16px;
    }
    
    .megamenu-promo-box {
        padding: 18px 16px;
    }
    
    .megamenu-promo-box__title {
        font-family: 'Marcellus', serif;
        font-size: 17px;
        font-weight: 700;
    }
    
    .megamenu-promo-box__text {
        font-size: 13px;
    }
    
    .megamenu-promo-box__cta {
        width: 100%;
        justify-content: center;
    }
}

/* ========== VARIANTI ========== */

/* Variante per sfondo scuro */
.megamenu-chirurgia-wrapper.megamenu--dark .megamenu-post-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.megamenu-chirurgia-wrapper.megamenu--dark .megamenu-post-item__content {
    background: rgba(0, 0, 0, 0.3);
}

.megamenu-chirurgia-wrapper.megamenu--dark .megamenu-post-item:hover {
    border-color: #E3B077;
    box-shadow: 0 6px 20px rgba(227, 176, 119, 0.3);
}

.megamenu-chirurgia-wrapper.megamenu--dark .megamenu-post-item__title {
    color: #ffffff;
}

.megamenu-chirurgia-wrapper.megamenu--dark .megamenu-post-item:hover .megamenu-post-item__title {
    color: #E3B077;
}

.megamenu-chirurgia-wrapper.megamenu--dark .megamenu-promo-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.megamenu-chirurgia-wrapper.megamenu--dark .megamenu-promo-box__title {
    color: #ffffff;
}

.megamenu-chirurgia-wrapper.megamenu--dark .megamenu-promo-box__text {
    color: rgba(255, 255, 255, 0.8);
}

.elementor-icon-box-content p{
    color: #F7F7F7 !important;
}

.jeg-elementor-kit.jkit-nav-menu .jkit-menu-wrapper{
    z-index: 9999 !important;
}

.grecaptcha-badge { 
    visibility: hidden !important;
}

.cky-btn-revisit-wrapper.cky-revisit-bottom-left{
    opacity: 0 !important;
}