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


/* Corpo base */
body {
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5;
    background: linear-gradient(135deg,
            #f5c542 0%,
            /* giallo dorato a sinistra */
            #1a1a1a 60%,
            /* passaggio morbido verso antracite */
            #0d0d0d 100%
            /* nero profondo a destra */
        );
    overflow-x: hidden;
    min-height: 100vh;
}



/* Sezione hero */
.hero {
    position: relative;
    height: 100vh;
    background: url('../images/background.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-in-out;
}

.profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #f5c542;
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(245, 197, 66, 0.3);
}

.name {
    font-size: 2.8rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.3);
}

.role {
    font-size: 1.2rem;
    color: #d6d6d6;
    margin-bottom: 1rem;
}

.tagline {
    font-style: italic;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Bottone con accento dorato */
.btn {
    display: inline-block;
    background: #f5c542;
    color: #0d0d0d;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.3);
}

.btn:hover {
    background: #fce88a;
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.5);
}

/* Sezione contatti */
.contact {
    padding: 4rem 1rem;
    text-align: center;
    background-color: rgba(18, 18, 18, 0.95);
}

.contact a {
    color: #f5c542;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #fce88a;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #0a0a0a;
    color: #999;
    font-size: 0.9rem;
}

/* Animazioni */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Effetto di apparizione durante lo scroll */
.content,
.contact {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Pulsanti stile Sky Lounge === */
.btn-border {
    display: inline-block;
    position: relative;
    padding: 0.9rem 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f5c542;
    border: 2px solid #f5c542;
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.2);
}

.btn-border::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #f5c542;
    transition: all 0.4s ease;
    z-index: 0;
}

.btn-border:hover::before {
    left: 0;
}

.btn-border:hover {
    color: #0d0d0d;
    box-shadow: 0 0 25px rgba(245, 197, 66, 0.5);
}

.btn-border span {
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(245, 197, 66, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(245, 197, 66, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(245, 197, 66, 0.4);
    }
}

.pulse {
    animation: pulse 0.6s ease;
}

/* === Loader con effetto SIPARIO === */
.loader-container {
    position: fixed;
    inset: 0;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

/* Sipari sinistro e destro */
.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #0d0d0d;
    z-index: 10;
    transition: transform 1.4s cubic-bezier(0.77, 0, 0.18, 1);
}

.curtain.left {
    left: 0;
    transform: translateX(0);
}

.curtain.right {
    right: 0;
    transform: translateX(0);
}

.loader-container.fade-out .curtain.left {
    transform: translateX(-100%);
}

.loader-container.fade-out .curtain.right {
    transform: translateX(100%);
}

/* Cerchio animato */
.svg-loader {
    stroke: #f5c542;
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    animation: rotateLoader 2s linear infinite;
}

@keyframes rotateLoader {
    0% {
        transform: rotate(0deg);
        stroke-dasharray: 0 157;
    }

    50% {
        stroke-dasharray: 78 157;
        stroke-dashoffset: -39;
    }

    100% {
        transform: rotate(360deg);
        stroke-dasharray: 0 157;
        stroke-dashoffset: -157;
    }
}

/* Logo centrale visibile subito e con glow morbido */
.loader-name img {
    width: 120px;
    margin-top: 1.5rem;
    opacity: 1;
    /* visibile subito */
    animation: logoPulse 2.4s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 18px rgba(245, 197, 66, 0.6));
}

/* Effetto leggero di “respiro” del logo */
@keyframes logoPulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Quando i sipari si aprono, sfuma il loader */
.loader-container.fade-out {
    background: transparent;
    transition: background 0.8s ease 0.4s;
}

