/* Minimizzazione non riuscita. Verrà restituito il contenuto non minimizzato.
(2,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(4,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(5,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(20,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(33,44): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(111,25): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(117,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(129,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(140,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(151,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(162,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(210,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(222,28): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(226,26): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(243,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(248,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(358,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(385,22): run-time error CSS1039: Token not allowed after unary operator: '-card'
(403,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(429,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(481,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(544,1): run-time error CSS1019: Unexpected token, found '}'
(589,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(660,28): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(678,26): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(691,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(719,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(720,10): run-time error CSS1035: Expected colon, found '{'
(777,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(787,37): run-time error CSS1030: Expected identifier, found '['
(787,42): run-time error CSS1031: Expected selector, found '='
(787,42): run-time error CSS1025: Expected comma or open brace, found '='
(806,30): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(807,33): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(831,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(832,3): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(964,28): run-time error CSS1039: Token not allowed after unary operator: '-card'
(966,28): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(984,32): run-time error CSS1039: Token not allowed after unary operator: '-card'
(991,28): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1000,22): run-time error CSS1039: Token not allowed after unary operator: '-card'
(1027,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1040,32): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1044,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1068,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1074,32): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1082,32): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1104,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1148,28): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1153,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1159,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1195,45): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1217,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1232,28): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1239,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1249,28): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1258,26): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1259,28): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1291,26): run-time error CSS1039: Token not allowed after unary operator: '-card'
(1293,32): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(1394,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(1395,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(1414,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(1415,10): run-time error CSS1035: Expected colon, found '{'
 */
:root {
    --accent: #8b1e3f;
    --muted: #cbd5e1;
    --bg: #0f1724;
    --card: #0b1220;
}

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

body {
    font-family: 'Nunito',system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial;
    color: #e6eef8;
}

a {
    color: var(--accent);
    text-decoration: none
}

/* Overlay per leggibilit� */
.overlay {
    background: rgba(7,20,40,0.8);
    min-height: 100vh;
}

/* Banner */
.banner {
    display: flex;
    background: linear-gradient(90deg,var(--accent),#d26a8a);
    color: white;
    justify-content: space-between; /* Spinge il gruppo logo a sinistra e l'hamburger a destra */
    align-items: center; /* Centra verticalmente tutti gli elementi nel banner */
    padding: 12px 20px;
    width: 100%;
    position: relative;
}

    .banner .logo {
        width: 40px;
        height: 40px;
        border-radius: 6px;
        background: rgba(255,255,255,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        color: white;
        margin-right: 12px;
    }

    .banner .title {
        font-weight: 800;
        font-size: 20px;
        letter-spacing: 0.05em;
    }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px
}

.btn, .ghost, .outline {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    min-width: 120px;
}

/* Contenitore pulsanti auth */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.read-more {
    color: #c49b3f;
    cursor: pointer;
    font-weight: 600;
}

/* Stile base pulsanti auth */
.btn-auth {
    padding: 6px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

    /* Stile specifico Accedi (Ghost style) */
    .btn-auth.login {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid white;
    }

        .btn-auth.login:hover {
            background: white;
            color: var(--accent);
        }

    /* Stile specifico Registrati (Solid style) */
    .btn-auth.register {
        background: white;
        color: var(--accent);
        border: 1px solid white;
    }

        .btn-auth.register:hover {
            background: transparent;
            color: white;
        }

    /* Stile specifico Registrati (Solid style) */
    .btn-auth.press-kit {
        background: cyan;
        color: var(--accent);
        border: 1px solid white;
    }

        .btn-auth.press-kit:hover {
            background: transparent;
            color: cyan;
        }

.btn-auth.home {
    background: white;
    color: var(--accent);
    border: 1px solid white;
}

        .btn-auth.home:hover {
            background: transparent;
            color: white;
        }

.btn-auth.vlog {
    background: white;
    color: var(--accent);
    border: 1px solid white;
}

        .btn-auth.vlog:hover {
            background: transparent;
            color: white;
        }

.btn-auth.live {
    background: white;
    color: var(--accent);
    border: 1px solid white;
}

        .btn-auth.live:hover {
            background: transparent;
            color: white;
        }

.netflix-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto; /* Permette lo swipe laterale su smartphone */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Rende lo scorrimento fluido su iPhone/Android */
    padding: 10px;
}

    /* Nasconde la barra di scorrimento brutta su PC ma mantiene la funzione */
    .netflix-gallery::-webkit-scrollbar {
        display: none;
    }

/* Dimensioni delle Card - Responsive */
.video-card {
    flex: 0 0 70%; /* Su mobile, la card occupa il 70% della larghezza */
    max-width: 250px;
    transition: transform 0.3s ease;
}

/* Tablet e Desktop */
@media (min-width: 768px) {
    .video-card {
        flex: 0 0 30%; /* Su tablet/PC ne vediamo di pi� contemporaneamente */
    }
}

.video-card:hover {
    transform: scale(1.1); /* Effetto zoom al passaggio del mouse */
    border: 2px solid #e50914; /* Rosso Netflix o il tuo colore Brand */
}

.video-card img {
    width: 100%;
    height: auto;
}

.btn {
    background: var(--accent);
    color: white;
    border: none;
}

    .btn:hover {
        background: #a22c52
    }

.ghost {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid var(--accent)
}

    .ghost:hover {
        background: var(--accent);
        color: white
    }

.outline {
    background: #0f1724;
    color: #facc15;
    border: 1px solid #facc15
}

    .outline:hover {
        background: #facc15;
        color: #0f1724
    }

.comment-section h3 {
    margin-bottom: 15px;
    color: var(--accent)
}

.postdays-section h3 {
    margin-bottom: 15px;
    color: var(--accent)
}

.comment-list {
    margin-top: 20px
}

.comment-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc
}

