* {margin:0;padding:0;box-sizing:border-box;}

.black{
    background-color: #222;
}
.container {max-width:1200px;margin:auto;}

/* HEADER */
.header {
    position:sticky;
    z-index:100;
}
.fa-solid{
    color: #ffffff;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    flex-shrink: 0; /* impedisce che il menu lo sovrapponga */
}

.logo img {
    max-height: 120px;
    width: auto;
}

/* MENU */
.nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;
}


.nav ul {
    list-style:none;
    display:flex;
    gap:50px;
    align-items:center;
    margin-top:10px;
    margin-bottom:10px;
    font-size: 16px;
   letter-spacing: 2px;
   font-family: "Sansation", sans-serif !important;
    font-weight: 300;
}
.nav ul :hover{
    transition: ease, 0.5s;
    font-size: 25px;
}

.nav a {text-decoration:none;color:#ffffff;}

.cta a {
    color:#ffef09;
    padding:0px 16px;
    border-radius: 4px;
}

/* ===============================
   DROPDOWN CLASSICO – ASTRA STYLE
================================ */

.has-dropdown {
    position: relative;
}

/* SUBMENU */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 220px;
    background: #e7e0d8;

    list-style: none;
    padding: 8px 0;
    margin: 0;

    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    /* animazione */
    max-height: 0;
    opacity: 0;
    overflow: hidden;

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease;

    z-index: 999;
}

.sub-menu {
    margin-top: 6px;
    background:#ffffff !important;
}

.sub-menu {
    transition: max-height 0.45s ease, opacity 0.3s ease;
}


/* LINK */
.sub-menu a {
    
    display: block;
    padding: 12px 18px;
    color: #222;
    font-size: 0.95rem;
    text-decoration: none;
}

/* HOVER VOCE */
.sub-menu a:hover {
    background: #f5f5f5;
    color: #ff0000;
}

/* APERTURA */
.has-dropdown:hover > .sub-menu {
    max-height: 500px; /* abbastanza grande */
    opacity: 1;
}

/* PICCOLO DISTACCO VISIVO */
.has-dropdown > a {
    padding-bottom: 10px;
}




/* SERVICES */
.services {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    padding:80px 0;
}

.card {
    padding: 40px;
    background: #f7f7f7;
    text-align: center;
    font-weight: 600;
    border-radius: 10px;
    transition: .4s;
    margin: 5px 0; /* ← AGGIUNTO */
}


.card:hover {
    transform:translateY(-12px);
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

/* CAROUSEL */
/* ULTIMI LAVORI – WP STYLE CAROUSEL */
.wp-carousel {
    position: relative;
    margin-top: 40px;
}

.wp-carousel-viewport {
    overflow: hidden;
}

.wp-carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.wp-slide {
    flex: 0 0 calc(100% / 3);
    padding: 15px;
    margin: 5px 0; /* ← AGGIUNTO */
}


.wp-slide > div,
.wp-slide {
    height: 220px;
    background: #e0e0e0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: transform .3s, box-shadow .3s;
}

.wp-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* BUTTONS */
.wp-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #0077ff;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 5;
    transition: transform .3s;
}

.wp-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: #005fd1;
}

.wp-prev { left: -20px; }
.wp-next { right: -20px; }


/* AI */
.ai {
    padding:80px 20px;
    background:linear-gradient(120deg,#0077ff,#00c6ff);
    color:#fff;
    text-align:center;
}

/* NUMBERS */
.numbers {
    
    display:flex;
    justify-content:center;
    gap:60px;
    padding-top: 30px;
    padding-bottom:80px;
    background:#222;
    color: #e7e0d8;
    text-align:center !important;
}
.numbers span{
    font-size: 25px;
    font-family: "Sansation", sans-serif !important;
    color: #fdf03c !important;
    font-weight: 300;
  font-style: italic;
}

.numbers div {transition:.3s;}
.numbers div:hover {transform:scale(1.8);}

.numbers strong {
    font-size:2.5rem;
    display:block;
}

.footer {
    background: #111;
    color: #ccc;
    font-family: "Sansation", sans-serif;
    padding: 60px 60px;   /* spazio sopra e sotto il contenuto */
}

/* GRID CLASSICO 3 COLONNE */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonne uguali */
    gap: 40px;                             /* distanza tra le colonne */
    max-width: 1200px;                     /* larghezza massima del footer */
    margin: 0 auto;                        /* centra la griglia nel footer */
    width: 100%;
    justify-items: center;
    padding-bottom: 60px;                /* centra contenuti interni */
}

