@charset "utf-8";

/*	-------------------------------------------------------------------------- */
/*	Homepage Corsi & Seminari: box CartaCorsi, sezioni, badge
/*	Valori e regole dal PoC approvato (.works/poc_corsi_tosse_1.html)
/*	Misure in px: indipendenti dal font-size in vw di global.css
/*	-------------------------------------------------------------------------- */

	body.hm-home { margin: 0; background: #f6f6f4; font-family: "Google Sans Flex", system-ui, sans-serif; color: var(--hc-ink); -webkit-font-smoothing: antialiased; }
	.hm-main, .hm-main * { box-sizing: border-box; }
	.hm-main { max-width: 1200px; margin: 0 auto; padding: 36px 24px 72px; }

/*	CartaCorsi */
	.hm-carta { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(120deg, #141414 0%, #262626 60%, #3a0f15 100%); color: #ffffff; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; padding: 30px 36px; }
	.hm-carta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(238,37,62,.45), transparent 65%); pointer-events: none; }
	.hm-cc { position: relative; width: 200px; aspect-ratio: 1.586; border-radius: 12px; background: linear-gradient(135deg, #ff3b52, #b5142a); box-shadow: 0 14px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-6deg); overflow: hidden; }
	.hm-cc::before { content: ""; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; border: 18px solid rgba(255,255,255,.08); }
	.hm-cc-top { display: flex; justify-content: space-between; align-items: flex-start; }
	.hm-cc-name { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
	.hm-cc-chip { width: 28px; height: 21px; border-radius: 4px; background: linear-gradient(135deg, #f6d77a, #c9a13d); }
	.hm-cc-season { font-size: 24px; font-weight: 700; letter-spacing: .02em; line-height: 1; }
	.hm-cc-holder { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: 6px; }
	.hm-carta-txt { position: relative; z-index: 1; }
	.hm-carta h2 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: #ffffff; text-transform: none; }
	.hm-carta p { margin: 0; color: #d6d6d6; font-size: 15px; line-height: 1.55; max-width: 540px; }
	.hm-carta p b { color: #ffffff; font-weight: 600; }
	.hm-carta-cta { position: relative; z-index: 1; text-align: center; }
	.hm-btn-red, .hm-btn-red:visited { 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; }
	.hm-btn-red:hover { background: var(--hc-red-dark); color: #ffffff; }
	.hm-carta-cta small { display: block; margin-top: 9px; color: #aaaaaa; font-size: 12px; }

/*	Sezioni */
	.hm-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 52px 0 22px; }
	.hm-sec-head h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--hc-ink); text-transform: none; }
	.hm-sec-head > span { color: var(--hc-muted); font-size: 14px; }
	.hm-tagbox { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #ffffff; border: 1px solid var(--hc-line); border-radius: 16px; padding: 22px 28px; margin: 0 0 28px; }
	.hm-carta + .hm-tagbox { margin-top: 40px; }
	.hm-sec-head.hm-sem { margin-top: 64px; }
	.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
	.hm-nulla { display: flex; align-items: center; justify-content: center; min-height: 40vh; padding: 24px; text-align: center; color: var(--hc-muted); font-size: 18px; line-height: 1.5; }
	.hm-empty { background: #ffffff; border: 1px dashed #d6d6d6; border-radius: var(--hc-radius); padding: 48px 24px; text-align: center; color: var(--hc-muted); font-size: 15px; }

/*	Badge */
	.hm-corso { background: #ffffff; border-radius: var(--hc-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05); transition: box-shadow .2s; }
	.hm-corso:hover { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.10); }
	.hm-corso-img { aspect-ratio: 450 / 220; background: #dddddd; }
	.hm-corso-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
	.hm-corso-body { padding: 18px 20px 0; flex: 1; }
	.hm-corso h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .01em; color: var(--hc-ink); }
	.hm-corso p { margin: 0; color: var(--hc-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.hm-corso-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 18px; margin-top: 16px; border-top: 1px solid var(--hc-line); }
	.hm-dates { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
	.hm-dates i { color: var(--hc-red); font-size: 15px; }
	.hm-btn-info, .hm-btn-info:visited { 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; white-space: nowrap; transition: background .15s; margin-left: auto; }
	.hm-btn-info:hover { background: var(--hc-red-dark); color: #ffffff; }

	@media (max-width: 980px) {
		.hm-grid { grid-template-columns: repeat(2, 1fr); }
	}

	@media (max-width: 760px) {
		.hm-carta { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; gap: 24px; }
		.hm-cc { margin: 0 auto; }
		.hm-carta p { margin: 0 auto; }
		.hm-grid { grid-template-columns: 1fr; }
	}

	@media (max-width: 560px) {
		.hm-main { padding: 24px 16px 56px; }
		.hm-carta { padding: 24px 18px; border-radius: 16px; }
		.hm-carta h2 { font-size: 22px; }
		.hm-sec-head { margin: 40px 0 16px; }
		.hm-sec-head h2 { font-size: 22px; }
		.hm-sec-head.hm-sem { margin-top: 48px; }
		.hm-tagbox { padding: 16px 18px; border-radius: 14px; margin-bottom: 20px; }
		.hm-carta + .hm-tagbox { margin-top: 28px; }
		.hm-corso-body { padding: 16px 16px 0; }
		.hm-corso-foot { padding: 14px 16px 16px; }
		.hm-empty { padding: 36px 18px; }
	}

	/* Titolo principale della pagina (h1) per i motori di ricerca e i lettori di schermo: nascosto alla vista, il design usa i titoli di sezione */
	.hm-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