.progress-section {
    margin-top: 30px;
    padding: 60px 20px;
    background: rgba(0,0,0,0.5);
    color: #e6e6e6;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px
}

.comment-section,
.postdays-section,
.info-section,
.video-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px
}

.info-adsense {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    text-align: center;
}

    .info-adsense iframe {
        max-width: 100%;
    }

.mobileShow {
    display: none;
}

.mobileHide {
    display: inline;
}

/* Smartphone Portrait and Landscape */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
    .mobileShow {
        display: inline;
    }

    .mobileHide {
        display: none;
    }
}

.disqus-section {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5dc;
    border-radius: 12px
}

#featured-postdays {
    margin-bottom: 1.5em; /* circa un'interlinea */
}

/* Featured Book */
.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px
}

    .featured .cover {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 12px;
        background: linear-gradient(180deg,#2b0b14,#4b1b2b);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffeef3;
        font-weight: 800;
        padding: 40px
    }

    .featured .details h1 {
        font-size: clamp(26px,4vw,42px);
        line-height: 1.1;
        margin-bottom: 12px
    }

    .featured .details p {
        color: var(--muted);
        margin-bottom: 14px
    }

/* Horizontal Scroll */
.scroll-section {
    margin-top: 50px;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 12px
}

    .scroll-section h2 {
        margin-bottom: 14px
    }

.book-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 12px;
    scrollbar-width: thin
}

.book-item {
    flex: 0 0 auto;
    width: 200px;
    background: var(--card);
    padding: 12px;
    border-radius: 10px;
    text-align: center
}

    .book-item img {
        width: 100%;
        border-radius: 8px
    }

    .book-item .title {
        font-weight: 700;
        margin-top: 8px;
        font-size: 14px
    }

    .book-item .sub {
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 8px
    }

.book-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap
}

#adobe-dc-view {
    height: 500px;
    width: 960px;
    box-shadow: 1px 1px 10px 1px #dadada;
}

/* Footer */
footer {
    background: rgba(7,20,40,0.9);
    padding: 28px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    color: var(--muted);
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

    footer .contacts {
        line-height: 1.6
    }

        footer .contacts a {
            color: #60a5fa;
            text-decoration: none
        }

    footer .rights {
        text-align: right;
        line-height: 1.6
    }

    footer strong {
        color: white
    }

/* Modal */
.modal-overlay, .form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #0f1724;
    padding: 24px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.8);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

    .modal h3 {
        margin-bottom: 12px;
        color: var(--accent)
    }

    .modal p {
        color: #e6eef8;
        margin-bottom: 10px
    }

    .modal .close {
        position: absolute;
        top: 10px;
        right: 14px;
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
    }

