/* ============================================================
   RESET E STILE PAGINA (Sfondo Blu, Testo Bianco, Centrato)
   ============================================================ */
.page-recensioni {
    background-color: #1e4d8e; /* Blu Giosal */
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    text-align: center; /* Mantiene i titoli e i contenitori al centro */
}

/* Testi universali bianchi */
h1, h2, h3, p, span, label, strong {
    color: #ffffff !important;
}

/* ============================================================
   SEZIONE FORM (Centrata, Stretta e Professionale)
   ============================================================ */
.recensioni-container {
    max-width: 420px; /* Larghezza controllata: non troppo lunga */
    margin: 60px auto; /* Centra il form nella pagina */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.recensioni-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.recensioni-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Contenitore Form */
.recensioni-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Input Box (Testo a SINISTRA) */
.input-group {
    width: 100%;
    text-align: left; /* Allinea le eventuali label a sinistra */
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 18px; /* Padding interno generoso */
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #333333; /* Testo scuro per leggibilità su fondo bianco */
    text-align: left; /* TESTO PARTE DA SINISTRA */
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Effetto Focus Professionale */
.input-group input:focus,
.input-group textarea:focus {
    border-color: #f1c40f; /* Giallo stelle */
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.2);
}

.input-group textarea {
    min-height: 90px;
    resize: none;
}

/* Foto Profilo (Sempre centrata sopra il form) */
.foto-upload {
    margin-bottom: 10px;
}

.foto-upload img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
}

/* ============================================================
   STELLE VALUTAZIONE (Giallo Oro)
   ============================================================ */
.rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 2.3rem;
    margin: 5px 0;
    cursor: pointer;
}

.rating span {
    color: rgba(255, 255, 255, 0.2);
    transition: 0.2s;
}

.rating span.active,
.rating span:hover,
.rating span:hover ~ span {
    color: #f1c40f !important;
}

/* Bottone Invio */
button[type="submit"] {
    width: 100%;
    background: #1f2f44;
    color: #ffffff;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #2b4260;
    border-color: #f1c40f;
}

/* ============================================================
   GRIGLIA RECENSIONI (4 per riga, Stile Libero)
   ============================================================ */
.reviews-grid-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.recensioni-titolo-centrato {
    font-size: 1.8rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 30px;
}

.review-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.review-card strong {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.review-card .stars {
    color: #f1c40f !important;
    margin-bottom: 12px;
}

.review-card p {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.85;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr; }
    .recensioni-container { width: 100%; }
}

/* ===========================
   LINK PRIVACY – CONTATTACI
   =========================== */
.privacy-consent a {
    color: #ffffff; /* bianco */
    text-decoration: underline; /* elegante e chiaro che è un link */
    font-weight: 600;
}

    .privacy-consent a:hover {
        color: #f1c40f; /* oro Giosal al hover */
        text-decoration: none;
    }
