/**
 * Componenti For Lucky TCG (shortcode, badge, box informativi).
 * La palette e definita dal tema; qui sono presenti i valori di ripiego.
 */

:root {
	--flt-nero: #0b0b0d;
	--flt-nero-2: #16161b;
	--flt-oro: #d4af37;
	--flt-oro-chiaro: #f0d78a;
	--flt-oro-scuro: #8a6d1f;
	--flt-testo: #16161a;
	--flt-grigio: #6b6b76;
	--flt-bordo: #e3e3e8;
	--flt-sfondo-soft: #f7f7f9;
	--flt-raggio: 10px;
}

/* ---------------------------------------------------------------
 * Pulsanti
 * ------------------------------------------------------------ */

.flt-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: var(--flt-raggio);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.flt-btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

/*
 * Storefront sottolinea i link nel contenuto con ".hentry .entry-content a",
 * che vale 0-2-1 di specificita. Le nostre regole devono superarla: aggiungendo
 * .entry-content davanti e il selettore di elemento "a" arriviamo a 0-3-1.
 * Serve spegnere la sottolineatura sull'elemento <a>: text-decoration si
 * propaga ai discendenti e non puo essere annullata da loro.
 */
.entry-content .flt-categorie a.flt-categorie__card,
.entry-content .flt-categorie a.flt-categorie__card:hover,
.entry-content .flt-contatti a.flt-contatti__item,
.entry-content .flt-contatti a.flt-contatti__item:hover,
.entry-content .flt-hero a.flt-btn,
.entry-content .flt-hero a.flt-btn:hover,
.entry-content .flt-box a.flt-btn,
.entry-content .flt-tracking-box a.flt-btn,
.entry-content a.flt-btn,
.entry-content a.flt-btn:hover,
.flt-categorie a.flt-categorie__card,
.flt-contatti a.flt-contatti__item,
.flt-hero a.flt-btn,
.flt-box a.flt-btn,
.flt-tracking-box a.flt-btn {
	text-decoration: none;
}

.flt-btn--neutro {
	background: #ffffff;
	color: var(--flt-testo);
	border: 2px solid #ffffff;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.flt-btn--neutro:hover {
	background: #f2f2f4;
	color: var(--flt-testo);
	border-color: #f2f2f4;
}

.flt-btn--gold {
	background: linear-gradient(180deg, var(--flt-oro-chiaro), var(--flt-oro));
	color: #2b2205;
	box-shadow: 0 2px 0 var(--flt-oro-scuro);
}

.flt-btn--gold:hover {
	color: #2b2205;
	box-shadow: 0 4px 12px rgba(212, 175, 55, 0.45);
}

.flt-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

/* ---------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------ */

.flt-hero {
	position: relative;
	margin: 0 0 2.5rem;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
	border-radius: 16px;
	color: #fff;
	background:
		radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.25), transparent 55%),
		radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.18), transparent 50%),
		linear-gradient(160deg, var(--flt-nero) 0%, var(--flt-nero-2) 100%);
	overflow: hidden;
}

.flt-hero__content {
	max-width: 40rem;
}

.flt-hero__kicker {
	margin: 0 0 0.5rem;
	color: var(--flt-oro-chiaro);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

.flt-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.9rem, 4.5vw, 3rem);
	line-height: 1.1;
	color: #fff;
}