@media(max-width:768px) {
    .banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

        .banner .title {
            font-size: 16px; /* Riduce il titolo su mobile per fare spazio */
        }

    .auth-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-auth {
        flex: 1; /* I pulsanti occupano spazio uguale su mobile */
        max-width: 150px;
    }

    .featured {
        grid-template-columns: 1fr;
    }

        .featured .cover {
            margin: 0 auto
        }

    #adobe-dc-view {
        max-width: 100%;
        overflow-x: auto;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center
    }

        footer .rights {
            text-align: center;
            margin-top: 12px
        }
}
}

.review-paragraph {
    text-align: justify;
    text-justify: inter-word;
    font-family: 'Georgia', serif; /* Elegante e leggibile */
    font-size: 1.05rem; /* Leggermente pi� grande del normale */
    line-height: 1.6; /* Spaziatura verticale equilibrata */
    margin-bottom: 1.2em; /* Spazio tra paragrafi */
    color: #333; /* Tonalit� sobria per il testo */
    max-width: 700px; /* Contenimento visivo */
    padding-left: 10px;
    padding-right: 10px;
}

/* Video responsive fix */
#romanzoVideo {
    display: block;
    width: 100%; /* si adatta alla larghezza del contenitore */
    height: auto; /* mantiene proporzioni senza tagli */
    max-width: 100%; /* evita overflow su desktop */
    border-radius: 12px;
    object-fit: contain; /* mantiene il video intero */
}

/* Per mantenere le proporzioni 16:9 su mobile */
.video-section .relative {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    height: 0; 
    overflow: hidden;
    border-radius: 12px;
}

    .video-section .relative video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .video-section h3 {
        margin-bottom: 15px;
        color: var(--accent)
    }

.video-list {
    margin-top: 20px
}

.video-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc
}

.buttonControl {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.social-links {
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

    .social-links a {
        color: #333;
        font-size: 1.8rem;
        transition: color 0.3s ease;
    }

        .social-links a:hover {
            color: #0077b5; /* blu LinkedIn come esempio */
        }

        .social-links a::after {
            content: attr(title);
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            background: #000;
            color: #fff;
            font-size: 0.8rem;
            padding: 5px 8px;
            border-radius: 4px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
        }

        .social-links a:hover::after {
            opacity: 1;
        }

/* === TAB SECTION RESPONSIVE FIX === */

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tablink, .tablinksong, .tablinksinossi, .tablinkEpisodi {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 700;
    flex: 1 1 180px; /* ogni pulsante si adatta alla larghezza disponibile */
    text-align: center;
}

    .tablink.active,
    .tablink:hover,
    .tablinksong.active,
    .tablinksong.hover,
    .tablinksinossi.active,
    .tablinksinossi.hover,
    .tablinkEpisodi.active,
    .tablinkEpisodi.hover {
        background: var(--accent);
        color: white;
    }

.tabcontent, .tabcontentsong, .tabcontentsinossi, .tabcontentEpisodi {
    display: none;
    animation: fadeIn 0.5s;
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 12px;
}

.tab-desc {
    color: var(--muted);
    font-style: italic;
    margin-top: 10px;
    text-align: justify;
    font-size: 0.95rem;
}

/* video responsive */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* proporzione 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Animazione fade */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        gap: 6px;
    }

    .tablink, .tablinksong, .tablinksinossi, .tablinkEpisodi {
        flex: 1 1 auto;
        width: 100%;
        font-size: 0.9rem;
        padding: 12px;
    }

    .tabcontent, .tabcontentsong, .tabcontentsinossi, .tabcontentEpisodi {
        padding: 14px;
    }

    .tab-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

.video-selectors {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .video-selectors label {
        position: relative;
        display: flex;
        align-items: center;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 8px 14px;
        transition: all 0.25s ease;
    }

    .video-selectors input[type="radio"] {
        display: none;
    }

    .video-selectors span {
        color: var(--accent);
        font-weight: 500;
        font-size: 0.95rem;
    }

    .video-selectors input[type="radio"]:checked + span {
        color: #fff;
        font-weight: 600;
    }

    .video-selectors label:has(input[type="radio"]:checked) {
        background: var(--accent);
        box-shadow: 0 0 10px var(--accent);
    }

.video-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* nuovo modo moderno per gestire gli spazi */
}

    .video-options label {
        margin: 6px 10px; /* 6px sopra/sotto, 10px a sinistra/destra */
    }
	
/* --- Stile barra ticker --- */
.info-breakingnews {
  background-color: #111;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  overflow: hidden;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.ticker-container {
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.ticker-content {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding-left: 100%;
  animation: tickerScroll 70s linear infinite;
}

/* Effetto scorrimento */
@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .ticker-content {
    font-size: 0.9rem;
  }
}

#video-popup-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.internal_video_banner {
    position: relative;
    width: 100%;
    padding-top: 75%;
    height: 0;
}