/* TESTO PICCOLO */
.footer p {
    font-size: 12px !important;
    margin: 5px 0;
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 80px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}
/* SMART SLIDER */
/* =====================
   RESET GENERALE
===================== */
*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Sansation", sans-serif;
}
/* =====================
   SLIDER
===================== */
.smart-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.smart-slider__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.smart-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.smart-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* overlay */
.smart-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}
.s-video::after {
    background: rgba(0,0,0,0.3);
}

/* link che copre tutto lo slide */
.slide-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

/* contenuto */
.slide-content {
    position: relative; 
    z-index: 3;         
    text-align: center;

    display: flex;           /* per allineare h1 e p */
    flex-direction: column;  /* h1 sopra, p sotto */
    align-items: center;     /* centrato orizzontalmente */
    gap: 15px;               /* spazio tra h1 e p */
}

/* titolo */
.slide-content h1 {
    font-family: "Karla", sans-serif;
    font-size: 72px;
    margin-bottom: 15px;
    font-weight: 200;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px 20px;
    display: inline-block;
}
.slide-content p{
    font-size: 25px;
    font-family: "Sansation", sans-serif !important;
    font-weight: 300;
  font-style: italic;
}

/* testo con Liquid Glass */
p.glass-bg {
    display: inline-block;           
    padding: 8px 20px;               
    border-radius: 999px;            
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #fff;                     
    font-weight: 500;
    text-align: center;
    position: relative;              
    z-index: 2; /* sotto l'h1, sopra il video */
}

/* hover */
.smart-slide:hover .slide-content {
    transform: scale(1.1);
    transition: transform 0.5s ease;
    cursor: pointer;
}

/* video full screen */
.slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* ===== ANIM ===== */
@keyframes slideFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ARROWS ===== */
.smart-prev,
.smart-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: none !important;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background .3s, transform .3s;
}

.smart-prev:hover,
.smart-next:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-50%) scale(1.5);
}

.smart-prev { left: 30px; }
.smart-next { right: 30px; }

/* DOTS */
.smart-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: transform .3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* =====================
   TOP BAR SOCIAL
===================== */
.top-bar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-icons {
    padding-top:30px;
    display: flex;
    gap: 36px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #fdf03c;
    color: #fff;
    transform: scale(1.2);
}

/* =====================
   INTRO / FIERE
===================== */
.intro {
    padding: 80px 20px;
}

.intro .col-12 {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro h1 {
    margin-bottom: 30px;
    letter-spacing: 4px;
    font-family: "Karla", sans-serif !important;
}

.fiere-intro p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-family: "Space Mono", monospace;
}

/* =====================
   NAV
===================== */
.nav {
    font-family: "Sansation", sans-serif;
    height: 80px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================
   SEZIONE CON SFONDO
===================== */
.background {
    position: relative;
    background-color: #333; /* fallback */
    padding: 0 6vw;
    overflow: hidden;
}

/* VIDEO SFONDO */
.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* RETTANGOLO BIANCO */
.content-box {
    position: relative;
    z-index: 2;
   background: rgba(37, 35, 35, 0.55); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 50px;
}

.content-box h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
}

.content-box p {
    line-height: 1.5 !important; 
    font-family: "Sansation", sans-serif;
    text-align: center;
    line-height: 1.6;
    color: #fff;
    padding: 10px;
}

/* DIV SOTTO */
.section-under {
    height: 300px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FOOTER */
.footer img{
    height: 60px !important;
    margin-left: -20px;
}
.footer h4{
    font-family: "Sansation", sans-serif;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* COMPANY BAND */
.company-band {
    width: 100%;
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 15px;
    display: flex;
    justify-content: center;
}

.company-band p {
    font-family: "Sansation", sans-serif !important;
    max-width: 900px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

/* GALLERIA */
/* ======================
   GALLERY
====================== */
/* ======================
   GALLERY
====================== */
/* ======================
   GALLERY BOXED
====================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 immagini per riga */
    gap: 15px;
    max-width: 1200px;       /* larghezza massima del contenitore */
    margin: 0 auto;           /* centra la galleria nello schermo */
    padding: 20px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;       /* mantiene quadrato */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #111;          /* colore box */
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* riempie il box senza deformare */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);    /* leggero zoom all’hover */
}

/* ======================
   WIKI VIEWER BOXED
====================== */
.wiki-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    display: none;
}

