body {
     margin: 0;
    font-family: sans-serif;
    background-color: rgb(255, 255, 255);
}

/* Stile per bloccare lo scroll quando il menu è aperto */
body.no-scroll {
    overflow: hidden;
}

canvas {
    display: block;
}

#hero-title-container {
    height: 100vh;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    overflow: hidden;
}

.hero-letter {
    height: 30vh;
    width: auto;
    object-fit: contain;
    transition: transform 0.6s ease-in-out, opacity 0.5s ease;
}

#fixed-nav {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: top 0.5s ease-in-out;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-letter {
    height: 45px;
    width: auto;
    object-fit: contain;
}

body.scrolled #fixed-nav {
    top: 0;
}

body.scrolled #hero-title-container .hero-letter {
    transform: scale(0.1);
    opacity: 0;
}

body.scrolled #hero-title-container .hero-letter:nth-child(1) { transition-delay: 0.0s; }
body.scrolled #hero-title-container .hero-letter:nth-child(2) { transition-delay: 0.05s; }
body.scrolled #hero-title-container .hero-letter:nth-child(3) { transition-delay: 0.1s; }
body.scrolled #hero-title-container .hero-letter:nth-child(4) { transition-delay: 0.15s; }
body.scrolled #hero-title-container .hero-letter:nth-child(5) { transition-delay: 0.2s; }
body.scrolled #hero-title-container .hero-letter:nth-child(6) { transition-delay: 0.25s; }


/*---------------------------------------------------------------------*/
/*---------------------- STILI DEL MENU HAMBURGER ----------------------*/
/*---------------------------------------------------------------------*/

#hamburger-icon {
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 2001;
}

#hamburger-icon span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: 0.25s ease-in-out;
}

#hamburger-icon span:nth-child(1) { top: 0px; }
#hamburger-icon span:nth-child(2) { top: 9px; }
#hamburger-icon span:nth-child(3) { top: 18px; }

#hamburger-icon.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}
#hamburger-icon.open span:nth-child(2) {
    opacity: 0;
    left: -30px;
}
#hamburger-icon.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

#side-menu {
    position: fixed;
    top: 0;
    left: -300px; 
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding-top: 100px;
}

#side-menu.open {
    left: 0; 
}

#side-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#side-menu nav li a {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}

#side-menu nav li a:hover {
    background-color: #f0f0f0;
}

#side-menu nav li a:not(.multicolor) {
    color: #333;
}

#side-menu nav li a:not(.multicolor):hover {
    color: #E67E22;
}

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

#menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

#side-menu .multicolor span {
    transition: transform 0.1s;
    display: inline-block; 
}
#side-menu .multicolor:hover span {
    transform: translateY(-2px);
}

#side-menu .multicolor span:nth-child(1) { color: #E74C3C; } /* N */
#side-menu .multicolor span:nth-child(2) { color: #F1C40F; } /* e */
#side-menu .multicolor span:nth-child(3) { color: #2ECC71; } /* w */
#side-menu .multicolor span:nth-child(5) { color: #3498DB; } /* I */
#side-menu .multicolor span:nth-child(6) { color: #9B59B6; } /* n */
#side-menu .multicolor span:nth-child(7) { color: #E67E22; } /* ! */


.submenu-toggle {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.submenu-toggle:hover {
    background-color: #f0f0f0;
    color: #E67E22;
}
.submenu-toggle::after {
    content: '›';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease-in-out;
    font-size: 1.5rem;
}
.has-submenu.open > .submenu-toggle::after {
    transform: translateY(-50%) rotate(90deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f8f8;
    overflow: hidden;
    max-height: 0; 
    transition: max-height 0.4s ease-in-out;
}
.has-submenu.open > .submenu {
    max-height: 300px; 
}

.submenu li a {
    font-size: 1rem;
    font-weight: normal;
    padding: 12px 30px 12px 45px; 
    border-top: 1px solid #eee;
}


/*---------------------------------------------------------------------*/
/*---------------------PREPROMOZIONE ----------------------------------*/
/*---------------------------------------------------------------------*/
.prePromozione {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url('../Componenti/Prepromozione/checkerboard_patternWeb.webp');
    background-size: 80px;
    animation: scroll-background 20s linear infinite;
    border-bottom: 40px solid #FFD700;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes scroll-background {
    from { background-position: 0 0; }
    to { background-position: -160px 160px; }
}

.prePromozione::before,
.prePromozione::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1; 
}
.prePromozione::before {
    top: 0;
    left: 0;
    transform-origin: top left;
    transform: skewY(-15deg) translateY(-35%);
}
.prePromozione::after {
    bottom: 0;
    right: 0;
    transform-origin: bottom right;
    transform: skewY(-15deg) translateY(35%);
}

.prepromo-scene-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1000px; 
    z-index: 2; 
}