.flt-hero__text {
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.flt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

.flt-hero__actions .flt-btn--ghost {
	color: var(--flt-oro-chiaro);
}

/* ---------------------------------------------------------------
 * Carosello slide
 *
 * Tutte le slide occupano la stessa cella di una griglia: il carosello
 * prende l'altezza della slide più alta e non "salta" quando cambia.
 * Il passaggio è una dissolvenza.
 * ------------------------------------------------------------ */

.flt-slider {
	position: relative;
	margin: 0 0 2.5rem;
	border-radius: 16px;
	overflow: hidden;
	background: var(--flt-nero);
}

.flt-slider__track {
	display: grid;
}

.flt-slider .flt-slide {
	grid-area: 1 / 1;
	margin: 0;
	border-radius: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.flt-slider .flt-slide.is-attiva {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease, visibility 0s linear 0s;
	z-index: 1;
}

.flt-slider--multi .flt-slide {
	/* spazio per punti e frecce */
	padding-bottom: calc(clamp(2.5rem, 6vw, 4.5rem) + 1.5rem);
}

.flt-slide--centro .flt-hero__content {
	margin: 0 auto;
	text-align: center;
}

.flt-slide--centro .flt-hero__actions {
	justify-content: center;
}

/* Slide con immagine: la foto riempie il box, un velo scuro regolabile
   dal pannello (--flt-scuro) tiene leggibile il testo bianco. */
.flt-slide--immagine {
	background: var(--flt-nero);
	isolation: isolate;
}

.flt-slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Con il testo a sinistra conviene tenere visibile la parte destra
	   della foto, dove di solito sta il soggetto. */
	object-position: right center;
	z-index: -2;
}

.flt-slide--centro .flt-slide__img {
	object-position: center;
}

.flt-slide--immagine::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		90deg,
		rgba(11, 11, 13, var(--flt-scuro, 0.55)) 0%,
		rgba(11, 11, 13, calc(var(--flt-scuro, 0.55) * 0.55)) 100%
	);
}

.flt-slide--immagine.flt-slide--centro::before {
	background: rgba(11, 11, 13, var(--flt-scuro, 0.55));
}

