/* FONT ORBITRON */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap');

/* ================================
   CONTENITORE COMMENTI (BIANCO PREMIUM)
   ================================ */
   
   
#commenti-container {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(6px);
    color: #222;
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 30px rgba(0,0,0,0.12);

    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}   /*  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  QUESTA MANCAVA */

	 

/* TITOLI */
#commenti-container h2,
#commenti-container h3 {
    color: #111;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ================================
   LISTA COMMENTI
   ================================ */
.commento {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* META (nome + data) */
.commento .meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* TESTO COMMENTO */
.commento p {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
}

/* ================================
   STELLE + NUMERO ORBITRON
   ================================ */
.stelle {
    font-size: 22px;
    color: #f5c518;
}

.voto-numero {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: #ff4444;
    margin-left: 6px;
}

/* ================================
   FORM COMMENTO
   ================================ */
#form-commento,
#form-risposta {
    background: #fafafa;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

/* LABEL */
#commenti-container label {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

/* INPUT, SELECT, TEXTAREA */
#commenti-container input[type="text"],
#commenti-container input[type="date"],
#commenti-container select,
#commenti-container textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fff;
    color: #222;
    margin-bottom: 18px;
    font-size: 15px;
    transition: 0.2s;
}

/* FOCUS */
#commenti-container input:focus,
#commenti-container textarea:focus {
    border-color: #ff4444;
    box-shadow: 0 0 6px rgba(255,68,68,0.3);
}

/* ================================
   BOTTONE INVIA
   ================================ */
#btn-invia-commento,
#btn-invia-risposta {
    background: #ff4444;
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    transition: 0.2s;
}

#btn-invia-commento:hover,
#btn-invia-risposta:hover {
    background: #cc0000;
}

/* ================================
   RISPOSTE (panna + linea SUPER VODAFONE)
   ================================ */
.risposta {
    background: #fff7e6;
    border: 1px solid #e6d8c2;
    padding: 14px 18px;
    border-radius: 12px;
    margin: 12px 0 12px 35px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 14px;
    position: relative;
}

.risposta::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 10px;
    bottom: 10px;
    width: 7px;
    background: linear-gradient(180deg,#e60000 0%,#ff4d4d 25%,#ff7a00 55%,#ff0099 100%);
    border-radius: 50px;
    box-shadow: 0 0 8px rgba(255, 0, 80, 0.45);
}

.risposta strong {
    font-size: 14px;
    color: #5a4633;
    font-weight: 600;
}

.risposta small {
    font-size: 12px;
    color: #8a7a66;
}

.risposta p {
    font-size: 14px;
    line-height: 1.5;
    color: #4d3f33;
    margin-top: 6px;
}

/* ================================
   PALLINI
   ================================ */
.theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: 0.2s;
}

.theme-dot:hover {
    transform: scale(1.25);
}

.theme-dot[data-theme="ghiaccio"] { background: #f0f4ff; }
.theme-dot[data-theme="blu"] { background: #0057B8; }
.theme-dot[data-theme="panna"]    { background: #fff7e6; }
.theme-dot[data-theme="oro"]      { background: #d4af37; }
.theme-dot[data-theme="viola"] {
    background: linear-gradient(135deg, #2a2633, #3d2f4f);
    border: 1px solid #6a3fb8;
}
/* ================================
   TEMI DEL BOX COMMENTI
   ================================ */
#commenti-container.theme-ghiaccio {
    background: #f0f4ff !important;
    color: #111 !important;
}

#commenti-container.theme-nero {
    background: #111 !important;
    color: #fff !important;
}

#commenti-container.theme-panna {
    background: #fff7e6 !important;
    color: #3a2f22 !important;
}

#commenti-container.theme-oro {
    background: #fff8d6 !important;
    border-color: #d4af37 !important;
    color: #3a2f22 !important;
}

#commenti-container.theme-viola {
    background: linear-gradient(180deg, #1a1821 0%, #242033 100%) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255,0,76,0.15) !important;
    box-shadow: 0 0 12px rgba(255,0,76,0.10) !important;
}
#commenti-container.theme-viola {
    background: #1b1824 !important; /* colore scuro compatto */
}
/* ================================
   TRASPARENZA GLOBALE SU TUTTI GLI ELEMENTI
   ================================ */

/* Box principale */
#commenti-container {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(6px);
}

/* Form */
#form-commento,
#form-risposta {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(4px);
}