.background-element,
.prepromo-star,
.cat-icons,
#prepromo-hand,
#id-card,
.character-container,
.floating-balloon {
    position: absolute;
}

#cerchio-alto { top: 10%; left: -12%; width: 90%; z-index: 1; }
#cerchio-basso { bottom: 8%; right: -8%; width: 85%; z-index: 1; }
#star1 { top: 6%; right: -15%; width: 23%; z-index: 6; }
#star2 { top: 60%; left: -40%; width: 25%; z-index: 6; }
#star4 { top: 20%; left: -15%; width: 28%; z-index: 6; }
#star5 { bottom: 8%; right: 19%; width: 25%; z-index: 6; }

.cat-icons {
    top: 60%;
    left: -18%;
    width: 50%;
    z-index: 6;
    animation: float-animation 6s ease-in-out alternate infinite;
}

#prepromo-hand { bottom: 0%; left: 30%; width: 28%; z-index: 4; }

#id-card {
    top: 50%;
    left: 41%;
    width: 70%;
    z-index: 4;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-out;
}
#id-card:hover {
    transform: translate(-50%, -55%) scale(1.05);
}

.character-container {
    bottom: -5%;
    right: -7%;
    width: 45%;
    height: 100%;
    z-index: 5;
}
.character-part {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.character-head { animation: bob-head 5s ease-in-out infinite; z-index: 3; }
.character-arm { transform-origin: 45% 30%; animation: wave-arm 4s ease-in-out infinite; z-index: 1; }
.character-body { z-index: 2; }

@keyframes bob-head { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes wave-arm { 0%, 40%, 100% { transform: rotate(0); } 60% { transform: rotate(-15deg); } }

.floating-balloon {
    z-index: 6;
    animation-name: float-up-down;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

#balloon-heart {
    top: 8%;
    right: 10%;
    width: 40%;
    animation-duration: 4s;
}
#balloon-hi {
    top: 13%;
    right: 8%;
    width: 40%;
    animation-duration: 5.5s;
    animation-delay: 1s;
}

@keyframes float-up-down { from { transform: translateY(0); } to { transform: translateY(-20px); } }
@keyframes float-animation { from { transform: translateY(0) rotate(-7deg); } to { transform: translateY(-15px) rotate(7deg); } }


/*---------------------------------------------------------------------*/
/*------------------------PROMOZIONE-----------------------------------*/
/*---------------------------------------------------------------------*/
.promozione {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
    background-color: white;
    overflow: hidden;
}

.promo-header {
    width: 100%;
    height: 235px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 50px solid #cd3f64;
}
#promo-checkerboard-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100px;
    display: grid;
    grid-template-columns: repeat(41, 1fr);
}
.checker-square {
    transition: background-color 0.2s ease-in-out;
    aspect-ratio: 1 / 1; 
}
.checker-square.black { background-color: #1a1a1a; }
.checker-square.white { background-color: #ffffff; }

.shop-title-img {
    position: relative;
    z-index: 2;
    width: 35%; 
    max-width: 500px; 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
}


.description-accordion-css {
    border-top: 1px solid #e0e0e0; 
    margin-top: 25px;
}


.accordion-checkbox {
    display: none;
}


.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 5px;
}

.accordion-title {
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: underline;
    letter-spacing: 0.5px;
}

.accordion-arrow {
    font-size: 1.2em;
    color: #555;
    transition: transform 0.4s ease-in-out;
}


.accordion-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}