.wiki-viewer.active {
    display: flex;
}

.wiki-stage {
    position: relative;
    width: 80%;           /* larghezza del box */
    max-width: 900px;
    height: 70vh;         /* altezza del box */
    max-height: 600px;
    background: #111;     /* colore box */
    border: 4px solid #fff;
    border-radius: 12px;
    overflow: hidden;     /* impedisce che l’immagine escada fuori */
    display: flex;
    justify-content: center;
    align-items: center;
}

.wiki-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    transition: transform 0.2s ease;
}

.wiki-stage img:active {
    cursor: grabbing;
}

/* BOTTONI NAV e CHIUDI */
.wiki-close,
.wiki-nav {
    position: absolute;
    font-size: 2rem;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    z-index: 10;
}

.wiki-close { top: 10px; right: 10px; }
.wiki-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.wiki-next { right: 10px; top: 50%; transform: translateY(-50%); }


.gallery-send h1{
    font-family: "Karla", sans-serif;
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 200;
    letter-spacing: 2px;
    border: 2px solid #fff;
    border-color: #fff;
    background: none !important;
    padding: 10px 20px;
    display: inline-block;
    margin: auto;
}
.gallery-send {
    display: block;
    justify-items: center;
    padding: 30px;
}
.gallery-send :hover{
    transition: ease, 0.5s;
    transform: scale(1.1);
}
/* ===========================
   FORM CONTATTI - .contatti-form
=========================== */

.contatti-form {
    background-color: rgba(0, 0, 0, 0.7); /* sfondo leggermente trasparente */
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    margin: 1rem auto;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.contatti-form h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #f5f5f5;
}

/* FORM ELEMENTS */
.form-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-contact input,
.form-contact textarea {
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #000;
    transition: border 0.3s, box-shadow 0.3s;
}

.form-contact input:focus,
.form-contact textarea:focus {
    border-color: #ff6600;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
    outline: none;
}

/* BUTTON */
.form-contact button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #ff6600;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-contact button:hover {
    background-color: #e65c00;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .contatti-form {
        max-width: 100%;
        padding: 1.5rem;
    }
}
/* ===========================
   CONTATTI WRAPPER - 2 COLONNE
=========================== */
.contatti-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap; /* rende responsive */
}

/* COLONNA INFO CONTATTI */
.contatti-info {
    flex: 1;
    min-width: 250px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;

    display: flex;
    flex-direction: column;   /* ← TESTO IN COLONNA */
    justify-content: center;  /* ← CENTRO VERTICALE */
}


.contatti-info h2, .contatti-info h3 {
    margin-bottom: 1rem;
    color: #f5f5f5;
}

.contatti-info p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* COLONNA FORM */
.contatti-form {
    flex: 1; /* stessa larghezza della colonna info */
    min-width: 250px;
    background-color: rgba(0,0,0,0.7);
    padding: 2rem;
    border-radius: 1rem;
    color: #fff;
}

/* FORM INTERNO */
.form-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-contact input,
.form-contact textarea {
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #fff;
    color: #000;
    transition: border 0.3s, box-shadow 0.3s;
}

.form-contact input:focus,
.form-contact textarea:focus {
    border-color: #ff6600;
    box-shadow: 0 0 5px rgba(255,102,0,0.5);
    outline: none;
}

.form-contact button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #ffbb00;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-contact button:hover {
    background-color: #534b72;
}

.video-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.video-viewer.active {
    display: flex;
}
.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.video-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #111;
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PLAY ICON */
.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 55px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    transition: background 0.3s ease, transform 0.3s ease;
}

.video-item:hover .video-play {
    background: rgba(0,0,0,0.55);
    transform: scale(1.1);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .contatti-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    .contatti-form, .contatti-info {
        width: 100%;
    }
}
/* ==============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
============================================== */

