/*Bg open site*/
.open-bg {
    background: url("../img/cover.jpg") no-repeat center;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
    height: 100vh !important;
    border-radius: 30px;
    position: relative;
}
.glass {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 20px;
    padding: 24px 28px;
}
.glass-dark {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: none !important;
    border-radius: 20px;
    padding: 24px 28px;
}
.title {
    font-size: 3em;
    line-height: 1.2em;
    margin-bottom: 15px;
}
.subtitle {
    letter-spacing: 2px;
    font-size: 1em;
    font-weight: 500;
    text-transform: uppercase;
    color: #ea6645 !important;
}
.text-shadow {
    background: linear-gradient(90deg, rgba(234, 102, 69, 1) 0%, rgba(1, 41, 81, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-bg {
    margin: 0 15px;
    padding: 15px 30px;
}
.section-bg-w {
    padding: 20px 60px;
}
.section-bg-w a.pi-link-white {
    color: #fff !important;
}
.header-transparent {
    background-color: transparent !important;
}
.pi-simple-menu > li > a span:hover {
    background-color: #fff;
    border-radius: 40px;
    line-height: 50px;
    padding: 0 20px !important;
}
/*Animation Loop*/ :root {
    --gap: 5rem; /* spazio tra le voci */
    --duration: 50s; /* più alto = più lento */
    --marquee-font-size: clamp(2em, 4vw, 4em);
}
.marquee {
    display: flex;
    overflow: hidden;
    gap: var(--gap);
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    color: #012951;
    font-weight: 500;
    font-size: var(--marquee-font-size);
    line-height: 1.05;
    transition: color 0.3s ease;
}
/* Gruppi duplicati per loop continuo */
.marquee__group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--gap);
    animation: scroll var(--duration) linear infinite;
    margin: 15px 0;
}
/* Ferma l’animazione al passaggio del mouse */
.marquee:hover .marquee__group {
    animation-play-state: paused;
}
/* Sostituiamo i punti elenco con "/" */
.marquee__group li {
    list-style: none;
    position: relative;
}
.marquee__group li::after {
    content: " /";
    margin-left: 2rem;
    opacity: 0.6;
}
/* Rimuove la "/" dall’ultimo elemento per eleganza */
.marquee__group li:last-child::after {
    content: "";
}
/* Effetto fade ai bordi */
.mask {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Animazione */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}
/* Mobile responsive */
@media (max-width: 480px) {
    :root {
        --gap: 3rem;
        --duration: 55s; /* ancora più lento su schermi piccoli */
    }
}
/*Section*/
.section {
    margin: 15px;
    border-radius: 30px;
    overflow: hidden; /* ✅ importante */
}
.cta-bg {
    background: url("../img/cta.jpg") no-repeat center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    border-radius: 40px 40px 40px 40px;
}
.cta-bg .pi-section-dark {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}
.cta-bg select.form-control option {
    background-color: #fff !important;
    color: #181818 !important;
    border: none !important;
    outline: none !important;
}
.box-eventi {
    background: url("../img/box-eventi.jpg") no-repeat center !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
    padding: 35px;
}
.subtitle-box-eventi {
    font-size: 2.3em;
}
.title-box-eventi {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 4em;
}
.box-comete {
    background: url("../img/box-comete.jpg") no-repeat left center !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
    padding: 35px;
}
.glass-box {
    position: relative;
    overflow: hidden;
    transition: transform .35s ease;
}
/* layer glass */
.glass-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    background: rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
/* contenuto sopra il glass */
.glass-box > * {
    position: relative;
    z-index: 1;
}
/* hover (solo device con hover vero) */
@media (hover: hover) and (pointer: fine) {
    .glass-box:hover::before {
        opacity: 1;
    }
    .glass-box:hover {
        transform: translateY(-4px);
    }
}
.subtitle-box-comete {
    font-size: 2em;
}
.title-box-comete {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 3em;
}
.box-feedback {
    background: url("../img/box-feedback.jpg") no-repeat center !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
    padding: 35px;
}
.box-white {
    background-color: #fff !important;
    padding: 40px 35px !important;
}
.over-base:hover {
    background-color: #012951 !important;
    color: #fff !important;
}
.over-base h4:hover {
    color: #fff !important;
}
.box-base {
    background-color: #012951 !important;
    color: #fff !important;
    padding: 35px;
}
.big-padding-box {
    padding: 40px 50px 52px;
}
.box-bottom-element {
    position: absolute;
    bottom: 10%;
}
.btn-bottom-element {
    position: absolute;
    bottom: 10%;
    right: 10%;
}
.btn-white {
    background-color: #fff !important;
    color: #181818 !important;
    border: 1px solid #fff !important;
}
.btn-white:hover {
    background-color: #ea6645 !important;
    color: #fff !important;
    border: 1px solid #ea6645 !important;
}
.img-istituto {
    background: url("../img/stazione-centrale-rg.jpg") no-repeat top;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.border-map iframe {
    border-radius: 40px 40px 40px 40px;
}
.col-video {
    overflow: hidden;
}
.border-video {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
}
.border-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
}
@media (max-width: 767px) {
    .col-video {
        min-width: 100%;
    }
}
.highlight {
    display: inline;
    width: max-content;
    background-size: 200% auto;
    background-image: linear-gradient(to right, #fff 50%, #FFB600 50%);
    background-position: 0% 0;
    animation-duration: 2s;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
.highlight.active {
    animation-name: highlight;
}
@keyframes highlight {
    from {
        background-position: 0% 0;
    }
    to {
        background-position: -100% 0;
    }
}
/*Article*/
.bg-article.terapia-familiare {
    background: url("../img/storia-terapia-familiare.jpg") no-repeat center;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
    height: 80vh !important;
    border-radius: 30px;
    position: relative;
}
.bg-article.orientamento {
    background: url("../img/approccio-clinico.jpg") no-repeat center;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
    height: 80vh !important;
    border-radius: 30px;
    position: relative;
}
.subtitle-article span {
    background-color: #ea6645;
    color: #181818;
    border-radius: 30px;
    padding: 5px 8px;
    font-weight: 500;
    text-transform: uppercase;
}
.bg-article .push-bottom {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 30px;
}
@media (max-width: 768px) {
    .bg-article .push-bottom {
        padding: 20px 16px 24px; /* più respiro su mobile */
    }
}
/*Footer*/
.btn-whatsapp {
    z-index: 999999;
    background: #3BBF5A;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0px 0px 1px 1px rgba(59, 191, 90, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-whatsapp i {
    color: #fff;
    font-size: 40px;
}
.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}
.wa-center {
    display: block;
    margin: 10px auto;
}
.footer-fixed {
    position: fixed;
    z-index: 1002;
    bottom: 0;
    width: 100%;
}
/* ============================
   MOBILE GLASS CTA SECTION
============================ */
.mobile-cta-section {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 14px 16px;
    display: flex;
    justify-content: center;
    /* animazione entrata */
    transform: translateY(100%);
    transition: transform .35s ease;
}
/* stato visibile */
.mobile-cta-section.is-visible {
    transform: translateY(0);
}
/* --- GLASS EFFECT --- */
.glass-cta {
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow:
        0 -10px 30px rgba(0, 0, 0, .12);
}
/* bottone */
.glass-cta .btn {
    width: 100%;
    max-width: 420px;
}
/* solo mobile */
@media (min-width: 1120px) {
    .mobile-cta-section {
        display: none;
    }
}
@media (min-width: 320px) and (max-width: 400px) {
    .title {
        font-size: 1.8em;
    }
    .open-bg {
        background: url("../img/cover-xs.jpg") no-repeat center;
    }
    .box-bottom-element {
        position: relative;
        bottom: 20%;
    }
    .btn-bottom-element {
        position: relative;
        bottom: 5%;
        left: 60%;
    }
    .title-box-eventi {
  font-size: 3.5em;
}
    .subtitle-box-eventi {
        font-size: 1.6em;
        color: #fff !important;
    }
    .btn-whatsapp i {
        font-size: 30px;
    }
    body {
        padding-bottom: 92px !important;
    }
}
@media (min-width: 401px) and (max-width: 767px) {
    .title {
        font-size: 2em;
    }
    .open-bg {
        background: url("../img/cover-xs.jpg") no-repeat center;
    }
    .box-bottom-element {
        position: relative;
        bottom: 20%;
    }
    .btn-bottom-element {
        position: relative;
        bottom: 5%;
        left: 60%;
    }
    .subtitle-box-eventi {
        font-size: 2em;
        color: #fff !important;
    }
    .btn-whatsapp {
        bottom: 100px;
        width: 60px;
        height: 60px;
    }
    .btn-whatsapp i {
        font-size: 30px;
    }
    body {
        padding-bottom: 92px !important;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .open-bg {
        background: url("../img/cover-s.jpg") no-repeat center;
    }
    body {
        padding-bottom: 92px !important;
    }
}
@media (min-width: 992px) and (max-width: 1120px) {
    body {
        padding-bottom: 92px !important;
    }
}
@media (min-width: 992px) and (max-width: 1279px) {
    .title {
        font-size: 2.5em;
    }
    .subtitle-box-eventi {
        font-size: 2em;
    }
    .title-box-eventi {
        font-size: 3.5em;
    }
}
@media (min-width: 1280px) and (max-width: 1539px) {
    .title {
        font-size: 2.5em;
    }
    .subtitle-box-eventi {
        font-size: 2em;
    }
    .title-box-eventi {
        font-size: 4.5em;
    }
}
@media (min-width: 1540px) {}