/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity .5s ease;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.preloader-logo {
    width: 250px;
    animation: pulse 1.4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .9;
    }

    50% {
        transform: scale(1.07);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: .9;
    }
}

/* Barra esterna */
.loading-bar {
    width: 230px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

/* Barra interna */
.loading-progress {
    height: 100%;
    width: 0;
    background: #065f46;
    border-radius: 10px;
    transition: width .2s linear;
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
    color: #1f2937;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
    padding-bottom: 5rem;
}

/* IMMAGINE HERO FULLSCREEN */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-fullscreen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* GRADIENT IN BASSO */
.hero-fullscreen::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5%;
    /* Aumenta o diminuisci l’altezza della sfumatura */
    background: linear-gradient(to bottom, transparent, white);
    /* cambia "white" nel colore dello sfondo che vuoi */
    pointer-events: none;
    /* Per non interferire con click o interazioni */
}

/* Overlay e centramento contenuto */
.hero-fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    text-align: center;
}

/* Contenuto centrato */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* LOGO sopra la scritta */
.hero-logo {
    width: 400px;
    /* grande su desktop */
    max-width: 40vw;
    margin-bottom: -5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    transition: width 0.3s ease, left 0.3s ease;
    position: relative;
    left: var(--hero-logo-left-desktop);
    /* desktop usa questa */
}

/* Variabili per lo spostamento orizzontale del logo */
:root {
    --hero-logo-left-desktop: -23px;
    /* Desktop */
    --hero-logo-left-mobile: -7px;
    /* Mobile */
    --hero-logo-width-desktop: 350px;
    --hero-logo-width-mobile: 350px;
}

/* Tablet e smartphone */
@media (max-width: 768px) {
    .hero-logo {
        width: var(--hero-logo-width-mobile);
        /* ora la variabile funziona davvero */
        left: var(--hero-logo-left-mobile);
        /* rimuovere max-width o impostare un valore grande per non bloccare il width */
        max-width: 100%;
        margin-bottom: -2rem;
    }
}

/* Smartphone piccolo */
@media (max-width: 480px) {
    .hero-logo {
        width: var(--hero-logo-width-mobile);
        /* stessa variabile mobile */
        max-width: 100%;
        margin-bottom: rem;
    }
}

/* TESTO */
.hero-fullscreen-text {
    font-family: "Inter", serif;
    font-size: 1.3rem;
    color: #ffffff;
    max-width: 700px;
    line-height: 1.6;
    padding: 1.5rem;
    border-radius: 1rem;
}

.immagine-con-velo-e-testo {
    position: relative;
    /* Necessario per sovrapporre velo e testo */
    width: 100%;
    height: 250px;
    /* Altezza ridotta */
    overflow: hidden;
}

.immagine-con-velo-e-testo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.immagine-con-velo-e-testo .velo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Velo scuro */
}

.immagine-con-velo-e-testo .testo-centrato {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centra perfettamente */
    color: white;
    /* Testo leggibile sul velo */
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.testo-centrato2 {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centra perfettamente */
    color: white;
    /* Testo leggibile sul velo */
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Freccia */
.scroll-down {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 1.8s infinite;
    transition: transform 0.3s ease;
}

.scroll-down:hover {
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsività */
@media (max-width: 768px) {
    .hero-logo {
        width: 250px;
    }

    .hero-fullscreen-text {
        font-size: 1.05rem;
        padding: 1rem;
    }
}

#scroll-anchor {
    height: 1px;
    /* invisibile ma rilevabile */
}

/* STILE TABS */
.tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.06);
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    margin-bottom: 2.5rem;
}

.tab-button {
    background: #ffffff;
    border: 0px solid #065f46;
    /* di default nessun bordo visibile */
    color: #065f46;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    /* aggiunto border alla transizione */
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    box-shadow: 0 1px 4px rgba(6, 95, 70, 0.04);
}


.tab-button.active {
    background: #065f46;
    color: white;
}

.tab-button:hover {
    border: 0.5px solid #065f46;
    /* bordo attivo al passaggio del mouse */
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wrapper generale */
.tabs-wrapper {
    position: relative;
    text-align: center;
}

/* Mini-header fisso per tutti i dispositivi */
.mini-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    /* diventa fisso */
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 0 1rem;
    z-index: 10000;
}

/* Logo a sinistra */
.mini-logo-link {
    position: absolute;
    left: 1rem;
    height: 55px;
    display: block;
    z-index: 10001;
}

.phone-icon {
    position: absolute;
    right: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    padding: 0.4rem;
    transition: background 0.2s ease, transform 0.2s ease, stroke 0.2s ease;
}

.phone-icon svg {
    stroke: #065f46;
    transition: stroke 0.2s ease;
}

