/* ===========================
   STILE GENERALE DEL SITO
   Tema argento + rosso metallizzato con dettagli oro
=========================== */
body {
    margin: 0;
    padding: 0;
    background-color: #c0c0c0; /* Argento chiaro */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #111111; /* Nero opaco */
    height: 100vh;
}

/* ===========================
   SEZIONE COMPETENZE
=========================== */
#skills.gallery-section {
    padding: 40px 20px;
}

.skills-category {
    margin-bottom: 40px;
    text-align: center;
}

.skills-category h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills-description {
    color: #ffffff;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.skill-icon {
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.skill-icon img {
    width: 50px;
    height: 50px;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.skill-icon:hover {
    transform: translateY(-5px);
}

.skill-icon:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.skill-name {
    font-size: 0.9em;
    color: #d1d1d1;
    text-align: center;
    margin-top: 4px;
}

.skill-description {
    max-width: 800px;
    margin: 30px auto 0;
    padding: 20px;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-description:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .skill-description {
        font-size: 1rem;
        padding: 15px;
        margin: 20px 15px 0;
    }
}

/* Responsive design per le icone */
@media (max-width: 768px) {
    .skills-row {
        gap: 20px;
    }
    
    .skill-icon img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .skills-row {
        gap: 15px;
    }
    
    .skill-icon img {
        width: 35px;
        height: 35px;
    }
}

/* ===========================
   OVERRIDE: Forza sfondo nero About
   - Posto in fondo per priorità nel cascade
=========================== */
#about.presentation-panel {
    background: #000000;
    background-image: none;
}

#about.presentation-panel .presentation-text,
#about.presentation-panel .presentation-text h2,
#about.presentation-panel .presentation-text p,
#about.presentation-panel a,
#about.presentation-panel .language-flag,
#about.presentation-panel .language-flag:hover {
    color: #f0e6b2;
}

/* ===========================
   HEADER
=========================== */
.portfolio-header {
    text-align: center;
    padding: 20px 0;
    margin-top: 5px;
}

/* ===========================
   TITOLO PRINCIPALE (nero, nitido, professionale)
=========================== */
.portfolio-title {
    font-family: "Lora", serif;

    font-size: 4rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1.5px;
    position: relative;
    top: -50px;
    text-shadow: none;
}

/* ===========================
   MENU PRINCIPALE
=========================== */
.menu-container {
    position: absolute;
    top: 140px;
    left: 150px;
    z-index: 10;
    display: inline-block;
}

/* ===========================
   HOVER SUL BLOCCO MENU COMPLETO
=========================== */
.menu-container:hover .menu-list {
    border-image: linear-gradient(to right, #d4af37, #fff4c2, #d4af37);
    border-image-slice: 1;
}

/* ===========================
    HEADER DEL MENU
   - Rosso metallizzato shiny
=========================== */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: linear-gradient(to bottom, #151515 0%, #0a0a0a 100%);
    cursor: pointer;
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #a00000, #ff3333, #7a0000);
    border-image-slice: 1;
    border-radius: 8px 8px 0 0;
    color: #f0e6b2; /* Testo sempre nero */
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.2);
    width: 100%;
    box-sizing: border-box;
}

