:root
{
	--MinTouchTarget: 44px;
	--Indigo-600: #4f46e5;
	--Indigo-700: #4338ca;
	--Gray-50: #f9fafb;
	--Gray-300: #d1d5db;
	--Gray-500: #6b7280;
	--Gray-800: #1f2937;
	--Gray-900: #111827;
	--Emerald-500: #10b981;
	--Emerald-800: #065f46;
	--Orange-500: #f97316;
	--Orange-800: #9a3412;
}

*,
*::before,
*::after
{
	box-sizing: border-box;
}

html
{
	color-scheme: light;
}

body
{
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
	line-height: 1.5;
	letter-spacing: 0.01em;
}

input, button, select
{
	min-height: var(--MinTouchTarget);
	font: inherit;
}

button
{
	cursor: pointer;
	border: none;
}

select
{
	cursor: pointer;
}

.bg-gray-50
{
	background-color: var(--Gray-50);
}

.text-gray-900
{
	color: var(--Gray-900);
}

.text-gray-800
{
	color: var(--Gray-800);
}

.text-gray-500
{
	color: var(--Gray-500);
}

.text-white
{
	color: #fff;
}

.bg-white
{
	background-color: #fff;
}

.bg-indigo-600
{
	background-color: var(--Indigo-600);
}

.text-indigo-600
{
	color: var(--Indigo-600);
}

.text-indigo-700
{
	color: #4338ca;
}

.text-indigo-800
{
	color: #3730a3;
}

.text-indigo-900
{
	color: #312e81;
}

.bg-indigo-50
{
	background-color: #eef2ff;
}

.tarocco-box-riepilogo
{
	border: 1px solid #e0e7ff;
}

.shrink-0
{
	flex-shrink: 0;
}

.font-sans
{
	font-family: inherit;
}

.leading-normal
{
	line-height: 1.5;
}

.tracking-normal
{
	letter-spacing: 0.01em;
}

.min-h-screen
{
	min-height: 100vh;
}

.flex
{
	display: flex;
}

.flex-col
{
	flex-direction: column;
}

.flex-wrap
{
	flex-wrap: wrap;
}

.flex-grow
{
	flex-grow: 1;
}

.items-center
{
	align-items: center;
}

.justify-center
{
	justify-content: center;
}

.justify-between
{
	justify-content: space-between;
}

.container
{
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
	max-width: 56rem;
}

.mx-auto
{
	margin-left: auto;
	margin-right: auto;
}

.px-4
{
	padding-left: 1rem;
	padding-right: 1rem;
}

.py-8
{
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.max-w-4xl
{
	max-width: 56rem;
}

.p-6
{
	padding: 1.5rem;
}

.p-3
{
	padding: 0.75rem;
}

.p-4
{
	padding: 1rem;
}

.py-3
{
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.mb-2
{
	margin-bottom: 0.5rem;
}

.mb-4
{
	margin-bottom: 1rem;
}

.mb-6
{
	margin-bottom: 1.5rem;
}

.mb-8
{
	margin-bottom: 2rem;
}

.mb-10
{
	margin-bottom: 2.5rem;
}

.shadow-md
{
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.shadow-lg
{
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.shadow-sm
{
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rounded-lg
{
	border-radius: 0.5rem;
}

.rounded-md
{
	border-radius: 0.375rem;
}

.border
{
	border: 1px solid var(--Gray-300);
}

.border-t
{
	border-top: 1px solid var(--Gray-300);
}

.border-l-4
{
	border-left-width: 4px;
	border-left-style: solid;
}

.border-emerald-500
{
	border-left-color: var(--Emerald-500);
}

.border-orange-500
{
	border-left-color: var(--Orange-500);
}

.text-center
{
	text-align: center;
}

.text-sm
{
	font-size: 0.875rem;
}

.text-xs
{
	font-size: 0.75rem;
}

.text-xl
{
	font-size: 1.25rem;
	line-height: 1.75rem;
}

.text-lg
{
	font-size: 1.125rem;
	line-height: 1.75rem;
}

.text-2xl
{
	font-size: 1.5rem;
	line-height: 2rem;
}

.text-3xl
{
	font-size: 1.875rem;
	line-height: 2.25rem;
}

.font-bold
{
	font-weight: 700;
}

.font-semibold
{
	font-weight: 600;
}

.uppercase
{
	text-transform: uppercase;
}

.hidden
{
	display: none;
}

.grid
{
	display: grid;
}

.grid-cols-1
{
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px)
{
	.md-grid-cols-2
	{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.gap-2
{
	gap: 0.5rem;
}

.gap-3
{
	gap: 0.75rem;
}

.gap-6
{
	gap: 1.5rem;
}

.gap-8
{
	gap: 2rem;
}

.space-y-6 > * + *
{
	margin-top: 1.5rem;
}

.space-y-8 > * + *
{
	margin-top: 2rem;
}

.w-full
{
	width: 100%;
}

@media (min-width: 640px)
{
	.sm-min-w-12rem
	{
		min-width: 12rem;
	}
}

.focus-outline:focus
{
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.focus-ring:focus
{
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--Indigo-600);
}

.hover-bg-indigo-700:hover
{
	background-color: var(--Indigo-700);
}

.transition
{
	transition-property: color, background-color, border-color, box-shadow, transform;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300
{
	transition-duration: 300ms;
}

.bg-green-50
{
	background-color: #ecfdf5;
}

.bg-orange-50
{
	background-color: #fff7ed;
}

.text-emerald-800
{
	color: var(--Emerald-800);
}

.text-orange-800
{
	color: var(--Orange-800);
}

.max-w-cart
{
	max-width: 10rem;
}

.interpretazione-blocco
{
	border-left: 4px solid rgb(99, 102, 241);
	background: rgb(250, 250, 250);
}

.carta-visual
{
	width: 150px;
	height: 260px;
	background: #312e81;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0;
	overflow: hidden;
	border-radius: 8px;
	font-weight: bold;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.5s;
}

.carta-visual--testo
{
	padding: 10px;
	background: var(--Indigo-600);
}

.carta-immagine
{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.carta-capovolta
{
	transform: rotate(180deg);
}

.carta-visual.carta-retro
{
	position: relative;
}

.carta-retro
{
	background: linear-gradient(145deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
	border: 2px solid rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 6px rgba(0, 0, 0, 0.15);
}

.carta-retro::after
{
	content: "";
	position: absolute;
	inset: 12px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	pointer-events: none;
}

/* Immagine segnaposto per alt accessibile: dimensioni richieste, invisibile sul dorso */
.carta-retro .carta-retro-alt
{
	position: absolute;
	left: 0;
	top: 0;
	width: 150px;
	height: 260px;
	object-fit: none;
	opacity: 0;
	pointer-events: none;
}

.carta-slot
{
	min-width: 0;
}

#BottoneCopiaPromptAI
{
	padding: 0.5rem calc(10px + 0.75rem);
	box-sizing: border-box;
}
