/*
Theme Name:     Videeco X
Theme URI:      https://videeco.com/
Description:    Astra child theme.
Author:         Videeco
Author URI:     https://videeco.com/niccolo-perazza/
Template:       astra
Version:        0.2.0
*/

/* ============================================
   Header — menu primario
   ============================================ */
#ast-hf-menu-1 { flex-wrap: nowrap; }

#ast-hf-menu-1 > li > a {
	padding-left: 12px;
	padding-right: 12px;
	font-size: 14px;
	white-space: nowrap;
}

@media (max-width: 1100px) {
	#ast-hf-menu-1 > li > a {
		padding-left: 8px;
		padding-right: 8px;
		font-size: 13px;
	}
}

/* ============================================
   Content — padding verticale
   ============================================ */
.site-content > .ast-container > #primary {
	padding-top: 48px;
	padding-bottom: 48px;
}

@media (max-width: 921px) {
	.site-content > .ast-container > #primary { padding-top: 32px; padding-bottom: 32px; }
}

@media (max-width: 544px) {
	.site-content > .ast-container > #primary { padding-top: 24px; padding-bottom: 24px; }
}

/* ============================================
   Home — nasconde il titolo "Home" sopra l hero
   ============================================ */
.page-template-default.page-id-5 .entry-header,
.home .entry-header { display: none; }

/* ============================================
   Hero (Home) — full-bleed
   ============================================ */
.tsn-hero {
	margin-left:  calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 96px 32px;
}

.tsn-hero h1 {
	color: #fff !important;
	font-size: clamp(32px, 5vw, 56px) !important;
}

.tsn-hero-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: transform .15s ease, background .15s ease, color .15s ease;
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255,255,255,0.7);
}

.tsn-hero-btn:hover {
	background: rgba(255,255,255,0.12);
	border-color: #fff;
	color: #fff;
	transform: translateY(-1px);
}

.tsn-hero-btn--primary {
	background: #2E4A6B;
	border-color: #2E4A6B;
	color: #fff;
}

.tsn-hero-btn--primary:hover {
	background: #1E3550;
	border-color: #1E3550;
}

@media (max-width: 544px) {
	.tsn-hero { padding: 56px 20px; }
}

/* ============================================
   Bottoni generici tsn-btn
   ============================================ */
.tsn-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.tsn-btn--primary {
	background: #2E4A6B;
	color: #fff !important;
	border: 2px solid #2E4A6B;
}

.tsn-btn--primary:hover {
	background: #1E3550;
	border-color: #1E3550;
	color: #fff !important;
}

.tsn-btn--ghost {
	background: transparent;
	color: #2E4A6B !important;
	border: 2px solid #D4E0EE;
}

.tsn-btn--ghost:hover {
	background: #D4E0EE;
	color: #0D2A47 !important;
}

/* ============================================
   Card (Corsi)
   ============================================ */
.tsn-card {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(13,42,71,0.05);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tsn-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(13,42,71,0.10);
	border-color: #D4E0EE;
}

.tsn-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	border-bottom: 1px solid #E5E7EB;
	padding-bottom: 16px;
	margin-bottom: 16px;
}

.tsn-card-head h3 {
	color: #0D2A47;
	font-size: 22px;
}

.tsn-card-price {
	color: #2E4A6B;
	font-size: 24px;
	font-weight: 700;
	text-align: right;
	line-height: 1.2;
	white-space: nowrap;
}

.tsn-card-price small {
	display: block;
	font-size: 12px;
	color: #6B7280;
	font-weight: 500;
	margin-top: 2px;
}

.tsn-card ul li { margin-bottom: 4px; }

/* ============================================
   Specialità — griglia 3 colonne responsiva
   ============================================ */
.tsn-spec-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 32px 0 48px;
}

@media (max-width: 921px) {
	.tsn-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 544px) {
	.tsn-spec-grid { grid-template-columns: 1fr; gap: 16px; }
}

.tsn-spec-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tsn-spec-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(13,42,71,0.10);
	border-color: #D4E0EE;
}

.tsn-spec-img img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.tsn-spec-body {
	padding: 20px 22px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tsn-spec-body h3 {
	margin: 0 0 12px;
	font-size: 18px;
	color: #0D2A47;
}

.tsn-spec-body p { font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.tsn-spec-body ul { font-size: 14px; line-height: 1.55; margin: 0 0 6px 18px; }
.tsn-spec-body ul li { margin-bottom: 4px; }