/* --- TABLET LANDSCAPE / LAPTOP PICCOLI (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
    
    /* Ridimensionamento container */
    .container {
        padding: 0 20px;
    }

    /* Header: Menu più compatto */
    .nav ul {
        gap: 20px; /* Riduce lo spazio tra le voci */
        font-size: 14px;
    }

    /* Services: da 4 a 2 colonne */
    .services {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
    }

    /* Carousel WP Style: da 3 a 2 slide visibili */
    .wp-slide {
        flex: 0 0 50%; /* Mostra 2 slide */
    }

    /* Footer: riduce il padding */
    .footer-grid {
        gap: 20px;
    }
    
    /* Gallery e Video: rimangono a 3 o passano a 2 se strette */
    .gallery, .video-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* --- TABLET PORTRAIT / SMARTPHONE GRANDI (max-width: 768px) --- */
@media screen and (max-width: 768px) {

    /* Header: Layout a colonna (Stack) */
    .nav-wrapper {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .nav ul {
        flex-direction: column; /* Menu verticale */
        gap: 15px;
        text-align: center;
        margin-top: 20px;
    }
    
    /* Nasconde CTA o la adatta */
    .cta {
        margin-top: 15px;
    }

    /* Smart Slider Text */
    .smart-slider {
        height: 60vh; /* Riduce altezza slider */
    }
    .slide-content h1 {
        font-size: 42px; /* Font più piccolo */
    }
    .slide-content p {
        font-size: 18px;
    }

    /* Numbers: Uno sotto l'altro */
    .numbers {
        flex-direction: column;
        gap: 40px;
    }

    /* Footer: Una colonna centrale */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer {
        padding: 40px 20px;
    }

    /* Contatti Wrapper (già presente nel tuo CSS ma rinforzato) */
    .contatti-wrapper {
        flex-direction: column;
    }
    
    /* Company Band */
    .company-band {
        padding: 20px;
    }
    .company-band p {
        font-size: 16px;
    }

    /* Gallery: da 3 a 2 colonne */
    .gallery, .video-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- SMARTPHONE PICCOLI (max-width: 480px) --- */
@media screen and (max-width: 480px) {

    /* Logo ridimensionato */
    .logo img {
        max-height: 80px;
    }

    /* Services: 1 colonna (Card a tutto schermo) */
    .services {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Carousel WP Style: 1 sola slide visibile */
    .wp-slide {
        flex: 0 0 100%;
    }

    /* Gallery: 1 colonna */
    .gallery, .video-gallery {
        grid-template-columns: 1fr;
    }

    /* Smart Slider: testo ancora più piccolo */
    .slide-content h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    /* Content Box (Sfondo video) */
    .content-box {
        padding: 30px 20px;
    }
    .content-box h1 {
        font-size: 24px;
    }

    /* Social Icons in top bar */
    .social-icons {
        gap: 20px;
        justify-content: center;
        padding-bottom: 20px;
    }
    .top-bar-container {
        justify-content: center;
    }
    
    /* Gallery Send Button */
    .gallery-send h1 {
        font-size: 28px; /* Riduce dimensione pulsante */
    }
}

/* =========================================
   HAMBURGER MENU & MOBILE NAV
========================================= */

/* Nascondiamo l'hamburger su Desktop */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #fff; /* Colore delle linee */
}

/* MEDIA QUERY SPECIFICA PER IL MENU MOBILE */
@media screen and (max-width: 768px) {
    
    /* Mostriamo l'icona Hamburger */
    .hamburger {
        display: block;
        z-index: 1001; /* Assicura che stia sopra al menu */
    }

    /* Animazione Hamburger a "X" quando attivo */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Stile del Menu su Mobile (Pannello a scorrimento) */
    .nav {
        position: fixed;
        left: -100%; /* Nascosto a sinistra */
        top: 0; /* Parte dall'alto, coprendo tutto */
        gap: 0;
        flex-direction: column;
        background-color: #222; /* Sfondo scuro del menu */
        width: 100%;
        height: 100vh; /* Altezza schermo intero */
        text-align: center;
        transition: 0.3s;
        justify-content: center; /* Centra verticalmente le voci */
        z-index: 1000;
        margin-top: 0 !important; /* Reset margini precedenti */
    }

    /* Quando aggiungiamo la classe .active col JS, il menu entra */
    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 40px; /* Spazio tra le voci */
    }

    .nav ul li a {
        font-size: 24px; /* Testo più grande per il dito */
    }
}

@media screen and (max-width: 768px) {
    
    /* Resettiamo il sottomenu per farlo stare nel flusso normale */
    .sub-menu {
        position: static !important; /* Non più assoluto */
        width: 100%;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05) !important; /* Sfondo leggermente diverso */
        max-height: 0;
        opacity: 0; /* Nascondiamo il contenuto */
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        margin-top: 0;
    }

    /* Disabilitiamo l'apertura col semplice :hover su mobile */
    .has-dropdown:hover > .sub-menu {
        max-height: 0;
        opacity: 0;
    }

    /* Classe che aggiungeremo col JS per aprire il sottomenu */
    .has-dropdown.open .sub-menu {
        max-height: 800px; /* Abbastanza alto da contenere tutto */
        opacity: 1;
        margin-top: 15px;
        padding-bottom: 10px;
    }

    /* Stile dei link nel sottomenu mobile */
    .sub-menu a {
        color: #fff !important; /* Testo bianco su sfondo scuro */
        font-size: 18px !important; /* Un po' più piccolo dei titoli principali */
        padding-left: 0;
    }
}
/* =======================================================
   FIX 1: POSIZIONAMENTO X DEL MENU (HAMBURGER)
======================================================= */
/* Quando il menu è attivo, blocchiamo l'icona in alto a destra */
.hamburger.active {
    position: fixed;   /* La blocca rispetto allo schermo */
    top: 30px;         /* Distanza dall'alto (regola se serve) */
    right: 20px;       /* Distanza da destra */
    z-index: 1002;     /* Sopra a tutto, anche sopra il menu nero */
}