.loader-container.fade-out .loader-animation,
.loader-container.fade-out .loader-name {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* === MENU FISSO DOPO HERO === */
.main-nav {
    position: relative;
    width: 100%;
    background: rgba(13, 13, 13, 0.9);
    border-top: 1px solid rgba(245, 197, 66, 0.3);
    border-bottom: 1px solid rgba(245, 197, 66, 0.3);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 100;
    transition: all 0.4s ease;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
    margin: 0;
}

.main-nav a {
    color: #f5c542;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #fce88a;
}

/* Quando diventa sticky */
.main-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === SEZIONE BIOGRAFIA === */
.bio-section {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
    color: #f5f5f5;
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
}

.bio-container {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease forwards;
}

.bio-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f5c542;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.4);
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

.bio-text strong {
    color: #fff;
}

.bio-text em {
    color: #fce88a;
    font-style: normal;
    font-weight: 500;
}

.accent {
    color: #f5c542;
    font-weight: 600;
}

/* Effetto di apparizione */
.bio-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.bio-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* === SEZIONE PROGETTI & AI SHOWCASE === */
.projects-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #f5f5f5;
    text-align: center;
    padding: 6rem 1.5rem;
    position: relative;
}

.projects-title {
    font-size: 2rem;
    color: #f5c542;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.4);
}

.projects-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #d0d0d0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(245, 197, 66, 0.2);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease forwards;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(245, 197, 66, 0.25);
}

.project-card h4 {
    color: #f5c542;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-card .tag {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #fce88a;
    letter-spacing: 0.5px;
}

/* Appare con animazione scroll */
.projects-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.projects-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === SEZIONE AI ASSISTANT === */
.ai-section {
    background: radial-gradient(circle at 30% 20%, rgba(245, 197, 66, 0.08), transparent 60%), #0d0d0d;
    color: #f5f5f5;
    text-align: center;
    padding: 6rem 1.5rem;
    position: relative;
}

.ai-title {
    font-size: 2rem;
    color: #f5c542;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 12px rgba(245, 197, 66, 0.5);
}

.ai-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #d0d0d0;
}

/* === CHAT CON STILE SQUADRATO === */
/* === CHAT CON DOPPIO BORDO SFALSATO === */
/* === CHAT CON DOPPIO BORDO SFALSATO COMPLETO === */
.ai-chat {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(13, 13, 13, 0.85);
    position: relative;
    padding: 1.5rem;
    text-align: left;
    color: #f5f5f5;
    z-index: 1;
    overflow: visible;
    /* 🔹 permette al bordo esterno di uscire */
}

/* 🔹 Bordo principale */
.ai-chat::before,
.ai-chat::after {
    content: "";
    position: absolute;
    border: 1px solid #f5c542;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 🔹 BORDO INTERNO (più vicino) */
.ai-chat::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* 🔹 BORDO ESTERNO (sfalsato e completo) */
.ai-chat::after {
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    opacity: 0.6;
}

/* 🔹 Effetto hover */
.ai-chat:hover::before,
.ai-chat:hover::after {
    border-color: #fce88a;
    opacity: 1;
}

.chat-window {
    height: 280px;
    overflow-y: auto;
    text-align: left;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
}

.chat-message {
    margin: 0.6rem 0;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    line-height: 1.5;
    animation: fadeInUp 0.4s ease;
}

.chat-message.bot {
    background: rgba(245, 197, 66, 0.1);
    border-left: 3px solid #f5c542;
}

.chat-message.user {
    background: rgba(255, 255, 255, 0.08);
    border-right: 3px solid #fce88a;
    text-align: right;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid rgba(245, 197, 66, 0.3);
    color: #fff;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    outline: none;
}

.chat-input input:focus {
    border-color: #f5c542;
}

.ai-cta {
    margin-top: 2rem;
    font-size: 1rem;
    color: #ccc;
}

.ai-cta .accent {
    color: #f5c542;
    text-decoration: none;
    font-weight: 600;
}

.ai-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ai-section.visible {
    opacity: 1;
    transform: translateY(0);
}




/* === SEZIONE BLOG SEO === */
.blog-section {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
    color: #f5f5f5;
    text-align: center;
    padding: 6rem 1.5rem;
    position: relative;
}

.blog-title {
    font-size: 2rem;
    color: #f5c542;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 12px rgba(245, 197, 66, 0.5);
}

.blog-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #d0d0d0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(245, 197, 66, 0.25);
    position: relative;
    padding: 2rem 1.5rem;
    color: #ddd;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(245, 197, 66, 0.3);
}