.phone-icon:hover {
    background: #065f46;
    /* verde principale */
    transform: scale(1.1);
}

.phone-icon:hover svg {
    stroke: #ffffff;
    /* icona bianca */
}

/* Tabs dentro mini-header */
.tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Mobile: nascondi tabs inizialmente */
@media (max-width: 768px) {
    .tabs {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .tabs.active {
        display: flex;
        /* mostrata quando hamburger attivo */
    }
}

.mini-logo-link img {
    height: 100%;
    display: block;
}

/* Hamburger (visibile solo su mobile) */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    .mini-language-dropdown {
        position: absolute;
        right: 4.5rem;
        /* aumenta da 4.5rem a 6rem per spostarlo più a destra */
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: auto;
        text-align: right;
    }

    .mini-language-dropdown select {
        padding: 4px 8px;
        border-radius: 5px;
        border: none;
        font-size: 0.8rem;
        background: #065f46;
        color: #fff;
        cursor: pointer;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        background: none;
        border: none;
        width: 40px;
        height: 32px;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10002;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 4px;
        background-color: #065f46;
        margin: 4px 0;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(0, 12px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0, -12px);
    }
}

/* Solo Safari mobile */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    @supports (-webkit-touch-callout: none) {
        .mini-language-dropdown {
            position: absolute;
            right: 6rem;
            /* spostato più a destra solo su Safari */
            top: 50%;
            transform: translateY(-50%);
            margin: 0;
            width: auto;
            text-align: right;
            z-index: 15;
            /* sopra hamburger */
        }

        .mini-language-dropdown select {
            padding: 4px 8px;
            border-radius: 5px;
            border: none;
            font-size: 0.8rem;
            background: #065f46;
            color: #fff;
            cursor: pointer;
        }
    }
}

/* Tabs desktop + mobile */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: fixed;
    /* fisse sotto mini-header */
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    flex-direction: row;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.06);
    padding: 0.5rem;
    z-index: 9999;
}

/* Placeholder sotto header per evitare sovrapposizione contenuto */
.hamburger-placeholder {
    height: 20px;
    /* 60px mini-header + 60px tabs */
    width: 100%;
}

/* Mobile: tabs in colonna e inizialmente nascoste */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        display: none;
    }

    .tabs.active {
        display: flex;
    }
}

/* Desktop: tabs sempre visibili in riga */
@media (min-width: 769px) {
    .tabs {
        display: flex !important;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
    }
}



/* Tabs desktop centrali */
@media (min-width: 769px) {
    .tabs {
        display: flex !important;
        flex-direction: row;
        gap: 1rem;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        margin-top: 80px;
        /* abbassa leggermente le tabs */
    }

    .hamburger {
        display: none;
        /* nascosto desktop */
    }
}

/* Selettore lingua mini-header */
.mini-language-dropdown {
    position: absolute;
    right: 7.4rem;
    /* tra tabs e telefono */
    top: 50%;
    transform: translateY(-50%);
}

.mini-language-dropdown select {
    padding: 4px 8px;
    border-radius: 5px;
    border: none;
    font-size: 0.8rem;
    background: #065f46;
    color: #fff;
    cursor: pointer;
}

/* --- SCHERMI PICCOLISSIMI: rimuovi selettore lingua SOLO qui --- */
@media (max-width: 360px) {
    .mini-language-dropdown {
        display: none !important;
    }

    /* Mini-header tutto più compatto */
    .mini-header {
        height: 50px;
        padding: 0 0.4rem;
    }

    .mini-logo-link {
        height: 42px;
        left: 0.3rem;
    }

    /* Hamburger centrato e più piccolo */
    .hamburger {
        width: 30px;
        height: 24px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .hamburger span {
        height: 3px;
        margin: 3px 0;
    }

    /* Telefono più compatto */
    .phone-icon {
        right: 0.3rem;
        width: 30px;
        height: 30px;
        padding: 0.25rem;
    }

    .phone-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Tabs menu in colonna più stretto */
    .tabs {
        width: 95%;
    }

    .tabs a {
        font-size: 0.85rem !important;
        padding: 0.45rem 0.6rem !important;
    }
}

/* ===========================
   CATEGORIE GALLERIA
   =========================== */
.gallery-categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem auto 2rem;
    flex-wrap: wrap;
}

