:root {
    --light-color: #F8F9FA;
    --dark-color: #6e6e6e;
    --white-color: #FFFFFF;
    --black-color: #191919;
    --gray-color: #A6A6A6;
    --primary-color-base: #EC077D;
    --primary-color-dark: #A30556;
    --primary-color-light: #F48FB2;
    --primary-color-lighter: #ebc1d6;

    --complement-color-base: #07EC9A;
    --complement-color-dark: #7EC700;
    --complement-color-light: #C1F962;
    --complement-color-lighter: #d5f1a5;
    --complement-color-darkest: #2E4417;

    --purple-color: #4a2454;
    --beige-color: #f8f1ea;
    --brown-light: #D2B48C;
}
html {
    scroll-behavior: smooth;
}
#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #f3f3f3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}
#loader.fade-out {
    opacity: 0;
}

#loader img {
    max-width: 200px; /* Puoi regolare la dimensione dell'immagine */
    margin-bottom: 20px; /* Spazio tra l'immagine e il loader spin */
}

.spinner {
    border: 8px solid var(--beige-color);
    border-top: 8px solid var(--primary-color-dark);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.logo {
    height: 34px;
    display: block;
}
.anchor-target {
    position: relative;
    padding-top: 40px; /* Altezza dell'header fisso */
    margin-top: -40px; /* Altezza dell'header fisso */
}
.text-white {
    color: var(--white-color) !important;
}
.text-primary {
    color: var(--primary-color-base) !important;
}
.text-dark {
    color: var(--black-color) !important;
}
.text-complement-darkest {
    color: var(--complement-color-darkest) !important;
}
.bg-dark {
    background-color: var(--dark-color) !important;
}
.bg-brown-light {
    background-color: var(--brown-light) !important;
}
.bg-primary {
    background-color: var(--primary-color-base) !important;
}
.bg-primary-dark {
    background-color: var(--primary-color-dark) !important;
}
.bg-primary-light {
    background-color: var(--primary-color-light) !important;
}
.bg-primary-lighter {
    background-color: var(--primary-color-lighter) !important;
}
.bg-complement {
    background-color: var(--complement-color-base) !important;
}
.bg-complement-dark {
    background-color: var(--complement-color-dark) !important;
}
.bg-complement-light {
    background-color: var(--complement-color-light) !important;
}
.bg-complement-lighter {
    background-color: var(--complement-color-lighter) !important;
}

.btn {
    padding: 16px;
    line-height: 16px;
    height: 48px;
    text-decoration: none;
    color: var(--white-color);
    font-weight: 700;
    border-radius: 5px;
}
.btn:hover {
    background-color: var(--primary-color-dark) !important;
    color: var(--white-color) !important;
}
.position-relative {
    position: relative !important;
}

.bg-beige {
    background-color: var(--beige-color);
}
.bg-black-stained {
    background: var(--dark-color) url(../images/home_salmon_sectionbg5.webp) no-repeat center top;
    width: 100%;
}
.bg-beige::after {
    background-image: url(../images/home_salmon_sectionbg1.webp);
    background-repeat: no-repeat;
    background-position: center bottom;
    height: 64px;
    width: 100%;
    content: "";
    position: absolute;
}
.bg-icecreams-stained {
    background-color: var(--primary-color-base);
    background-image: url(../images/logo.webp);
    background-repeat: repeat;
    background-size: 50px 50px; /* Dimensione del quadrato */
    transform-origin: center;
    animation: move-diagonal 10s linear infinite;
    position: relative;
}

.bg-complement-dark {
    background-color: var(--complement-color-dark);
}
.icecream-stained::before {
    top: -66px;
    height: 64px;
    width: 100%;
    content: "";
    position: absolute;
    background-image: url(../images/stained.svg);
    background-position: center bottom;
    background-size: cover;
    bottom: 0;
    margin-top: 64px;
    transform: rotate(180deg);
}
.icecream-dripping::before {
    top: -66px;
    height: 120px;
    width: 100%;
    content: "";
    position: absolute;
    background-image: url(../images/icecream_dripping.webp);
    background-position: center bottom;
    background-size: 400px;
    background-repeat: no-repeat;
    bottom: 0;
    margin-top: 60px;
    z-index: 1;
}

@keyframes move-diagonal {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px; /* Regola la distanza di movimento */
    }
}
.social-banner {
    min-height: 450px;
    padding-bottom: 3rem;
}
.social-banner::after {
    height: 64px;
    width: 100%;
    content: "";
    position: absolute;
    background-image: url(../images/stained.svg);
    background-position: center bottom;
    background-size: cover;
    bottom: 0;
    margin-top: 64px
}

