a[data-lightbox] {
    cursor: zoom-in;
}

.lb-prev,
.lb-next {
    background-color: transparent !important;
    width: 60px;
    height: 60px;
    top: 50%;
    margin-top: -30px;
    background-image: url('assets/icons/arrow-feminine.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.lb-prev:hover,
.lb-next:hover {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
}

.lb-prev {
    left: 10px;
    transform: rotate(180deg);
}

.lb-next {
    right: 10px;
}

.lightbox-overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    animation: rollIn 0.5s ease;
}

.lightbox-overlay .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.8;
    /* Filtro per colorare la freccia come --primary-color (#ff0033) */
    filter: invert(26%) sepia(89%) saturate(7492%) hue-rotate(341deg) brightness(98%) contrast(105%);
}

.lightbox-overlay .nav-arrow.left {
    left: 200px;
}

.lightbox-overlay .nav-arrow.right {
    right: 200px;
}

.lightbox-overlay .nav-arrow:hover {
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.lightbox-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.lightbox-overlay p {
    color: white;
    font-size: 1rem;
    animation: fadeInCaption 0.4s ease-out;
}

@keyframes rollIn {
    from {
        transform: rotateX(-90deg);
        opacity: 0;
    }

    to {
        transform: rotateX(0);
        opacity: 1;
    }
}

:root {
    --primary-color: #ff0033;
    --secondary-color: #121212;
    --text-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-light);
    overflow-x: hidden;
}

body.lock-home {
    overflow: hidden;
    height: 100vh;
}

nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
}

.logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--primary-color);
}

.nav-links,
.mobile-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-links a,
.mobile-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1e1e1e;
    min-width: 160px;
    z-index: 1;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: var(--text-light);
}

.dropdown-content a:hover {
    background-color: #2a2a2a;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.4s;
}

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

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

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

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 1rem;
    background: #1e1e1e;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    animation: slideDown 0.4s ease forwards;
    width: 180px;
    /* oppure 180px se vuoi ancora più sottile */
}

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

.mobile-menu a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    z-index: -1;
}

header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    animation: fadeIn 3s ease-in-out;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 1rem;
}

.writing-effect {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    border-right: none;
    width: 0;
    animation: typing 6s steps(40, end) 1s forwards;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

section ul {
    list-style: none;
}

section ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

#galleria img {
    width: 100%;
    max-width: 300px;
    margin: 10px;
    border-radius: 10px;
    transition: transform 0.3s;
}

#galleria img:hover {
    transform: scale(1.05);
}



.galleria-section.active {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 90px 1rem 2rem 1rem !important;
    margin: 0 auto;
    box-sizing: border-box;
    background: #181818;
    text-align: center;
}

.messenger-btn {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.messenger-btn a {
    background-color: #0084ff;
    color: white;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

.messenger-btn a:hover {
    background-color: #006fd6;
}





@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox .lb-data .lb-caption {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- GALLERIA RESPONSIVE --- */
.galleria-section {
    display: none !important;
    padding: 0 1rem !important;
    box-sizing: border-box;
}

.carousel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}



/* Slick dots e arrows più grandi su mobile */
.slick-dots li button:before {
    font-size: 18px;
}

.slick-arrow {
    width: 38px;
    height: 38px;
}

.slick-arrow:before {
    font-size: 22px;
}

/* --- CONTATTAMI RESPONSIVE --- */
#contattami {
    height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* questo centra verticalmente */

}

.messenger-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}





body.lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .lightbox-overlay .nav-arrow.left {
        left: 5%;
    }

    .lightbox-overlay .nav-arrow.right {
        right: 5px;
    }

    #modalTrattamenti .trattamenti-container {
        padding: 1.5rem;
    }

    #modalTrattamenti h2 {
        font-size: 1.8rem;
    }

    #modalTrattamenti ul li {
        padding: 0.6rem 0;
    }
}

.slick-prev:before,
.slick-next:before {
    color: var(--primary-color);
    font-size: 22px;
    opacity: 1;
}