.blog-card h4 {
    color: #f5c542;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 🔹 Pulsante con doppio bordo sfalsato */
.btn-outline {
    display: inline-block;
    position: relative;
    padding: 0.8rem 1.6rem;
    color: #f5c542;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    text-transform: uppercase;
    overflow: visible;
}

.btn-outline::before,
.btn-outline::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #f5c542;
    transition: all 0.3s ease;
}

.btn-outline::after {
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    opacity: 0.5;
}

.btn-outline:hover::before,
.btn-outline:hover::after {
    border-color: #fce88a;
    opacity: 1;
}

.btn-outline:hover {
    color: #fce88a;
}

/* Effetto apparizione allo scroll */
.blog-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.blog-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === SEZIONE CONTATTI CON FORM === */
.contact {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #f5f5f5;
    text-align: center;
    padding: 6rem 1.5rem;
    position: relative;
}

.contact-title {
    font-size: 2rem;
    color: #f5c542;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 0 0 12px rgba(245, 197, 66, 0.5);
}

.contact-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #d0d0d0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(245, 197, 66, 0.3);
    color: #fff;
    border-radius: 0;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f5c542;
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.3);
}

.contact-form .btn-outline {
    align-self: center;
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* Nota finale */
.contact-note {
    color: #aaa;
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

.contact-note a {
    color: #f5c542;
    text-decoration: none;
}

.contact-note a:hover {
    color: #fce88a;
}

/* Effetto apparizione */
.contact {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === FOOTER === */
.site-footer {
    background: #0a0a0a;
    color: #999;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(245, 197, 66, 0.3);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-left p {
    margin: 0;
    color: #ccc;
}

.footer-right {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pulsanti footer coerenti con btn-outline */
.footer-right .btn-outline {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.footer-right .btn-outline::after {
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
}

/* Hover dorato */
.footer-right .btn-outline:hover {
    color: #fce88a;
}

/* === UNIFICA STILE TRA <a> e <button> === */
button.btn-outline {
    background: transparent;
    color: #f5c542;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.8rem 1.6rem;
    overflow: visible;
    transition: color 0.3s ease;
}

/* 🔹 Doppio bordo come gli altri */
button.btn-outline::before,
button.btn-outline::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #f5c542;
    transition: all 0.3s ease;
}

button.btn-outline::after {
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    opacity: 0.5;
}

button.btn-outline:hover::before,
button.btn-outline:hover::after {
    border-color: #fce88a;
    opacity: 1;
}

button.btn-outline:hover {
    color: #fce88a;
}

button.btn-outline:focus {
    outline: none;
}

/* === UNIFICA STILE <button> CON .btn-border === */
button.btn-border {
    background: transparent;
    /* 🔹 Rimuove lo sfondo bianco */
    color: #f5c542;
    /* Colore del testo */
    border: 2px solid #f5c542;
    /* Mantiene il bordo dorato */
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    font-family: inherit;
}

/* 🔹 Effetto hover coerente */
button.btn-border:hover {
    color: #0d0d0d;
    background: #f5c542;
    box-shadow: 0 0 25px rgba(245, 197, 66, 0.5);
}

/* 🔹 Disattiva stili di default browser */
button.btn-border:focus,
button.btn-border:active {
    outline: none;
    background: transparent;
}

/* === BLOG ARCHIVE PAGE === */

/* Hero introduttivo */
.blog-hero {
    position: relative;
    height: 50vh;
    background: url('../images/background-blog.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f5f5f5;
}

.blog-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInUp 1.2s ease;
}

.blog-hero-content h1 {
    font-size: 2.2rem;
    color: #f5c542;
    margin-bottom: 1rem;
}

.blog-hero-content p {
    color: #ddd;
    font-size: 1.1rem;
}

/* Elenco articoli */
.blog-archive {
    background: #0d0d0d;
    color: #fff;
    padding: 5rem 1.5rem;
}

.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.blog-post {
    display: flex;
    flex-wrap: wrap;
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(245, 197, 66, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(245, 197, 66, 0.25);
}

.blog-thumb {
    width: 100%;
    max-width: 380px;
    object-fit: cover;
    filter: grayscale(50%) brightness(0.9);
    transition: filter 0.3s ease;
}

.blog-post:hover .blog-thumb {
    filter: grayscale(0%) brightness(1);
}

.blog-content {
    flex: 1;
    padding: 2rem;
}

.blog-content h2 {
    color: #f5c542;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-content .btn-outline {
    font-size: 0.9rem;
}

/* Navbar fissa nella pagina blog */
.main-nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.9);
    border-bottom: 1px solid rgba(245, 197, 66, 0.3);
    z-index: 999;
}

/* === SINGLE BLOG PAGE === */

/* Hero articolo */
.post-hero {
    position: relative;
    height: 45vh;
    background: url('../images/blog/prompt-ottimizzazione.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f5f5f5;
}

.post-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease;
    max-width: 800px;
}

.post-hero-content h1 {
    font-size: 2.4rem;
    color: #f5c542;
    margin-bottom: 0.8rem;
}

.post-meta {
    font-size: 1rem;
    color: #ddd;
}

/* Contenuto articolo */
.post-content {
    background: #0d0d0d;
    padding: 5rem 1.5rem;
    color: #f5f5f5;
}

.post-container {
    max-width: 850px;
    margin: 0 auto;
}

.post-thumb {
    width: 100%;
    border: 1px solid rgba(245, 197, 66, 0.2);
    margin-bottom: 2rem;
    filter: grayscale(40%) brightness(0.9);
    transition: filter 0.3s ease;
}

.post-thumb:hover {
    filter: grayscale(0%) brightness(1);
}

.post-container article h2 {
    color: #f5c542;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.post-container article p {
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 1.2rem;
}

blockquote {
    border-left: 3px solid #f5c542;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #fce88a;
    font-style: italic;
}

.post-tags {
    margin-top: 2rem;
}

.post-tags span {
    display: inline-block;
    background: rgba(245, 197, 66, 0.15);
    border: 1px solid rgba(245, 197, 66, 0.4);
    color: #f5c542;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Box autore */
.author-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid rgba(245, 197, 66, 0.3);
    background: rgba(18, 18, 18, 0.8);
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #f5c542;
}

.author-box h4 {
    color: #f5c542;
    margin-bottom: 0.3rem;
}

/* Link torna al blog */
.back-to-blog {
    text-align: center;
    margin-top: 3rem;
}

/* === LAYOUT A DUE COLONNE PER IL BLOG === */
.post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    background: #0d0d0d;
    color: #f5f5f5;
}

.post-main {
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(245, 197, 66, 0.2);
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.post-sidebar {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(245, 197, 66, 0.25);
    padding: 2rem 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    height: fit-content;
    align-self: start;
}

/* Sidebar elementi */
.sidebar-block {
    margin-bottom: 2rem;
}

.sidebar-block h3 {
    color: #f5c542;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(245, 197, 66, 0.3);
    padding-bottom: 0.5rem;
}

.sidebar-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-block li {
    margin: 0.6rem 0;
}

.sidebar-block a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-block a:hover {
    color: #fce88a;
}

/* 🔹 Responsive: colonna singola su mobile */
@media (max-width: 900px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
}

/* === HERO PORTFOLIO === */
.portfolio-hero {
    position: relative;
    height: 45vh;
    background: url('../images/background-portfolio.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f5f5f5;
}

.portfolio-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease;
}

.portfolio-hero-content h1 {
    font-size: 2.4rem;
    color: #f5c542;
    margin-bottom: 0.8rem;
}

.portfolio-hero-content p {
    color: #ddd;
    font-size: 1.1rem;
}
/* === SEZIONE PORTFOLIO === */
.portfolio-section {
    background: #0d0d0d;
    color: #f5f5f5;
    padding: 5rem 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.portfolio-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Controlli categoria */
.portfolio-controls {
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    color: #f5c542;
    border: 1px solid #f5c542;
    padding: 0.6rem 1.2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.filter-btn.active,
.filter-btn:hover {
    color: #0d0d0d;
    background: #f5c542;
}

.filter-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #f5c542;
    top: 5px;
    left: 5px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.filter-btn:hover::after {
    border-color: #fce88a;
    top: 0;
    left: 0;
    opacity: 1;
}

/* === GRID MODERNA con proporzioni uniformi === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* adatta automaticamente */
    gap: 1.5rem;
    justify-items: center;
}

.portfolio-item {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.03);
}

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

/* Overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.85);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f5f5f5;
    padding: 1.5rem;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Titoli e testi */
.portfolio-overlay h4 {
    color: #f5c542;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    color: #ddd;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .portfolio-item {
        max-width: 300px;
    }
}

/* === BLOG ARCHIVE === */
.blog-hero {
    position: relative;
    background: url('../images/archivioBlog.jpg') center/cover no-repeat;
    color: #f5f5f5;
    text-align: center;
    padding: 8rem 2rem 6rem;
}

.blog-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.6);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
}

