:root {
  	--primary: #0d5a94;
  	--primary-dark: #083d5f;
  	--accent: #ff7a00;
  	--green: #34a853;
  	--dark-blue: #1e3a5f;
  	--light-gray: #f9fafb;
  	--border-gray: #e5e7eb;
  	--text-dark: #1f2937;
  	--text-light: #6b7280;
}
body {
  	color: #364854;
}
h1,h2,h3,h4,h5,h6 {
	margin-top: 0;
}

.container {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
@media (min-width: 1440px) {
    .container {
        max-width:1410px;
    }
}
@media (min-width: 1600px) {
    .container {
        max-width:1570px;
    }
}


@media (min-width: 1440px){
	.inner_boxed {
		max-width: 90%;
		margin-left: auto;
		margin-right: auto;
	}
}
@media (min-width: 1600px){
	.inner_boxed {
		max-width: 75%;
	}
}


header.tb-section.boxed #stickup-logo .header-item-wrapper {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
header .logo img {
	width: 300px;
}
@media (min-width: 1025px){
	.header-item-search {
		margin-left: unset;
	}
	.header-item-nav {
		margin-left: auto;
	}
}
@media (max-width: 1024px){
	.header-item-logo {
		margin-right: 1rem;
	}
	.header-item-hamburger {
		margin-right: 0;
		margin-left: 1rem;
	}
}

.nav__hamburger {
	margin-bottom: 2rem;
}

.header-item-socials {
	margin-left: 1rem;
}
ul.social-links {
	margin: 0;
	padding: 0;
	list-style: none;

	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem
}
.offcanvas ul.social-links {
	justify-content: flex-start;
}
#footer-colophon ul.social-links {
	justify-content: center;
	margin-bottom: 1.5rem;
}
#footer-colophon ul.social-links li a {
	font-size: 1.5rem;
	color: white;
}
.offcanvas ul.social-links li a {
	font-size: 1.5rem;
}
@media (max-width: 1024px){
	.header-item-socials {
		display: none;
	}
}



/* ============================================
   HERO SECTION
   ============================================ */

.hero-bg {
	position: relative;
	height: 500px;
	/*background-image: url('https://images.unsplash.com/photo-1554958181-86e85b1e5c39?w=1200&h=800&fit=crop');*/
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
}

.hero-content {
	position: relative;
	z-index: 10;
	max-width: 600px;
	color: white;
	padding: 0 1.5rem;
}
.hero-content h1 {
	font-size: 2.5rem;
	font-weight: bold;
	margin-bottom: 1rem;
	line-height: 1.2;
}
.hero-content p {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	font-weight: 300;
}
.benefits-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2rem;
}
.benefit {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
	font-size: 0.95rem;
}
.benefit-icon {
	width: 24px;
	height: 24px;
	color: var(--accent);
	flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
	padding: 0.75rem 2rem;
	border: none;
	border-radius: 0.375rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1rem;

	text-decoration: none;
	display: block;
	max-width: fit-content;
}
.btn.center {
	margin-left: auto;
	margin-right: auto;
}

.btn-orange {
	background-color: var(--accent);
	color: white;
}

.btn-orange:hover {
  	background-color: #e66a00;
}

.btn-primary {
	background-color: var(--primary);
	color: white;
}

.btn-primary:hover {
  	background-color: var(--primary-dark);
}


