@charset "utf-8";
/* CSS Document */

/* ============================
	DESIGN TOKENS
   ============================ */

:root {
	/* Brand */
	--c-primary:      #29235C; /* blu-indaco: testo, titoli, logo, bottoni primari */
	--c-accent:       #FDC300; /* giallo: icone, badge, pulsanti circolari evidenza */
	--c-topbar:       #3E5456; /* verde-petrolio scuro: barra superiore */

	/* Neutri / superfici */
	--c-bg:           #F8F8F8; /* sfondo body */
	--c-surface:      #FFFFFF; /* card, header, sezioni chiare */
	--c-band:         #B6C6D7; /* azzurro-grigio: fascia dietro l'hero, blocchi sezione */
	--c-card-alt:     #F2F2F2; /* grigio chiarissimo per card secondarie */

	/* Testo */
	--c-text:         #29235C;
	--c-text-muted:   #545454;
	--c-on-dark:      #FFFFFF;
	--c-teal-text:    #3E5456;

	/* Font / pesi (sostituto con licenza di FRoSTASans, stesse regole grafiche) */
	--font: "PT Sans Narrow";
	--wNormal: 400;
	--wBold: 700;

	/* Spaziature */
	--sp-20: 0.44rem;
	--sp-30: 0.67rem;
	--sp-40: 1rem;
	--sp-50: 1.5rem;
	--sp-60: 2.25rem;
	--sp-70: 3.38rem;
	--sp-80: 5.06rem;

	/* Raggi */
	--radius-card: 8px;
	--radius-btn: 0px;
	--radius-round: 50%;

	/* Retrocompatibilità con markup esistente */
	--c1: var(--c-on-dark);
	--c2: var(--c-primary);
	--c3: var(--c-bg);
	--c4: var(--c-accent);
}

body {
	font-family: var(--font), system-ui, sans-serif;
	font-weight: var(--wNormal);
	font-style: normal;
	font-size: 18px;
	line-height: 26px;
	letter-spacing: 0.3px;
	color: var(--c-text);
	background: var(--c-bg);
}

.letter-space {
    letter-spacing: 8px;
}

.wNormal {
	font-weight: var(--wNormal);
}

.shadow {
	box-shadow: 0 6px 18px rgba(41, 35, 92, .08);
}

.wBold {
	font-weight: var(--wBold);
}

.c4 {
	color: var(--c-accent);
}

.c2 {
	color: var(--c-primary);
}

h1, h2, h3, h4, p, a, b {
	font-family: var(--font), system-ui, sans-serif;
	font-style: normal;
	color: var(--c-text);
}

/* Titoli: peso 400, aspetto sottile (mai bold) */
h1, h2 {
	font-size: 48px;
	line-height: 48px;
	font-weight: var(--wNormal);
}

h3 {
	font-size: 28px;
	line-height: 34px;
	font-weight: var(--wNormal);
}

/* Guardia di coerenza: neutralizza utility Bootstrap che romperebbero la scala tipografica
   (display-*, fw-bold, letter-space, <b>/<strong>) se riapplicate per errore su un titolo */
h1.display-1, h1.display-2, h1.display-3, h1.display-4, h1.display-5, h1.display-6,
h2.display-1, h2.display-2, h2.display-3, h2.display-4, h2.display-5, h2.display-6 {
	font-size: 48px;
	line-height: 48px;
	font-weight: var(--wNormal);
}

h3.display-1, h3.display-2, h3.display-3, h3.display-4, h3.display-5, h3.display-6 {
	font-size: 28px;
	line-height: 34px;
	font-weight: var(--wNormal);
}

h1.fw-bold, h2.fw-bold, h3.fw-bold,
h1 b, h1 strong, h2 b, h2 strong, h3 b, h3 strong {
	font-weight: var(--wNormal);
}

h1.letter-space, h2.letter-space, h3.letter-space {
	letter-spacing: normal;
}

p {
  	font-weight: var(--wNormal);
	font-size: 18px;
	line-height: 26px;
	letter-spacing: 0.3px;
}

.overline {
	display: block;
	font-size: 13px;
	letter-spacing: 0.66px;
	text-transform: uppercase;
	font-weight: var(--wNormal);
	color: var(--c-text);
	margin-bottom: .5rem;
}