.gallery-category-btn {
    background: #e0f2f1;
    color: #065f46;
    border: 1.5px solid #065f46;
    border-radius: 0.55rem;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gallery-category-btn img {
    width: 18px;
    height: 18px;
}

.gallery-category-btn.active,
.gallery-category-btn:hover {
    background: #065f46;
    color: #fff;
    transform: translateY(-2px);
}

/* ===========================
   GALLERIA FOTO 4 GRANDI
   =========================== */

.gallery {
    width: 95%;
    margin-left: auto;
    margin-right: auto;

    display: grid;
    gap: 1rem;

    /* 👉 Foto più grandi (300px invece di 260) */
    grid-template-columns: repeat(4, minmax(300px, 1fr));

    justify-content: center;
    justify-items: center;
}

.gallery img {
    width: 100%;
    max-width: 300px;
    /* 👉 aumenta dimensione reale delle immagini */
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 0.9rem;

    background: #f0fdf4;
    box-shadow: 0 2px 12px rgba(6, 95, 70, 0.08);
    transition: 0.35s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 30px rgba(6, 95, 70, 0.22);
    filter: brightness(1.08);
}


/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet: 3 foto */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
}

/* Smartphone: 2 foto */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .gallery img {
        aspect-ratio: 4/5;
    }
}

/* Smartphone piccoli: 1 foto */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery img {
        aspect-ratio: 1/1;
    }
}

.contact-info {
    padding: 2.2rem 2rem;
    max-width: 750px;
    /* aumentato da 600px */
    margin: auto;
    font-size: 1.1rem;
    color: #065f46;
}

.contact-info h2 {
    color: #000000;
    text-align: left;
    margin-top: 0;
    font-size: 1.75rem;
}

.contact-info p {
    margin: 0.5rem 0;
    text-align: left;
}

.contact-info a {
    color: #065f46;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-size: 1.5rem;
    color: #065f46;
    font-weight: bold;
}

#about p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ==============================
   MODAL MODERNO CON GLASSMORPHISM
   ============================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.55);
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity .25s ease-in-out;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    animation: zoomFade .3s ease;
}