/* Hover header: riflesso più chiaro e bordo oro */
.menu-header:hover {
    background: linear-gradient(145deg, #ff1a1a 0%, #ff4d4d 50%, #b30000 100%);
    border-image: linear-gradient(to right, #d4af37, #fff4c2, #d4af37);
    border-image-slice: 1;
    color: #111111; /* nero hover */
}

/* ===========================
   LISTA DEL MENU
=========================== */
.menu-list {
    width: 100%;
    max-width: 300px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: linear-gradient(to bottom, #d1d1d1 0%, #b3b3b3 100%);
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #a00000, #ff3333, #7a0000);
    border-image-slice: 1;
    border-top: none;
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: 500px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

/* Menu chiuso */
.menu-list.closed {
    max-height: 0;
}

/* ===========================
   ELEMENTI DEL MENU
=========================== */
.menu-list li {
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: #111111; /* Testo sempre nero */
    font-weight: 500;
}

/* Hover: bordo dorato simulato e testo oro */
.menu-list li:hover {
    background: linear-gradient(to right, rgba(212,175,55,0.3) 0%, transparent 100%);
    color: #111111;
    padding-left: 15px;
}

/* ===========================
   ICONA MENU TOGGLE
=========================== */
.menu-toggle {
    transition: transform 0.3s ease;
    color: #f0e6b2;
}
.menu-header:hover .menu-toggle {
    color: #111111;
}

/* ===========================
   LINK MENU
=========================== */
.menu-list li a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}
.menu-list li a:hover {
    color: #f0e6b2;
}

/* ===========================
   QUADRANTE DI PRESENTAZIONE
=========================== */
.presentation-panel {
    position: absolute;
    top: 140px;
    right: 100px;
    width: 1200px;
    height: 250px;
    background: linear-gradient(to bottom, #151515 0%, #0a0a0a 100%);
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #a00000, #ff3333, #7a0000);
    border-image-slice: 1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    box-sizing: border-box;
    padding-top: 40px;
    background-image: linear-gradient(to bottom, #b30000 1px, transparent 1px);
    background-position: 0 50px;
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

/* Hover pannello: bordo oro */
.presentation-panel:hover {
    border-image: linear-gradient(to right, #d4af37, #fff4c2, #d4af37);
    border-image-slice: 1;
}

/* ===========================
   SELETTORE LINGUA
=========================== */
.language-selector {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 2;
}

/* Bandierine */
.language-flag {
    display: inline-block;
    width: 40px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    background: #000;
    color: #f0e6b2;
    border: 2px solid transparent;
    border-image: linear-gradient(to right, #a00000, #ff3333, #7a0000);
    border-image-slice: 1;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover bandiera: sfondo rosso lucido e bordo oro */
.language-flag:hover {
    border-image: linear-gradient(to right, #d4af37, #fff4c2, #d4af37);
    border-image-slice: 1;
    color: #000;
    transform: translateY(-2px);
}

/* ===========================
   TESTO DI PRESENTAZIONE
=========================== */
.presentation-text {
    margin-top: 1px;
    padding: 20px 30px;
    color: #111111;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Titolo interno */
.presentation-text h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #9a7a1f;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.6);
}


/* ===========================
   MEDIA QUERIES PER SCHERMI PICCOLI
=========================== */

/* Per schermi fino a 1600px */
@media (max-width: 1600px) {
    .portfolio-title {
        font-size: 2.5rem;
        top: -20px;
        letter-spacing: 1px;
    }
    
    .menu-container {
        left: 100px;
    }
    
    .language-selector {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 80%;
    }
    
    .language-flag {
        width: 35px;
        height: 22px;
        font-size: 11px;
    }
}

/* Subito dopo il blocco @media (max-width: 1600px) */
@media (max-width: 1550px) {
  .menu-container {
    left: 40px; /* spostato un po’ più a sinistra */
  }
}



/* Per schermi fino a 1500px */
@media (max-width: 1500px) {
    .menu-container {
        left: 80px; 
        width: auto;
        max-width: 25%;
    }

    .menu-header {
        padding: 10px 12px;
        font-size: 0.95rem;
        min-width: 120px;
    }

    .menu-list li {
        padding: 10px 8px;
        font-size: 0.95rem;
    }

    .presentation-panel {
        width: 60%;
        max-width: 900px;
        min-height: 280px;
    }

    .presentation-text h2 {
        font-size: 1.7rem;
    }
}

/* Solo sotto i 1200px si stacca e va sotto */
@media (max-width: 1200px) {
    .presentation-panel {
        position: relative;
        width: 80%;
        max-width: 900px;
        margin: 180px auto 0;
        right: auto;
        left: auto;
        height: auto;
        min-height: 250px;
    }
}


/* Per schermi fino a 1150px */
@media (max-width: 1150px) {
    .portfolio-header {
        padding: 15px 0;
    }
    
    .portfolio-title {
        font-size: 2.2rem;
        top: -15px;
        line-height: 1.1;
    }
    
    .menu-container {
        left: 50px;
        top: 120px;
        width: auto;
        max-width: 40%;
    }

    .menu-header {
        font-size: 0.9rem;
    }

    .menu-list li {
        font-size: 0.9rem;
    }

    .presentation-panel {
        width: 85%;
        margin-top: 200px;
        min-height: 300px;
    }
    
    .language-selector {
        width: 90%;
        gap: 8px;
    }
    
    .language-flag {
        width: 30px;
        height: 20px;
        font-size: 10px;
    }
    
    .presentation-text h2 {
        font-size: 1.5rem;
    }
}

/* Per schermi fino a 768px (tablet) */
@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2rem;
    }
    
    .menu-container {
        left: 30px;
        top: 110px;
        max-width: 50%;
    }
    
    .presentation-panel {
        width: 90%;
        margin-top: 180px;
    }
}

/* Per schermi fino a 480px (smartphone) */
@media (max-width: 480px) {
    .menu-container {
        left: 15px;
        width: auto;
        max-width: 90%;
        top: 100px;
    }

    .menu-header {
        padding: 8px 10px;
        font-size: 0.85rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: auto;
        min-width: 100px;
    }

    .menu-list {
        width: 100%;
        max-width: 100%;
        font-size: 0.85rem;
    }

    .menu-list li {
        padding: 8px 6px;
        font-size: 0.85rem;
    }

    .menu-toggle {
        font-size: 0.85rem;
    }
    
    .presentation-panel {
        padding-top: 50px; /* Più spazio per le bandiere */
    }
    
    .language-selector {
        top: 15px;
        gap: 5px;
    }
    
    .language-flag {
        width: 28px;
        height: 18px;
        font-size: 9px;
        line-height: 18px;
    }
}

/* Per schermi fino a 360px */
@media (max-width: 360px) {
    .portfolio-title {
        font-size: 1.8rem;
        top: -10px;
    }
    
    .menu-container {
        left: 10px;
        top: 90px;
    }
    
    .presentation-panel {
        padding-top: 55px; /* Ancora più spazio per le bandiere */
        margin-top: 160px;
    }
    
    .language-selector {
        flex-wrap: wrap;
        justify-content: center;
        width: 95%;
    }
    
    .language-flag {
        width: 25px;
        height: 16px;
        font-size: 8px;
        line-height: 16px;
    }
}

/* Per schermi fino a 320px */
@media (max-width: 320px) {
    .menu-container {
        left: 5px;
        width: auto;
        max-width: 95%;
        margin-top: 50px; /* per abbassare un po’ il container */
    }

    .menu-header {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-width: 80px;
    }

    .menu-list li {
        padding: 6px 5px;
        font-size: 0.75rem;
    }

    .menu-toggle {
        font-size: 0.75rem;
    }
    
    .presentation-panel {
        padding-top: 60px; /* Massimo spazio per le bandiere */
    }
    
    .language-selector {
        gap: 3px;
    }
    
    .language-flag {
        width: 22px;
        height: 14px;
        font-size: 7px;
        line-height: 14px;
    }
}


/* ===========================
   SEZIONE SITI WEB CON CARD
=========================== */
.websites-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.website-card {
    background: linear-gradient(to bottom right, #e0e0e0 0%, #bcbcbc 100%);
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #a00000, #ff3333, #7a0000);
    border-image-slice: 1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    position: relative;
}

.website-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    border-image: linear-gradient(to right, #d4af37, #fff4c2, #d4af37);
    border-image-slice: 1;
}

.website-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom, #151515 0%, #0a0a0a 100%);
}

.website-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-bottom: 2px solid #a00000;
}

.website-card:hover .website-image img {
    transform: scale(1.08);
}

.website-content {
    padding: 25px;
    position: relative;
    background: linear-gradient(to bottom, #d1d1d1 0%, #b3b3b3 100%);
}

.website-title {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.website-title a {
    color: #111111;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.2);
}

.website-title a:hover {
    color: #111111;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.4);
}

.website-title a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(to right, #d4af37, #fff4c2, #d4af37);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.website-title a:hover::after {
    width: 100%;
}

.website-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
    opacity: 0;
    transform: translateY(10px);
}

.website-card:hover .website-info {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.website-description {
    color: #111111;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1.05rem;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.3);
}

.website-notes {
    font-style: italic;
    color: #111111;
    font-size: 0.95rem;
    padding: 15px;
    background: linear-gradient(to right, rgba(212,175,55,0.2) 0%, transparent 100%);
    border-radius: 6px;
    border-left: 4px solid #d4af37;
    border-right: 1px solid rgba(212,175,55,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 500;
}

/* Effetto di luce sull'hover della card */
.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 1;
}

.website-card:hover::before {
    left: 100%;
}

/* Pulsante visibile anche senza hover */
.website-card .view-project {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: linear-gradient(145deg, #b30000 0%, #ff1a1a 40%, #7a0000 100%);
    color: #111111;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    border-image: linear-gradient(to right, #a00000, #ff3333, #7a0000);
    border-image-slice: 1;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.2);
}

.website-card .view-project:hover {
    background: linear-gradient(145deg, #ff1a1a 0%, #ff4d4d 50%, #b30000 100%);
    border-image: linear-gradient(to right, #d4af37, #fff4c2, #d4af37);
    border-image-slice: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .websites-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 25px;
    }
    
    .website-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .websites-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .website-image {
        height: 180px;
    }
    
    .website-content {
        padding: 20px;
    }
    
    .website-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .websites-cards-container {
        gap: 15px;
    }
    
    .website-image {
        height: 160px;
    }
    
    .website-content {
        padding: 15px;
    }
    
    .website-title {
        font-size: 1.2rem;
    }
    
    .website-description {
        font-size: 1rem;
    }
    
    .website-notes {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* ===========================
   SEZIONE PROGETTI Mod E Giochi
=========================== */
.websites-projects-section {
    position: relative;
    margin: 350px auto 90px;
    width: 80%;
    max-width: 1400px;
    padding: 30px;
    background: linear-gradient(to bottom, #151515 0%, #0a0a0a 100%);
    border: 2px solid #9a7a1f;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #f0e6b2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #9a7a1f;
}

.projects-table-container {
    overflow-x: auto;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    color: #f0e6b2;
}

.projects-table th {
    background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
    padding: 15px 10px;
    text-align: left;
    border: 1px solid #9a7a1f;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.projects-table td {
    padding: 15px 10px;
    border: 1px solid #9a7a1f;
    vertical-align: top;
}

.projects-table tr:nth-child(even) {
    background-color: rgba(154, 122, 31, 0.05);
}

.projects-table tr:hover {
    background-color: rgba(154, 122, 31, 0.1);
}

.project-image img {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #9a7a1f;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.05);
}

.project-title a {
    color: #f0e6b2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.project-description {
    line-height: 1.5;
}

.project-notes {
    font-style: italic;
    color: #f0e6b2;
}

@media (min-width: 1500px) and (max-width: 1600px) {
    .websites-projects-section {
        margin-top: 350px; /* aumenti lo spazio sopra solo in quel range */
    }
}


/* Media Queries per la tabella */
@media (max-width: 1200px) {
    .websites-projects-section {
        width: 90%;
        margin: 250px auto 50px;
    }
}

@media (max-width: 992px) {
    .projects-table th,
    .projects-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .project-image img {
        width: 80px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .websites-projects-section {
        width: 95%;
        padding: 20px 15px;
        margin: 250px auto 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .projects-table th,
    .projects-table td {
        padding-left: calc(40% + 10px);
        font-size: 0.85rem;
    }
    
    .project-image img {
        width: 60px;
        height: 40px;
    }
}

/* Tablet grande: 700px – 768px */
@media (min-width: 701px) and (max-width: 768px) {
    .websites-projects-section {
        width: 95%;
        padding: 20px 15px;
        margin: 250px auto 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .projects-table th,
    .projects-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
        padding-left: 10px; /* rimuove il calc che rompe le scritte */
    }

    .project-image img {
        width: 60px;
        height: 40px;
    }
}


/* Per tutti i dispositivi sotto i 700px */
@media (max-width: 700px) {
    .websites-projects-section {
        margin: 50px auto; /* meno spazio sopra e sotto per centrare meglio */
        width: 95%; /* quasi tutta la larghezza della viewport */
        display: flex;
        flex-direction: column;
        align-items: center; /* centra orizzontalmente il contenuto */
    }

    .projects-table-container {
        width: 100%; /* assicura che la tabella non esca dai bordi */
    }

    .projects-table {
        width: 100%; /* tabella piena larghezza ma centrata */
    }

    .projects-table td {
        padding-left: 10px; /* rimuove il padding-left grande che causava overflow */
    }
}



@media (max-width: 576px) {
    .websites-projects-section {
        margin: 250px auto 30px;
    }
    
    .projects-table {
        display: block;
    }
    
    .projects-table thead {
        display: none;
    }
    
    .projects-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #9a7a1f;
        border-radius: 6px;
    }
    
    .projects-table td {
        display: block;
        text-align: left;
        border: none;
        border-bottom: 1px solid #9a7a1f;
        position: relative;
       padding-left: calc(40% + 10px);
    }
    
    .projects-table td:last-child {
        border-bottom: none;
    }
    
    .projects-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: bold;
        color: #f0e6b2;
        width: 35%;
    }
    
    /* Aggiungi data-label alle celle per la visualizzazione mobile */
    .project-image:before { content: "Immagine"; }
    .project-title:before { content: "Titolo"; }
    .project-description:before { content: "Descrizione"; }
    .project-notes:before { content: "Note"; }
}

#translations {
    margin-top: 100px; /* meno spazio sopra solo a questa sezione */
}


/* ===========================
   SEZIONE FAQ
=========================== */

#faq-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.faq-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: black;
    color: gold;
    border: 2px solid gold;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 320px;
    max-height: 500px;
    overflow-y: auto;
    background: black;
    color: #f0e6b2;
    border: 2px solid gold;
    border-radius: 10px;
    padding: 20px;
    display: none;
}

.faq-panel.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-title {
    font-size: 1.3rem;
    color: #f0e6b2;
    text-align: center;
    margin-bottom: 10px;
}

.faq-item {
    border-bottom: 1px solid gold;
    padding: 10px 0;
}

.faq-question {
    background: none;
    border: none;
    color: #f0e6b2;
    font-weight: bold;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-arrow {
    transition: transform 0.3s ease;
}

/* Mobile / Tablet */
@media (max-width: 768px) {
    #faq-container {
        bottom: 10px;
        left: 10px;
        right: 10px; /* si adatta alla larghezza dello schermo */
    }

    .faq-toggle {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .faq-panel {
        width: calc(100% - 20px); /* piena larghezza con margine */
        bottom: 60px;
        max-height: 400px;
        padding: 15px;
        font-size: 0.9rem;
    }

    .faq-title {
        font-size: 1.1rem;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.85rem;
    }
}

/* Schermi molto piccoli */
@media (max-width: 480px) {
    #faq-container {
        bottom: 5px;
        left: 5px;
        right: 5px;
    }

    .faq-toggle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .faq-panel {
        width: calc(100% - 10px);
        bottom: 50px;
        max-height: 350px;
        padding: 10px;
    }

    .faq-title {
        font-size: 1rem;
    }

    .faq-question {
        font-size: 0.9rem;
    }

    .faq-answer {
        font-size: 0.8rem;
    }
}

/* ===========================
   SEZIONE GALLERIA
=========================== */
.gallery-section {
    position: relative;
    margin: 100px auto 50px; /* simile alle sezioni progetti */
    width: 80%;
    max-width: 1400px;
    padding: 30px;
    background: linear-gradient(to bottom, #151515 0%, #0a0a0a 100%);
    border: 2px solid #9a7a1f;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.gallery-section h2 {
    font-size: 2.2rem;
    color: #f0e6b2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #9a7a1f;
    padding-bottom: 10px;
}

/* Grid delle immagini */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 immagini per riga su desktop */
    gap: 20px;
}

/* Singola immagine */
.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #9a7a1f;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    border-color: #f0e6b2;
}

.gallery-card {
    background: linear-gradient(to bottom, #151515 0%, #0a0a0a 100%);
    border: 2px solid #9a7a1f;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.gallery-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    border-color: #f0e6b2;
}

.gallery-description {
    margin-top: 10px;
    color: #f0e6b2;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}


/* ===========================
   LIGHTBOX
=========================== */
/* Lightbox generale */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13,13,13,0.95); /* effetto immersione più scuro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.lightbox.hidden {
    display: none;
    opacity: 0;
}

/* Immagine singola (default) */
.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    margin-bottom: 15px;
    border: 2px solid #9a7a1f;
}

/* Caption */
.lightbox-caption {
    color: #f0e6b2;
    text-align: center;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Pulsante chiusura */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 60px;
    font-size: 40px;
    color: #f0e6b2;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ffffff;
}

/* -----------------------------
   STACK DI IMMAGINI DRAGABILI
--------------------------------*/

.lightbox-stack-container {
    position: relative;
    width: 90%;        /* più largo */
    max-width: 800px;  /* più grande */
    height: 80%;       /* più alto */
    perspective: 600px;
    user-select: none;
    overflow: visible;
}


.lightbox-card-rotate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centrata */
    cursor: grab;
    width: 100%;
    height: 100%;
}

.lightbox-card-rotate:active {
    cursor: grabbing;
}

.lightbox-card {
    width: auto;           /* invece di 100% */
    height: 90%;           /* usa quasi tutto l’altezza */
    max-width: 100%;       /* ma non oltre il contenitore */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    object-fit: contain;   /* mantiene proporzioni */
    pointer-events: none;
    user-select: none;
}



/* ===========================
   RESPONSIVE GALLERIA
=========================== */
/* Desktop: 1200px e oltre */
@media (max-width: 1200px) {
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .gallery-item {
        height: 130px;
    }
}

/* Tablet e mobile: tutte in verticale */
@media (max-width: 992px) {
    .gallery-grid {
        display: grid; 
        grid-template-columns: 1fr; /* una sola colonna */
        gap: 20px;
    }
    .gallery-item {
        width: 100%; 
        height: auto; /* mantiene proporzioni naturali */
    }
}

/* Tablet stretto */
@media (max-width: 768px) {
    .gallery-section {
        width: 95%;
        padding: 20px;
        margin-top: 250px;
    }
    .gallery-item {
        width: 100%;
    }
    .lightbox-img {
        max-width: 95%;
        max-height: 70%;
    }
}

/* Smartphone */
@media (max-width: 480px) {
    .gallery-item {
        width: 100%;
        height: auto;
    }
    .lightbox-img {
        max-width: 100%;
        max-height: 60%;
    }
    .lightbox-caption {
        font-size: 0.95rem;
    }
}

/* ===========================
   FOOTER COMPATTO E CENTRATO
=========================== */
.portfolio-footer {
    background: linear-gradient(to top, #0a0a0a 0%, #151515 100%);
    border-top: 2px solid #9a7a1f;
    padding: 30px 20px 15px;
    margin-top: 60px;
    color: #f0e6b2;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-info h3 {
    color: #f0e6b2;
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.footer-info p {
    margin: 0;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    color: #f0e6b2;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 15px;
    background: rgba(154, 122, 31, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(154, 122, 31, 0.3);
}

.footer-link:hover {
    color: #f0e6b2;
    background: rgba(154, 122, 31, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 5px; /* Aumentato per abbassare la linea */
    margin-top: 15px; /* Aggiunto margine sopra */
    border-top: 1px solid rgba(154, 122, 31, 0.5);
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .portfolio-footer {
        padding: 25px 15px 15px;
        margin-top: 50px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .footer-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .footer-link {
        justify-content: center;
        width: 80%;
        margin: 0 auto;
    }
}

/* ===========================
   DEMO
=========================== */

/* Contenitore dei demo-panel */
.demo-container {
    display: flex;
    flex-wrap: wrap;       /* permette più righe se necessario */
    justify-content: center; /* centra i pannelli */
    gap: 50px;             /* spazio tra i pannelli */
    margin: 300px auto;
}

/* Pannelli demo */
.demo-panel {
    flex: 0 1 45%;         /* ciascun pannello prende circa il 45% della riga */
    padding: 25px;          /* un po' più grande */
    border: 2px solid #d4af37;
    border-radius: 12px;
    background-color: #1a1a1a;
    text-align: center;
    max-width: 500px;       /* più largo */
    min-width: 250px;       /* per adattarsi anche su schermi piccoli */
    box-sizing: border-box; /* include padding nel calcolo larghezza */
}


.color-box {
    width: 250px;
    height: 250px;
    margin: 20px auto;
    border: 2px solid #d4af37; /* bordo oro */
    border-radius: 8px;
    background-color: #3498db; /* colore iniziale, può restare blu */
    transition: background-color 0.5s ease;
}

#musicPortfolio .portfolio-preview {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    border: 2px solid #d4af37;
    border-radius: 10px;
    background: #0d0d0d;
}

#musicPortfolio .portfolio-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
    transition: transform 0.5s ease, filter 0.5s ease;
}

#musicPortfolio:hover .portfolio-preview img {
    transform: scale(1.02);
    filter: saturate(1.2);
}

.portfolio-preview__text {
    margin: 14px 0 18px;
    color: #e2e2e2;
}

.demo-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.demo-btn {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid #d4af37;
    border-radius: 6px;
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.demo-btn:hover {
    background-color: #d4af37;
    color: #0d0d0d;
    transform: translateY(-2px);
}

.demo-btn.ghost {
    background-color: transparent;
    color: #d4af37;
}

#colorButton {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid #d4af37; /* bordo oro */
    background-color: transparent; /* trasparente per stile dark */
    color: #d4af37; /* testo dorato */
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}
#colorButton:hover {
    background-color: #d4af37; /* dorato */
    color: #0d0d0d; /* testo scuro quando il bottone diventa dorato */
}

.demo-panel h3 {
    color: #d4af37;
    margin-bottom: 15px;
}

.demo-lang span {
    cursor: pointer;
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #d4af37;
    border-radius: 5px;
    transition: 0.3s;
}

.demo-lang span:hover {
    background-color: #d4af37;
    color: #0d0d0d;
}

.restaurant-menu {
    list-style: none;
    padding: 0;
}

.restaurant-menu li {
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    background-color: #0d0d0d;
    border: 1px solid #d4af37;
    color: #d4af37;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.restaurant-menu li:hover {
    background-color: #d4af37;
    color: #0d0d0d;
}

.dish-name {
    font-weight: bold;
}

.dish-desc {
    font-style: italic;
    font-size: 0.9em;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .demo-container {
        flex-direction: column; /* colonna verticale */
        align-items: center;    /* centra i pannelli */
        gap: 50px;              /* spazio più compatto */
        margin: 200px auto;     /* meno spazio sopra/sotto su mobile */
    }

    .demo-panel {
        flex: 1 1 100%;   /* occupa tutta la larghezza */
        max-width: 90%;   /* lascia un po' di margine laterale */
    }
}

/* Extra: schermi molto piccoli (telefono sotto i 500px) */
@media (max-width: 500px) {
    .demo-panel {
        padding: 15px;    /* meno padding per spazio */
    }

    .color-box {
        width: 180px;
        height: 180px;
    }

    #colorButton {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .restaurant-menu li {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sotto i 350px, le bandiere demo vanno in colonna */
@media (max-width: 350px) {
    .demo-lang {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; /* tre colonne uguali */
        grid-template-rows: auto auto auto;
        justify-items: center;
        align-items: center;
        row-gap: 2px;    /* spazio verticale minimo */
        column-gap: 1px; /* spazio orizzontale tra colonne */
        width: 100%;
    }

    /* Layout piramide 2-2-1 */
    .demo-lang span:nth-child(1) { grid-column: 1; grid-row: 1; }
    .demo-lang span:nth-child(2) { grid-column: 3; grid-row: 1; }
    .demo-lang span:nth-child(3) { grid-column: 1; grid-row: 2; }
    .demo-lang span:nth-child(4) { grid-column: 3; grid-row: 2; }
    .demo-lang span:nth-child(5) { grid-column: 2; grid-row: 3; } /* centrato */

    .demo-lang span {
        width: 40px;
        height: 40px;               /* quadrato più armonico */
        display: flex;              /* usa flex interno */
        justify-content: center;    /* centro orizzontale */
        align-items: center;        /* centro verticale */
        text-align: center;
        font-size: 0.8em;
        padding: 0;                 /* rimuove padding extra */
        margin: 0;                  /* niente margini */
        box-sizing: border-box;
    }
}

/* Extra: schermi molto piccoli (max 300px) */
@media (max-width: 300px) {
    .demo-container {
        margin: 200px auto;   /* margine molto ridotto */
        gap: 20px;           /* meno spazio */
    }

    .demo-panel {
        flex: 1 1 100%;
        max-width: 100%;     /* occupa tutta la larghezza */
        min-width: auto;     /* elimina limite minimo */
        padding: 10px;       /* padding ridotto */
    }

    .color-box {
        width: 140px;
        height: 140px;
    }

    #colorButton {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .restaurant-menu li {
        font-size: 0.8em;
        padding: 6px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ====== TEMI SOLO QUADRANTE ====== */
.theme-box {
    padding: 90px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

/* Modalità chiara */
.theme-box.light-mode {
    background-color: #ffffff;
    color: #222;
    border: 2px solid #ccc;
}

/* Modalità scura */
.theme-box.dark-mode {
    background-color: #1a1a1a;
    color: #f0e6b2;
    border: 2px solid #9a7a1f;
}


/* ===========================
   SEZIONE TEAM
=========================== */
.team-section {
    position: relative;
    margin: 100px auto 50px;
    width: 80%;
    max-width: 1400px;
    padding: 30px;
    background: linear-gradient(to bottom, #151515 0%, #0a0a0a 100%);
    border: 2px solid #9a7a1f;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid #9a7a1f;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

.member-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #9a7a1f;
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #9a7a1f;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.5rem;
    color: #f0e6b2;
    margin: 0 0 5px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.member-nickname {
    color: #d6b85a;
    font-style: italic;
    margin: 0;
}

.member-info {
    width: 100%;
    border-collapse: collapse;
    color: #d6b85a;
}

.member-info th,
.member-info td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(154, 122, 31, 0.3);
}

.member-info th {
    width: 30%;
    color: #f0e6b2;
    font-weight: 600;
    vertical-align: top;
}

.member-info tr:last-child th,
.member-info tr:last-child td {
    border-bottom: none;
}

/* Responsive per la sezione team */
@media (max-width: 1200px) {
    .team-section {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .team-section {
        width: 95%;
        padding: 20px 15px;
    }
    
    .team-member {
        max-width: 100%;
    }
    
    .member-image {
        width: 100px;
        height: 100px;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .member-info th,
    .member-info td {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
    
    .member-info th {
        width: 35%;
    }
}

@media (max-width: 480px) {
    .member-info {
        display: block;
    }
    
    .member-info tr {
        display: block;
        margin-bottom: 10px;
    }
    
    .member-info th,
    .member-info td {
        display: block;
        width: 100%;
        padding: 5px 0;
        border-bottom: none;
    }
    
    .member-info th {
        font-weight: bold;
        color: #f0e6b2;
        border-bottom: 1px solid rgba(154, 122, 31, 0.2);
        padding-bottom: 3px;
        margin-bottom: 5px;
    }
}


/* ===========================
   SEZIONE SHI E GRAD
=========================== */

/* ====== TESTI SHINY & GRADUATO ====== */
.text-effects-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: #0d0d0d;
    border: 2px solid #d4af37;
    border-radius: 10px;
}

/* Testo Shiny */
.shiny-text {
    font-size: 2rem;
    font-weight: bold;
    color: #888888; /* colore base visibile, grigio scuro */
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* pseudo-elemento che scorre sopra al testo */
.shiny-text::before {
    content: attr(data-text); /* usa lo stesso testo */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

/* Animazione della luce */
@keyframes shine {
    0% {
        background-position: 100%;
    }
    100% {
        background-position: -100%;
    }
}

/* Testo con gradiente animato */
.gradient-text {
    font-size: 2rem;
    font-weight: bold;
    background-image: linear-gradient(
        to right,
        #40ffaa,
        #4079ff,
        #40ffaa,
        #4079ff,
        #40ffaa
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient 8s linear infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.color-selectors {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    color: #d4af37;
    font-size: 0.9rem;
}

.color-selectors label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.color-selectors input[type="color"] {
    border: none;
    width: 40px;
    height: 25px;
    cursor: pointer;
    background: none;
}

/* ===========================
   SEZIONE PARTNERSHIP
=========================== */
.partnership-section {
    position: relative;
    margin: 100px auto 50px;
    width: 80%;
    max-width: 1400px;
    padding: 30px;
    background: linear-gradient(to bottom, #151515 0%, #0a0a0a 100%);
    border: 2px solid #9a7a1f;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    text-align: center;
}

.partnership-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partnership-banner {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid #9a7a1f;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partnership-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    border-color: #f0e6b2;
}

/*===========================
    UUID GENERATOR
===========================*/

/* === UUID Generator Demo === */
#uuidDemo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Box che mostra l'UUID */
.uuid-box {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    background: var(--demo-box-bg, #ffffff);
    border: 2px solid var(--demo-border, #ccc);
    border-radius: 10px;
    padding: 10px 16px;
    min-width: 260px;
    text-align: center;
    user-select: all;
    word-break: break-all;
    transition: background 0.3s, border-color 0.3s, transform 0.15s;
}

/* Animazione leggera quando viene generato */
.uuid-box.uuid-generated {
    border-color: #4caf50;
    background: #e9ffe9;
    transform: scale(1.02);
}

/* Contenitore pulsanti e select */
.uuid-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.uuid-controls button,
.uuid-controls select {
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #bbb;
    background: #fff;
    cursor: pointer;
    padding: 6px 10px;
    transition: background 0.2s, transform 0.15s;
}

/* Effetto hover/tap coerente con altri demo */
.uuid-controls button:hover,
.uuid-controls select:hover {
    background: #f0f0f0;
}

.uuid-controls button:active {
    transform: scale(0.97);
}

/* Feedback text */
.uuid-feedback {
    font-size: 0.85rem;
    color: #555;
    min-height: 1em;
    text-align: center;
}

/* Accessibilità: nasconde visivamente ma resta leggibile da screen reader */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

/* ===========================
   OVERRIDE (fine file): Pannelli About & Beta neri
   - Sfondo nero e testo #f0e6b2
   - Forza la priorità contro gradienti definiti sopra
=========================== */
#about.presentation-panel,
#beta.presentation-panel {
    background: #151515 !important;
    background-image: none !important;
}

#about.presentation-panel .presentation-text,
#about.presentation-panel .presentation-text h2,
#about.presentation-panel .presentation-text p,
#about.presentation-panel a,
#about.presentation-panel .language-flag,
#about.presentation-panel .language-flag:hover,
#beta.presentation-panel .presentation-text,
#beta.presentation-panel .presentation-text h2,
#beta.presentation-panel .presentation-text p,
#beta.presentation-panel a,
#beta.presentation-panel .language-flag,
#beta.presentation-panel .language-flag:hover {
    color: #f0e6b2 !important;
}

#about.presentation-panel .language-flag,
#beta.presentation-panel .language-flag {
    background-color: #151515 !important;
}
