@layer utilities {
    .text-shadow { text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    .text-shadow-lg { text-shadow: 0 4px 8px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08); }
}
body { 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; /* Previene lo scroll orizzontale */
}

html {
    overflow-x: hidden; /* Previene lo scroll orizzontale anche nell'elemento root */
}

/* Hamburger Menu Animation */
.hamburger {
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    margin: 10px;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
    top: 9px;
}

.hamburger span:nth-child(4) {
    top: 18px;
}

.hamburger.open span:nth-child(1) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.hamburger.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.hamburger-icon {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-icon span {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Animazione menu mobile */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 300px;
    opacity: 1;
}

.mobile-menu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Assicurarsi che l'icona e il testo siano allineati correttamente */
.flex.items-center img {
    display: inline-block;
    vertical-align: middle;
}