.flt-slider__freccia {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 1px solid rgba(240, 215, 138, 0.45);
	border-radius: 50%;
	background: rgba(11, 11, 13, 0.55);
	color: var(--flt-oro-chiaro);
	font-size: 28px;
	line-height: 40px;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.flt-slider:hover .flt-slider__freccia,
.flt-slider__freccia:focus-visible {
	opacity: 1;
}

.flt-slider__freccia:hover {
	background: rgba(11, 11, 13, 0.85);
}

.flt-slider__freccia--prev { left: 14px; }
.flt-slider__freccia--next { right: 14px; }

.flt-slider__controlli {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.flt-slider__punti {
	display: flex;
	gap: 8px;
}

.flt-slider__punto {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.flt-slider__punto[aria-current="true"] {
	width: 28px;
	background: var(--flt-oro);
}

.flt-slider__pausa {
	position: relative;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

/* Icona pausa (due barre) / play (triangolo) disegnata in CSS. */
.flt-slider__pausa span {
	position: absolute;
	top: 8px;
	left: 9px;
	width: 3px;
	height: 10px;
	background: #fff;
	box-shadow: 6px 0 0 #fff;
}

.flt-slider.is-in-pausa .flt-slider__pausa span {
	top: 7px;
	left: 10px;
	width: 0;
	height: 0;
	background: transparent;
	box-shadow: none;
	border-style: solid;
	border-width: 6px 0 6px 9px;
	border-color: transparent transparent transparent #fff;
}

.flt-slider button:focus-visible {
	outline: 2px solid var(--flt-oro-chiaro);
	outline-offset: 2px;
}

@media (hover: none) {
	.flt-slider__freccia {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.flt-slider .flt-slide,
	.flt-slider .flt-slide.is-attiva {
		transition: none;
	}
}

/* ---------------------------------------------------------------
 * Barra dei punti di forza
 * ------------------------------------------------------------ */

.flt-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1px;
	margin: 0 0 2.5rem;
	background: var(--flt-bordo);
	border: 1px solid var(--flt-bordo);
	border-radius: var(--flt-raggio);
	overflow: hidden;
}

.flt-trust__item {
	background: #fff;
	padding: 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.flt-trust__item strong {
	font-size: 0.95rem;
}

.flt-trust__item span {
	color: var(--flt-grigio);
	font-size: 0.85rem;
}

/* ---------------------------------------------------------------
 * Categorie
 * ------------------------------------------------------------ */

/* Con minmax(150px) le categorie stanno su due colonne anche da telefono:
   quattro card impilate costringerebbero a scorrere troppo. */
.flt-categorie {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	margin: 0 0 2.5rem;
}

.flt-categorie__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 1.5rem 1rem;
	border: 1px solid var(--flt-bordo);
	border-radius: var(--flt-raggio);
	background: #fff;
	text-align: center;
	text-decoration: none;
	color: var(--flt-testo);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.flt-categorie__card:hover {
	border-color: var(--flt-oro);
	box-shadow: 0 6px 20px rgba(11, 11, 13, 0.08);
	transform: translateY(-2px);
	text-decoration: none;
}

.flt-categorie__img {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	margin-bottom: 0.5rem;
}

.flt-categorie__img img {
	max-height: 120px;
	width: auto;
	border-radius: 6px;
}

/* Ripiego quando la categoria non ha ancora un'immagine assegnata. */
.flt-categorie__iniziale {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--flt-nero);
	color: var(--flt-oro-chiaro);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}

.flt-categorie__nome {
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
}

.flt-categorie__card,
.flt-categorie__card:hover,
.flt-categorie__card:focus {
	text-decoration: none;
}

.flt-categorie__conta {
	color: var(--flt-grigio);
	font-size: 0.82rem;
}

.flt-sezione-titolo {
	margin: 2.5rem 0 1.25rem;
}

/* ---------------------------------------------------------------
 * Perche sceglierci
 * ------------------------------------------------------------ */

.flt-perche {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.25rem;
	margin: 3rem 0;
	padding: 2rem;
	background: var(--flt-sfondo-soft);
	border-radius: 14px;
}

.flt-perche__item h3 {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
}

.flt-perche__item p {
	margin: 0;
	color: var(--flt-grigio);
	font-size: 0.92rem;
	line-height: 1.55;
}

/* ---------------------------------------------------------------
 * Badge prodotto
 * ------------------------------------------------------------ */

.flt-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin: 0 0 0.5rem;
	position: relative;
	z-index: 2;
}

.flt-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.4;
}

.flt-badge--preordine {
	background: var(--flt-nero);
	color: var(--flt-oro-chiaro);
}

.flt-badge--lingua {
	background: #eef1f6;
	color: #33415c;
}

.flt-badge--danni {
	background: #fdecec;
	color: #a32020;
}

/* ---------------------------------------------------------------
 * Informazioni nella scheda prodotto
 * ------------------------------------------------------------ */

.flt-product-info {
	margin: 1rem 0;
	padding: 0.9rem 1rem;
	border-left: 3px solid var(--flt-oro);
	background: var(--flt-sfondo-soft);
	border-radius: 0 var(--flt-raggio) var(--flt-raggio) 0;
	font-size: 0.9rem;
}

.flt-product-info p {
	margin: 0 0 0.35rem;
}

.flt-product-info p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------
 * Box informativi
 * ------------------------------------------------------------ */

.flt-box {
	margin: 1.5rem 0;
	padding: 1.4rem 1.5rem;
	border: 1px solid var(--flt-bordo);
	border-radius: var(--flt-raggio);
	background: #fff;
}

.flt-box--ritiro {
	border-color: var(--flt-oro);
	background: linear-gradient(180deg, #fffdf5, #fff);
}

.flt-box__badge {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--flt-nero);
	color: var(--flt-oro-chiaro);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.flt-box__riga {
	margin: 0 0 0.75rem;
	line-height: 1.55;
}

.flt-box__riga:last-child {
	margin-bottom: 0;
}

.flt-box--modulo p {
	margin: 0 0 0.6rem;
}

/* ---------------------------------------------------------------
 * Tabelle
 * ------------------------------------------------------------ */

.flt-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 1.5rem;
	font-size: 0.93rem;
}

.flt-table th,
.flt-table td {
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--flt-bordo);
	text-align: left;
	vertical-align: top;
}

/* I temi colorano le intestazioni di tabella nel contenuto con selettori
   piu specifici del nostro: senza .entry-content davanti, il testo bianco
   resta grigio scuro su fondo nero e diventa illeggibile. */
.flt-table thead th,
.entry-content .flt-table thead th,
.entry-content table.flt-table thead th {
	background: var(--flt-nero);
	color: #fff;
	font-weight: 700;
	border-color: var(--flt-nero);
}

.flt-table--dati th {
	width: 38%;
	background: var(--flt-sfondo-soft);
}

.flt-note {
	color: var(--flt-grigio);
	font-size: 0.85rem;
}

/* ---------------------------------------------------------------
 * Passi numerati
 * ------------------------------------------------------------ */

.flt-steps {
	margin: 1rem 0 1.5rem;
	padding-left: 1.25rem;
}

.flt-steps li {
	margin-bottom: 0.6rem;
	line-height: 1.6;
}

/* ---------------------------------------------------------------
 * FAQ
 * ------------------------------------------------------------ */

.flt-faq {
	border: 1px solid var(--flt-bordo);
	border-radius: var(--flt-raggio);
	margin-bottom: 0.6rem;
	background: #fff;
}

.flt-faq summary {
	padding: 0.95rem 1.1rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.flt-faq summary::-webkit-details-marker {
	display: none;
}

.flt-faq summary::after {
	content: "+";
	color: var(--flt-oro-scuro);
	font-size: 1.25rem;
	line-height: 1;
}

.flt-faq[open] summary::after {
	content: "\2013";
}

.flt-faq > div {
	padding: 0 1.1rem 1.1rem;
	line-height: 1.6;
	color: #3b3b45;
}

/* ---------------------------------------------------------------
 * Contatti
 * ------------------------------------------------------------ */

.flt-contatti {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0.75rem;
	margin: 1.25rem 0 2rem;
}

.flt-contatti__item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--flt-bordo);
	border-radius: var(--flt-raggio);
	background: #fff;
	text-decoration: none;
	color: var(--flt-testo);
	transition: border-color 0.15s ease;
}