@keyframes zoomFade {
    from {
        transform: scale(.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 1rem;
    display: block;
    margin: auto;
    z-index: 1;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

/* Uscita verso sinistra (quando vai all'immagine successiva) */
.modal-img.slide-left {
    transform: translateX(-60px);
    opacity: 0;
}

/* Uscita verso destra (quando vai all'immagine precedente) */
.modal-img.slide-right {
    transform: translateX(60px);
    opacity: 0;
}

.modal-img:hover {
    transform: scale(1.02);
}

/* ==============================
   BOTTONI MODERNIZZATI
   ============================== */

.modal-btn {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 2.4rem;
    color: #065f46;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: .2s ease;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.modal-btn.left {
    left: 4vw;
}

.modal-btn.right {
    right: 4vw;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.12);
}

.modal-btn:active {
    background: #e0f2f1;
    transform: translateY(-50%) scale(0.95);
}

/* ==============================
   BOTTONE CHIUSURA MODERNO
   ============================== */

.modal-close-btn {
    position: absolute;
    top: 3vh;
    right: 3vw;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1.9rem;
    color: #065f46;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.15);
}

.modal-close-btn:active {
    transform: scale(0.92);
}


::-webkit-scrollbar {
    width: 12px;
    background: #e0f2f1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #04996c 0%, #065f46 100%);
    border-radius: 8px;
    min-height: 40px;
    border: 3px solid #e0f2f1;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.13);
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #065f46 0%, #04996c 100%);
}

::-webkit-scrollbar-corner {
    background: #e0f2f1;
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #04996c #e0f2f1;
}

/* Footer complesso */
footer {
    background: #065f46;
    color: #f0f0f0;
    padding: 3rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-container h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-container ul {
    list-style: none;
}

.footer-container ul li {
    margin-bottom: 0.5rem;
}

.footer-container ul li a {
    color: #f0f0f0;
    text-decoration: none;
}

.footer-container ul li a:hover {
    color: #007B5E;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #065f46;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    color: #f0f0f0;
    transition: background .3s;
}

.footer-social a:hover {
    background: #ffffff;
}

.footer-logo {
    text-align: center;
    margin-top: 0px;
}

.footer-logo img {
    max-width: 2000px;
    /* 👈 dimensione controllata */
    height: 200px;
    filter: brightness(0.95);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-language-dropdown {
    margin-top: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 2rem;
    /* distanza tra i due blocchi */
    flex-wrap: wrap;
    /* così da adattarsi su schermi piccoli */
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-language-dropdown .language-label {
    display: block;
    margin-bottom: 5px;
    color: #f0f0f0 !important;
    font-size: 0.9rem;
    font-weight: bold;
}

.footer-language-dropdown select {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    background: #065f46;
    color: #f0f0f0;
}

/* --- Correzione layout footer per schermi mobili e tablet grandi --- */
@media (max-width: 1024px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* tutto a sinistra */
        text-align: left;
    }

    .footer-container>* {
        width: 100%;
    }

    .footer-logo {
        order: -1;
        /* logo sopra a tutto */
        width: 100%;
        text-align: center;
        /* logo centrato */
        margin-top: -2.5rem;
        margin-bottom: -4rem;
        margin-left: -1rem;
    }

    .footer-social {
        justify-content: flex-start;
        /* social a sinistra */
    }

    /* Selettore lingua centrato con dropdown affiancati */
    .footer-language-dropdown {
        display: flex;
        justify-content: center;
        /* centrato orizzontalmente */
        align-items: center;
        flex-direction: row;
        /* affiancati */
        flex-wrap: wrap;
        gap: 2rem;
        /* spazio tra i due */
        text-align: center;
        margin-top: 1.5rem;
        width: 100%;
    }

    .dropdown-group {
        align-items: center;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .contact-info {
        font-size: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .timeline {
        padding-left: 18px;
    }

    .contact-info {
        font-size: 0.97rem;
        padding: 1.1rem 0.5rem;
    }

    .contact-hours table {
        font-size: 0.93rem;
    }

    .contact-hours th,
    .contact-hours td {
        white-space: normal !important;
        word-break: break-word;
        padding: 0.25em 0.3em;
    }

    .contact-hours table {
        table-layout: fixed;
    }

    .contact-hours th {
        font-size: 1em;
    }

    .contact-hours td {
        font-size: 0.98em;
    }

    .hero-btn {
        width: 100%;
        min-width: 0;
        max-width: 98vw;
        font-size: 1.05rem;
        justify-content: flex-start;
        text-align: left;
        padding-left: 1.1em;
        padding-right: 1.1em;
        margin-left: auto;
        margin-right: auto;
        white-space: normal;
        box-sizing: border-box;
    }
}

/* --- Estetica avanzata --- */
/* Social icons modern style */
/* Timeline Chi Siamo */
.timeline {
    margin: 2.5rem auto 1.5rem auto;
    max-width: 700px;
    position: relative;
    padding-left: 30px;
    border-left: 3px solid #e0f2f1;
}

.timeline-event {
    margin-bottom: 2.2rem;
    position: relative;
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -13px;
    top: 0.2rem;
    width: 18px;
    height: 18px;
    background: #065f46;
    border: 3px solid #e0f2f1;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.13);
}

.timeline-content {
    background: #f0fdf4;
    border-radius: 0.7rem;
    padding: 1.1rem 1.3rem;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.07);
    margin-left: 1.5rem;
    position: relative;
}

.timeline-year {
    font-weight: bold;
    color: #04996c;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    display: block;
}

.timeline-content p {
    margin: 0.2rem 0 0 0;
    font-size: 1.07rem;
    color: #065f46;
}

.about-team {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-team-member {
    background: #e0f2f1;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.07);
    padding: 1.2rem 1.1rem 1rem 1.1rem;
    text-align: center;
    width: 170px;
    min-width: 140px;
    max-width: 200px;
    flex: 1 1 140px;
}

.about-team-member img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.7rem;
    border: 2.5px solid #065f46;
    background: #fff;
}

.about-team-member .name {
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.2rem;
    font-size: 1.08rem;
}

.about-team-member .role {
    font-size: 0.97rem;
    color: #04996c;
    margin-bottom: 0.2rem;
}

.about-team-member .desc {
    font-size: 0.93rem;
    color: #1f2937;
}

@media (max-width: 768px) {

    .about-team {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0.7rem;
        /* spazio verticale | orizzontale */
        justify-items: center;
        width: 100%;
    }

    .about-team-member {
        width: 100% !important;
        max-width: 150px !important;
        /* 🔥 più piccole, non si toccano più */
        flex: none !important;
        margin-top: -9px;
    }
}

/* ======= SEZIONE LA NOSTRA SEDE (VERSIONE ENORME, SUPER PRESENTATIVA) ======= */

.location-gallery-big {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.location-big-img {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
}

.location-big-img img {
    width: 100%;
    height: 420px;
    /* ENORME e super presentativa */
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.16);
    transition: transform .35s ease, box-shadow .35s ease;
}

.location-big-img img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* TABLET (2 in fila) */
@media (max-width: 992px) {
    .location-big-img {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }

    .location-big-img img {
        height: 350px;
    }
}

/* MOBILE (1 per riga, enormi ma proporzionate) */
@media (max-width: 768px) {
    .location-big-img {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .location-big-img img {
        height: 320px;
    }
}

/* ======= STAFF FULLSCREEN ======= */
.staff-fullscreen {
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.staff-fullscreen h2 {
    font-size: 2.2rem;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.staff-subtitle {
    font-size: 1.1rem;
    color: #065f46cc;
    margin-bottom: 2rem;
}

.staff-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.staff-card {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    width: 180px;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.08);
    transition: transform .3s;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: .8rem;
}

.staff-card h4 {
    margin-top: .6rem;
    color: #065f46;
    font-size: 1.1rem;
}

.staff-card span {
    color: #04996c;
    font-size: 0.9rem;
}

/* MOBILE */
@media (max-width: 768px) {
    .staff-card {
        width: 45%;
    }
}

.hero-btn {
    background: #065f46;
    color: #fff;
    padding: 0.8rem 1.7rem;
    border-radius: 0.7rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.09);
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    border: none;
    cursor: pointer;
    border: 2px solid #065f46;
    justify-content: center;
    min-width: 180px;
    max-width: 100%;
    text-align: center;
}

.hero-btn.secondary {
    background: #04996c;
    border-color: #04996c;
}

.hero-btn:hover,
.hero-btn:focus {
    background: #04996c;
    color: #fff;
}

.hero-btn.secondary:hover,
.hero-btn.secondary:focus {
    background: #065f46;
    color: #fff;
}



/* --- SEZIONE NOVITÀ --- */
.novita-section {
    text-align: center;
    padding: 5 0px 0;
    background-color: #ffffff;
    margin-bottom: 0;
}

.novita-titolo {
    text-align: center;
    font-size: 1.9em;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 15px;
}


.slideshow {
    display: flex;
    width: max-content;
    /* 🔥 si espande quanto serve */
    transition: transform 0.5s ease-in-out;
}



.slide {
    min-width: calc(100vw / 3);
    /* 🔥 larghezza identica a quando erano 3 */
    padding: 10px;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    /* leggermente più elegante */
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


@media (max-width: 768px) {

    .slideshow {
        display: flex;
        width: 100%;
        /* torna normale */
    }

    .slide {
        min-width: 100%;
        /* 1 immagine alla volta */
        padding: 8px;
    }

    .slide img {
        height: 240px;
        /* più proporzionata per mobile */
        border-radius: 12px;
    }
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #065f46;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-align: center;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* testo */
#cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 600px;
    flex: 1 1 100%;
}

/* contenitore bottoni */
.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* bottoni */
#cookie-banner button {
    background: #04b77b;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    white-space: nowrap;
}

#cookie-banner button:hover {
    background: #04996c;
}

#cookie-banner .close-btn:hover {
    color: #04b77b;
}

/* Bottone X */
#cookie-banner .close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.4rem;
    transition: color 0.3s ease;
    position: absolute;
    right: 10px;
    top: 8px;
}

#cookie-banner .close-btn:hover {
    color: #04b77b;
}

/* MOBILE */
@media (max-width: 700px) {
    #cookie-banner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.8rem;
        padding: 1rem;
    }

    #cookie-banner p {
        max-width: 90%;
        font-size: 0.9rem;
        margin: 0 auto;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    #cookie-banner button {
        width: 80%;
        max-width: 300px;
    }

    #cookie-banner .close-btn {
        right: 12px;
        top: 10px;
    }
}