a {
  	text-decoration: underline;
	color: var(--c-primary);
}

a:hover, a:focus, a:active {
	color: var(--c-primary);
}

.list {
	margin-bottom: 1rem;
	padding-left: 1rem;
}

.no-list-style {
	list-style-type: none;
	padding-left: 0px;
}

.nascosto {
	height: 0px;
	overflow: hidden !important;
}

.skip-to-main-content-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 1em;
	background-color: var(--c-primary);
	color: var(--c-on-dark) !important;
	opacity: 0;
}

.skip-to-main-content-link:focus {
	left: 50%;
	transform: translateX(-50%);
	opacity: 1;
}

.py-6 {
	padding-top: 7rem;
	padding-bottom: 10rem;
}

.icon-text {
	font-size: 7rem;
	color: var(--c-primary);
}

/* ============================
	BOTTONI
   ============================ */

.button {
	color: var(--c-on-dark);
	background: var(--c-primary);
	border: 1px solid var(--c-primary);
	font-family: var(--font), system-ui, sans-serif;
	font-weight: var(--wNormal);
	font-size: 1rem;
	letter-spacing: .6px;
	text-transform: uppercase;
	padding: 15px 20px;
	width: max-content;
	text-decoration: none;
	border-radius: var(--radius-btn);
	cursor: pointer;
	transition: .2s;
}

.button:hover {
	color: var(--c-primary);
	background: var(--c-on-dark);
	border: 1px solid var(--c-primary);
}

.button--secondary {
	color: var(--c-primary);
	background: var(--c-on-dark);
	border: 1px solid var(--c-primary);
}

.button--secondary:hover {
	color: var(--c-on-dark);
	background: var(--c-primary);
}

#ocr.button,
.button.partecipa {
	font-size: .9rem;
}

/* Pulsanti circolari (freccia / icone) */
.btn-circle {
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: var(--radius-round);
	display: grid;
	place-items: center;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.btn-circle--dark {
	background: var(--c-primary);
	color: var(--c-on-dark);
}

.btn-circle--yellow {
	background: var(--c-accent);
	color: var(--c-primary);
}

/* Link "freccia in cerchio" */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	text-decoration: none;
	color: var(--c-primary);
}

.link-arrow .btn-circle {
	width: 36px;
	height: 36px;
	min-width: 36px;
	background: transparent;
	border: 1px solid var(--c-band);
	color: var(--c-primary);
}

.link-arrow span {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
}

.link-arrow:hover .btn-circle {
	background: var(--c-band);
}

/* ============================
	CARD
   ============================ */

.card {
	background: var(--c-surface);
	border-radius: var(--radius-card);
	padding: 2rem;
	box-shadow: 0 6px 18px rgba(41, 35, 92, .08);
}

.card__icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-round);
	background: var(--c-accent);
	display: grid;
	place-items: center;
	color: var(--c-primary);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.card__icon--dark {
	background: var(--c-primary);
	color: var(--c-on-dark);
}

/* Card generica ex "glass" (login, form) */
.glass {
	background: var(--c-surface);
	border-radius: var(--radius-card);
	box-shadow: 0 6px 18px rgba(41, 35, 92, .08);
	border: 1px solid var(--c-card-alt);
}

/* ============================
	TOP BAR
   ============================ */

#topbar {
	background: var(--c-topbar);
	color: var(--c-on-dark);
	font-size: 13px;
}

#topbar a {
	color: var(--c-on-dark);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: .6rem .75rem;
	display: inline-block;
}

#topbar a:hover {
	text-decoration: underline;
}

@media (max-width: 991px) {
	#topbar {
		display: none;
	}
}

/* ============================
	BANNER / FASCIA PAGINE INTERNE
   ============================ */

.ink {
	background: url('../img/sfondo_carta.jpg') center center / cover no-repeat;
	width: 100%;
}

/* ============================
	HOME - HERO
   ============================ */

.hero {
	position: relative;
	background: var(--c-bg);
	overflow: hidden;
}

.hero__band {
	position: absolute;
	inset: 0;
	background: var(--c-band);
	z-index: 0;
}

.section-band {
	background: var(--c-band);
}

