/* ============================
	FONT
   ============================ */

@charset "utf-8";
/* CSS Document */

/* Montserrat (self-hosted, variable) - alternativa gratuita a Gotham per body copy e testi */
@font-face {
	font-display: swap;
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 900;
	src: url('../fonts/Montserrat-VariableFont_wght.woff2') format('woff2-variations'),
	url('../fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Montserrat';
	font-style: italic;
	font-weight: 100 900;
	src: url('../fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2-variations'),
	url('../fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2');
}

/* Figuera Variable Condensed - font per i titoli (già presente in assets/fonts) */
@font-face {
	font-display: swap;
	font-family: 'Figuera';
	font-style: normal;
	font-weight: 100 900;
	src: url('../fonts/FigueraVariable-Condesed.otf') format('opentype-variations'),
	url('../fonts/FigueraVariable-Condesed.otf') format('opentype');
}


/* ============================
	GENERALI
   ============================ */

body {
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-weight: normal;
	font-style: normal;
	font-size: 16px;
	color: #333333;
	background-color: var(--crema);
		background-image: radial-gradient(circle at 1px 1px, rgba(0, 35, 78, .06) 1px, transparent 0);
		background-size: 20px 20px;
}
.row {
	margin-left:0px;
	margin-right:0px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Figuera', 'Montserrat', Arial, sans-serif;
	font-weight: 700;
	letter-spacing: .03em;
	color: #00234E;
}

a {
	text-decoration: none;
}

.text-red {
	color:#ac182d;
}
/* ============================
	MENU
   ============================ */

   .skip-to-main-content-link {
   	position: absolute;
   	left: -9999px;
   	z-index: 999;
   	padding: 1em;
   	background-color: black;
   	color: white;
   	opacity: 0;
   }
   .skip-to-main-content-link:focus {
   	left: 50%;
   	transform: translateX(-50%);
   	opacity: 1;
   }

   #attiva_menu {
   	max-width: 30px;
   	margin:10px 25px;
   	cursor: pointer;
   }

   /* Navbar bassa, con il logo (lo stemma tondo Fini) che sborda oltre il
      bordo inferiore, come un sigillo appoggiato sulla pagina. */
   #menu {
   	background-color: #ffffff;
   	border-bottom: 3px solid #A7905D;
   	box-shadow: 0px 4px 10px rgba(0,35,78,.12);
   	position: relative;
   	z-index: 2000;
   	min-height: 58px;
   }

   .logo-col {
   	position: relative;
   }

   #logo {
   	width: 92px;
   	max-width: 92px;
   	margin-top: 8px;
   	margin-bottom: -34px;
   	position: relative;
   	z-index: 2001;
   	filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
   }

   @media (min-width: 992px) {
   	#logo {
   		width: 76px;
   		max-width: 76px;
   		margin-top: 6px;
   		margin-bottom: -26px;
   	}
   }

   /* Su mobile il logo deve stare dentro la navbar, senza sbordare
      sul contenuto sottostante (niente effetto "sigillo"). */
   @media (max-width: 991px) {
   	#logo {
   		width: 70px;
   		max-width: 70px;
   		margin-top: 8px;
   		margin-bottom: 8px;
   	}
   }

   #menu_list li {
   	list-style-type: none;
   	float: left;
   	padding-left: 2%;
   	padding-right: 2%;
   }

   #menu_list li a {
   	display: block;
   	text-align: center;
   	text-decoration: none;
   	padding: 5px 10px;
   	color: #00234E;
	font-weight: bold;
   	font-size: 18px;
   }


   @media (max-width: 991px) {
   	#menu_list li {
   		float: none; 		
   	}
   	#menu_list li a {
   		text-align: right;
   	}
   }


   @media (max-width: 1199px) {

   	#menu_list {
   		margin-left: 45px;	
   	}
   }

   @media (max-width:991px) {

   	#menu_list {
   		margin-left: 0px;	
   	}
   }

   #menu_list li a:hover, #menu_list li a.active {
   	text-decoration: none !important;
   	color: #E52713;
   }

.modal-body {
	background-color: #fff;
}

