html {
    scroll-behavior: auto !important;
}

/* BS SIZE BUGS */

.row-cols-2 > * {
    flex: 0 0 auto !important;
    width: 50% !important;
}
@media (min-width: 768px) {
    .row-cols-md-4 > * {
        flex: 0 0 auto !important;
        width: 25% !important;
    }   
    .row-cols-md-6 > * {
        flex: 0 0 auto !important;
        width: 16.66666667% !important;
    }
}
@media (min-width: 992px) {
    .row-cols-lg-6 > * {
        flex: 0 0 auto !important;
        width: 16.66666667% !important;
    }
    .row-cols-lg-8 > * {
        flex: 0 0 auto !important;
        width: 12.5% !important;
    }
}
@media (min-width: 1200px) {
    .row-cols-xl-8 > * {
        flex: 0 0 auto !important;
        width: 12.5% !important;
    }
}

/* COLOR SCHEME OVERRIDE */

header.sticky-top {
    z-index: 1022;
}
.navbar {
    background-color: #f0f0f0 !important;
    transition: .3s linear all;
}
.navbar-scrolled {
    background-color: #e7f4ff !important;
    transition: .3s linear all;
}
.navbar *, .nav-item a {
    transition: .3s linear all;
}
.navbar-scrolled .nav-item a {
    color: #212121 !important;
    transition: .3s linear all;
}
.bg-light-semitransparent {
    background-color: rgba(247,247,247,.8);
}
.slab-inner-container, .due-colonne-inner-container {
    background-color: rgba(247,247,247,1);
}
.slab-paragrafo, .due-colonne-paragrafo {
    color: var(--bs-dark, #212121) !important;
}
.slab-inner-container, .due-colonne-inner-container {
    background-image: none !important;
}
a.btn.btn-lg.bg-red:not(#news a.btn.btn-lg.bg-red) {
    font-family: var(--oswald) !important;
    background-color: #953553 !important;
}
.immagine-wrapper {
    border: 1px solid var(--bs-dark, #202020);
}
.text-purple, #news span.d-block.lh-1.display-1.fw-bold.text-red.text-outline, #top-hairstylist h3 span {
    color: #953553 !important;
}
.bg-purple, #news a.btn.btn-lg.bg-red.fs-5.text-light.text-uppercase.rounded-0 {
    background-color: #953553 !important;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #953553 !important;
}
.origin, .dateNews {
    font-size: 17px;
    text-align: center;
    color: #953553 !important;
}
.navbar-toggler {
    border-radius: 0;
}
.origin, .date, .number {
    color: #212121 !important;
}

/* SECTION OVERRIDES */

.container.bg-light-semitransparent.p-lg-5.p-3 {
    box-shadow: 0px 0px 3px rgba(0, 0, 0, .2);
}

/* TYPOGRAPHY */

h1 span {
    display: block;
}
.material-symbols-outlined:not(.close-offcanvas) {
    font-size: 28px !important;
    width: 28px;
    height: 28px;
}
.slogan-titolo {
    font-family: var(--oswald, sans-serif) !important;
    font-size: clamp(1.5rem, 5vw, 3rem) !important;
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,.8)) !important;
    letter-spacing: 2px;
}
.news-title span:nth-child(1) {
    font-size: clamp(1.1rem, 3.5vw, 2.2rem);
}
.news-title span:nth-child(2) {
    font-size: clamp(1.8rem, 7vw, 4rem);
}
.news-title span:nth-child(3) {
    font-size: clamp(0.9rem, 2.8vw, 1.4rem);
}
.news-link {
    font-size: clamp(0.75rem, 2.5vw, 1.15rem) !important;
    padding: clamp(0.4rem, 1.5vw, 0.75rem) clamp(0.8rem, 3vw, 1.5rem);
    white-space: nowrap;
}
.oswald {
    font-family: var(--oswald) !important;
}

/* NAVBAR OVERRIDE */

header, .navbar {
    min-height: 86px;
}
.navbar-logo {
    max-height: 70px;
    height: auto;
    width: auto;
}

/*  VOTING */