/* --- Effetto "reveal on scroll" --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

body,
html {
    overflow-x: hidden;
}

/* Aggiusta altezza tabs solo per desktop */
@media (min-width: 769px) {
    .tabs-wrapper {
        position: relative;
    }

    .tabs {
        position: relative;
        top: -20px;
        /* alza le tabs */
    }
}

/* Bottone WhatsApp fisso */
.wa-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #25D366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.2s ease;
}

.wa-button:hover {
    transform: scale(1.1);
}

.wa-button img {
    width: 32px;
    height: 32px;
}

/* Popup */
.wa-popup {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    background: #ffffff;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 220px;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.wa-popup p {
    margin: 0;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
}

.wa-popup a {
    background: #25D366;
    color: white;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.wa-popup.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ridimensionamento per schermi piccoli */
@media (max-width: 768px) {
    .wa-button {
        width: 45px;
        height: 45px;
    }

    .wa-button img {
        width: 26px;
        height: 26px;
    }

    .wa-popup {
        width: 180px;
        padding: 0.8rem 1rem;
        bottom: 4.5rem;
        /* più vicino al pulsante */
    }

    .wa-popup a {
        padding: 0.4rem 0.6rem;
        font-size: 13px;
    }

    .wa-popup p {
        font-size: 13px;
    }
}

/* DIVISORE responsive più grande */
.divider-wrapper {
    width: 100%;
    text-align: center;
    margin: 24px 0;
}

.divider-wrapper3 {
    width: 100%;
    text-align: center;
    margin: 24px 0;
    margin-top: -30px;
}

.divider-wrapper2 {
    width: 100%;
    text-align: center;
    margin: 24px 0;
    margin-top: -30px;
}

.divider-inner {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.divider-line {
    height: 2px;
    background-color: #065f46;
    width: 110px;
    transition: 0.3s ease;
}

.divider-inner svg {
    width: 26px;
    height: 26px;
}

.divider-inner h3 {
    font-size: 22px;
    margin: 0;
    color: #065f46;
    font-weight: 600;
}

/* --- RESPONSIVE --- */
@media (max-width: 700px) {
    .divider-line {
        width: 80px;
    }

    .divider-inner {
        gap: 12px;
    }

    .divider-inner svg {
        width: 22px;
        height: 22px;
    }

    .divider-inner h3 {
        font-size: 20px;
    }
}

@media (max-width: 500px) {
    .divider-line {
        width: 50px;
    }

    .divider-inner {
        gap: 8px;
    }

    .divider-inner svg {
        width: 18px;
        height: 18px;
    }

    .divider-inner h3 {
        font-size: 17px;
    }
}

@media (max-width: 360px) {
    .divider-line {
        width: 30px;
    }

    .divider-inner h3 {
        font-size: 15px;
    }
}

/* ===============================
   SEZIONE 4 FOTO A SCHERMO INTERO
   =============================== */

.quad-gallery {
    margin-top: 15px;
    display: flex;
    width: 100%;
    height: 50vh;
    /* a tutto schermo su desktop */
    overflow: hidden;
    margin-bottom: 1px;
}

.quad-item {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-right: 1px solid white;
}

.quad-item:last-child {
    border-right: none;
}

/* Immagini */
.quad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.quad-item:hover img {
    transform: scale(1.08);
}

/* Velo */
.quad-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: .3s ease;
}

.quad-item:hover .quad-overlay {
    background: rgba(0, 0, 0, 0.60);
}

/* Testo */
.quad-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.7rem;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

/* ===============================
   TABLET
   =============================== */
@media (max-width: 900px) {

    .quad-gallery {
        flex-direction: column;
        height: auto;
    }

    .quad-item {
        width: 100%;
        aspect-ratio: 16 / 8;
        /* FOTO MOLTO PIÙ PICCOLE */
        border-right: 0;
        border-bottom: 1px solid white;
    }

    .quad-item:last-child {
        border-bottom: none;
    }

    .quad-text {
        font-size: 1.3rem;
        bottom: 15px;
        left: 15px;
    }
}

/* ===============================
   SMARTPHONE
   =============================== */
@media (max-width: 600px) {

    .quad-overlay {
        background: rgba(0, 0, 0, 0.30);
        /* MENO SCURO → TESTO PIÙ VISIBILE */
    }

    .quad-text {
        font-size: 1.35rem;
        /* TESTO PIÙ GRANDE */
        bottom: 20px;
        /* PIÙ IN ALTO, NON SI SCHIACCIA SUL MARGINE */
        left: 15px;
        z-index: 1000;
    }

    .quad-item {
        aspect-ratio: 16 / 10;
    }
}

/* ===============================
   PICCOLISSIMI (iPhone SE)
   =============================== */
@media (max-width: 420px) {

    .quad-overlay {
        background: rgba(0, 0, 0, 0.28);
        /* ANCORA PIÙ LEGGERO */
    }

    .quad-text {
        font-size: 1.25rem;
        bottom: 18px;
    }
}

/* ===============================
   SEZIONE ESPERIENZA & SERIETÀ
   =============================== */

.exp-section {
    margin-top: -100px;
    width: 100%;
    max-width: 1400px;
    /* CENTRA TUTTA LA SEZIONE */
    margin-inline: auto;
    /* centra orizzontalmente */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
    gap: 80px;
}

/* --- TEXT AREA (sinistra) --- */
.exp-left {
    flex: 1;
    max-width: 480px;
    margin-left: 0;
    /* eliminato margine che spingeva tutto a sinistra */
    color: #043d2d;
}

.exp-left h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.exp-left p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.exp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #04996c;
    color: white;
    padding: 14px 28px;
    font-size: 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s ease;
}

