/* CSS per le pagine About, Privacy, Terms, Help, Contact */

/* ===== ABOUT PAGE ===== */
.about-content {
    line-height: 1.6;
    color: #1c1e21;
}

.about-content h2 {
    color: #1877f2;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-content h3 {
    color: #1c1e21;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1877f2;
}

.feature-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1877f2;
}

.values-list, .tech-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.values-list li, .tech-list li {
    margin-bottom: 0.5rem;
}

.cta-section {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.cta-section h3 {
    color: white;
    margin-top: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 150px;
}

/* ===== PRIVACY PAGE ===== */
.privacy-content {
    line-height: 1.6;
    color: #1c1e21;
}

.privacy-content h2 {
    color: #1877f2;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-content h3 {
    color: #1c1e21;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.privacy-content ul {
    padding-left: 1.5rem;
}

.privacy-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #1877f2;
}

.security-highlight-box {
    border: 2px solid #1877f2;
    border-radius: 10px;
    padding: 1.25rem;
    background: #f0f5ff;
    margin: 1.25rem 0;
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.15);
}

.security-highlight-box p {
    margin: 0;
    color: #0c1b33;
    font-weight: 500;
}

.privacy-section h3 {
    margin-top: 0;
    color: #1877f2;
}

.privacy-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-list li {
    margin-bottom: 0.5rem;
}

.contact-info-section {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.contact-info-section h3 {
    color: white;
    margin-top: 0;
}

.contact-info-section .btn {
    background: white;
    color: #1877f2;
    margin-top: 1rem;
}

.contact-info-section .btn:hover {
    background: #f8f9fa;
}

/* ===== TERMS PAGE ===== */
.terms-content {
    line-height: 1.6;
    color: #1c1e21;
}

/* Titolo principale Terms */
.terms-content h1,
.card-header h1 {
    color: #1877f2 !important;
}

.terms-content h2,
.card-header h2 {
    color: #1877f2;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-content h3 {
    color: #1c1e21;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.terms-content ul {
    padding-left: 1.5rem;
}

.terms-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #1877f2;
}

.terms-section h3 {
    margin-top: 0;
    color: #1877f2;
}

.terms-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-list li {
    margin-bottom: 0.5rem;
}

.important-notice {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.important-notice h3 {
    color: white;
    margin-top: 0;
}

.important-notice .btn {
    background: white;
    color: #ff6b6b;
    margin-top: 1rem;
}

.important-notice .btn:hover {
    background: #f8f9fa;
}

/* ===== HELP PAGE ===== */
.help-content {
    line-height: 1.6;
    color: #1c1e21;
}

/* Search section solo per la pagina di ricerca, non per l'header */
.search-page .search-section,
.help-page .search-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Reset per search-section nell'header */
.header .search-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
    text-align: left;
}

.search-section h2 {
    color: #1877f2;
    margin-top: 0;
    margin-bottom: 1rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e4e6ea;
    border-radius: 8px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #1877f2;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.search-btn:hover {
    background: #166fe5;
}

.faq-section {
    margin-top: 2rem;
}

.faq-section h2 {
    color: #1877f2;
    margin-bottom: 1.5rem;
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category h3 {
    color: #1c1e21;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1c1e21;
}

.faq-question:hover {
    background: #e4e6ea;
}

.faq-icon {
    font-size: 1.2rem;
    color: #1877f2;
    font-weight: bold;
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 1rem;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

.faq-answer ol, .faq-answer ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.3rem;
}

.tutorial-section {
    margin-top: 2rem;
}

.tutorial-section h2 {
    color: #1877f2;
    margin-bottom: 1.5rem;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tutorial-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1877f2;
}

.tutorial-item h3 {
    margin-top: 0;
    color: #1877f2;
}

.contact-section {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.contact-section h3 {
    color: white;
    margin-top: 0;
}

.contact-section .btn {
    background: white;
    color: #1877f2;
    margin-top: 1rem;
}

.contact-section .btn:hover {
    background: #f8f9fa;
}

/* ===== CONTACT PAGE ===== */
.contact-content {
    line-height: 1.6;
    color: #1c1e21;
}

.contact-content h2 {
    color: #1877f2;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.contact-form h3 {
    color: #1877f2;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1c1e21;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e4e6ea;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #1877f2;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    padding: 2rem;
    border-radius: 12px;
}

.contact-info h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
}

/* ===== REVIEWS PAGE ===== */
/* Stili specifici per la pagina recensioni */
.review-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.review-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.review-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.review-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.review-stats-item {
    text-align: center;
}

.review-stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1877f2;
    margin-bottom: 0.5rem;
}

.review-stats-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.review-stars {
    font-size: 1.2rem;
    color: #ffc107;
}

.review-form-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.review-form-section h2 {
    margin-top: 0;
    color: #1877f2;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 0.5rem;
    padding: 0;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

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

.rating-input .star-label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input .star-label:hover,
.rating-input .star-label:hover ~ .star-label {
    color: #ffc107;
}

.rating-input input[type="radio"]:checked ~ .star-label {
    color: #ffc107;
}

.reviews-section {
    margin-top: 3rem;
}

.reviews-section h2 {
    margin-bottom: 1.5rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: #ffffff;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-author strong {
    color: #1c1e21;
    font-size: 1.1rem;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-rating {
    font-size: 1.2rem;
    color: #ffc107;
}

.review-rating .star {
    color: #ddd;
}

.review-rating .star.filled {
    color: #ffc107;
}

.review-comment {
    color: #1c1e21;
    line-height: 1.6;
    white-space: pre-wrap;
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== RESPONSIVE - MOBILE VIEW ===== */
@media (max-width: 768px) {
    /* Statistiche recensioni - colonna singola */
    .review-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .review-stats-item {
        padding: 1rem;
        background: white;
        border-radius: 8px;
        border: 1px solid #e4e6ea;
    }
    
    .review-stats-number {
        font-size: 2rem;
    }
    
    /* Header recensione - stack verticale */
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .review-author {
        width: 100%;
    }
    
    .review-rating {
        align-self: flex-start;
    }
    
    /* Form recensioni - ottimizzato per mobile */
    .review-form-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .review-form-section h2 {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-input,
    .form-textarea {
        font-size: 16px; /* Previene zoom su iOS */
        padding: 0.875rem;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    /* Rating input - stelle più piccole */
    .rating-input {
        gap: 0.25rem;
    }
    
    .rating-input .star-label {
        font-size: 1.5rem;
    }
    
    /* Lista recensioni */
    .reviews-list {
        gap: 1rem;
    }
    
    .review-item {
        padding: 1rem;
    }
    
    .review-comment {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Card title - ridotto su mobile */
    .card-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    /* About content - migliorato per mobile */
    .about-content h2 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .about-content h3 {
        font-size: 1.1rem;
    }
    
    /* Contact grid - colonna singola */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* CTA buttons - stack verticale */
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ===== RESPONSIVE - TABLET VIEW ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .review-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-form-section {
        padding: 1.75rem;
    }
}

/* ===== RESPONSIVE - SMALL MOBILE ===== */
@media (max-width: 480px) {
    .review-stats-number {
        font-size: 1.75rem;
    }
    
    .review-form-section {
        padding: 1rem;
    }
    
    .rating-input .star-label {
        font-size: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

