/* ==========================================================================
   PAGINE FAQ – Village of Legends
   Caricato da functions.php sui template:
   - bootstrap.php            → pagina /faq/ (contenuto nell'editor: .panel / .faq)
   - faq.php                  → template FAQ con le domande nel PHP (.faq-item)
   - base-game-card-list.php  → elenco carte (.faq-item)

   Sostituisce il vecchio /css/faq.css nella root del sito. Rispetto a quello
   NON ridefinisce più titoli h1–h6 e .btn per tutta la pagina: lo fanno già
   il tema Hueman e style.css.

   INDICE
   1. Variabili
   2. Pagina /faq/ (editor): pannelli domanda/risposta
   3. Pagina /faq/ (editor): box newsletter
   4. Commenti in stile recensione
   5. Template faq.php e card list (.faq-item)
   6. Mobile
   ========================================================================== */


/* 1. VARIABILI */
:root {
	--faq-border: rgba(153, 153, 153, .5);
	--faq-muted: #666666;
	--faq-accent: #ec7450;
	--faq-radius: 4px;
	--faq-gap: 20px;
}

/* Colonne laterali bianche (come prima) */
.container-inner > .main::before,
.container-inner > .main::after {background-color: #ffffff;}


/* 2. PAGINA /FAQ/ (EDITOR): PANNELLI
   Markup: <div class="panel panel-default"><div class="panel-body faq">
             <img> <h3>domanda</h3> <h4>risposta</h4> </div></div> */
.panel {
	margin-bottom: var(--faq-gap);
	border: 1px solid var(--faq-border);
	border-radius: var(--faq-radius);
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.panel-body {padding: 15px;}

.faq {
	display: flow-root; /* contiene l'immagine flottante */
	min-height: 100px;
}
.entry .faq h3 {margin: 0 0 10px; font-size: 22px; line-height: 30px;}
.entry .faq h4 {margin: 0 0 10px; font-size: 17px; line-height: 25px; color: var(--faq-muted);}
.entry .faq small {display: block; margin: 10px 0; color: var(--faq-muted);}

/* Icona a sinistra della domanda */
.faq img {
	float: left;
	width: 100px;
	height: 100px;
	margin: 0 15px 10px 0;
}
.faq300 img {width: 150px;}                      /* immagine larga */
.faqKS img {float: none; width: 42px; height: 15px; margin: 0;} /* icona Kickstarter in linea */


/* 3. PAGINA /FAQ/ (EDITOR): BOX NEWSLETTER (Mailchimp) */
.content-buy {
	margin-bottom: var(--faq-gap);
	padding: 20px;
	text-align: center;
	color: #555555;
	background-color: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 5px;
}
.content-buy input {max-width: 100%; margin-top: 0; font-size: 13px;}
.content-buy .btn-success {color: #ffffff; background-color: #25cb68; border-color: #4cae4c;}


/* 4. COMMENTI (parts/comments-reviews.php)
   Usano lo stile dei commenti di Hueman (quelli degli articoli del blog): avatar a sinistra
   (li con padding-left 60px + avatar assoluto a -60px, già definiti in main.css del tema),
   nome in grassetto, data grigia con l'orologio, risposte rientrate con avatar più piccolo.
   Qui adattiamo solo il markup "recensione" di WooCommerce (.comment_container / .comment-text)
   a quello di Hueman (.comment-body). */
#comments #commentform {background-color: #ffffff;}

#comments .commentlist,
#comments .commentlist .children {margin: 0; padding: 0; list-style: none;}
#comments .commentlist li {list-style: none;}

/* .comment_container = .comment-body di Hueman */
#comments .comment_container {
	position: relative; /* riferimento per l'avatar assoluto */
	clear: both;
	padding-bottom: 15px;
	margin-bottom: 15px;
	border-bottom: 1px solid #eeeeee;
}
#comments .comment-text {margin: 0; padding: 0; background: none; border: 0; overflow-wrap: anywhere;}

/* Nome e data (= .fn e .comment-meta di Hueman) */
#comments .comment-text .meta {margin: 0 0 4px; line-height: 1.5;}
#comments .comment-text .meta strong {color: #444; font-size: 0.8125rem; font-weight: 600;}
#comments .woocommerce-review__dash {display: none;}
#comments .woocommerce-review__published-date {margin-left: 6px; color: #aaa; font-size: 0.75rem;}
#comments .woocommerce-review__published-date:before {
	content: "\f017"; /* orologio, come nei commenti Hueman */
	margin-right: 3px;
	color: #ccc;
	font-family: 'Font Awesome 5 Free';
	font-size: 10px;
	font-weight: normal;
	vertical-align: 4%;
}

/* Testo (= .comment-body p di Hueman) */
#comments .comment-text .description p {margin-bottom: 8px; color: #777;}
#comments .comment-text .description p:last-child {margin-bottom: 0;}

/* Risposte dell'autore della pagina: stellina come per l'admin nei commenti Hueman */
#comments .commentlist li.bypostauthor > .comment_container:after {
	content: "\f005";
	position: absolute;
	top: 32px;
	left: -28px;
	width: 12px;
	padding: 2px;
	color: #fff;
	background: #16cfc1;
	border-radius: 3px;
	font-family: 'Font Awesome 5 Free';
	font-size: 10px;
	font-weight: 900;
	line-height: 12px;
	text-align: center;
}
#comments .commentlist li li.bypostauthor > .comment_container:after {top: 22px; left: -26px; font-size: 8px; padding: 1px;}