/* Divisore elegante tra sezioni (es. promozioni attive/terminate) */
.section-divider {
	position: relative;
	height: 1px;
	max-width: 1140px;
	margin: 2rem auto;
	background: rgba(41, 35, 92, .15);
}

.section-divider::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 10px;
	border-radius: var(--radius-round);
	background: var(--c-accent);
	transform: translate(-50%, -50%);
}

.hero__media {
	position: relative;
	z-index: 1;
}

.hero__media img,
.hero__placeholder {
	border-radius: var(--radius-card);
}

.hero__placeholder {
	width: 100%;
	aspect-ratio: 4/3;
	background: var(--c-surface);
	display: grid;
	place-items: center;
	color: var(--c-band);
}

/* ============================
	HOME - CARD SEZIONI
   ============================ */

.section-card {
	background: var(--c-surface);
	border-radius: var(--radius-card);
	padding: 2.5rem;
	box-shadow: 0 6px 18px rgba(41, 35, 92, .08);
	height: 100%;
}

/* Titolo card: h2 per corretta gerarchia, con resa visiva di un h3 */
.section-card__title {
	font-size: 28px;
	line-height: 34px;
	font-weight: var(--wNormal);
}

/* Testi secondari: colore + sfondo definiti insieme (WCAG 1.4.3 / F24) */
.section-card__text,
.promo-card__note {
	color: var(--c-text-muted);
	background-color: var(--c-surface);
}

.input-arrow {
	position: relative;
}

.input-arrow input {
	border: 1px solid var(--c-band);
	border-radius: 4px;
	padding: .75rem 3rem .75rem 1rem;
	width: 100%;
	font-family: var(--font), system-ui, sans-serif;
}

.input-arrow input:focus {
	outline: none;
	border-color: var(--c-primary);
}

.input-arrow .btn-circle {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	min-width: 34px;
}

/* ============================
	PROMOZIONI (card contenuti dinamici)
   ============================ */

.promo-card {
	background: var(--c-surface);
	border-radius: var(--radius-card);
	box-shadow: 0 6px 18px rgba(41, 35, 92, .08);
	overflow: hidden;
	height: 100%;
}

.promo-card__body {
	padding: 1.5rem;
}

.promo-card .banner img {
	display: block;
	width: 100%;
}

/* Promozioni terminate: card in sola lettura, senza pulsanti/link,
   compressa a 500px con pulsante di espansione in sovraimpressione */
.terminata {
	filter: grayscale(80%);
	position: relative;
	max-height: 500px;
	overflow: hidden;
	transition: max-height .3s ease;
}

.terminata.is-expanded {
	max-height: 3000px;
}

.terminata .promo-card__body {
	padding-bottom: 4rem;
}

.terminata::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6rem;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--c-surface) 75%);
	pointer-events: none;
}

.terminata.is-expanded::after {
	display: none;
}

.terminata__toggle {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	z-index: 2;
}

@media (max-width: 991px) {
	.button.partecipa {
		font-size: .85rem;
		padding: 10px 16px;
	}
}

/* ============================
	PULSANTI FLOTTANTI
   ============================ */

.floating-actions {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	z-index: 1030;
}

.floating-actions .btn-circle {
	width: 52px;
	height: 52px;
	min-width: 52px;
	font-size: 1.25rem;
	box-shadow: 0 6px 18px rgba(41, 35, 92, .25);
}

/* ============================
	MENU / HEADER
   ============================ */

#menu {
	background-color: var(--c-surface);
	position: sticky;
	top: 0;
	z-index: 1020;
}

#menu .container-fluid {
	background-color: var(--c-surface);
	min-height: 103px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--c-card-alt);
}

#logo {
	max-height: 55px;
	width: auto;
}

@media (min-width: 992px) {
	#menu_list {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}
}

#attiva_menu {
	max-width: 30px;
	margin:10px 25px;
	cursor: pointer;
}

.bi-list {
  	font-size: 2rem;
  	color: var(--c-primary);
}

#menu_list li {
	list-style-type: none;
	padding-left: 2%;
	padding-right: 2%;
}

#menu_list li a {
	display: block;
	text-align: center;
	text-decoration: none;
	padding: 5px 10px;
	color: var(--c-primary);
	font-family: var(--font), system-ui, sans-serif;
	font-weight: var(--wNormal);
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
    border-bottom: 2px solid transparent;
}

