/* ============================================================
   STILE STRAORDINARIO - Giosal Edilizia
   ============================================================ */
.page-recensioni {
    background-color: #1e4d8e;
    color: #ffffff;
    text-align: center;
}

h1, h2, h3, p, span, label, strong {
    color: #ffffff !important;
}

/* ============================================================
   FORM (CENTRATO E COMPATTO)
   ============================================================ */
.recensioni-form-wrapper {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 20px;
}

.recensioni-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.input-group {
    width: 100%;
}

/* Input con testo a SINISTRA */
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 18px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #333333;
    text-align: left;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #f1c40f;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
}

.input-group textarea {
    min-height: 100px;
    resize: none;
}

/* FOTO UPLOAD */
.foto-upload img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
    margin-bottom: 10px;
}

/* VALUTAZIONE STELLE (GIALLO ORO) */
.rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 2.3rem;
    margin-bottom: 10px;
    cursor: pointer;
}

.rating span {
    color: rgba(255, 255, 255, 0.2);
}

.rating span.active,
.rating span:hover,
.rating span:hover ~ span {
    color: #f1c40f !important;
}

/* BOTTONE */
button[type="submit"] {
    width: 100%;
    background: #1f2f44;
    color: white;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

button[type="submit"]:hover {
    border-color: #f1c40f;
    color: #f1c40f;
}

/* ============================================================
   GRIGLIA RECENSIONI (4 PER RIGA)
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-top: 50px;
    padding: 0 20px;
}

/* ============================================================
   CARD RECENSIONE (BLU NOTTE)  <-- AGGIUNTA
   ============================================================ */
.review-card {
    background: #1f2f44;                /* BLU NOTTE */
    border-radius: 12px;
    padding: 25px 20px;

    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.45);
}

/* Stelle recensioni */
.review-card .stars {
    color: #f1c40f !important;
    margin-bottom: 10px;
}

/* Testo recensione */
.review-card p {
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ============================================================
   AVATAR RECENSIONI (CARD)
   ============================================================ */

.review-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.review-head img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;

    border: 2px solid rgba(255,255,255,0.25);
    background: #ffffff;
}


/* RESPONSIVE */
@media (max-width: 992px) {
    .reviews-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .reviews-grid { 
        grid-template-columns: 1fr; 
    }
}

/* ============================================================
   LOGO PAGINA RECENSIONI
   ============================================================ */
.page-recensioni .site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
}

.page-recensioni .site-logo img {
    max-width: 220px;   /* desktop equilibrato */
    width: 100%;
    height: auto;
}

/* ============================
   MOBILE
   ============================ */
@media (max-width: 768px) {
    .page-recensioni .site-logo {
        padding: 18px 0;
    }

    .page-recensioni .site-logo img {
        max-width: 160px;  /* 🔥 perfetto su mobile */
    }
}

@media (max-width: 480px) {
    .page-recensioni .site-logo img {
        max-width: 140px;  /* ultra-small */
    }
}

/* ===========================
   LINK PRIVACY – RECENSIONI
   =========================== */
.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;
    }