.blog-archive {
    background: #0d0d0d;
    color: #f5f5f5;
    padding: 4rem 2rem;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-6px);
}

.blog-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    text-align: left;
}

.blog-content h2 {
    color: #f5c542;
    margin-bottom: 0.5rem;
}

.blog-content p {
    color: #ccc;
    margin-bottom: 1rem;
}

.no-posts {
    text-align: center;
    font-size: 1.2rem;
    color: #aaa;
    padding: 4rem 0;
}
/* Loader resta sopra tutto solo in fase iniziale */
.loader-container {
    z-index: 9998 !important;
}

/* === CHAT BASE === */
/* Chat normale */
.ai-chat {
    position: relative !important;
    z-index: 10 !important;
}
/* Assicura che la sezione AI non limiti la chat */
.ai-section {
    overflow: visible !important;
    position: static !important;
    z-index: auto !important;
}



/* === CHAT FLOATING MOBILE + ANIMAZIONE === */

/* Pulsante flottante (solo mobile) */
.ai-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #f5c542;
    color: #0d0d0d;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.5);
    z-index: 99999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Effetto tap / click */
.ai-float-btn:active {
    transform: scale(0.9);
}
/* === PULSANTE CHIUDI CHAT SEMPRE VISIBILE === */
button.close-chat {
    display: none!important;
}