#inner-voting {
    width: fit-content; 
    margin: 2rem auto;
    border: 1px solid rgba(0,0,0,.1);
    background-color: rgba(0,0,0,.7);
}
span.rating-info {
    color: #ffffff !important;
}
a#btnRecensioni_parrucchieri-italia {
    color: #212121 !important;
    font-weight: 600 !important;
}
.btn-outline-light {
    border-color: #212121 !important;
}
.btn-vota-trigger:hover {
    color: #ffffff;
}
#votingModal .modal-header {
    background-color: transparent !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
}
#votingModal .modal-content {
    background: transparent !important;
    border: none;
    padding: 0rem !important;
}
@media (max-width: 550px){
    .persona-rating-box.d-inline-flex.align-items-center.gap-3 {
        display: flex !important;
        flex-direction: column;
        gap: .5rem !important;
    }
}

/* NAVBAR ADDITIONAL STYLES */

header.sticky-top {
    top: 0 !important;
}
.navbar-brand img {
    width: auto;
    height: 70px !important;
    max-height: unset !important;
}
nav.navbar ul.dropdown-menu {
    width: max-content;
    max-height: 242px;
    overflow-y: overlay;
    overflow-x: hidden;
}
nav.navbar.dropdown-item.active, nav.navbar.dropdown-item:active {
    background-color: #f8f9fa !important;
}
nav.navbar ul.dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: #cc0000 #f1f1f1;
}
nav.navbar ul.dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
nav.navbar ul.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    box-shadow: inset 0 0 0 1px #f1f1f1;
}
nav.navbar ul.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #cc0000 !important;
    border-radius: 0;
}
nav.navbar ul.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background-color: #ff0000 !important;
}
.sticky-top.inner-sticky-top {
    background: #953553;
    top: 86px !important;
}

/* HOME SECTION */

#home {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#home.inner-home, #home-inner {
    position: relative;
    width: 100%;
    height: calc(50vh - var(--navbar-height)) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.video-bg-wrapper {
    top: calc(var(--navbar-height) - 1px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height) + 1px);
    position: fixed;
    z-index: -1;
}
#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* filter: brightness(1) contrast(1.2) saturate(1.2); */
}
.content-layer {
    position: relative; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,.9));
    opacity: 1;
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.content-layer-scrolled {
    transform: translateY(-15vh); 
    pointer-events: none;
    opacity: 0;
}
.logo-wrapper {
    width: 70% !important;
    /* filter: invert(1); */
}

/* SOUND MUTE/UNMUTE */

.sound-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, .8);
    border: none;
    border-radius: 8px 0 0 8px;
    color: #ffffff;
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: .3s linear all;
}
.sound-toggle-btn:hover {
    background-color: #ffffff;
    color: #212121 !important;
    transition: .3s linear all;
}
.sound-toggle-btn span {
    display: contents;
}
.sound-icon {
    fill: currentColor;
    width: 22px;
    height: 22px;
}
.hidden {
    display: none !important;
}

/* HEADLINE TEXTS */

.slab-container {
    container-type: inline-size;
    width: 100%;
}
.slab-text {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    gap: 0.5cqw; 
}
.slab-line {
    display: block;
    width: 100%;
}
.line-1, .line-3 { 
    font-size: 9cqw; 
}
.line-2 { 
    font-size: 16cqw; 
    transform: translateY(-0.04em);
}
.line-4 { 
    font-size: 12cqw; 
}

/* GALLERY */

.gallery-item .gallery-overlay {
    background: rgba(0,0,0,.15);
    opacity: 1;
    transform: scale(1);
    transform-origin: center;
    transition: .5s linear all;
}
.gallery-item:hover .gallery-overlay {
    opacity: 0;
    transform: scale(6);
    transition: .5s linear all;
}
.gallery-item img {
    transform: scale(1);
    transition: .3s linear all;
}
.gallery-item:hover img {
    transform: scale(1.2);
    transition: .3s linear all;
}
.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover {
    border-color: #953553;
}
.lg-backdrop {
    background-color: rgba(0,0,0,.95) !important;
}

/* CONTACT */