body {
    margin: 0;
    font-family: 'Red Hat Text', sans-serif;
    font-size: 16px;
    color: var(--dark-color);
}
img {
    max-width: 100%;
}

/********** Header **********/
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0px -5px 20px var(--primary-color-base);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    min-width: 300px;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

.nav-item {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    line-height: 48px;
    height: 48px;
    display: block;
}

.nav-item:hover {
    color: var(--primary-color-dark) !important;
}
.active>a,
.nav-item:active {
    color: var(--primary-color-base);
    font-weight: 700;
}
.nav-item:focus {
    color: var(--purple-color) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    height: 48px;
    width: 48px;
    background-image: url(../icons/hamburgher.svg);
    background-size: 36px 36px;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.3s ease, filter 0.3s ease;
}
.menu-toggle:hover {
    background-color: var(--primary-color-base);
    border-radius: 5px;
}

.close-menu {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .active {
        background-color: var(--primary-color-light);
    }
    .menu-toggle {
        display: flex;
    }

    nav #nav-links-container {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 300px;
        background: var(--black-color);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    nav #nav-links-container.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        height: 100%;
        margin-top: 64px;
    }

    nav ul li {
        margin: 20px 0 0 0;
        color: var(--gray-color);
        width: 100%;
    }
    nav ul li .nav-item {
        display: block;
        padding: 0 24px; 
        color: var(--white-color) !important;   
    }
    .active>a, .nav-item:active {
        color: var(--black-color) !important;
    }
    .nav-item:focus {
        color: var(--complement-color-light) !important;
    }
    .nav-item:hover {
        color: var(--primary-color-lighter) !important;
    }
    .active>a:hover {
        color: var(--primary-color-dark) !important;
    }


    .close-menu {
        display: block;
        position: absolute;
        top: 0px;
        right: 20px;
        width: auto;
        padding: 0;
        height: 48px;
        width: 48px;
        background-image: url(../icons/close.svg);
    }
    .close-menu:hover {
        filter: invert(1);
    }
}

/********** Common **********/
.w-75 {
    width: 75% !important;
}
.mt-3 {
    margin-top: 3rem !important;
}
.mt-5 {
    margin-top: 8rem !important;
}
.pt-5 {
    padding-top: 8rem !important;
}
.py-2 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
.mx-1 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}
.border-radius {
    border-radius: 16px;
}
/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.shift-content-after-header{
    margin-top: 60px;
}

.hero {
    width: 100%;
    height: auto;
    min-height: 365px;
    object-fit: cover;
    object-position: center;
}
.go-to-content {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    margin-top: -128px;
}


@media (min-width: 1024px) {
    .go-to-content {
        margin-top: -128px;
    }
}
@media (max-width: 765px) {
    .go-to-content {
        margin-top: -100px;
    }
}
@media (max-width: 576px) {
    .go-to-content {
        margin-top: -64px;
    }
    .w-75 {
        width: 100% !important;
    }
}
.circle {
    width: 64px;
    height: 64px;
    display: block;
    border-radius: 50%;
    box-shadow: 0px 0px 1px 1px #0000001a;
    background-color: var(--white-color);
  }

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 0 40px rgba(0, 0, 0, 0);
    }
}
.text-purple {
    color: var(--purple-color) !important;
}
.text-primary-dark {
    color: var(--primary-color-dark) !important;
}
.padding-24 {
    padding: 24px;
}
.padding-bottom-none {
    padding-bottom: 0 !important;
}
.h2 {
    font-size: 2.8rem;
    line-height: 3.2rem;
    font-family: "Rammetto One", serif;
    font-weight: 400;
    margin: 2rem 0;
}
.h2-subtitle {
    color: var(--primary-color-base);
    font-family: "Do Hyeon", sans-serif !important;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0;
    position: relative;
}
.h2-subtitle::after{
    width: 50px; 
    height: 1px; 
    background: #ed037c; 
    margin-left: 20px; 
    display: inline-block; 
    top: 0px;
    content: "";
}

.grid-section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 5rem;
    align-items: center;
}

.grid-section .padding-24,
.grid-section picture,
.grid-section .carousel {
    flex: 1 1 45%;
}

@media (max-width: 768px) {
    .grid-section {
        flex-direction: column;
    }

    .grid-section .padding-24,
    .grid-section picture,
    .grid-section .carousel {
        flex: 1 1 100%;
    }
}