.pulse-button {
    background: linear-gradient(145deg, #0084ff, #005bbb);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pulse-button:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pulse-button::before,
.pulse-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    border: 1.5px solid #0084ff;
    border-radius: 50px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: subtlePulse 2.8s ease-out infinite;
    pointer-events: none;
    z-index: 0;
}

.pulse-button::after {
    animation-delay: 1.4s;
}

@keyframes subtlePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

section {
    opacity: 0;
    transition: opacity 0.8s ease;
}

section.active {
    opacity: 1;
}

.fade-in {
    animation: fadePageIn 0.8s ease forwards;
}

@keyframes fadePageIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.next-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    gap: 8px;
    cursor: pointer;
}

.next-arrow span {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.stretch-arrow {
    width: 10px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50px;
    animation: breath 2.5s infinite ease-in-out;
    transition: transform 0.3s;
}

.stretch-arrow.animate {
    animation: stretchOnce 0.5s ease-out;
}

@keyframes breath {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(1.5);
        opacity: 0.7;
    }
}

@keyframes stretchOnce {
    0% {
        transform: scaleY(1);
    }

    30% {
        transform: scaleY(1.6);
    }

    60% {
        transform: scaleY(0.85);
    }

    100% {
        transform: scaleY(1);
    }
}

.accordion-group {
    width: 100%;
}

.accordion-header {
    font-weight: bold;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
}

.accordion-header .arrow {
    transition: transform 0.3s ease;
}

.accordion-group.open .accordion-header .arrow {
    transform: rotate(90deg);
}

.accordion-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    padding-left: 10px;
    transition: max-height 0.4s ease;
}

.mobile-menu .accordion-content a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.accordion-group.open .accordion-content {
    max-height: 500px;
}

.accordion-header:hover,
.accordion-header:hover a {
    color: red;
    transition: color 0.3s ease;
}

.overlay-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* meglio semi-trasparente */
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.trattamento-slide {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    scroll-snap-align: start;
    background-color: #1e1e1e;
    color: #fff;
    text-align: center;
}

.zoom-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.dots-indicator {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

.dots-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888;
}

.dots-indicator .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.close-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    z-index: 10001;
}

/* Modal Trattamenti */
#modalTrattamenti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#modalTrattamenti.overlay-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modalTrattamenti .trattamenti-container {
    background: #1e1e1e;
    color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 40px #000a;
    text-align: center;
}

#modalTrattamenti h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

#modalTrattamenti ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-light);
}

#modalTrattamenti ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #444;
}

#modalTrattamenti .close-overlay {
    margin-top: 2rem;
    background: #ff0033;
    color: #fff;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
}



/* Effetto Apple Hero per la sezione trattamenti */
#trattamenti {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #181818;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    margin-top: 0;
}

.trattamenti-hero {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: #181818;
    pointer-events: none;
    transition: height 0.5s;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trattamenti-header {
    font-size: 6vw;
    color: #ff0033;
    text-align: center;
    transition: font-size 0.4s cubic-bezier(.4, 1.4, .6, 1), transform 0.4s cubic-bezier(.4, 1.4, .6, 1), opacity 0.4s;
    will-change: font-size, transform, opacity;
    margin: 0;
    line-height: 1.1;
}

.trattamenti-list {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    z-index: 1;
    position: relative;
}

.trattamento-item {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(.4, 1.4, .6, 1), transform 0.7s cubic-bezier(.4, 1.4, .6, 1);
    font-size: 1.2rem;
    color: #f9f9f9;
    text-align: left;
    margin-bottom: 0.7rem;
}

.trattamento-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1.02);
}

/* Nasconde la lista finché non si scrolla */
.trattamenti-list {
    pointer-events: none;
}

.trattamenti-cat {
    color: #ff0033;
    font-size: 1.5rem;
    margin: 2.2rem 0 0.7rem 0;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0.92;
}

