/* ============================================================
   1. REGISTRAZIONE COMPLETA FONT LOCALI (WOFF2)
   ============================================================ */
@font-face { font-family: 'Bebas Neue'; src: url('../../fonts/bebas-neue-v16-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('../../fonts/bodoni-moda-v28-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../../fonts/caveat-v23-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('../../fonts/cinzel-v26-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../../fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dancing Script'; src: url('../../fonts/dancing-script-v29-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fjalla One'; src: url('../../fonts/fjalla-one-v16-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../../fonts/fraunces-v38-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Great Vibes'; src: url('../../fonts/great-vibes-v21-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../fonts/inter-v20-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../../fonts/lato-v25-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'League Spartan'; src: url('../../fonts/league-spartan-v15-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('../../fonts/libre-baskerville-v24-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lobster'; src: url('../../fonts/lobster-v32-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('../../fonts/lora-v37-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('../../fonts/merriweather-v33-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../../fonts/montserrat-v31-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../../fonts/open-sans-v44-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('../../fonts/oswald-v57-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Pacifico'; src: url('../../fonts/pacifico-v23-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../../fonts/playfair-display-v40-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('../../fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../../fonts/poppins-v24-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('../../fonts/raleway-v37-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../../fonts/roboto-v51-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('../../fonts/rubik-v31-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sacramento'; src: url('../../fonts/sacramento-v17-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../../fonts/space-grotesk-v22-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('../../fonts/syne-v24-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../../fonts/work-sans-v24-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* ============================================================
   2. STRUTTURA BASE E LAYOUT DEL CAROUSEL
   ============================================================ */
.hp-carousel-wrapper {
    margin-top: 5px;
    margin-bottom: 5px;
}

.hp-carousel-simple {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

/* Spanziamento interno dei testi facoltativi */
.hp-carousel-text-top {
    margin-bottom: 8px;
}

.hp-carousel-text-bottom {
    margin-top: 8px;
}

/* Azzeramento totale dell'ingombro in caso di nodi o contenitori vuoti */
.hp-carousel-text-top:empty,
.hp-carousel-text-bottom:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hp-slide-item {
    position: relative;
    width: 100%;
    display: none;
}

.hp-slide-item.active {
    display: block;
}

.hp-slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hp-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hp-slide-title-wrap,
.hp-slide-subtitle-wrap {
    pointer-events: auto;
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.hp-slide-title-wrap span {
    font-weight: 700;
}

.hp-slide-subtitle-wrap span {
    font-weight: 400;
}

/* ============================================================
   3. CLASSI STRUTTURALI PER TIPOLOGIA DI SFONDO
   ============================================================ */
.bg-type-ombra {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    display: inline;
}

.bg-type-evidenziatore {
    display: inline;
    padding: 4px 10px;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 1.6;
}

.bg-type-box {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 8px;
}

/* ============================================================
   4. STRUTTURA CONTROLLI, FRECCE ED INDICATORI (LAYOUT RIGIDO)
   ============================================================ */
/* Nasconde visivamente i testi di accessibilità per gli screen reader */
.hp-carousel-simple .visually-hidden {
    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;
}

/* Posizionamento strutturale delle frecce laterali */
.hp-carousel-simple .carousel-control-prev,
.hp-carousel-simple .carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8%;
    min-width: 45px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hp-carousel-simple .carousel-control-prev {
    left: 0;
}

.hp-carousel-simple .carousel-control-next {
    right: 0;
}

.hp-carousel-simple .carousel-control-prev-icon,
.hp-carousel-simple .carousel-control-next-icon {
    display: inline-block;
    width: 2.2rem;
    height: 2.2rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

/* Posizionamento strutturale del contenitore degli indicatori */
.hp-carousel-simple .carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    z-index: 12;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 15%;
    list-style: none;
}

.hp-carousel-simple .carousel-indicators button {
    box-sizing: content-box;
    flex: 0 1 auto;
    padding: 0;
    margin: 0 5px;
    text-indent: -999px;
    cursor: pointer;
    border: 0;
    background: transparent;
}

/* ============================================================
   5. MECCANICA E TRANSIZIONI STRUTTURALI DELLE SLIDE
   ============================================================ */
/* Dissolvenza (Fade) */
.hp-carousel-simple.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hp-carousel-simple.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Zoom dinamico */
.hp-carousel-simple.carousel-zoom .carousel-item {
    opacity: 0;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    transform: scale(1.12);
}

.hp-carousel-simple.carousel-zoom .carousel-item.active {
    opacity: 1;
    transform: scale(1);
}