/* Input, select, textarea */
#commenti-container input[type="text"],
#commenti-container input[type="date"],
#commenti-container select,
#commenti-container textarea {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(3px);
}

/* Commenti */
.commento {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(4px);
}

/* Risposte */
.risposta {
    background: rgba(255, 247, 230, 0.55) !important;
    backdrop-filter: blur(4px);
}
/* ALLARGA TUTTI I CAMPI COME QUELLO DI DATA */
#form-commento,
#form-risposta {
    width: 100% !important;
    box-sizing: border-box;
}

#form-commento label,
#form-risposta label {
    display: block;
    width: 100%;
}

#commenti-container input[type="text"],
#commenti-container input[type="date"],
#commenti-container textarea {
    width: 100% !important;
    box-sizing: border-box;
}
#commenti-theme-selector {
    width: 100%;
    text-align: center;
    margin-top: 25px;
}

/* TITOLO SEMPRE SOPRA */
#commenti-theme-selector .titolo-tema {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* PALLINI SEMPRE SOTTO */
#commenti-theme-selector .pallini-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
}

/* EVITA CHE I PALLINI SI ALLINEINO AL TITOLO */
.theme-dot {
    display: inline-block;
}
/* ============================================
   FORZA IL TEMA VIOLA (DEVE STARE IN FONDO)
   ============================================ */

#commenti-container.theme-viola {
    background: #1b1824 !important;
    color: #e0e0e0 !important;
}

#commenti-container.theme-viola .commento {
    background: #241f2f !important;
    color: #ddd !important;
}

#commenti-container.theme-viola .risposta {
    background: #2d233c !important;
    color: #ddd !important;
}

#commenti-container.theme-viola #form-commento,
#commenti-container.theme-viola #form-risposta {
    background: #1f1a28 !important;
    color: #eee !important;
}

#commenti-container.theme-viola input,
#commenti-container.theme-viola textarea,
#commenti-container.theme-viola select {
    background: #18141f !important;
    color: #eee !important;
    border: 1px solid rgba(255,0,76,0.20) !important;
}

/* ============================================
   RIFINITURE COMPLETE TEMA VIOLA
   ============================================ */

/* Titoli */
#commenti-container.theme-viola h2,
#commenti-container.theme-viola h3 {
    color: #ffffff !important;
}

/* Testo interno (commenti, risposte, messaggi) */
#commenti-container.theme-viola,
#commenti-container.theme-viola p,
#commenti-container.theme-viola small,
#commenti-container.theme-viola strong {
    color: #e6e6e6 !important;
}

/* Label (Nome, Voto, Data, Commento) */
#commenti-container.theme-viola label {
    color: #ffffff !important;
}

/* Bordi scuri su tutti i box */
#commenti-container.theme-viola,
#commenti-container.theme-viola .commento,
#commenti-container.theme-viola .risposta,
#commenti-container.theme-viola #form-commento,
#commenti-container.theme-viola #form-risposta,
#commenti-container.theme-viola input,
#commenti-container.theme-viola textarea,
#commenti-container.theme-viola select {
    border-color: #3a3a3a !important; /* grigio scuro */
}

/* Input e textarea scuri + testo bianco */
#commenti-container.theme-viola input,
#commenti-container.theme-viola textarea,
#commenti-container.theme-viola select {
    background: #18141f !important;
    color: #ffffff !important;
}

/* Placeholder chiaro */
#commenti-container.theme-viola input::placeholder,
#commenti-container.theme-viola textarea::placeholder {
    color: #bbbbbb !important;
}

/* Box commento */
#commenti-container.theme-viola .commento {
    background: #241f2f !important;
}

/* Box risposta */
#commenti-container.theme-viola .risposta {
    background: #2d233c !important;
}
/* ============================================
   LINEA ORIZZONTALE ROSSA — STILE RISPOSTA
   ============================================ */

#commenti-container.theme-viola hr {
    border: 0;
    height: 6px; /* spessore identico alla verticale */
    background: linear-gradient(
        90deg,
        #e60000 0%,
        #ff4d4d 25%,
        #ff7a00 55%,
        #ff0099 100%
    ) !important;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(255, 0, 80, 0.45);
    opacity: 1 !important;
}
.tema-avviso {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #888;
    background: rgba(255,255,255,0.15);
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    width: fit-content;
}
.tema-avviso {
    display: block;
    text-align: center;
    margin: 10px auto;
    width: 100%;
}