.trattamenti-list>li {
    margin-bottom: 1.5rem;
}

.trattamenti-list ul {
    margin-left: 0;
    padding-left: 0;
}

.hide-main>header,
.hide-main>section:not(#trattamenti),
.hide-main>.galleria-section,
.hide-main>#contattami {
    display: none !important;
}

body.only-trattamenti header,
body.only-trattamenti section:not(#trattamenti),
body.only-trattamenti .galleria-section,
body.only-trattamenti #contattami {
    display: none !important;
}

body.only-trattamenti #trattamenti {
    display: block !important;
}

.galleria-section,
#galleria-viso,
#galleria-nails,
#galleria-corpo,
#contattami {
    margin-top: 0 !important;
    padding-top: 90px;
    /* uguale o leggermente più della navbar */
}

section.active,
.galleria-section.active,
#contattami.active {
    display: block !important;
}


.carousel {
    width: 100%;
    max-width: 600px;
}

.carousel img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    cursor: pointer;
}

/* ===== Lightbox Styles ===== */
.lightboxOverlay {
    background: rgba(0, 0, 0, 0.8) !important;
    animation: fadeInOverlay 0.4s ease-out;
    transition: opacity 0.4s !important;
}

.lightboxOverlay.lightboxFade {
    opacity: 1 !important;
}

.lightbox {
    transition: opacity 0.4s !important;
}

.lightbox.lightboxFade {
    opacity: 1 !important;
}

/* CUSTOM CAROUSEL STYLES */
.custom-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    min-height: 350px;
    user-select: none;
}

.carousel-track {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.carousel-track a {
    display: none;
    opacity: 0;
    transition: opacity 0.5s;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-track a.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s;
}

.carousel-arrow {
    background: #ff0033;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 10px;
    z-index: 2;
    transition: background 0.2s;
}

.carousel-arrow:hover {
    background: #c90027;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #888;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #ff0033;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



/* Nasconde i dots (pallini) di Slick Carousel */
.slick-dots {
    display: none !important;
}

/* Posizionamento responsive delle frecce Slick Carousel */
.carousel .slick-prev,
.carousel .slick-next {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.carousel .slick-prev {
    left: 0;
    right: auto;
}

.carousel .slick-next {
    right: 0;
    left: auto;
}




@media (min-width: 601px) {
    .galleria-section {
        padding: 0 2rem !important;
    }

    #contattami {
        padding: 2.5rem 2rem 4rem 2rem;
        max-width: 600px;
    }

    .carousel .slick-prev {
        left: -32px !important;
    }

    .carousel .slick-next {
        right: -32px !important;
    }
}

/* Freccia scroll-down sotto il titolo trattamenti */
.scroll-down-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    height: 38px;
    width: 100%;
    pointer-events: auto;
}

.scroll-down-arrow span {
    display: block;
    width: 28px;
    height: 28px;
    border-left: 4px solid #ff0033;
    border-bottom: 4px solid #ff0033;
    transform: rotate(-45deg);
    opacity: 0.85;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .galleria-section {
        padding: 0 0.5rem !important;
    }

    .carousel {
        max-width: 98vw;
    }

    .carousel img {
        max-width: 95vw;
        min-width: 0;
    }

    #contattami {
        padding: 1.5rem 0.5rem;
        max-width: 98vw;
        height: auto;
        min-height: 100vh;
    }

    .custom-carousel {
        max-width: 98vw;
    }

    .carousel-track a img {
        max-width: 90vw;
    }

    .carousel .slick-prev {
        left: -8px !important;
    }

    .carousel .slick-next {
        right: -8px !important;
    }

    .pulse-button {
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 24px;
    }

    .pulse-button i {
        font-size: 16px;
    }

    .pulse-button span {
        font-size: 14px;
    }

    #toggleAudio {
        font-size: 14px !important;
        padding: 10px 14px !important;
    }
}

.writing-effect {
    will-change: width;
}

.carousel img:hover {
    will-change: transform;
}