blockquote {
    margin: 0 !important;
    padding: 24px;
    border-left: 5px solid var(--primary-color-base);
    font-weight: 300;
    font-style: italic;
    font-size: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

#golous-section {
    padding: 0px;
    background-image: url(../images/minimal2-details-largebg-2.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    min-height: 984px;
}
@media (max-width: 768px) {
    #golous-section {
        background-image: url(../images/minimal2-details-largebg-2-square.webp);
        min-height: 660px;
        background-size: 800px;
        background-position-y: bottom;
    }
}
@media (max-width: 576px) {
    #golous-section {
        min-height: 400px;
        background-size: 500px;
    }
}

.stack-pink::before {
    height: 75px;
    width: 3px;
    position: absolute;
    left: 50px;
    top: -25px;
    background-color: var(--primary-color-base);
    content: "";
}
.text-center {
    text-align: center !important;
}
.masonry-four {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 1em;
}
.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1em;
}
.masonry-item {
    padding: 0;
    margin: 0;
    background: var(--white-color);
    background-position-x:  center;
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}
.masonry-item-container {
    padding: 16px;
} 
.masonry-item h3 {
    margin: 0;
    text-shadow: 0px -5px 8px #ffffff;
    font-size: 1.6rem;
}
.masonry-item p {
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 0;
    font-size: 0.9rem;
}

.wide {
    grid-column: span 2;
}

.masonry-item {
    position: relative;
    min-height: 100px;
}

.masonry-item-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-width: 300px;
    padding: 5px;
    z-index: 2;
}

.masonry-item-right {
    bottom: 40% !important;
    right: 0 !important;
    transform: none !important;
    font-size: 2vw;
}

.masonry-item picture {
    width: 100%;
    height: 100%;
}

.masonry-item picture img {
    width: 400px;
    height: auto;
    max-height: 400px;
    z-index: 1;
    position: relative;
}
@media (max-width: 940px) {
    .wide {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .masonry {
        grid-template-columns: 1fr;
    }
    
    .masonry-four {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .masonry-item {
        min-height: 180px !important;
    }
    .masonry-item-right {
        bottom: 0% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 1.5rem;
    }
    .masonry-item-left {
        top: 25% !important;
        left: 16px !important;
        transform: none !important;
        font-size: 1.1vw;
        text-align: left;
    }
    .masonry-item h3 {
        font-size: 5vw;
        width: 65%;
    }
    .masonry-item p {
        margin: 24px 0 0 0;
        width: 60%;
    }
    .masonry-item img {
        position: absolute !important;
        right: -20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 150px !important;
        height: auto !important;
        z-index: 9 !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-image: url(../images/bg-product.webp);
    }

    [class^="sing-domus-"]::before {
        background: none !important;
        content: none;
    }
    
}
@media (max-width: 1024px) {
    .masonry-four {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Card Quality */
.card.quality {
    display: flex;
    flex-direction: row;
    align-items: left;
    text-align: left;
}

.card.quality picture {
    order: -1;
    max-width: 50px;
    max-height: 50px;
    margin-bottom: 8px;
}

.card.quality .card-body {
    order: 1;
    padding: 0 0 16px 16px;
}
.card.quality .h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.0rem;
    line-height: 1.3rem;
}

.card.quality img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 50px;
}
.quality-body {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 5rem;
}
em {
    font-style: normal;
    background-color: var(--primary-color-dark);
    color: var(--white-color);
    font-weight: 600;
    padding: 0 5px;
}
#intollerance {
    position: relative;
}
#intollerance::before {
    content: ' ';
 background-image: url(../images/lampone-3.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 630px;
    width: 1000px;
    height: 250px;
    position: absolute;
    top: -128px;
    left: 25%;
    z-index: 1;    
  animation: floatY 6s ease-in-out infinite;
}

/* Animazione verticale */
@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes floatYDesktop {
    0%   { background-position-y: 128%; }
    50%  { background-position-y: 132%; }
    100% { background-position-y: 128%; }
}




/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  #intollerance::before {
background-size: 510px;
        width: 500px;
        height: 200px;
        top: -124px;
        left: 62%;
        transform: translateX(-50%);
  }
}

/* Mobile (max-width: 575px) */
@media (max-width: 575px) {
  #intollerance::before {
background-size: 320px;
        width: 90%;
        height: 150px;
        top: -64px;
        left: 16px;
        transform: translateX(-50%);
  }
}