/* Sempre visibile anche su desktop */
.ai-chat .close-chat {
    display: block !important;
}

/* Spazio per non coprire il titolo */
.ai-chat {
    position: relative;
    padding-top: 2.5rem !important;
}
/* Animazione slide-up per apertura chat */
@keyframes slideUpChat {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenitore chat flottante su mobile */
@media (max-width: 768px) {
    .ai-section {
        position: fixed !important;
        bottom: 100px;
        right: 20px;
        width: 90%;
        max-width: 380px;
        background: rgba(13, 13, 13, 0.96);
        border: 1px solid rgba(245, 197, 66, 0.4);
        border-radius: 16px;
        box-shadow: 0 0 30px rgba(245, 197, 66, 0.25);
        overflow: hidden;
        z-index: 99998;
        display: none;
        flex-direction: column;
        animation: slideUpChat 0.4s ease forwards;
    }

    .ai-section.visible {
        display: flex !important;
    }

    /* Nascondi bottone desktop */
    .ai-chat.fullscreen {
        border-radius: 0;
    }
}

/* Su desktop: mostra la chat inline e rimuovi bottone */
@media (min-width: 769px) {
    .ai-float-btn {
        display: none !important;
    }
}

/* === FIX Z-INDEX CHAT MOBILE (sopra tutte le sezioni) === */
@media (max-width: 768px) {
    .ai-section {
        position: fixed !important;
        bottom: 100px;
        right: 20px;
        width: 90%;
        max-width: 380px;
        background: rgba(13, 13, 13, 0.96);
        border: 1px solid rgba(245, 197, 66, 0.4);
        border-radius: 16px;
        box-shadow: 0 0 30px rgba(245, 197, 66, 0.25);
        overflow: hidden;
        z-index: 999999 !important;
        /* 🔥 sopra tutto */
        display: none;
        flex-direction: column;
        animation: slideUpChat 0.4s ease forwards;
    }

    .ai-section.visible {
        display: flex !important;
    }

    /* Il bottone galleggia sopra tutto */
    .ai-float-btn {
        z-index: 1000000 !important;
        /* 🔥 ancora più alto */
    }

    /* Tutte le altre sezioni vanno sotto */
    section,
    header,
    footer,
    nav,
    .main-nav,
    .projects-section,
    .blog-section,
    .contact {
        position: relative;
        z-index: 1 !important;
    }
}

/* === RESPONSIVE FIX CHAT MOBILE === */
@media (max-width: 768px) {

    /* Contenitore generale */
    .ai-section {
        width: 92%;
        max-width: 340px;
        right: 15px;
        bottom: 85px;
        border-radius: 14px;
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Titolo e sottotitolo più compatti */
    .ai-title {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .ai-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }

    /* Area chat */
    .ai-chat {
        padding: 1rem;
    }

    .chat-window {
        height: 230px;
        /* ridotta per schermi piccoli */
        padding-right: 0.3rem;
    }

    .chat-message {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        border-radius: 10px;
    }

    .chat-input input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .chat-input button {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    /* Call to action sotto la chat */
    .ai-cta {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-top: 1.2rem;
    }

    .ai-cta .btn-outline {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    /* Pulsante flottante */
    .ai-float-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        right: 18px;
        bottom: 18px;
    }
}
/* === RECAPTCHA STILE DOTFOLIO — mascheramento elegante === */
.recaptcha-container {
    position: relative;
    display: inline-block;
    background: linear-gradient(145deg, #0d0d0d, #1a1a1a);
    border: 1px solid rgba(245, 197, 66, 0.4);
    border-radius: 10px;
    padding: 0.4rem;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.25);
}

/* Overlay trasparente per fondere i bordi */
.recaptcha-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    border-radius: 10px;
}

/* Glow al passaggio */
.recaptcha-container:hover {
    box-shadow: 0 0 25px rgba(245, 197, 66, 0.45);
    transition: box-shadow 0.3s ease;
}

/* Scala e centratura */
.g-recaptcha {
    transform: scale(1.05);
    transform-origin: center;
    display: block;
    margin: auto;
}

/* Adattamento mobile */
@media (max-width: 768px) {
    .recaptcha-container {
        transform: scale(0.92);
        transform-origin: center;
    }
}

/* =======================================================
   🟡 WP BLOCK COVER → stile coerente con hero del blog
   ======================================================= */

.wp-block-cover {
    position: relative;
    background-color: #0d0d0d;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f5f5f5;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 4rem 2rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(245, 197, 66, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Overlay dorato / antracite */
.wp-block-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 0;
}

/* Testo dentro cover */
.wp-block-cover .wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1.2s ease;
}

/* Titoli coerenti con hero blog */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3 {
    color: #f5c542;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(245, 197, 66, 0.5);
}

.wp-block-cover p {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Pulsanti coerenti */
.wp-block-cover a.wp-block-button__link {
    background: #f5c542;
    color: #0d0d0d;
    border-radius: 50px;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(245, 197, 66, 0.3);
    transition: all 0.3s ease;
}

.wp-block-cover a.wp-block-button__link:hover {
    background: #fce88a;
    box-shadow: 0 0 25px rgba(245, 197, 66, 0.5);
}

/* Adattamento mobile */
@media (max-width: 768px) {
    .wp-block-cover {
        min-height: 40vh;
        padding: 3rem 1.5rem;
    }

    .wp-block-cover h1,
    .wp-block-cover h2 {
        font-size: 1.8rem;
    }

    .wp-block-cover p {
        font-size: 1rem;
    }
}

/* =======================================================
   🟡 STILE ARTICLE UNIVERSALE — Dotfolio
   ======================================================= */

article,
.entry-content,
.wp-block-post-content {
    font-family: 'Poppins', sans-serif;
    color: #ddd;
    line-height: 1.8;
    font-size: 1.05rem;

    /* Layout */
    width: 90%;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 3rem 2.5rem;
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(245, 197, 66, 0.25);
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* === TITOLI === */
article h1,
article h2,
article h3,
article h4,
article h5 {
    color: #f5c542;
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.35);
}

article h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

article h2 {
    font-size: 1.8rem;
}

article h3 {
    font-size: 1.4rem;
}

article h4,
article h5 {
    font-size: 1.15rem;
    color: #fce88a;
}

/* === PARAGRAFI === */
article p {
    color: #ccc;
    margin-bottom: 1.4rem;
    text-align: justify;
}

/* === LINK === */
article a {
    color: #f5c542;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

article a:hover {
    color: #fce88a;
    text-shadow: 0 0 6px rgba(245, 197, 66, 0.4);
}

/* === IMMAGINI === */
article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border: 1px solid rgba(245, 197, 66, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(245, 197, 66, 0.45);
}

/* === LISTE === */
article ul,
article ol {
    margin: 1.5rem 2rem;
    padding-left: 1rem;
}

article li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

article ul li::marker {
    color: #f5c542;
}

article ol li::marker {
    color: #fce88a;
}

/* === BLOCKQUOTE === */
article blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid #f5c542;
    background: rgba(245, 197, 66, 0.05);
    color: #fce88a;
    font-style: italic;
    box-shadow: inset 0 0 10px rgba(245, 197, 66, 0.1);
    border-radius: 6px;
}

/* === CODE & PRE === */
article code {
    background: rgba(245, 197, 66, 0.1);
    color: #fce88a;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

article pre {
    background: #0d0d0d;
    border: 1px solid rgba(245, 197, 66, 0.25);
    color: #fce88a;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* === TABELLE === */
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(13, 13, 13, 0.85);
}

article th,
article td {
    border: 1px solid rgba(245, 197, 66, 0.25);
    padding: 0.8rem 1rem;
    color: #ddd;
}

article th {
    background: rgba(245, 197, 66, 0.15);
    color: #f5c542;
    text-transform: uppercase;
}

/* === SEPARATORI === */
article hr {
    border: 0;
    border-top: 1px solid rgba(245, 197, 66, 0.3);
    margin: 2rem 0;
}

/* === DIDASCALIE IMMAGINI === */
.wp-caption {
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.wp-caption-text {
    color: #ccc;
}

/* === EFFETTO APPARIZIONE === */
article {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

article.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    article {
        width: 94%;
        padding: 2rem 1.5rem;
        margin: 2rem auto;
        font-size: 1rem;
    }

    article h1 {
        font-size: 1.8rem;
    }

    article h2 {
        font-size: 1.5rem;
    }

    article h3 {
        font-size: 1.25rem;
    }
}

/* === COOKIE BANNER DOTFOLIO === */
.cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 800px;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(245, 197, 66, 0.3);
    box-shadow: 0 0 25px rgba(245, 197, 66, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    color: #f5f5f5;
    text-align: center;
    z-index: 100000;
    backdrop-filter: blur(8px);
    opacity: 1;
    transition: all 0.5s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translate(-50%, 40px);
    pointer-events: none;
}

.cookie-inner p {
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-link {
    color: #f5c542;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #fce88a;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Pulsanti coerenti col tema */
.cookie-buttons .btn-border,
.cookie-buttons .btn-outline {
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
}

@keyframes fadeInCookie {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Safari fix per il loader */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0d0d0d;
    transition: opacity 0.6s ease;
    overflow: hidden;
    pointer-events: all;
    visibility: visible;
}

#page-loader.fade-out {
    background: transparent;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}