/* ============================
	FORM
   ============================ */

   .sfondo {
   	background-color: rgba(255,255,255,.8);
   	border-radius: 20px;
   	box-shadow: 0px 6px 8px rgba(0, 0, 0, .4);
   }
#errore {
	color: #ac182d;
	font-weight: bold;
	text-align: center;
	font-size: 24px;
}
   .form-control, .form-select {
   	height: 45px;
   	border-radius: 5px;
   	border: 1px solid #ffff;
   	color: #000000;
   }

   .form-group {
   	margin-bottom: 15px;
   }

label[for=reg], label[for=tratt_dati]  {
	display: block;
}

   label a {
   	color: inherit;
   	text-decoration: underline;
   }

   small.small {
   	font-size: 12px;
   	line-height: 14px;
   }

   
.button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	background: var(--blu-fini, #00234E);
	color: #ffffff;
	border-radius: 6px;
	border: 0px solid transparent;
  	font-weight: bold;
	font-size: 2.2rem;
	padding: .4rem 2.2rem;
	width: max-content;
	max-width: 300px;
	-webkit-box-shadow: 0px 5px 14px rgba(0,35,78,.4);
	box-shadow: 0px 5px 14px rgba(0,35,78,.4);
	text-decoration: none;
	transition: background-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.button::after {
	content: "\f138";
	font-family: "bootstrap-icons" !important;
	font-weight: normal;
	font-size: .75em;
	line-height: 1;
	transition: transform .25s ease;
}
.button:hover, .button:focus {
	color: #ffffff;
	background: var(--rosso-emilia, #E52713);
	box-shadow: 0px 6px 16px rgba(229,39,19,.45);
	transform: translateY(-2px);
}
.button:hover::after {
	transform: translateX(5px);
}


@media (max-width:375px) {
	.button {
		font-size: 1rem;
	}
}


#ocr {
	font-size: 1.2rem !important;
}

   @media (max-width: 575px) {
   	label {
   		font-size: .9rem;
   	}
   }

.modal-body {
	background-color: #4D7BBC;
}


/* ============================
	FOOTER
   ============================ */
   footer {
   	font-family: 'Montserrat', Arial, sans-serif;
   	font-size: 0.9rem;
   	background-color: var(--blu-fini, #00234E);
   }

   footer p {
   	color:#ffffff;
   	font-family: 'Montserrat', Arial, sans-serif;
   	font-weight: normal;
   	font-style: normal;
   	font-size: 0.9rem;
   	text-align: center;
   }

   footer p a {
   	color:#ffffff;
   	text-decoration:underline;
   	font-weight: 700;
   }

   .footer-links {
   	display: flex;
   	flex-wrap: wrap;
   	align-items: center;
   	justify-content: center;
   	gap: .6rem;
   	list-style: none;
   	margin: 1rem 0 0;
   	padding: 0;
   }

   .footer-links li {
   	list-style-type: none;
   }

   .footer-links a {
   	display: inline-block;
   	background-color: #ffffff;
   	color: var(--blu-fini, #00234E);
   	font-family: 'Montserrat', Arial, sans-serif;
   	font-weight: 700;
   	font-size: .85rem;
   	letter-spacing: .02em;
   	padding: .5rem 1.15rem;
   	border-radius: 6px;
   	text-decoration: none !important;
   	transition: background-color .2s ease, color .2s ease;
   }

   .footer-links a:hover,
   .footer-links a:focus {
   	background-color: var(--blu-fini, #00234E);
   	color: #ffffff;
   	outline: 2px solid #ffffff;
   	outline-offset: -2px;
   }


/* =========================
	COOKIE BAR
	======================= */

	.cc-window {
		font-size: .85rem !important;
		line-height: 1.2em !important;
	}

	@media (max-width:767px) {
		.cc-window {
			font-size: .75rem !important;
			line-height: 1.1em !important;
		}
	}

/* =========================
	 OCR LOADING
	======================= */

#ocr_loading, #ocr_loading > .modal-dialog, #ocr_loading > .modal-dialog > .modal-content, #ocr_loading > .modal-dialog > .modal-content > .modal-body {
	background-color: transparent !important;
}


/* ============================
	VARIABILI BRAND + TITOLI DI SEZIONE
   ============================ */

:root {
	--blu-fini: #00234E;
	--rosso-emilia: #E52713;
	--oro: #A7905D;
	--cielo-modena: #396290;
	--grigio-marmo: #C2CACE;
	--giallo-kv: #F7C948;
	--crema: #FBF3E6;
	/* variante più scura dell'oro, usata solo per il testo:
	   #A7905D su bianco ha un contrasto di 3,1:1 (non conforme al
	   4,5:1 richiesto da WCAG 2.2 AA per il testo piccolo) */
	--oro-testo: #8a6d3b;
}

/* Indicatore di focus visibile e coerente per tastiera/screen reader,
   in aggiunta (non sostituzione) agli stili di default del browser/Bootstrap */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--cielo-modena);
	outline-offset: 2px;
}

.eyebrow {
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--rosso-emilia);
	margin-bottom: .5rem;
}