.external_video_banner {
    max-width: 90vw;
    width: 700px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#popupVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#popup-promo-text {
    color: white;
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Stili per l'elenco delle canzoni (Album Musicale) */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.song-item {
    display: flex;
    flex-direction: column; /* Colonna per impostazione predefinita (mobile) */
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .song-item:last-child {
        border-bottom: none;
    }

.song-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #e6eef8; /* Testo chiaro */
    font-size: 16px;
}

.audio-player {
    width: 100%; /* Larghezza intera per mobile */
    max-width: 400px; /* Limita la larghezza su desktop */
    height: 30px;
}

/* Media query per allineamento orizzontale su schermi pi� grandi */
@media (min-width: 600px) {
    .song-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .song-title {
        margin-bottom: 0;
        flex-shrink: 0; /* Impedisce al titolo di restringersi */
        margin-right: 20px;
    }
}

.video-option-item {
    display: inline-block;
    margin: 0 10px;
}

.radio-comment {
    margin-top: 5px;
    font-style: italic;
    font-size: 0.9em;
    color: #aaa;
}

/* Stile per la casella a discesa personalizzata */
.custom-select {
    /* Dimensione e padding */
    width: 100%;
    max-width: 400px; /* Limita la larghezza massima per non essere troppo grande */
    padding: 10px 15px;
    font-size: 1rem;
    line-height: 1.5;

    /* Colori in tema scuro */
    background-color: var(--card); /* Usa il colore della card (sfondo scuro) */
    color: #e6eef8; /* Testo chiaro */
    border: 1px solid var(--muted); /* Bordo sottile */

    /* Estetica */
    border-radius: 8px;
    appearance: none; /* Rimuove lo stile predefinito del browser per personalizzare */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;

    /* Freccia personalizzata (per appearance: none) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e6eef8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

    /* Stile per le opzioni all'interno della select */
    .custom-select option {
        background-color: var(--card);
        color: #e6eef8;
        padding: 10px;
    }

    /* Stile al focus per accessibilit� */
    .custom-select:focus {
        border-color: var(--accent);
        outline: none;
        box-shadow: 0 0 0 3px rgba(139, 30, 63, 0.5); /* Effetto luminoso con colore accent */
    }

/* Container della form */
.registration-container {
    margin-top: 30px;
    padding: 25px;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
}

    .registration-container h3 {
        color: white;
        margin-bottom: 5px;
    }

/* Griglia e spaziatura */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 5px;
}

    .input-group label {
        font-size: 0.9rem;
        color: var(--muted);
    }

    .input-group input {
        padding: 10px;
        border-radius: 4px;
        border: 1px solid rgba(255,255,255,0.1);
        background: rgba(255,255,255,0.05);
        color: white;
        outline: none;
    }

        .input-group input:focus {
            border-color: var(--accent);
        }

.btn-submit-auth {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 10px;
}

    .btn-submit-auth:hover {
        background: #d26a8a; /* Un tono pi� chiaro preso dal tuo banner gradient */
    }

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

    .form-group label {
        font-size: 0.85em;
        margin-bottom: 5px;
        color: var(--muted);
    }

    .form-group input {
        padding: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--muted);
        border-radius: 8px;
        color: white;
        font-family: inherit;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--accent);
            background: rgba(255, 255, 255, 0.1);
        }