.border-wrapper {
    border: 1px solid var(--bs-dark, #202020);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}
#map-main {
    position: relative !important;
    width: 100%;
    height: 100%;
    min-height: 50vh; /* Fallback for mobile views */
    flex-grow: 1;
    z-index: 99;
}
.leaflet-popup-content-wrapper {
    border-radius: 0;
}
.leaflet-touch .leaflet-control-attribution, .leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    box-shadow: none;
}
.leaflet-bottom.leaflet-right {
    display: none;
}
.leaflet-popup-content {
    font-family: var(--oswald);
    font-weight: 400 !important;
    font-size: 1rem;
    margin: 13px 19px;
    line-height: 1.4;
    text-align: center;
    border-radius: 0 !important;
    color: black;
}
.leaflet-marker-icon {
    filter: brightness(0.7) sepia(1) hue-rotate(300deg) saturate(3.5);
}
#contact-modal .text-red {
    color: #953553 !important;
}
button#idContactUs-submit, #contact-modal button.close.bg-red {
    background-color: #953553 !important;
}

/* PRENOTA OVERRRIDE */

button#idPrenotaFixed-submit {
    background-color: #953553 !important;
}
a#prenota-policy-privacy {
    color: #953553;
}

/* SWIPER SLIDER */

.swiper-slider {
    width: 100%;
    position: relative; 
    min-height: 250px; 
}
.swiper-wrapper, .swiper-slide {
    height: 100% !important;
    width: 100% !important;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.swiper-button-next, .swiper-button-prev {
    color: #953553 !important;
}
.swiper-button-next {
    background: rgba(255,255,255,.4);
    padding: 5px;
    width: 50px;
    height: 50px;
    right: 0 !important;
}
.swiper-button-prev {
    background: rgba(255,255,255,.4);
    padding: 5px;
    width: 50px;
    height: 50px;
    left: 0 !important;
}
.swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: .9;
    width: 10px;
    height: 10px;
    margin: 0 8px !important;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
}
.swiper-pagination-bullet-active {
    background: #953553 !important;
    opacity: 1;
    transform: scale(1.5);
}

/* INNER VIDEOS */

.video-container {
    position: relative;
    overflow: hidden;
}
.custom-video-top-bar, .custom-video-controls {
    position: absolute;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10;
    opacity: 1 !important;
    transition: none;
}
.custom-video-top-bar {
    top: 0;
}
.custom-video-controls {
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
}
.custom-video-btn {
    background-color: #fbe0fc !important;
    color: #000000 !important;
    border: none !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}
.custom-video-btn:hover {
    background-color: #953553 !important;
    color: #ffffff !important;
}
.custom-video-btn .material-symbols-outlined {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    pointer-events: none !important;
}

/* SCROLL TOP */

.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 25px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e7f4ff;
    color: #202020;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.back-to-top svg {
    width: 28px;
    height: 28px;
    transition: fill 0.3s ease;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background-color: #953553;
    color: #ffffff;
    transform: translateY(-3px);
}
.back-to-top:hover svg {
    fill: #ffffff;
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
    .back-to-top svg {
        width: 24px;
        height: 24px;
    }
}

/* MEDIA */

@media (max-width: 1440px) {
    .slab-line {
        font-size: 7.5vw !important;
    }
}
@media (max-width: 1199px) {
    .home-logo {
        width: auto !important;
        max-height: 30% !important;
    }
    .main-title.text-light {
        font-size: clamp(2rem, 10vw, 5rem) !important;
    }
    .nav-item {
        text-align: center;
        float: none;
        display: block;
        margin: auto;
    }
    #navbarNav ul.dropdown-menu {
        background-color: transparent;
        border-left: none;
        border-right: none;
        text-align: center;
    }
    #navbarNav ul.dropdown-menu li a span {
        margin: auto;
    }
    .slab-text { 
        gap: 5px; 
        text-align: center !important;
    }
    .sovrimpressione-testo {
        font-size: 2rem !important;
    }
    .vh-75 {
        min-height: 50vh !important;
    }
    .news-btn {
        min-width: unset;
    }
}
@media (max-width: 650px){
    section:not(#home) {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    a.btn.btn-lg.bg-red.fs-5.text-light.text-uppercase.rounded-0 {
        margin: 0 auto 1.2rem auto !important;
    }
    .slogan-titolo {
        line-height: 2rem !important;
        filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, .8)) !important;
    }
}