.accordion-checkbox:checked + .accordion-header + .accordion-panel {
   
    max-height: 1000px; 
    padding: 0 10px 15px;
}


.accordion-checkbox:checked + .accordion-header .accordion-arrow {
    transform: rotate(180deg);
}


.product-details {
    flex: 1;
    max-width: 45%;
    text-align: left;
}

.product-brand {
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
}

.product-title {
    font-size: 2.5em;
    margin: 5px 0;
    font-weight: normal;
}

.product-collection {
    color: #555;
    margin-bottom: 15px;
}

.product-rating {
    margin-bottom: 15px;
}

.product-rating span {
    color: #000;
}

.price {
    font-size: 1.8em;
    font-weight: bold;
    margin: 10px 0;
}

.loyalty-points {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}


.product-description {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-description h3, .product-description h4 {
    margin: 5px 0;
}

.product-description ul {
    list-style: none;
    padding-left: 0;
}

.product-description li {
    margin-bottom: 5px;
}


/*-----------------------------------*/
.product-page-container {
    position: relative;
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
    background-color: white;
}

.product-gallery {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.gallery-main-view {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    flex-grow: 1;
}

#main-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-arrow {
    background-color: transparent;
    border: none;
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s;
    flex-shrink: 0;
}
.gallery-arrow:hover {
    color: #cd3f64;
}

.thumbnail-container { 
    display: flex; justify-content: center; gap: 15px;
}
.thumbnail-img {
    width: 100px; height: 100px; object-fit: cover; cursor: pointer;
    border: 2px solid transparent; border-radius: 4px; opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
}
.thumbnail-img:hover { opacity: 1; }
.thumbnail-img.active { opacity: 1; border-color: #cd3f64; }

.product-details {
    flex: 0 0 40%;
}
.product-info-wrapper {
    width: 100%; border: 1px solid #ccc; padding: 20px; box-sizing: border-box;
    background-color: #fff; background-size: 20px 20px;
    background-image:
        linear-gradient(to right, #eee 1px, transparent 1px),
        linear-gradient(to bottom, #eee 1px, transparent 1px);
}

.nt-ticker {
        --h: 44px;
        height: var(--h);
        background: linear-gradient(to right, #69c3c5, #8a80bb, #9c5cae);
        color: #fff;
        overflow: hidden;
        display: block;
    }

    .nt-belt {
        display: flex;
        align-items: center;
        height: 100%;
        will-change: transform;
    }

    .nt-group {
        display: flex;
        align-items: center;
    }

    .nt-item {
        white-space: nowrap;
        font: 600 16px/1 system-ui, sans-serif;
        text-transform: uppercase;
        letter-spacing: .04em;
        padding-right: var(--gap, 24px);
    }

.button {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  border-width: 0;
  padding: 0 8px 12px;
  min-width: 10em;
  box-sizing: border-box;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

#buy-btn .button-top {
    font-size: 1.2em;
}

.button-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  padding: 8px 16px;
  transform: translateY(0);
  text-align: center;
  color: #fff;
  text-shadow: 0 -1px rgba(0, 0, 0, .25);
  transition-property: transform;
  transition-duration: .2s;
  -webkit-user-select: none;
  user-select: none;
}

.button:active .button-top {
  transform: translateY(6px);
}

.button-top::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 4px;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
  background-image: radial-gradient(#cd3f64, #9d3656);
  text-align: center;
  color: #fff;
  box-shadow: inset 0 0 0px 1px rgba(255, 255, 255, .2), 0 1px 2px 1px rgba(255, 255, 255, .2);
  transition-property: border-radius, padding, width, transform;
  transition-duration: .2s;
}

.button:active .button-top::after {
  border-radius: 6px;
  padding: 0 2px;
}

.button-bottom {
  position: absolute;
  z-index: -1;
  bottom: 4px;
  left: 4px;
  border-radius: 8px / 16px 16px 8px 8px;
  padding-top: 6px;
  width: calc(100% - 8px);
  height: calc(100% - 10px);
  box-sizing: content-box;
  background-color: #803;
  background-image: radial-gradient(4px 8px at 4px calc(100% - 8px), rgba(255, 255, 255, .25), transparent), radial-gradient(4px 8px at calc(100% - 4px) calc(100% - 8px), rgba(255, 255, 255, .25), transparent), radial-gradient(16px at -4px 0, white, transparent), radial-gradient(16px at calc(100% + 4px) 0, white, transparent);
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5), inset 0 -1px 3px 3px rgba(0, 0, 0, .4);
  transition-property: border-radius, padding-top;
  transition-duration: .2s;
}

.button:active .button-bottom {
  border-radius: 10px 10px 8px 8px / 8px;
  padding-top: 0;
}

.button-base {
  position: absolute;
  z-index: -2;
  top: 4px;
  left: 0;
  border-radius: 12px;
  width: 100%;
  height: calc(100% - 4px);
  background-color: rgba(0, 0, 0, .15);
  box-shadow: 0 1px 1px 0 rgba(255, 255, 255, .75), inset 0 2px 2px rgba(0, 0, 0, .25);
}


/*---------------------------------------------------------------------*/
/*--------------------------PRODOTTI ----------------------*/
/*---------------------------------------------------------------------*/
.prodotti {
    background-color: white;
    min-height: 800px;
    padding: 60px 0;
    position: relative; 
    overflow: hidden;
}

.prodotti h1 {
    color: #333;
    text-align: center; 
    margin-bottom: 40px;
    position: relative;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    background-color: #ccc;
    border-radius: 10px;
    max-width:min-content;
    z-index: 2;
}

.product-background-mat {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    border-radius: 16px;
    width: 90%; 
    height: 90%; 
    max-width: 1400px; 
    z-index: -1;
    background-image: url('../Componenti/Carte/tappetopersianoWeb.webp');
    background-size: cover; 
    background-position: center; 
    border-radius: 30px; 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); 
    z-index: 1; 
}

.product-intermediate-image {
    position: absolute;
    bottom: 10%; 
    left: 50%;
    transform: translateX(-50%); 
    width: 30%; 
    max-width: 400px;
    height: auto; 
    content: url(''); 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    z-index: 2; 
}


/*----------------- CARTE -----------------*/
.cardContainer {
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
    min-height: 500px;
    perspective: 1500px;
    margin-top: 0;
    z-index: 3;
}

.card {
    position: absolute; 
    width: 240px;
    height: 330px;
    background-color: #fff5ed;
    color: #333;
    box-shadow: 0px 8px 28px -9px rgba(0, 0, 0, 0.45);
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 3px solid #300004;
    border-radius: 13px;
}
.card h2 {
    color: #300004;
    text-align: center; 
    margin-bottom: 40px;
    position: relative;
    top: 62%; 
    left: 50%;
    transform: translate(-50%, -50%); 
}

.anchored-card1 { position: absolute; scale: 0.067; transform: translate(-711%, -712%); }
.anchored-card2 { position: absolute; scale: 0.067; transform: translate(-713%, -710%); }
.anchored-card3 { position: absolute; scale: 0.062; transform: translate(-767%, -765%); }
.anchored-card4 { position: absolute; scale: 0.061; transform: translate(-783%, -780%); }
.anchored-card5 { position: absolute; scale: 0.063; transform: translate(-756%, -760%); }

.anchored-imageSX {
    position: absolute; 
    rotate: 9.9deg;
    scale: 2.2;
    bottom: -70px; 
    left: 71%; 
    transform: translateX(-50%); 
    width: 80%; 
    height: auto; 
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: -1; 
}

.anchored-imageDX {
    position: absolute; 
    rotate: -18deg;
    scale: 2.2;
    bottom: -100px; 
    right: 61%; 
    transform: translateX(50%); 
    width: 80%; 
    height: auto; 
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: -1; 
}


/*---------------------------------------------------------------------*/
/*-------------------- SEZIONE CONTATTI ------------------*/
/*---------------------------------------------------------------------*/
.contact-section {
    display: flex;
    flex-direction: column; 
    background-color: #ffffff; 
    overflow: hidden;
}

.checkerboard-strip {
    width: 100%;
    height: 90px; 
    background-image:
        linear-gradient(45deg, #ffffff 25%, transparent 25%), 
        linear-gradient(-45deg, #ffffff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ffffff 75%),
        linear-gradient(-45deg, transparent 75%, #ffffff 75%);
    background-color:#111111;
    background-size: 30px 30px;
    animation: checker-scroll 10s linear infinite;
}

@keyframes checker-scroll {
    from { background-position: 0 0; }
    to { background-position: 120px 0; }
}

.content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: 65vh; 
    background-image: url('../Componenti/Commissioni/formWeb.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.commission-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #6a0dad; 
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    flex-shrink: 0;
}

.commission-button:hover {
    background-color: #5e0b9a; 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.commission-button:active {
    transform: translateY(1px);
}


#email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#email-modal-overlay.modal-active {
    visibility: visible;
    opacity: 1;
}

#email-modal {
    background-color: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
}

#email-modal h2 { margin-top: 0; font-size: 2rem; }
#email-modal p { margin-bottom: 20px; color: #555; }

#email-modal input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 20px;
    font-size: 1rem;
}

#send-email-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#send-email-btn:hover {
    background-color: #555;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.close-modal-btn:hover {
    color: #333;
}

/* ==================================================================== */
/* =========== NUOVI STILI PER IL FOOTER MODERNO (FINE PAGINA) ======== */
/* ==================================================================== */
body {
     margin: 0;
    font-family: sans-serif;
    background-color: rgb(255, 255, 255);
}


body.no-scroll {
    overflow: hidden;
}


#hamburger-icon {
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 2001;
}