/* Varie usate nei contenuti */
.gem {margin: -7px -7px 0 0;}
.wallpaper img {max-width: 180px;}


/* 5. TEMPLATE FAQ.PHP E CARD LIST (.faq-item) */
.faq-video {
	position: relative;
	aspect-ratio: 16 / 9;
	margin-bottom: var(--faq-gap);
	border-radius: 6px;
	overflow: hidden;
	background: #000;
}
.faq-video iframe {position: absolute; inset: 0; width: 100%; height: 100%;}

.faq-intro {overflow: hidden;}

.faq-item {
	display: flow-root;
	margin-bottom: var(--faq-gap);
	padding: var(--faq-gap);
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
}
.faq-item__img {float: left; width: 64px; height: auto; margin: 0 var(--faq-gap) 10px 0;}
.faq-item__img--large {float: none; display: block; width: 100%; max-width: 280px; height: auto; margin: 0 0 15px; border-radius: 4px;} /* es. berserk-tracking.jpg */
.faq-item__img--wide {float: none; display: block; width: auto; max-width: 300px; margin: 0 0 15px;}

.entry .faq-item__q {margin: 0 0 10px; font-size: 1.25rem; font-weight: 600; line-height: 1.35; color: #222;}
.faq-item__a {overflow: hidden; font-size: 1rem; line-height: 1.6;}
.entry .faq-item__a p {margin: 0 0 10px;}
.entry .faq-item__a > :last-child {margin-bottom: 0;}

.entry .faq-links {margin: 0 0 10px;}
.entry .faq-links li {padding: 2px 0;}

.entry .faq-examples {
	margin: 15px 0;
	padding: 10px 15px;
	font-size: .9em;
	color: var(--faq-muted);
	background: #f7f7f7;
	border-left: 3px solid var(--faq-accent);
	border-radius: 0 4px 4px 0;
}
.entry .faq-examples li {padding: 4px 0;}
.entry .faq-examples strong {color: #333;}
.faq-item .btn {white-space: normal;}

.entry .card-list {margin: 0;}
.entry .card-list li {padding: 3px 0;}
.entry .card-list small {color: var(--faq-muted);}
.entry .card-list--ks {margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e2e2;}
.ks-icon {display: inline; width: auto; height: 1.2em; vertical-align: middle;}

.faq-newsletter {margin-bottom: var(--faq-gap); padding: var(--faq-gap); border: 1px solid #e2e2e2; border-radius: 6px;}
#mc_embed_signup.faq-newsletter {background: #fbf3ef;} /* id: batte il bianco del CSS Mailchimp */
.faq-newsletter label {font-weight: 600; font-size: 1.1rem;}
.faq-newsletter p {margin: 4px 0 10px;}
.faq-newsletter__hp {position: absolute; left: -5000px;}


/* 6. MOBILE */
@media (max-width: 480px) {
	.faq img {width: 60px; height: 60px;}
	.faq300 img {width: 90px;}
	.faq-item {padding: 15px;}
	.faq-item__img {width: 48px; margin-right: 15px;}
	.faq-item__a {overflow: visible;}
}
