@charset "utf-8";

/*	-------------------------------------------------------------------------- */
/*	Header "Corsi & Seminari" e popup di accesso (comuni a tutte le pagine)
/*	Valori e regole dal PoC approvato (.works/poc_corsi_tosse_1.html)
/*	Misure in px: indipendenti dal font-size in vw di global.css
/*	-------------------------------------------------------------------------- */

	:root {
		--hc-red: #ee253e;
		--hc-red-dark: #c81a30;
		--hc-ink: #161616;
		--hc-muted: #6b6b6b;
		--hc-line: #e7e7e7;
		--hc-radius: 14px;
		--hc-logo-h: 96px;
	}

/*	Header */
	.hc-hdr, .hc-hdr * { box-sizing: border-box; }
	.hc-hdr { background: #ffffff; border-bottom: 2px solid var(--hc-red); font-family: "Google Sans Flex", system-ui, sans-serif; color: var(--hc-ink); }
	.hc-hdr-in { max-width: 1200px; margin: 0 auto; padding: 24px 24px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
	.hc-brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--hc-ink); }
	.hc-brand:visited, .hc-brand:active { color: var(--hc-ink); }
	.hc-brand img { display: block; height: var(--hc-logo-h); width: auto; }
	.hc-brand-txt { display: inline-flex; flex-direction: column; justify-content: space-between; height: var(--hc-logo-h); }
	.hc-brand-txt > span { display: block; font-size: 34px; line-height: 25px; font-weight: 400; text-transform: uppercase; text-align: justify; text-align-last: justify; white-space: nowrap; }
	.hc-brand-txt > span.hc-sub { color: var(--hc-red); font-size: 22px; line-height: 16px; text-align: left; text-align-last: left; letter-spacing: .06em; }
	.hc-hdr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

	.hc-btn-login { display: inline-flex; font-family: inherit; align-items: center; gap: 8px; background: var(--hc-red); color: #ffffff; border: 0; border-radius: 10px; padding: 9px 18px; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; text-decoration: none; transition: background .15s; }
	.hc-btn-login:hover { background: var(--hc-red-dark); }

	.hc-user { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
	.hc-user-link, .hc-user-link:visited { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hc-ink); font-size: 14px; font-weight: 600; line-height: 1.25; }
	.hc-av { width: 40px; height: 40px; color: var(--hc-red); display: grid; place-items: center; flex: none; }
	.hc-av svg { width: 30px; height: 30px; display: block; }
	.hc-user-txt small { display: block; color: var(--hc-muted); font-size: 12px; font-weight: 400; }
	.hc-user-link:hover .hc-user-txt small { color: var(--hc-red); }

/*	"Esci": pulsante secondario bordato (stesso raggio dei campi dei form), mai sottolineato */
	.hc-exit, .hc-exit:visited { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1.5px solid var(--hc-red); border-radius: 10px; background: #ffffff; color: var(--hc-red); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
	.hc-exit i { font-size: 12px; }
	/* "Esci" e' un <button>: stessa misura dell'ex link (il link usava box-sizing content-box) */
	button.hc-exit { box-sizing: content-box; margin: 0; }

	/* Link "Salta al contenuto": fuori schermo, compare solo con il focus da tastiera */
	.hc-skip { position: absolute; left: -9999px; top: 0; z-index: 100000; background: #ffffff; color: var(--hc-ink); font-family: "Google Sans Flex", system-ui, sans-serif; font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 16px; border: 2px solid var(--hc-red); border-radius: 8px; }
	.hc-skip:focus, .hc-skip:focus-visible { left: 8px; top: 8px; color: var(--hc-ink); outline: none; }
	#contenuto { display: block; height: 0; overflow: hidden; outline: none; }
	.hc-exit:hover, .hc-exit:focus, .hc-exit:focus-visible, .hc-exit:active { background: var(--hc-red); color: #ffffff; text-decoration: none; }

	.hc-social { display: flex; gap: 16px; font-size: 17px; }
	.hc-social a, .hc-social a:visited { color: var(--hc-ink); transition: color .15s; text-decoration: none; }
	.hc-social a:hover { color: var(--hc-red); }

/*	Le pagine interne avevano spazio in alto per la vecchia header fissa: ora la header e nel flusso */
	body.Pages { padding-top: 0 !important; }

/*	Pulsante rosso a pillola (usato anche nella scheda corso) */
	.hc-btn-red { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--hc-red); color: #ffffff; border: 0; border-radius: 10px; padding: 13px 26px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; text-decoration: none; transition: background .15s; }
	.hc-btn-red:hover { background: var(--hc-red-dark); }

	@media (max-width: 980px) {
		:root { --hc-logo-h: 80px; }
		.hc-brand-txt > span { font-size: 28px; line-height: 21px; }
		.hc-brand-txt > span.hc-sub { font-size: 18px; line-height: 13px; }
	}

	@media (max-width: 760px) {
		:root { --hc-logo-h: 64px; }
		.hc-brand { gap: 10px; }
		.hc-brand-txt > span { font-size: 22px; line-height: 16px; }
		.hc-brand-txt > span.hc-sub { font-size: 14px; line-height: 10px; }
	/*	Su mobile resta solo l'avatar (porta al pannello utente, dove c'e' "Disconnetti") */
		.hc-user-txt { display: none; }
		.hc-exit { display: none; }
	}

	@media (max-width: 560px) {
		:root { --hc-logo-h: 56px; }
		.hc-hdr-in { padding: 14px 16px; gap: 12px; }
		.hc-brand { gap: 10px; }
		.hc-brand-txt > span { font-size: 18px; line-height: 13px; }
		.hc-brand-txt > span.hc-sub { font-size: 12px; line-height: 9px; letter-spacing: .04em; }
		.hc-social { display: none; }
		.hc-btn-login { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 16px; }
		.hc-btn-login .hc-lbl { display: none; }
		.hc-av { width: 44px; height: 44px; }
		.hc-av svg { width: 32px; height: 32px; }
	}

/*	-------------------------------------------------------------------------- */
/*	Componente ModalPopup (popup con iframe, es. recupera password): stesso aspetto della popup di accesso
/*	Solo frontend: il CSS del componente (core/global/scripts/jquery-modalpopup) e' condiviso con il backend e non si tocca.
/*	Le misure e la posizione le imposta il JS del componente (inline).
/*	-------------------------------------------------------------------------- */

	body .ModalPopupContainer { background-color: rgba(20,20,20,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
	body .ModalPopupContainer .ModalPopup { background-color: #ffffff; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }

/*	Posizione: sempre centrata e dentro lo schermo. Il componente calcola left/top inline come (schermo - popup)/2 e con popup piu grandi
/*	dello schermo (tablet verticale, telefono in orizzontale) i valori diventano negativi: bordi e pulsante di chiusura restavano fuori. Con
/*	max-width/max-height la popup si restringe e il contenuto scorre (iframe con scroll, oppure la popup stessa per quelle senza .ModalPopupFill) */
	body .ModalPopupContainer .ModalPopup { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); overflow: auto !important; }
	body .ModalPopupContainer .ModalPopup iframe { display: block; vertical-align: top; }

/*	Popup che dichiarano .ModalPopupFill (es. recupera password): senza cornice interna, l'iframe riempie tutta la popup */
	body .ModalPopupContainer.ModalPopupFill .ModalPopup iframe { width: 100% !important; height: 100% !important; margin: 0 !important; }

	@media (max-width: 860px), (max-height: 600px) {
	/*	tablet in verticale, finestre strette e telefoni in orizzontale: le popup .ModalPopupFill (accesso, fruitore, cambio email/password, recupero)
	/*	sono a tutto schermo; le altre restano centrate e scorrono */
		body .ModalPopupContainer.ModalPopupFill { background-color: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
		body .ModalPopupContainer.ModalPopupFill .ModalPopup { left: 0 !important; top: 0 !important; transform: none; width: 100% !important; height: 100% !important; max-width: none; max-height: none; border-radius: 0; box-shadow: none; }
		body .ModalPopupContainer.ModalPopupFill .ModalPopup iframe { border: 0; }
	}

	@media (max-width: 560px) {
	/*	smartphone: popup a tutto schermo, come la popup di accesso */
		body .ModalPopupContainer { background-color: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
		body .ModalPopupContainer .ModalPopup { left: 0 !important; top: 0 !important; transform: none; width: 100% !important; height: 100% !important; max-width: none; max-height: none; border-radius: 0; box-shadow: none; }
		body .ModalPopupContainer.ModalPopupFill .ModalPopup iframe { border: 0; }
	}
