/* 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 '-'
(22,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(35,44): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(106,25): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(112,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(124,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(135,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(146,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(156,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(168,28): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(172,26): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(189,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(194,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(263,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(290,22): run-time error CSS1039: Token not allowed after unary operator: '-card'
(308,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(334,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(386,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(449,1): run-time error CSS1019: Unexpected token, found '}'
(494,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(565,28): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(581,26): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(594,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(622,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(623,10): run-time error CSS1035: Expected colon, found '{'
(680,21): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(690,37): run-time error CSS1030: Expected identifier, found '['
(690,42): run-time error CSS1031: Expected selector, found '='
(690,42): run-time error CSS1025: Expected comma or open brace, found '='
(709,30): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(710,33): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(734,1): run-time error CSS1019: Unexpected token, found '@keyframes'
(735,3): run-time error CSS1062: Expected semicolon or closing curly-brace, found '0%'
(867,28): run-time error CSS1039: Token not allowed after unary operator: '-card'
(869,28): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(887,32): run-time error CSS1039: Token not allowed after unary operator: '-card'
(894,28): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(903,22): run-time error CSS1039: Token not allowed after unary operator: '-card'
(930,21): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(936,32): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(944,32): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(966,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
 */
: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;
    background: url("../../../images/Background.png") no-repeat center center fixed;
    background-size: cover;
}

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

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

/* Banner */
.banner {
    width: 100%;
    background: linear-gradient(90deg,var(--accent),#d26a8a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

    .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;
}

/* 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.live {
        background: white;
        color: var(--accent);
        border: 1px solid white;
    }

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

.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
}

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

.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 {
    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 {
        background: var(--accent);
        color: white;
    }

.tabcontent, .tabcontentsong, .tabcontentsinossi {
    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 {
        flex: 1 1 auto;
        width: 100%;
        font-size: 0.9rem;
        padding: 12px;
    }

    .tabcontent, .tabcontentsong, .tabcontentsinossi {
        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 20s 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;
}

.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;
    }
}