.exp-btn:hover {
    background: #037e58;
}

/* --- FOTO (destra) --- */
.exp-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-right: 0;
    /* eliminato per centratura */
}

/* FOTO GRANDE — FLUIDA */
.exp-img-big {
    width: 100%;
    max-width: 760px;
    aspect-ratio: 3 / 2;
    /* mantiene proporzione */
    border-radius: 8px;
    overflow: hidden;
}

/* RIGA SOTTO — FLUIDA */
.exp-img-row {
    width: 100%;
    max-width: 760px;
    display: flex;
    gap: 10px;
}

/* FOTO PICCOLE — FLUIDE */
.small-img {
    flex: 1;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
}

/* IMMAGINI INTERNE */
.exp-img img,
.small-img img,
.exp-img-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
      RESPONSIVE — TABLET & MOBILE
   ============================================ */

/* --- TABLET --- */
@media (max-width: 992px) {

    .exp-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 60px 0;
        gap: 40px;
        max-width: 100%;
    }

    .exp-left {
        text-align: center;
        margin: 0 auto;
        max-width: 90%;
    }

    .exp-left h2 {
        font-size: 2.4rem;
    }

    .exp-left p {
        font-size: 1.15rem;
    }

    .exp-right {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .exp-img-big {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        border-bottom: 2px solid white;
    }

    .exp-img-row {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .small-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border: none;
        border-bottom: 2px solid white;
    }
}