body.page #content_main .post_thumb {
	margin-bottom: 1rem;
}
body.page-template-template-accademia .member_title,
body.page-template-templates #content_main .post_title__heading {
	text-align: center;
}
body.page-template-template-accademia .content_holder {
	background-color: unset;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

.why-choose-us {
  	/*background-color: var(--light-gray);*/
  	/*padding: 4rem 1.5rem;*/
}
.why-choose-us .content_holder {
	background-color: var(--light-gray);
}

.why-choose-us h2 {
	font-size: 2.25rem;
	color: var(--primary);
	text-align: center;
	margin-bottom: 3rem;
	font-weight: bold;
}

.why-grid {
	display: grid;
	/*grid-template-columns: 1fr 1fr;*/
	grid-template-columns: repeat(2, 1fr);
	gap: 3rem;
	margin-bottom: 2rem;
	align-items: center;
}
@media (max-width: 1024px){
	.why-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media (min-width: 1440px){
	.why-grid {
		max-width: 90%;
		margin-left: auto;
		margin-right: auto;
	}
}
@media (min-width: 1600px){
	.why-grid {
		max-width: 75%;
	}
}

.why-benefits {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.benefit-item {
	display: flex;
	gap: 1rem;
}

.benefit-item .icon {
	width: 28px;
	height: 28px;
	color: var(--accent);
	flex-shrink: 0;
	margin-top: 0.25rem;
}

.benefit-item h3 {
	font-size: 1.1rem;
	color: var(--primary);
	font-weight: bold;
	margin-bottom: 0.5rem;
	margin-top: 0;
}

.benefit-item p {
	color: var(--text-light);
	font-size: 0.95rem;
}

.why-image {
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-radius: 0.5rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-subtitle {
	text-align: center;
	font-weight: bold;
	color: var(--primary);
	font-size: 1.1rem;
	margin-top: 2rem;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */

.programs {
  	/*padding: 4rem 1.5rem;*/
  	/*background-color: white;*/
}

.programs h2 {
	font-size: 2.25rem;
	color: var(--primary);
	text-align: center;
	margin-bottom: 3rem;
	font-weight: bold;
}

.programs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}
@media (min-width: 768px) and (max-width: 1024px){
	.programs-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 767px){
	.programs-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
@media (min-width: 1440px){
	.programs-grid {
		max-width: 90%;
		margin-left: auto;
		margin-right: auto;
	}
}
@media (min-width: 1600px){
	.programs-grid {
		max-width: 75%;
	}
}

.program-card {
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}
.program-card:hover {
  	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.program-card a {
	text-decoration: none;
}
/*
.program-card.featured {
  	border: 2px solid var(--primary);
}
*/
.program-header {
	padding: 1rem;
	text-align: center;
	color: white;
	font-weight: bold;
	font-size: 1.25rem;
	text-transform: uppercase;
}

.program-card.green .program-header {
  	background-color: var(--green);
}

.program-card.blue .program-header {
  	background-color: var(--primary);
}

.program-card.dark-blue .program-header {
  	background-color: var(--dark-blue);
}

.program-description {
	padding: 1.5rem;
	text-align: center;
	background-color: var(--light-gray);
	color: var(--text-dark);
	font-weight: 600;
}

.programs .btn {
	display: block;
	margin: 0 auto;
}

/* ============================================
   INSTRUCTORS SECTION
   ============================================ */

.instructors {
  	/*background-color: var(--light-gray);*/
  	/*padding: 4rem 1.5rem;*/
}
.instructors .content_holder {
	background-color: var(--light-gray);
}

.instructors h2 {
	font-size: 2.25rem;
	color: var(--primary);
	text-align: center;
	margin-bottom: 3rem;
	font-weight: bold;
}

.instructors-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-bottom: 2rem;
}
@media (max-width: 1024px){
	.instructors-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
@media (min-width: 1440px){
	.instructors-grid {
		max-width: 90%;
		margin-left: auto;
		margin-right: auto;
	}
}
@media (min-width: 1600px){
	.instructors-grid {
		max-width: 75%;
	}
}

.member-card,
.instructor-card {
	position: relative;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	background-color: white;
}
.member-card img,
.instructor-card img {
	width: 100%;
	/*height: 320px;*/
	object-fit: cover;
	display: block;
}
@media (max-width: 1024px){
	.member-card img,
	.instructor-card img {
		height: auto;
	}
}

.member-overlay,
.instructor-overlay,
.instructor-overlay-blue {
	position: absolute;
	left: 0;
	right: 0;
	padding: 1.5rem;
	color: white;
	z-index: 10;
}
.instructor-overlay,
.instructor-overlay-blue {
	bottom: 4.5rem;
}
.agonista-overlay {
	bottom: 0;
}
.member-overlay,
.instructor-overlay {
  	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.instructor-overlay-blue {
  	background: linear-gradient(to top, rgba(13, 90, 148, 0.8), transparent);
}

.member-overlay h3,
.instructor-overlay h3,
.instructor-overlay-blue h3 {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 0.25rem;
}

.member-overlay p,
.instructor-overlay p,
.instructor-overlay-blue p {
	font-size: 0.9rem;
	opacity: 0.9;
}

.member-info,
.instructor-info {
	padding: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--accent);
	font-weight: 600;
	font-size: 1rem;
}
body.single .instructor-info {
	padding: 0;
	margin-bottom: 1.5rem;
}

.instructor-info.light {
  	background-color: #eff6ff;
}
.instructors .btn {
	display: block;
	margin: 0 auto;
}

.icon-small {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ============================================
   EVENTS SECTION
   ============================================ */

.events {
  	/*background-color: white;*/ 
  	/*padding: 4rem 1.5rem;*/
}

.events h2 {
	font-size: 2.25rem;
	color: var(--primary);
	text-align: center;
	margin-bottom: 3rem;
	font-weight: bold;
}

.events-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}
@media (max-width: 1024px){
	.events-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
@media (min-width: 1440px){
	.events-grid {
		max-width: 90%;
		margin-left: auto;
		margin-right: auto;
	}
}
@media (min-width: 1600px){
	.events-grid {
		max-width: 75%;
	}
}

.event-card {
	position: relative;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
	height: 220px;
}
@media (max-width: 1024px){
	.event-card {
		height: auto;
	}
}
.event-card:hover {
  	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.event-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.5rem;
	color: white;
	z-index: 10;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;

	background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
}

.green-overlay {
  	background: linear-gradient(to top, rgba(52, 168, 83, 0.9), transparent);
}

.blue-overlay {
  	background: linear-gradient(to top, rgba(13, 90, 148, 0.9), transparent);
}

.dark-blue-overlay {
  	background: linear-gradient(to top, rgba(30, 58, 95, 0.9), transparent);
}

.event-date {
	font-size: 0.75rem;
	font-weight: bold;
	letter-spacing: 0.05em;
	opacity: 0.95;

	margin-bottom: 0;
}

.event-overlay h3 {
	/*font-size: 1.5rem;*/
	font-size: 1.2rem;
	font-weight: bold;
}

.events .btn {
	display: block;
	margin: 0 auto;
}


.event-dates {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}


body.archive .archive_loop .post_item figure {
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    border-radius: 0.5rem;
    overflow: hidden;
}
body.archive .archive_loop article .post_desc a.post_readmore_h {
	border-radius: 0.375rem;
}


body.archive .category_title .category_title__heading {
	text-align: center;
}
body.archive .category_title .category_title__heading.program-header {
	margin-bottom: 0;
	font-size: 2rem;
}

/*
@media (min-width: 1440px) {
    body.archive .category_title,
	body.archive .category_istruttori {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (min-width: 1600px) {
    body.archive .category_title,
	body.archive .category_istruttori {
        max-width: 75%;
    }
}
*/

body.archive.tax-team_taxonomy .category_title,
body.archive.tax-team_taxonomy .category_istruttori {
    margin-bottom: 3rem;
}
body.archive.tax-team_taxonomy .category_title .program-description {
	text-align: left;
}
body.archive.tax-team_taxonomy .category_members .member_title {
	margin-bottom: 0;
	text-align: center;
}



article.member_item {
	position: relative;
}
article.member_item .member_h {
	position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
} 


.member_categories {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.member_categories .category-badge {
	text-decoration: none;
	color: white;
	font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    text-transform: uppercase;
}
.member_excerpt {
	margin-top: 1.5rem;
}



.af_title_sidebar {
	border-bottom: none;
}
.af_title_sidebar__heading {
	font-size: 1.5rem;
}
.latest-posts article:not(:last-child) {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.latest-posts article .post_thumb {
	margin-bottom: 0;
}
.latest-posts article .row_inner_small_post {
	gap: 0.5rem;
}
.latest-posts {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
body.single-post .sidebar_articoli,
body.single-eventi .sidebar_eventi {
	margin-bottom: 2rem;
}
body.single .sidebar article .post_title__heading {
	font-size: 0.9rem;
	margin-bottom: 0.3rem;

	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.prefooter-wrap {
    text-align: center;
    color: #fff;
    padding: 1.5rem 0;
}
.prefooter-wrap .cta-banner__title {
    font-size: 2rem;
    font-weight: 700;
	margin-top: 0;
    margin-bottom: 1.5rem;
}