/* =======================================================
   FIX 2: BOTTONE CHIUDI GALLERIA/VIDEO (RIMANE VISIBILE)
======================================================= */
/* Rendiamo il bottone "Chiudi" fisso sullo schermo */
.wiki-close, .video-close {
    position: fixed !important; /* Questo è fondamentale per non farla scappare */
    top: 20px;
    right: 20px;
    z-index: 10000;
}
/* E il fix per il video responsive */
.video-stage {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    /* ... il resto del css video stage ... */
}

/* Forza il video o iframe a riempire il contenitore */
.video-stage video,
.video-stage iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 6px;
}

/* Su schermi molto piccoli (mobile verticale) */
@media screen and (max-width: 480px) {
    .video-stage {
        width: 100%;         /* Usa tutto lo spazio laterale */
        border-left: none;   /* Rimuove bordi laterali per pulizia */
        border-right: none;
        border-radius: 0;
    }
}

/* =============================================
   ULTIMI TOCCHI MOBILE (Frecce Slider & Icona Menu)
============================================= */

@media screen and (max-width: 768px) {

    /* 1. NASCONDI FRECCE SLIDER (Tanto c'è lo swipe) */
    /* Nasconde frecce Smart Slider e Carousel Lavori */
    .smart-prev, .smart-next,
    .wp-prev, .wp-next {
        display: none !important;
    }

    /* 2. INDICATORE MENU A TENDINA (Freccetta) */
    /* Aggiunge una freccia giù accanto al testo del link principale (es. "Servizi") */
    .has-dropdown > a {
        display: inline-flex;  /* Per allineare testo e freccia */
        align-items: center;
        justify-content: center;
    }

    .has-dropdown > a::after {
        content: "▼";          /* Simbolo freccia giù */
        font-size: 12px;       /* Più piccola del testo principale */
        margin-left: 10px;     /* Spazio tra testo e freccia */
        display: inline-block;
        transition: transform 0.3s ease;
        color: #fdf03c;        /* Colore giallo (o usa #fff per bianco) */
        opacity: 0.8;
    }

    /* Quando il menu è aperto (classe .open aggiunta dal JS), ruota la freccia */
    .has-dropdown.open > a::after {
        transform: rotate(180deg); /* La gira verso l'alto */
        color: #fff; /* Cambia colore quando aperto (opzionale) */
    }
}