/* --- SMARTPHONE --- */
@media (max-width: 600px) {

    .exp-left {
        max-width: 90%;
        text-align: center;
    }

    .exp-left h2 {
        font-size: 2rem;
    }

    .exp-left p {
        font-size: 1rem;
    }

    .exp-img-big {
        aspect-ratio: 16 / 10;
    }

    .small-img {
        aspect-ratio: 16 / 10;
    }
}

/* MAPPA FULLSCREEN RIDOTTA */
.fullscreen-map-wrapper {
    position: relative;
    width: 100vw;
    height: 60vh;
    /* 🔥 altezza ridotta – puoi mettere 70vh o 75vh se vuoi */
    margin: 0;
    padding: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.fullscreen-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==== SEZIONE CITAZIONE FULLSCREEN ==== */
.quote-fullscreen {
    width: 100%;
    height: 25vh;
    /* Full screen */
    background: #065f46;
    /* Verde Cactus elegante */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    margin-top: 1px;
}

/* Testo bianco */
.quote-fullscreen blockquote {
    font-style: italic;
    font-size: 1.8rem;
    color: white;
    max-width: 900px;
    line-height: 1.5;
}

/* Contenitore verticale */
.quote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-right: 10px;
}

/* Icona bianca */
.quote-icon {
    stroke: white;
}

/* Responsive */
@media (max-width: 768px) {
    .quote-fullscreen blockquote {
        font-size: 1.3rem;
        padding: 0 1rem;
        font-style: italic;
        font-size: 1.2rem;
        color: white;
        max-width: 900px;
        line-height: 1.5;
        margin-right: 110px;
    }
}

.quote-fullscreen {
    width: 100%;
    height: 25vh;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%),
        linear-gradient(135deg, #043d2d, #065f46 45%, #0b6f54);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-align: center;
    position: relative;
}

/* Telefoni molto piccoli */
@media (max-width: 380px) {
    .quote-fullscreen {
        padding: 0 1rem;
        /* più stretta ai lati */
    }

    .quote-fullscreen blockquote {
        font-size: 1rem;
        /* testo più piccolo */
        line-height: 1.4;
        /* migliore leggibilità */
        max-width: 100%;
        /* evita overflow */
        margin: 0;
        /* elimina margini laterali */
        word-wrap: break-word;
        /* forza a capo se necessario */
    }

    .quote-container {
        margin-right: 0;
        /* centratura perfetta */
        gap: 0.8rem;
    }
}

/* ==== HERO STATS ==== */
.stats-hero {
    width: 100%;
    height: 35vh;
    /* Regola l’altezza */
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: rem;
    /* Regola quanto vuoi */
}

.stats-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Adatta la foto allo spazio */
    opacity: 0.85;
}

.stat-number::after {
    content: "+";
    font-weight: 800;
    margin-left: 3px;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20rem;
    background: rgba(0, 0, 0, 0.65);
    /* Velo scuro più visibile */
    text-align: center;

}

.stats-box h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.stats-box p {
    color: #e8e8e8;
    font-size: 1rem;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== TABLET (1024px e giù) ===== */
@media (max-width: 1024px) {
    .stats-hero {
        height: 40vh;
    }

    .stats-overlay {
        gap: 3rem;
        /* meno spazio tra i box */
    }

    .stats-box h3 {
        font-size: 3.0rem;
    }

    .stats-box p {
        font-size: 0.95rem;
    }
}


/* MOBILE */
@media (max-width: 768px) {
    .stats-hero {
        height: 45vh;
    }

    .stats-overlay {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stats-box h3 {
        font-size: 2.5rem;
    }
}

/* SOVRASCRIZIONE */
/* ===========================
   HEADER TRASPARENTE / SCROLL
   =========================== */
.mini-header.no-scroll {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.mini-header.scrolled {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* ===========================
   LOGO DINAMICO
   =========================== */
.mini-header.no-scroll #logo-dynamic {
    content: url("https://cactusgioielli.it/IMMAGINI/LOGO/LOGO_whitepng.png");
}

.mini-header.scrolled #logo-dynamic {
    content: url("https://cactusgioielli.it/IMMAGINI/LOGO/LOGO_greenpng.png");
}

/* LOGO PIÙ GRANDE */
.mini-logo-link img.mini-logo,
#logo-dynamic {
    margin-top: -35px;
    height: 130px !important;
}

@media (max-width: 768px) {

    .mini-logo-link img.mini-logo,
    #logo-dynamic {
        margin-top: -18px;
        height: 100px !important;
    }
}