#send-email-btn:hover {
    background-color: #555;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.close-modal-btn:hover {
    color: #333;
}


/* ==================================================================== */
/* =========== NUOVI STILI PER IL FOOTER FINALE (BIANCO v2) =========== */
/* ==================================================================== */
.final-footer {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: 'Nunito', sans-serif;
    padding: 50px 20px 40px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-layout-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-top-row {
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;
}

.footer-main-nav {
    display: flex;
    gap: 25px;
}

.footer-main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-main-nav a:hover:nth-child(odd) {
    color: #E67E22; 
}
.footer-main-nav a:hover:nth-child(even) {
    color: #E67E22; 
}

.footer-contacts-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-contacts-group a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.footer-contacts-group a:hover {
    color: #E67E22;
}

.footer-contacts-group svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* --- Riga Centrale: Logo --- */
.footer-logo-row {
    padding: 10px 0; 
}

.footer-logo-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Riga Inferiore: Legale --- */
.footer-legal-info {
    font-size: 0.8rem;
    color: #888;
}

.footer-legal-info p {
    margin: 4px 0;
}

.footer-legal-info a {
    color: #555;
    text-decoration: underline;
    font-weight: bold;
}

.footer-legal-info a:hover {
    color: #E67E22;
}

/* ==================================================================== */
/* =================== NUOVI STILI PER POPUP IMMAGINE ================= */
/* ==================================================================== */
#commission-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#commission-popup-overlay.visible {
    visibility: visible;
    opacity: 1;
}

#commission-popup {
    position: relative;
    max-width: 80vw;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border-radius: 5px;
   
}

#commission-popup img {
    display: block;
    max-width: 100%;
    max-height: 90vh; /* L'immagine si adatta all'altezza dello schermo */
    height: auto;
    border-radius: 5px;
}

.close-popup-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 50%;
    font-family: sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    z-index: 3001;
}

.close-popup-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: #ffd931;
    color: white;
}

/* ==================================================================== */
/* ==================== SEZIONE RESPONSIVE ============================ */
/* ==================================================================== */
@media (max-width: 768px) {
    .footer-top-row {
        flex-direction: column; 
        justify-content: center;
        gap: 25px;
    }
}