.section-title {
	font-size: 2.4rem;
	margin-bottom: .75rem;
}

.section-subtitle {
	font-family: 'Montserrat', Arial, sans-serif;
	color: #555555;
	font-size: 1.2rem;
	line-height: 1.6;
	margin-bottom: 0;
}

@media (max-width: 575px) {
	.section-title {
		font-size: 1.7rem;
	}
}


/* ============================
	MECCANICA DI PARTECIPAZIONE
	(card in stile "ricettario", come una
	pagina di ricetta annodata allo spago)
   ============================ */

.meccanica-section {
	background-color: var(--crema);
	background-image: radial-gradient(circle at 1px 1px, rgba(0,35,78,.06) 1px, transparent 0);
	background-size: 20px 20px;
}

.meccanica-badge {
	display: inline-block;
	background: var(--giallo-kv);
	/* blu invece di rosso: su questo giallo il rosso resta sotto il
	   contrasto minimo 4,5:1 richiesto per il testo (WCAG 2.2 AA) */
	color: var(--blu-fini);
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: 700;
	font-size: .88rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .4rem 1.15rem;
	border-radius: 40px;
	box-shadow: 0 4px 10px rgba(0,0,0,.15);
	transform: rotate(-2deg);
	margin-bottom: 1.25rem;
}

.recipe-card {
	position: relative;
	width: 100%;
	background-color: #fff;
	background-image: repeating-linear-gradient(to bottom, transparent, transparent 27px, rgba(0,35,78,.06) 28px);
	border: 2px dashed var(--oro);
	border-radius: 16px;
	padding: 2.75rem 1.5rem 1.85rem;
	text-align: center;
	box-shadow: 0 10px 24px rgba(0,35,78,.08);
	transition: transform .25s ease, box-shadow .25s ease;
}

.recipe-cards .col-12:nth-child(odd) .recipe-card {
	transform: rotate(-1.1deg);
}

.recipe-cards .col-12:nth-child(even) .recipe-card {
	transform: rotate(1.1deg);
}

.recipe-card:hover {
	transform: rotate(0deg) translateY(-6px);
	box-shadow: 0 16px 30px rgba(0,35,78,.16);
}

.recipe-card-tape {
	position: absolute;
	top: -13px;
	left: 50%;
	width: 60px;
	height: 24px;
	background: var(--giallo-kv);
	opacity: .95;
	transform: translateX(-50%) rotate(-3deg);
	box-shadow: 0 2px 5px rgba(0,0,0,.2);
}

.recipe-card-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	border: 2px dashed var(--rosso-emilia);
	background: #fff;
	color: var(--rosso-emilia);
	font-family: 'Figuera', Arial, sans-serif;
	font-weight: 700;
	font-size: 1.4rem;
}

.recipe-card-icon {
	display: block;
	font-size: 1.7rem;
	color: var(--blu-fini);
	margin-bottom: .75rem;
}

.recipe-card-title {
	font-size: 1.35rem;
	letter-spacing: .04em;
	margin-bottom: .6rem;
}

.recipe-card-text {
	font-family: 'Montserrat', Arial, sans-serif;
	color: #555555;
	font-size: 1.08rem;
	line-height: 1.55;
	margin-bottom: 0;
}

.meccanica-cta {
	font-family: 'Montserrat', Arial, sans-serif;
	color: #555555;
	font-size: 1.05rem;
}