@media (max-width: 991px) {
	#menu_list li {
		float: none;
	}
	#menu_list li a {
		text-align: right;
    	font-size: 15px;
	}
	#menu_list.menu_top {
		display: flex !important;
		position: absolute;
		top: 103px;
		right: 0;
		background: var(--c-surface);
		box-shadow: 0 6px 18px rgba(41, 35, 92, .12);
		padding: 1rem 1.5rem !important;
		width: 100%;
	}
}

#menu_list li a:hover, #menu_list li a.active {
	text-decoration: none !important;
	font-weight: var(--wBold);
	color: var(--c-primary);
    border-bottom: 2px solid var(--c-accent);
}

li.d-lg-inline-block {
	font-size: 1.4rem;
	color: var(--c-primary);
}

/* ============================
	FORM
   ============================ */

#errore,
#errore_ocr {
	color: #ac182d;
	font-weight: var(--wBold);
	text-align: center;
	font-size: 24px;
}

label, input, select {
  	color: var(--c-primary);
	font-size: 1.1rem;
}

p.col-1 {
	width: 1%;
}

.form-group {
	margin-bottom: 15px;
}

.form-control, .form-select {
	border-radius: 4px;
	border: 1px solid var(--c-band);
}

.form-control:focus, .form-select:focus {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 .2rem rgba(41, 35, 92, .15);
}

.bi-info-circle-fill {
	color: var(--c-primary);
	-webkit-text-stroke: 1px var(--c-on-dark);
}

.bi-info-circle-fill:hover {
	color: var(--c-on-dark);
	-webkit-text-stroke: 1px var(--c-primary);
}

/* ============================
	FOOTER
   ============================ */

footer {
	background: var(--c-card-alt);
}

footer #logo-footer {
	max-height: 60px;
	width: auto;
}

footer p {
	color: var(--c-primary);
	font-family: var(--font), system-ui, sans-serif;
	font-weight: var(--wNormal);
	font-style: normal;
	text-align: center;
}

footer b, footer a {
	color: var(--c-primary);
}

footer p a {
	color: var(--c-primary);
	text-decoration: underline;
	font-weight: var(--wNormal);
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: .6px;
}

footer a:hover,
footer a:active,
footer a:focus {
	color: var(--c-accent);
}

.social {
	fill: var(--c-primary);
	stroke: var(--c-primary);
	width: 25px;
	height: 25px;
}

.social:hover,
.social:active,
.social:focus {
	fill: var(--c-accent);
	stroke: var(--c-primary);
}

.social-link {
	text-decoration: none !important;
}

@media(max-width:576px) {
	.mail_info {
		word-break: break-all;
	}
}

/* ============================
	COOKIE
   ============================ */

#cookie-policy-content > h3, #privacy-cookie-content > h3 {
	font-size: 3rem;
}

#cookie-bar {
  padding: 15px;
  background: var(--c-topbar);
  color: #fff;
  font-family: var(--font), system-ui, sans-serif;
  z-index: 1040;
  position: fixed;
  bottom: 0px;
  width: 100%;
	font-size: 0.8em;
}

/* ============================
	STORICO PARTECIPAZIONI (profilo)
   ============================ */

.storico-table {
	--bs-table-color: var(--c-text);
	--bs-table-bg: transparent;
	border-color: var(--c-band);
}

.storico-table thead th {
	background: var(--c-primary);
	color: var(--c-on-dark);
	font-weight: var(--wBold);
	text-transform: uppercase;
	border: 0;
	padding: var(--sp-30) var(--sp-40);
}

.storico-table tbody td {
	padding: var(--sp-30) var(--sp-40);
}

.storico-table tbody tr:nth-child(even) td {
	background: var(--c-card-alt);
}

.storico-img {
	width: 160px;
}

.storico-img img {
	border-radius: var(--radius-card);
}

@media(max-width:576px) {
	.storico-img {
		width: 100px;
	}
}

/* ============================
	BANNER TOP (pagine interne)
   ============================ */

.overline--banner {
	font-size: 26px;
	letter-spacing: 1.32px;
	margin-bottom: 1rem;
}

.banner-top__logo {
	max-height: 180px;
	max-width: 100%;
	width: auto;
}