.flt-contatti__item:hover {
	border-color: var(--flt-oro);
	text-decoration: none;
}

.flt-contatti__label {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--flt-grigio);
}

.flt-contatti__valore {
	font-weight: 700;
	word-break: break-word;
}

/* ---------------------------------------------------------------
 * Checkout e tracking
 * ------------------------------------------------------------ */

.flt-checkout-ritiro .flt-box {
	margin-top: 0;
}

.flt-tracking-box {
	margin: 2rem 0;
	padding: 1.4rem 1.5rem;
	border: 1px solid var(--flt-oro);
	border-radius: var(--flt-raggio);
	background: linear-gradient(180deg, #fffdf5, #fff);
}

.flt-fattura h3 {
	margin-top: 1.5rem;
}

/* Mostra i campi partita IVA solo se richiesta la fattura. */
.flt-campo-fattura {
	display: none;
}

.flt-fattura--attiva .flt-campo-fattura {
	display: block;
}

.flt-legal-updated {
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--flt-bordo);
	color: var(--flt-grigio);
	font-size: 0.85rem;
}

@media (max-width: 600px) {
	.flt-hero,
	.flt-slider {
		border-radius: 12px;
	}

	.flt-slider .flt-slide {
		border-radius: 0;
	}

	.flt-table {
		display: block;
		overflow-x: auto;
	}
}

/* ---------------------------------------------------------------
 * Pagamento con bonifico: riepilogo nella pagina "Ordine ricevuto"
 * ------------------------------------------------------------ */

.flt-bonifico {
	margin: 1.5rem 0 2rem;
	padding: 1.25rem 1.5rem;
	border: 2px solid var(--flt-oro);
	border-radius: 12px;
	background: #fdf8e9;
}

.flt-bonifico__titolo {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
}

.flt-bonifico__dati {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 0 0 0.75rem;
}

.flt-bonifico__dati dt {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--flt-oro-scuro);
}

.flt-bonifico__dati dd {
	margin: 0;
	font-size: 1.1rem;
}

.flt-bonifico__nota {
	margin: 0;
	font-size: 0.92rem;
	color: var(--flt-grigio);
}

/* Coordinate bancarie stampate da WooCommerce sotto il riepilogo. */
.woocommerce-bacs-bank-details {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--flt-bordo);
	border-radius: 12px;
	background: #fff;
}

.woocommerce-bacs-bank-details ul.bacs_details {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-bacs-bank-details ul.bacs_details li {
	padding: 0.35rem 0;
	border-bottom: 1px dashed var(--flt-bordo);
}