.meccanica-cta a {
	color: var(--blu-fini);
	font-weight: 700;
	text-decoration: underline;
}


/* ============================
	PRODOTTI COINVOLTI
   ============================ */

.prodotti-section {
	background-color: #ffffff;
}

.prodotto-card {
	width: 100%;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	border-top: 5px solid var(--rosso-emilia);
	box-shadow: 0 10px 26px rgba(0,35,78,.1);
	transition: transform .25s ease, box-shadow .25s ease;
}

.prodotto-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 34px rgba(0,35,78,.18);
}

.prodotto-card-img {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: var(--crema);
}

.prodotto-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.prodotto-card:hover .prodotto-card-img img {
	transform: scale(1.05);
}

.prodotto-card-body {
	padding: 1.5rem;
	text-align: center;
}

.prodotto-badge {
	display: inline-block;
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: 700;
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	/* testo più scuro del bordo: --oro come colore testo è sotto il
	   contrasto minimo 4,5:1 su sfondo bianco (WCAG 2.2 AA) */
	color: var(--oro-testo);
	border: 1px solid var(--oro);
	border-radius: 30px;
	padding: .2rem .75rem;
	margin-bottom: .85rem;
}

.prodotto-card-title {
	font-size: 1.5rem;
	letter-spacing: .03em;
	margin-bottom: .35rem;
}

.prodotto-card-title small {
	display: block;
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: 400;
	letter-spacing: 0;
	font-size: .95rem;
	color: #555555;
	margin-top: .2rem;
}

.prodotto-card-meta {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: .92rem;
	/* #777 su bianco è a 4,48:1, appena sotto la soglia 4,5:1 richiesta */
	color: #666666;
	margin-top: .85rem;
}

.prodotto-card-meta i {
	color: var(--rosso-emilia);
	margin-right: .3rem;
}


/* ============================
	FORM DI REGISTRAZIONE
	(stesso linguaggio grafico delle card prodotto:
	bordo superiore colorato, angoli arrotondati, ombra morbida)
   ============================ */

.form-card {
	background-color: #ffffff;
	border-radius: 18px;
	border-top: 5px solid var(--rosso-emilia);
	box-shadow: 0 10px 26px rgba(0,35,78,.1);
}

/* la card ha sfondo bianco pieno: senza questo il bordo bianco
   di .form-control/.form-select (definito altrove) sparirebbe */
.form-card .form-control,
.form-card .form-select {
	border-color: #d9dce1;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
	border-color: var(--cielo-modena);
	box-shadow: 0 0 0 .2rem rgba(57,98,144,.15);
}

.form-card-title {
	position: relative;
	color: var(--blu-fini);
	font-size: 1.7rem;
}

.form-card-title::before {
	display: block;
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--oro-testo);
	margin-bottom: .6rem;
}

.form-card-title--step1::before {
	content: "Passo 1 di 3 — I tuoi dati";
}

.form-card-title--step2::before {
	content: "Passo 2 di 3 — Documento d'acquisto";
}

.form-card-title--step3::before {
	content: "Passo 3 di 3 — Rimborso";
}

@media (max-width: 575px) {
	.form-card-title {
		font-size: 1.35rem;
	}
}


/* ============================
	PAGINE DI ESITO (grazie, conferma dati ok/ko)
   ============================ */

.text-blu {
	color: var(--blu-fini) !important;
}

.bg_blu {
	background-color: var(--blu-fini) !important;
}

.status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	color: #ffffff;
	font-size: 2.2rem;
	box-shadow: 0 10px 20px rgba(0,35,78,.18);
}

.status-icon--pending {
	background: var(--oro);
}

.status-icon--success {
	background: var(--blu-fini);
}

.status-icon--error {
	background: var(--rosso-emilia);
}

.status-text {
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: 1.15rem;
	line-height: 1.6;
	color: #333333;
}

.status-note {
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	/* #777 su bianco è a 4,48:1, appena sotto la soglia 4,5:1 richiesta */
	color: #666666;
	font-style: italic;
}

.status-text a {
	color: var(--rosso-emilia);
	font-weight: 700;
	text-decoration: underline;
}