#intollerance h3 {
    font-size: 2rem;
    line-height: 1.9rem;
}
.intollerance-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
}
.intollerance-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 320px;
}
.intollerance-icon {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
#intollerance-banner {
    background-image: url(../images/lampone-1.webp);
    background-position-y: 128%;
    background-repeat: no-repeat;
    background-size: 250px;
    background-position-x: 250px;
    position: relative;
    animation: floatYDesktop 5s ease-in-out infinite;

}
#intollerance-banner::after {
    content: ' ';
 background-image: url(../images/lampone-2.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 250px;
    height: 250px;
    position: absolute;
    bottom: -36px;
    right: -48px;
}
@media (max-width: 991px) {
    #intollerance-banner::after {
        display: none;
    }
    #intollerance-banner {
        background-position-y: 116%;
        background-size: 296px;
        background-position-x: 78%;
    }
}
@media (max-width: 575px) {
    #intollerance-banner::after {
        display: inline;
        background-size: contain;
        width: 180px;
        height: 250px;
        bottom: -109px;
        right: -16px;
        animation: floatY 5s ease-in-out infinite;
    }
    #intollerance-banner {
    background-image: none;
    }

}

@media (max-width: 1024px) {
    .card.quality {
        flex-direction: column;
    }
    .card.quality .card-body {
        padding-left: 0px;
    }
}
@media (min-width: 800px) {
    #qualita .padding-24 {
        order: 2;
    }
    #qualita .hero {
        order: 1;
    }
    .sing-domus-corner-top-left::before {
        content: "";
        position: absolute;
        top: -24px;
        left: calc(100% - 100px);
        width: 200px;
        height: 200px;
        background: url(../images/sign-domus.webp) no-repeat center center;
        background-size: cover;
        transform: rotate(45deg);
        z-index: 0;
    }
    
    .sing-domus-bottom-right::before {
        content: "";
        position: absolute;
        bottom: -250px;
        left: calc(100% - 400px);
        width: 400px;
        height: 400px;
        background: url(../images/sign-domus.webp) no-repeat center center;
        background-size: cover;
        /* transform: rotate(45deg); */
        z-index: 0;
    }
    .sing-domus-top-right::before {
        content: "";
        position: absolute;
        top: -110px;
        left: calc(100% - 200px);
        width: 300px;
        height: 300px;
        background: url(../images/sign-domus.webp) no-repeat center center;
        background-size: cover;
        transform: rotate(-240deg);
        z-index: 0;
    }
    .sing-domus-corner-top-right::before {
        content: "";
        position: absolute;
        top: -24px;
        left: -100px;
        width: 200px;
        height: 200px;
        background: url(../images/sign-domus.webp) no-repeat center center;
        background-size: cover;
        transform: rotate(-45deg);
        z-index: 0;
    }
    .sing-domus-corner-bottom-left::before {
        content: "";
        position: absolute;
        bottom: -24px;
        left: calc(100% - 100px);
        width: 200px;
        height: 200px;
        background: url(../images/sign-domus.webp) no-repeat center center;
        background-size: cover;
        transform: rotate(-45deg);
        z-index: 0;
    }
}
.social-banner .h2::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    background-image: url(../icons/instagram.svg);
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 16px;
}
/* CAROSELLO */
.carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 5px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
}

.carousel-slide img {
    width: 100%;
    display: block;
    max-width: 100%;
    height: 100%;
}
#team p {
    width: 80%;
    margin: 0 auto;
}
address {
    font-style: normal !important;
}
address a {
    color: var(--purple-color);
}
address a:hover {
    color: var(--primary-color-base);
}
address .name {
    font-weight: 700;
    display: flex;

}
address .icon::before {
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}
address .address::before {
    background-image: url(../icons/pin_drop.svg);
}
address .address {
    font-weight: 700;
    display: flex;
    gap: 4px;
    align-items: center;
    position: relative;
}
address .phone,
address .email {
    font-weight: 700;
    display: inline-block;
    align-items: center;
}
address .phone::before {
    background-image: url(../icons/call.svg);
}
address .email::before {
    background-image: url(../icons/mail.svg);
}
.full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: underline;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Disposizione a una colonna per dispositivi mobili */
address {
    display: grid;
    grid-template-columns: 1fr;
}
address hr {
    width: 128px;
    height: 4px;
    background-color: var(--primary-color-base);
    border: none;
    margin-inline-start: 0;
    margin-inline-end: 0;
}
address .rating {
    display: flex;
    gap: 4px;
    flex-direction: column;
}
.three-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
/* Disposizione a tre colonne per dispositivi desktop */
@media (min-width: 1024px) {
    .three-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .address {
        display: flow !important;
        margin-left: 32px;
    }
    .address::before {
        position: absolute;
        left: -36px;
    }
    .icecream-stained {
        background-size: 200px;
    }
    .social-banner {
        padding-bottom: 0;
    }
}
.social {
    display: flex;
    gap: 16px;
}
.facebook::before {
    background-image: url(../icons/facebook.svg);
    width: 48px;
    height: 48px;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    content: "";
    display: block;
}
.instagram::before {
    background-image: url(../icons/instagram_white.svg);
    width: 48px;
    height: 48px;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    content: "";
    display: block;
}
.facebook:hover, .instagram:hover {
    mix-blend-mode: color-dodge;
}
.font-weight-bold {
    font-weight: 700;
}
#domus-section .padding-24 {
    order: 2;
}