/* ===========================
   TABS – NO SCROLL
   =========================== */
.tabs.no-scroll .tab-button {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid transparent;
    box-shadow: none !important;
}

/* ---- EFFETTO APPLE GLASS SOLO SU MOBILE ---- */
@media (max-width: 768px) {

    .tabs.no-scroll {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        /* Safari */
        background: rgba(255, 255, 255, 0.12);
        border-radius: 16px;
    }

    .tabs.no-scroll .tab-button {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: none !important;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 12px;
    }
}

.tabs.no-scroll .tab-button:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

/* TABS – SCROLL */
.tabs.scrolled .tab-button {
    background: #ffffff !important;
    color: #065f46 !important;
    box-shadow: 0 1px 4px rgba(6, 95, 70, 0.04) !important;
}

/* MOBILE: TABS TRASPARENTI */
@media (max-width: 768px) {
    .tabs.no-scroll {
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* ===========================
   SELETTORE LINGUA
   =========================== */
.mini-language-dropdown.no-scroll select {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.46) !important;
}

.mini-language-dropdown.scrolled select {
    background: #065f46 !important;
    color: #ffffff !important;
    border: none !important;
}

/* MOBILE LINGUA */
@media (max-width: 768px) {
    .mini-language-dropdown.no-scroll select {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
    }
}

/* ===========================
   TELEFONO
   =========================== */
.phone-icon.no-scroll {
    background: transparent !important;
}

.phone-icon.no-scroll svg {
    stroke: #ffffff !important;
}

.phone-icon.scrolled {
    background: #ffffff !important;
}

.phone-icon.scrolled svg {
    stroke: #065f46 !important;
}

/* MOBILE TELEFONO */
@media (max-width: 768px) {
    .phone-icon.no-scroll svg {
        stroke: #ffffff !important;
    }
}

/* ===========================
   HAMBURGER MENU
   =========================== */
.mini-header.no-scroll .hamburger span {
    background-color: #ffffff !important;
}

.mini-header.scrolled .hamburger span {
    background-color: #065f46 !important;
}

/* Correzione visibilità opzioni nel menu lingua */
.mini-language-dropdown select option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* ===========================
   ACTIVE TAB – NO SCROLL
   =========================== */
.tabs.no-scroll .tab-button.active {
    background: rgba(255, 255, 255, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    backdrop-filter: blur(4px);
}

.tabs.scrolled .tab-button.active {
    background: #065f46 !important;
    color: #ffffff !important;
    border: 1px solid #065f46 !important;
}

/* =====================================================
   🔥 FIX FINALE: EFFETTO VETRO SU TUTTO IL MENU MOBILE
   QUANDO L'HEADER È TRASPARENTE (NO-SCROLL)
   ===================================================== */
@media (max-width: 768px) {

    /* prende QUALSIASI pannello menu che compare dopo l’header */
    .mini-header.no-scroll~.mobile-menu,
    .mini-header.no-scroll~.menu,
    .mini-header.no-scroll~.menu-container,
    .mini-header.no-scroll~.nav-menu,
    .mini-header.no-scroll~.hamburger-menu,
    .mini-header.no-scroll~.menu-panel {
        background: rgba(255, 255, 255, 0.20) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-radius: 18px !important;
    }
}

/* ============================================
   MOBILE – EFFETTO VETRO PER IL MENU HAMBURGER
   ============================================ */
@media (max-width: 768px) {
    .mini-header.no-scroll~.tabs-wrapper .tabs.active {
        background: rgba(255, 255, 255, 0.18) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-radius: 18px;
        padding: 20px 0;
    }
}

/* 
           _.-=-._       
        o~`  '  `~o     
        /    .-=-.  \    
       |    /  _  \  |   
       |   |  ( )  | |   By. Alessandro Gioielli :)
        \   \     /  /    
        `~-'`---'`-~'     
            |  |  |        
            |  |  |        
        __|  |  |__      
        (___/   \___)
    */