/* Riga doppia per Password */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    margin: 10px 0;
}

/* Pulsante Invio */
.btn-submit {
    background: var(--accent);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn-submit:hover {
        background: #d26a8a;
        transform: translateY(-2px);
    }

/* Mobile responsive */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Stili Sondaggio */
.poll-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.poll-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-poll, .ghost-poll {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid var(--accent);
    min-width: 180px;
}

.btn-poll {
    background: var(--accent);
    color: white;
}

.ghost-poll {
    background: transparent;
    color: var(--accent);
}

    .btn-poll:hover, .ghost-poll:hover {
        transform: translateY(-2px);
        opacity: 0.9;
    }

/* Grafici Orizzontali */
.result-item {
    text-align: left;
}

.result-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    transition: width 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.ce-fill {
    background: linear-gradient(90deg, var(--accent), #d26a8a);
}

.self-fill {
    background: #475569;
}

/* Stile per il sistema di valutazione a stelle */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 1.5rem;
}

    .star-rating input {
        display: none;
    }

    .star-rating label {
        cursor: pointer;
        color: var(--muted);
        transition: 0.2s;
    }

        .star-rating input:checked ~ label,
        .star-rating label:hover,
        .star-rating label:hover ~ label {
            color: #facc15; /* Giallo come il colore --outline nel tuo css */
        }

.comment-box {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--muted);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--muted);
}

.comment-rating {
    color: gold;
    margin: 5px 0;
}

.page-btn {
    background: transparent;
    border: 1px solid var(--muted);
    color: white;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 5px;
    cursor: pointer;
}

    .page-btn.active {
        background: var(--accent);
        border-color: var(--accent);
    }

/* Stili per il contenitore e l'hamburger */
/* Contenitore del menu */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* L'icona hamburger */
.hamburger {
    display: none; /* Nascosta su desktop */
    font-size: 24px;
    cursor: pointer;
    color: white;
    line-height: 1; /* Rimuove spazi extra sopra/sotto l'icona */
}

@media (max-width: 768px) {
    .hamburger {
        display: block; /* Visibile solo su mobile */
    }

    /* Il menu a comparsa deve essere assoluto rispetto al banner */
    .auth-buttons {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Appare esattamente sotto la fine del banner */
        right: 0;
        background: var(--card);
        padding: 15px;
        border: 1px solid var(--accent);
        z-index: 1001;
        width: 200px;
    }

        .auth-buttons.active {
            display: flex;
        }
}

.share-whatsapp-container {
    margin-top: 25px;
    text-align: center;
}

.share-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #111;
    border: 1px solid #25D366;
    border-radius: 40px;
    color: #25D366;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .share-whatsapp-link:hover {
        background: #25D366;
        color: #111;
    }

.whatsapp-icon {
    width: 22px;
    height: 22px;
}

.progress-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #f2e9d8;
    letter-spacing: 1px;
}

.progress-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #c7c7c7;
}

.progress-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.progress-item {
    width: 260px;
    text-align: center;
}

/* --- CERCHIO CON ANIMAZIONE --- */

.progress-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(#d4b46a 0deg, #333 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    transition: background 1.5s ease-out;
}

    .progress-circle::before {
        content: "";
        width: 120px;
        height: 120px;
        background: #0d0d0d;
        border-radius: 50%;
        position: absolute;
    }

.progress-value {
    position: relative;
    font-size: 1.6rem;
    font-weight: bold;
    color: #f2e9d8;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 1s;
}

/* --- ANIMAZIONE GLOW --- */

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 8px rgba(212,180,106,0.3);
    }

    50% {
        box-shadow: 0 0 18px rgba(212,180,106,0.6);
    }

    100% {
        box-shadow: 0 0 8px rgba(212,180,106,0.3);
    }
}

.progress-circle {
    animation: glowPulse 3s infinite ease-in-out;
}

/* --- ANIMAZIONE DEL TESTO --- */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.progress-item h3 {
    margin-top: 10px;
    font-size: 1.3rem;
    color: #f2e9d8;
}

.progress-lore {
    font-size: 0.95rem;
    color: #c7c7c7;
    margin-top: 10px;
    line-height: 1.4rem;
}