@media (max-width: 756px) {
    #domus-section .padding-24 {
        order: -1;
    }
}
.icecream {
   filter: drop-shadow(0 0 15px #907c60);
}

  #language-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Colore di sfondo semi-trasparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Assicurarsi che l'overlay sia sopra altri elementi */
  }
  #language-popup-container {
    background-color: #fff; /* Colore di sfondo del dialog */
  padding: 24px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombra per dare profondità */
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  height: 320px;
  }
  
  #language-close {
    cursor: pointer;
    position: absolute;
    top: 24px;
    right: 24px;
    text-align: right;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    font-size: 16px;
    padding: 0;
    text-transform: uppercase;
    font-family: 'Red Hat Text', sans-serif !important;
    background: transparent;
    border: none;
    font-weight: bold;
    color: var(--primary-color-base);
  }
  #language-close::after {
    content: "";
    height: 30px;
    width: 30px;
    background-image: url(../icons/close_pink.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 8px;
  }
  #language-button {
    background-color: transparent;
    border: none;
    color: var(--primary-color-dark);
    font-weight: bold;
    font-family: 'Red Hat Text', sans-serif !important;
    cursor: pointer;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    text-align: right;
    line-height: 48px;
  }
  #language-button::before {
    content: "";
    background-image: url(../icons/language.svg);
    background-size: cover;
    width: 24px;
    height: 24px;
    display: block;
  }
  #language-button::after {
    content: "";
    background-image: url(../icons/expand_more.svg);
    background-size: cover;
    width: 24px;
    height: 24px;
    display: block;
  }
  #language-popup[hidden] {
    display: none;
  }
  .language-selector {
    margin: 0 !important;
  }
  .language-selector a {
    border: 3px solid var(--primary-color-dark);
    border-radius: 5px;
    color: var(--primary-color-dark);
    transition: background-color 0.3s;
    height: 48px;
    line-height: 48px;
    text-decoration: none;
    width: 100%;
    min-width: 300px;
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }
  #language-popup-title {
    font-weight: 500;
    font-size: 1.3rem;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    justify-content: space-around;
    flex-wrap: nowrap;
    align-items: center;
    color: var(--primary-color-base);
    font-family: "Do Hyeon", sans-serif !important;
    text-transform: uppercase;
    margin-top: 48px;
  }
  #language-popup-title i {
    font-family: 'Red Hat Text', sans-serif !important;
    font-size: 18px !important;
    color: var(--purple-color) !important;
  }
  #language-popup-title::before {
    content: "";
    background-image: url(../icons/language.svg);
    background-size: cover;
    width: 48px;
    height: 48px;
    display: block;
  }
  #nav-languages {
    display: flex;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 24px;
  }
  
  .language-selector a:hover,
  .language-selector a:focus {
    background-color: var(--primary-color-lighter);
    outline: none;
    cursor: pointer;
  }
  
  .language-selector a:focus {
    outline: 2px solid #000;
  }
  .language-selector-item {
    margin: 0;
    padding: 0;
  }
  @media (max-width: 600px) {
    #language-popup-container  {
      max-width: 300px;
    }
  }
.selected-language {
    background-color: var(--primary-color-base) !important;
    color: var(--white-color) !important;
    font-weight: 600;
    border-color: var(--primary-color-light) !important;
    display: flex !important;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
  }
  .selected-language::before {
    content: '🍦';
    font-size: 2rem;
  }
  .selected-language::after {
    content: ' ';
    width: 48px;
    display: block;
}