/*
GENERALE
*/

p, li, div { font-size: 18px; line-height: 30px; color: #3c3c3b; }
.page-body ul, ul.elenco-testo { padding-left: 30px; }
.page-body p, .page-body li { text-align: justify; }
.title h1 { color: #540f1a; }

/*
BOTTONI
*/

.readmore a { outline: 0; }
.readmore a:hover,
.form-group .btn:hover { background-color: #6e1221; }
.readmore.readmore-primaria a { background-color: #becd00; }
.readmore.readmore-primaria a:hover { background-color: #FFF; color: #becd00; }
.readmore.readmore-secondaria a { background-color: #089dd9; }
.readmore.readmore-secondaria a:hover { background-color: #FFF; color: #089dd9; }

/*
FANCYBOX
*/

.fancybox-button div { background-color: #000; color: #FFF; }
.fancybox-button[disabled] div { color: #333; }

/*
PAGINA ERRORE 404
*/

.four-zero-page h2 { color: #540f1a; }
.four-zero-page h3 { color: #3c3c3b; }

/*
SIDEBAR
*/

.single-widgets { background-color: #FAFAFA; }
.rec_proprty p { font-size: 14px; line-height: 18px; }

/*
BLOG
*/

.blogImg, .class_Img { display: block; }
.blogImg .time_box, .class_Img .time_box { background-color: #540f1a; }
.blog_box { border-radius: 20px; overflow: hidden; }

/* News elenco (pagina interna) */
.bloggridWrp .blog_box {
	border: none;
	background: #fff;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bloggridWrp .blog_box:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.bloggridWrp .blog_box .blogImg img { width: 100%; height: auto; }
.bloggridWrp .blog_box .path_box {
	background: #fff;
	padding: 24px 26px 20px;
}
.bloggridWrp .blog_box h3 a {
	font-size: 20px;
	line-height: 1.4;
}

/* News singola (scheda) */
.class_left .class_Img {
	border-radius: 20px;
	overflow: hidden;
}
.class_left .class_Img img { width: 100%; height: auto; }
.class_left h2 {
	margin-top: 24px;
	font-size: 28px;
	line-height: 1.3;
}
.class_left article {
	background: #fff;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	margin-top: 20px;
}

/* Sidebar arrotondato */
.single-widgets {
	border-radius: 20px;
	overflow: hidden;
}

/* Sidebar sticky da desktop */
@media (min-width: 992px) {
	.bloggridWrp > .row > .col-md-4 {
		position: sticky;
		top: 120px;
		align-self: flex-start;
	}
}

/* Paginazione arrotondata */
.pagination-section .page-link {
	border-radius: 10px !important;
	margin: 0 3px;
	border-color: #eee;
	color: #540f1a;
}
.pagination-section .page-item.active .page-link,
.pagination-section .page-link:hover {
	background-color: #540f1a;
	border-color: #540f1a;
	color: #fff;
}

/*
PRE-HEADER
*/

.pre-header {
	background-color: #540f1a;
	padding: 4px 15px;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.pre-header-links {
	text-align: right;
}
.pre-header-links a {
	color: #fff;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.2s ease;
}
.pre-header-links a:first-child {
	margin-left: 0;
}
.pre-header-links a:not(:first-child)::before {
	content: '/';
	margin-left: 15px;
	margin-right: 15px;
	color: rgba(255, 255, 255, 0.3);
}
.pre-header-links a:hover {
	color: rgba(255, 255, 255, 0.7);
}

/* Nasconde il pre-header su mobile */
@media screen and (max-width: 990px) {
	.pre-header {
		display: none !important;
	}
}

/*
HEADER
*/

.logo-default { max-height: 70px; }

/* Header mobile: logo + bottone portale + hamburger sulla stessa riga */
.header-mobile-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}
.header-mobile-actions {
	display: none;
	align-items: center;
	gap: 12px;
}
.btn-portale-mobile {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	height: 44px;
	background-color: #540f1a;
	color: #fff;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.3s ease;
}
.btn-portale-mobile i {
	font-size: 16px;
}
.btn-portale-mobile:hover {
	background-color: #6e1221;
	color: #fff;
	text-decoration: none;
}

@media screen and (max-width: 990px) {
	.header-mobile-actions {
		display: flex;
	}
	/* Riposiziona il toggler dentro il flex container */
	.header-mobile-actions .navbar-toggler {
		position: static;
		margin: 0;
		border: none;
		padding: 8px;
	}
	/* Lineette hamburger bordeaux e più spesse */
	.header-mobile-actions .navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23540f1a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
		width: 30px;
		height: 30px;
	}
	/* Rimuove margin-top dal logo su mobile */
	.header-wrap .logo {
		margin-top: 0;
	}
	/* Nasconde il bottone Portale MY originale su mobile */
	.header_info {
		display: none !important;
	}
}
.navbar-light .navbar-nav .nav-link {
	padding: 12px 18px;
	margin: 22px 4px 22px;
	border-bottom: none;
}
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
	background-color: #540f1a;
	color: #fff;
	border-radius: 8px;
}

/*
MENU - FRECCE DROPDOWN
*/

/* Freccia dropdown dentro il link */
.navbar-nav > li.has-submenu .nav-link .dropdown-arrow {
	font-size: 10px;
	margin-left: 6px;
	transition: transform 0.3s ease;
	display: inline-block;
}
.navbar-nav > li.has-submenu:hover .nav-link .dropdown-arrow {
	transform: rotate(180deg);
}

/*
MENU - HOVER ARROTONDATO
*/

/* Stile hover arrotondato per le voci del menu principale */
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .nav-item:hover .nav-link {
	border-radius: 8px;
	background-color: #540f1a;
	color: #fff;
}

/* Stile hover arrotondato per le voci del sottomenu */
.submenu > li > a {
	transition: all 0.3s ease;
}
.submenu > li:hover > a,
.submenu > li > a:hover {
	border-radius: 6px;
}

/*
TENDINE DROPDOWN - STILE UNIFORME
Angoli squadrati sopra (dove tocca la navbar), arrotondati sotto
*/

/* Submenu normali */
.navbar-nav > li > ul.submenu {
	border-radius: 0 0 10px 10px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/*
MEGA-MENU SCUOLE
*/

/* Container del mega-menu */
.navbar-nav > li.has-megamenu {
	position: static;
}

.megamenu {
	position: absolute;
	left: 0;
	right: 0;
	top: 200%;
	background: #fff;
	padding: 20px 50px;
	z-index: 100;
	visibility: hidden;
	opacity: 0;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.navbar-nav > li.has-megamenu:hover > .megamenu {
	top: 100%;
	opacity: 1;
	visibility: visible;
}

/* Layout a colonne */
.megamenu-row {
	display: flex;
	gap: 40px;
	justify-content: center;
}

.megamenu-col {
	flex: 1;
	min-width: 0;
	max-width: 350px;
}

/* Singola scuola nel mega-menu */
.megamenu-school {
	margin-bottom: 15px;
}

.megamenu-school:last-child {
	margin-bottom: 0;
}

/* Badge della scuola (etichetta colorata) */
.school-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 4px;
}

.badge-primaria {
	background-color: #becd00;
	color: #3c3c3b;
}

.badge-secondaria {
	background-color: #089dd9;
}

.badge-liceo {
	background-color: #f39200;
}

/* Sede della scuola */
.school-sede {
	font-size: 13px;
	font-weight: 600;
	color: #3c3c3b;
	margin: 0 0 6px 0;
	padding-left: 2px;
}

/* Lista link della scuola */
.school-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.school-links li {
	margin-bottom: 1px;
}

.school-links li::before {
	content: '\2022';
	color: #999;
	margin-right: 8px;
}

.school-links a {
	color: #3c3c3b;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.school-links a:hover {
	color: #540f1a;
}

/* Colori link hover per scuola */
.megamenu-school-primaria .school-links a:hover {
	color: #becd00;
}

.megamenu-school-secondaria .school-links a:hover {
	color: #089dd9;
}

.megamenu-school-liceo .school-links a:hover {
	color: #f39200;
}

/* Mobile: menu dropdown */
@media screen and (max-width: 990px) {

	/*
	SUBMENU NORMALI SU MOBILE
	*/

	/* I submenu normali sono nascosti di default (già in style.css) */
	/* Mostriamo quando la voce ha classe .open */
	.navbar-nav > li.has-submenu.open > ul.submenu {
		display: block !important;
		background: #333;
		padding: 10px 0;
		margin: 0;
		border-radius: 0;
	}

	/* Stile link submenu su mobile */
	.navbar-nav > li > ul.submenu > li > a {
		color: rgba(255,255,255,0.9) !important;
		padding: 8px 25px !important;
		font-size: 14px;
	}

	.navbar-nav > li > ul.submenu > li > a:hover {
		background: rgba(255,255,255,0.1);
	}

	/* Rimuovi bordo sotto le voci submenu */
	.navbar-nav > li > ul.submenu > li {
		border-bottom: none;
	}

	/* Freccia dropdown ruota quando aperto */
	.navbar-nav > li.has-submenu.open .dropdown-arrow {
		transform: rotate(180deg);
	}

	/*
	MEGA-MENU SU MOBILE
	*/

	.megamenu {
		position: static;
		transform: none;
		display: none;
		background: #333;
		padding: 15px;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
	}

	/* Mostra mega-menu quando aperto (non hover su mobile) */
	.navbar-nav > li.has-megamenu.open > .megamenu {
		display: block;
	}

	.megamenu-row {
		flex-direction: column;
		gap: 20px;
	}

	.megamenu-col {
		min-width: auto;
		max-width: none;
	}

	.school-badge {
		font-size: 12px;
		padding: 4px 12px;
	}

	.school-sede {
		color: rgba(255,255,255,0.7);
		font-size: 13px;
	}

	.school-links a {
		color: rgba(255,255,255,0.9);
		font-size: 13px;
	}

	.school-links li::before {
		color: rgba(255,255,255,0.5);
	}

	.megamenu-school {
		margin-bottom: 20px;
		padding-bottom: 20px;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}

	.megamenu-school:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}
}

.header_info .search a:hover { background-color: #FFF; color: #540f1a; }
.loginwrp a { background: transparent; color: #540f1a; border: 2px solid #540f1a; transition: all 0.3s ease; }
.loginwrp a:hover { background-color: #540f1a; color: #fff; }
@media screen and (max-width: 1200px) {
	.header-wrap .col-lg-8 {
		-ms-flex: 0 0 83.33%;
		flex: 0 0 83.33%;
		max-width: 83.33%;
	}
}
@media screen and (max-width: 990px) {
	.navbar-light .navbar-nav .nav-link.active {
		background-color: #000;
	}
	.navbar-nav > li > a + i {
		top: 18px;
	}
	/* Riduce padding voci menu mobile */
	.navbar-light .navbar-nav .nav-link {
		padding: 12px 16px !important;
		font-size: 15px;
	}
	.navbar-nav .nav-item {
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}
	/* Pulsante X chiusura menu - allineato alle frecce */
	.close-toggler {
		position: fixed;
		right: 30px;
		top: 15px;
		background: #fff;
		color: #540f1a;
		border: none;
		width: 30px;
		height: 30px;
		padding: 0;
		margin: 0;
		font-size: 18px;
		line-height: 30px;
		text-align: center;
		cursor: pointer;
		float: none;
		z-index: 1001;
	}
	.close-toggler:hover {
		background: #540f1a;
		color: #fff;
	}
	/* Abbassa il contenuto del menu per lasciare spazio alla X */
	.navbar-nav {
		margin-top: 50px;
	}
}

/*
COLORI
*/

.bg-primaria { background-color: #becd00; }
.bg-primaria-chiaro { background-color: #FAFFCC; }
.bg-secondaria { background-color: #089dd9 }
.bg-secondaria-chiaro { background-color: #C2EFFF }
.bg-liceo { background-color: #f39200 }
.bg-liceo-chiaro { background-color: #FFDAA3; }
.bg-azzurro { background-color: #d9ebf8; }
.bg-grigio { background-color: #F4F4F4; }


/*
BREADCRUMB
*/

.innerHeading-wrap {
  padding: 60px 0;
  background: linear-gradient(135deg, #540f1a 0%, #7a1628 25%, #540f1a 50%, #3d0a13 75%, #540f1a 100%);
  background-size: 400% 400%;
  animation: innerHeadingShimmer 8s ease infinite;
  position: relative;
  overflow: hidden;
}
.innerHeading-wrap::before,
.innerHeading-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 180px;
  height: 180px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}
.innerHeading-wrap::before {
  left: 3%;
  transform: translateY(-50%);
  background-image: url(../img/header-books.svg);
  animation: innerIconLeft 6s ease-in-out infinite alternate;
}
.innerHeading-wrap::after {
  right: 3%;
  transform: translateY(-50%);
  background-image: url(../img/header-compass.svg);
  animation: innerIconRight 6s ease-in-out infinite alternate;
}
.innerHeading-wrap h1 {
  margin-bottom: 0;
  font-size: 44px;
  position: relative;
  z-index: 1;
  letter-spacing: 2px;
}

@keyframes innerHeadingShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes innerIconLeft {
  0% { transform: translateY(-50%) translateX(-15%) rotate(-5deg); opacity: 0.05; }
  50% { transform: translateY(-50%) translateX(5%) rotate(3deg); opacity: 0.1; }
  100% { transform: translateY(-50%) translateX(-5%) rotate(-2deg); opacity: 0.07; }
}
@keyframes innerIconRight {
  0% { transform: translateY(-50%) translateX(15%) rotate(5deg); opacity: 0.07; }
  50% { transform: translateY(-50%) translateX(-5%) rotate(-3deg); opacity: 0.05; }
  100% { transform: translateY(-50%) translateX(5%) rotate(2deg); opacity: 0.1; }
}

@media screen and (max-width: 991px) {
  .innerHeading-wrap { padding: 45px 0; }
  .innerHeading-wrap h1 { font-size: 38px; }
  .innerHeading-wrap::before,
  .innerHeading-wrap::after { width: 130px; height: 130px; }
}
@media screen and (max-width: 767px) {
  .innerHeading-wrap { padding: 35px 0; }
  .innerHeading-wrap h1 { font-size: 30px; }
  .innerHeading-wrap::before,
  .innerHeading-wrap::after { width: 90px; height: 90px; opacity: 0.05; }
}


/*
HOME-PAGE - SLIDER
*/

.simple-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 138px); /* 100px = altezza navbar approssimativa */
  overflow: hidden;
}

.simple-slider .slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.simple-slider .slide.active {
  opacity: 1;
  position: relative;
  height: 100%;
  z-index: 1;
}

.simple-slider .slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.simple-slider img,
.simple-slider .slide-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.simple-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

.simple-slider button:hover {
  background: rgba(0,0,0,0.7);
}

.simple-slider .slider-prev { left: 20px; }
.simple-slider .slider-next { right: 20px; }

@media (max-width: 991px) {
  .simple-slider {
    height: calc(100vh - 100px); /* Altezza schermo meno header mobile */
    height: calc(100dvh - 100px);
    margin-top: 0;
  }
  .simple-slider .slide {
    position: absolute;
    inset: 0;
  }
  .simple-slider .slide.active {
    position: relative;
  }
}

/*
HOME-PAGE - BOX DELLE SCUOLE
*/

.our-course-categories-two { padding: 100px 30px 60px 30px; }
.categories_wrap { margin-top: 0; }
.categories_wrap ul { display: flex; flex-wrap: wrap; }
.categories_wrap ul li { padding-left: 10px; padding-right: 10px; display: flex; }
.categories_wrap ul li .categories-course { border-radius: 24px; cursor: pointer; display: flex; flex-direction: column; height: 100%; }
.categories_wrap ul li .categories-course .item-inner { display: flex; flex-direction: column; flex-grow: 1; }
.categories_wrap ul li:nth-child(1) .categories-course { background-color: #bccf0f; }
.categories_wrap ul li:nth-child(2) .categories-course { background-color: #089dd9; }
.categories_wrap ul li:nth-child(3) .categories-course { background-color: #f39200; }
.cours-icon { display: flex; justify-content: center; }
.coure-icon-inner { display: flex; align-items: center; justify-content: center; line-height: normal; padding: 22px; box-sizing: border-box; }
.coure-icon-inner img { width: 100%; height: auto; }

/* Box scuole - dimensioni testo aumentate */
.categories-course h4 { font-size: 28px; }
.categories-course p { font-size: 18px; line-height: 28px; }

@media screen and (max-width: 991px) {
	.categories-course h4 { font-size: 26px; }
	.categories-course p { font-size: 17px; line-height: 26px; }
}

@media screen and (max-width: 767px) {
	.categories-course h4 { font-size: 24px; }
	.categories-course p { font-size: 16px; line-height: 24px; }
}

/*
HOME - OPEN DAY
*/

.openday-wrap { padding-top: 60px; padding-bottom: 40px; }
.openday-wrap ul li { padding-left: 0; padding-right: 0; }
.openday-wrap .title h1 { color: #3c3c3b; }
.openday-wrap .sub-title { font-family: 'Asap', sans-serif; font-size: 20px; color: #3c3c3b; }

/*
HOME - ISCRIZIONI
*/

.iscrizioni-wrap { padding-top: 60px; padding-bottom: 40px; }
.iscrizioni-wrap .title h1 { color: #3c3c3b; }
.iscrizioni-wrap .sub-title { font-family: 'Asap', sans-serif; font-size: 20px; color: #3c3c3b; }


/*
HOME-PAGE - ABOUT
*/

.about-wrap { position: relative; overflow: hidden; }
.about-wrap .container-fluid > .row { max-width: 1400px; margin: 0 auto; }
.about-decor {
	display: none;
	position: absolute;
	right: 0;
	bottom: 10px;
	width: auto;
	height: 90%;
	max-height: 750px;
	pointer-events: none;
	z-index: 0;
	opacity: 0.35;
}
@media screen and (min-width: 992px) {
	.about-decor { display: block; }
}
.about-wrap .first_sentence { border-bottom: 1px solid #DDD; padding-bottom: 30px; margin-bottom: 30px; }
.aboutImg img { border-radius: 20px; }
.about_box-centered {
	text-align: center;
}
.about_box-centered p {
	text-align: center;
	font-size: 20px;
	line-height: 34px;
}
.about_box-centered .readmore {
	margin-top: 30px;
}
@media screen and (min-width: 1201px) {
	.about-wrap .title h1 { font-size: 56px; line-height: 64px;}
}

/* Video overlay effect */
.video-overlay-link {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 20px;
}
.video-overlay-link img {
	transition: transform 0.4s ease;
}
.video-overlay-link:hover img {
	transform: scale(1.05);
}
.video-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
	border-radius: 20px;
}
.video-overlay-link:hover .video-overlay {
	opacity: 1;
}
.video-overlay-content {
	text-align: center;
	color: #fff;
}
.video-overlay-content i {
	font-size: 64px;
	display: block;
	margin-bottom: 10px;
}
.video-overlay-content span {
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/*
HOME-PAGE - SEDI
*/

.sedi-wrap { background-image: none; background: #540f1a; padding: 60px 0; position: relative; overflow: hidden; }
.sedi-decor {
	display: none;
	position: absolute;
	left: 0;
	bottom: 10px;
	width: auto;
	height: 90%;
	max-height: 750px;
	pointer-events: none;
	z-index: 0;
	opacity: 0.15;
}
@media screen and (min-width: 992px) {
	.sedi-decor { display: block; }
}
.sedi-wrap .title h1 { color: #fff; }
.sedi-wrap p { color: #fff; }
.sedi-wrap .container-fluid > .row { max-width: 1400px; margin: 0 auto; }
.sedi-wrap .galleryImg { position: relative; }
.sedi-wrap .indirizzo-sede {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	padding: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 0 0 16px 16px;
	z-index: 1;
}
.sedi-wrap .indirizzo-sede strong { color: #fff; }
.galleryImg { border-radius: 16px; overflow: hidden; }
.galleryImg img { border-radius: 16px; }

/*
HOME - GALLERY
*/

.gallery-home-wrap {
	padding: 60px 30px;
	background-color: #f8f8f8;
}

.gallery-home-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 15px;
}

.gallery-home-item {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 1;
}

.gallery-home-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-home-item:hover img {
	transform: scale(1.08);
}

.gallery-home-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(84, 15, 26, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-home-item:hover .gallery-home-overlay {
	opacity: 1;
}

.gallery-home-overlay i {
	color: #fff;
	font-size: 28px;
}

.gallery-home-cta {
	text-align: center;
	margin-top: 40px;
}

.btn-gallery {
	display: inline-block;
	padding: 16px 40px;
	background-color: #540f1a;
	color: #fff;
	font-family: 'Asap', sans-serif;
	font-size: 18px;
	font-weight: 600;
	border-radius: 50px;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gallery:hover {
	background-color: #089dd9;
	color: #fff;
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-gallery i {
	margin-left: 10px;
	transition: transform 0.3s ease;
}

.btn-gallery:hover i {
	transform: translateX(5px);
}

@media screen and (max-width: 1199px) {
	.gallery-home-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 767px) {
	.gallery-home-wrap {
		padding: 40px 15px;
	}
	.gallery-home-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.btn-gallery {
		padding: 14px 30px;
		font-size: 16px;
	}
}

/*
HOME - PARTNER CAROUSEL
*/

.partners-wrap {
	padding: 60px 30px;
	background-color: #f8f8f8;
}

.partners-wrap .title {
	text-align: center;
	margin-bottom: 40px;
}

.partners-wrap .title h1 {
	font-size: 36px;
}

.partners-carousel {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.partners-carousel::before,
.partners-carousel::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100px;
	z-index: 2;
	pointer-events: none;
}

.partners-carousel::before {
	left: 0;
	background: linear-gradient(to right, #f8f8f8, transparent);
}

.partners-carousel::after {
	right: 0;
	background: linear-gradient(to left, #f8f8f8, transparent);
}

.partners-track {
	display: flex;
	animation: scroll-partners 25s linear infinite;
	width: max-content;
}

.partners-track:hover {
	animation-play-state: paused;
}

@keyframes scroll-partners {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.partner-item {
	flex: 0 0 auto;
	width: 200px;
	height: 100px;
	margin: 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 12px;
	padding: 15px 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.partner-item img {
	max-width: 100%;
	max-height: 70px;
	width: auto;
	height: auto;
	object-fit: contain;
}

@media screen and (max-width: 767px) {
	.partners-wrap {
		padding: 40px 15px;
	}
	.partners-wrap .title h1 {
		font-size: 28px;
	}
	.partner-item {
		width: 150px;
		height: 80px;
		margin: 0 20px;
		padding: 10px 15px;
	}
	.partner-item img {
		max-height: 50px;
	}
	.partners-carousel::before,
	.partners-carousel::after {
		width: 50px;
	}
}

/*
TITOLI e SCRITTE
*/

h4 { line-height: 1.5; }
.title h2 { margin-bottom: 0; }
.title.title-line { position: relative; padding-bottom: 20px; }
.title.title-line::before { content: ''; display: block; position: absolute; bottom: 0; left: 0; width: 120px; height: 6px; background-color: #CCC; }
.blog-wrap .title-line::before { left: 50%; margin-left:-60px; }

/*
LISTA DOWNLOAD
*/

ul.lista-download { list-style-type: none; margin: 0; padding: 0; }
.lista-download li { padding: 10px 0; border-bottom: 1px solid #DDD; }
.lista-download li:last-child { border-bottom: 0; }
.lista-download a { color: #3c3c3b; }
.lista-download a::before { content: '\f56d'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #540f1a; margin-right: 10px; }

/*
OPEN DAY

.open-day h1 { text-transform: uppercase; font-weight: 800; font-size: 3.5rem; }
.open-day h2, .open-day p.od-sub-h4, .open-day .od-info { text-transform: uppercase; }
.open-day h3 { font-size: 1.4rem; }
.open-day h4 { display: inline-block; color: #FFF; padding: 5px;  font-size: 1.3em;}
.open-day .od-sub-h4 { font-weight: 700; font-size: 16px; }
.open-day .od-p a { text-decoration: underline; }
.open-day .flex-video { margin-bottom: 20px; }
.open-day .od-info { font-weight: 700; border-top: 1px solid #DDD; line-height: 40px; }
.open-day .od-info img { display: inline-block; width: auto; height: 18px; vertical-align: middle; }
.open-day .od-info span { float: right; }
.open-day .od-contatti { font-size: 15px; }
.open-day .od-contatti a { color: #111; }
@media screen and (min-width: 1201px) {
	.open-day .flex-video { margin-bottom: 0; }
}

.open-day-primaria h2, .open-day-primaria h3, .open-day-primaria .od-sub-h4, .open-day-primaria .od-info, .open-day-primaria .od-p, .open-day-primaria a { color: #bccf0f; }
.open-day-primaria h4 { background-color: #bccf0f; }

.open-day-secondaria h2, .open-day-secondaria h3, .open-day-secondaria .od-sub-h4, .open-day-secondaria .od-info, .open-day-secondaria .od-p, .open-day-secondaria a { color: #089dd9; }
.open-day-secondaria h4 { background-color: #089dd9; }

.open-day-liceo h2, .open-day-liceo h3, .open-day-liceo .od-sub-h4, .open-day-liceo .od-info, .open-day-liceo .od-p, .open-day-liceo a { color: #f39200; }
.open-day-liceo h4 { background-color: #f39200; }
*/

/*
OPEN DAY 2024
*/

.open-day-intro { padding: 40px 0; }
@media (min-width: 992px) {
	.open-day-intro { padding-bottom: 120px; }
}
.open-day-img-square { width: 100%; height: auto; margin-bottom: 20px; }
.open-day-img-bottom { width: 100%; height: auto; }
@media (min-width: 992px) {
	.open-day-img-square { margin-bottom: 0; margin-left: -15px; }
}
.open-day.our-course-categories-two { padding-bottom: 30px; }
.open-day .categories-course { padding-bottom: 30px;  }
.open-day .categories-course h4 { font-size: 32px; }
.open-day .categories-course p { font-size: 18px; }
.open-day .categories-course hr { width: 40px; height: 2px; background-color: #fff; margin: 20px auto; }

/*
SCUOLE
*/

.intro-scuola { padding: 20px; border-radius: 24px; }
.intro-scuola h4 { font-weight: 400; }
.info-box { background-color: #F4F4F4; border-radius: 24px; padding: 30px; height: 100%; box-sizing: border-box; overflow: hidden; }
.info-box a { word-break: break-all; }
.orario { border-radius: 3px; box-sizing: border-box; overflow: hidden; display: inline-block; }
.orario h3 { padding: 10px 20px; background-color: #3c3c3b; color: #FFF; margin: 0; }
.orario p { padding: 10px 20px; margin: 0; }
.tab-content h3 { font-size: 1.3rem; color: #540f1a; font-weight: 700; margin-bottom: 15px; }
@media (min-width: 768px) {
  .tab-content { border-left: 1px solid #ddd; padding-left: 30px; }
}
.tab-content h4, .card-body h4 { font-size: 1.1rem; }
.card-header a { display: block; font-weight: 700; }
.card-body .media, .lista-icone .media { min-height: 64px; padding-bottom: 30px; }
.card-body .media img, .lista-icone .media img { width: 64px; height: auto; }
.teachers-content h3 { font-size: 18px; }
.servizio { text-align: center; box-shadow: 0 0 15px rgb(0 0 0 / 4%); height: 100%; padding: 30px; position: relative; box-sizing: border-box; }
.servizio img { display: block; width: 64px; height: auto; margin: 0 auto; }
.servizio h4 { font-size: 18px; }

.scuola-primaria .title h2 { color: #bccf0f; }
.scuola-primaria .title.title-line::before { background-color: #bccf0f; }
.scuola-primaria .nav-pills .nav-link { color: #3c3c3b; }
.scuola-primaria .nav-pills .nav-link:hover { background-color: #FAFFCC; }
.scuola-primaria .intro-scuola,
.scuola-primaria .nav-pills .nav-link.active,
.scuola-primaria .nav-pills .show > .nav-link,
.scuola-primaria .card-header,
.scuola-primaria .blogImg .time_box,
.scuola-primaria .orario { background-color: #bccf0f; color: #FFF; }
.scuola-primaria .intro-scuola h4,
.scuola-primaria .card-header a,
.scuola-primaria .orario p { color: #FFF; }

.scuola-secondaria .title h2 { color: #089dd9; }
.scuola-secondaria .title.title-line::before { background-color: #089dd9; }
.scuola-secondaria .nav-pills .nav-link { color: #3c3c3b; }
.scuola-secondaria .nav-pills .nav-link:hover { background-color: #C2EFFF; }
.scuola-secondaria .intro-scuola,
.scuola-secondaria .nav-pills .nav-link.active,
.scuola-secondaria .nav-pills .show > .nav-link,
.scuola-secondaria .card-header,
.scuola-secondaria .blogImg .time_box,
.scuola-secondaria .orario { background-color: #089dd9; color: #FFF; }
.scuola-secondaria .intro-scuola h4,
.scuola-secondaria .card-header a,
.scuola-secondaria .orario p { color: #FFF; }

/*
SECONDARIA - OFFERTA INTRO
*/

.scuola-secondaria .offerta-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.scuola-secondaria .title-center::before {
  left: 50%;
  transform: translateX(-50%);
}

/*
SECONDARIA - GRIGLIA AREE DIDATTICHE (stile corso-box)
*/

.scuola-secondaria .corso-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border: none;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.scuola-secondaria .corso-box-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.scuola-secondaria .corso-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 157, 217, 0.55);
  transition: background 0.3s ease;
  z-index: 1;
}

.scuola-secondaria .corso-box:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(8, 157, 217, 0.25);
  text-decoration: none;
}

.scuola-secondaria .corso-box:hover::after {
  background: rgba(8, 157, 217, 0.7);
}

.scuola-secondaria .corso-box:hover .corso-box-img {
  transform: scale(1.05);
}

.scuola-secondaria .corso-nome {
  display: block;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  transition: transform 0.3s ease;
}

.scuola-secondaria .corso-box:hover .corso-nome {
  transform: translateY(-18px);
}

.scuola-secondaria .corso-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #089dd9;
  color: #fff;
  font-size: 18px;
  position: absolute;
  bottom: 25%;
  left: 50%;
  margin-left: -25px;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  transition: all 0.3s ease;
}

.scuola-secondaria .corso-box:hover .corso-btn-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/*
SECONDARIA - AREA POPUP (FancyBox)
*/

.area-popup {
  background: #fff;
  color: #3c3c3b;
  padding: 50px 40px;
  max-width: 750px;
  border-radius: 12px;
}

.area-popup h2 {
  font-size: 26px;
  font-weight: 700;
  color: #089dd9;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #C2EFFF;
}

.area-popup h4 {
  font-size: 18px;
  font-weight: 700;
  color: #089dd9;
  margin-top: 25px;
  margin-bottom: 12px;
}

.area-popup p {
  font-size: 15px;
  line-height: 1.8;
}

.area-popup ul {
  padding-left: 20px;
}

.area-popup ul li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

/*
SECONDARIA - TABELLA ORARIO
*/

.table-orario {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.table-orario thead th {
  background: #089dd9;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 20px;
  border: none;
}

.table-orario tbody td {
  padding: 12px 20px;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.table-orario tbody tr:last-child td {
  border-bottom: none;
}

.table-orario tbody tr.table-highlight {
  background-color: #C2EFFF;
}

.table-orario tbody tr.table-highlight td {
  color: #089dd9;
  font-weight: 600;
}

/*
SECONDARIA - TABELLA PROGETTI CURRICOLARI
*/

.table-progetti {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.table-progetti thead th {
  background: #089dd9;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 16px;
  border: none;
  text-align: center;
}

.table-progetti tbody td {
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  vertical-align: top;
}

.table-progetti tbody td:last-child {
  border-right: none;
}

.table-progetti tbody tr:last-child td {
  border-bottom: none;
}

/*
SECONDARIA - GRIGLIA 5 COLONNE ATTIVITA'
*/

@media (min-width: 992px) {
  .col-attivita {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/*
SECONDARIA - ATTIVITA' CARD (griglia extracurricolari)
*/

.attivita-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: all 0.3s ease;
}

.attivita-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.attivita-card .attivita-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.attivita-card span {
  font-size: 14px;
  font-weight: 600;
  color: #3c3c3b;
  line-height: 1.3;
}

/*
SECONDARIA - INFO HIGHLIGHT BOX
*/

.info-highlight {
  background: #fff;
  border-radius: 16px;
  padding: 25px 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  height: 100%;
  border-left: 4px solid #089dd9;
}

.info-highlight h4 {
  font-size: 17px;
  font-weight: 700;
  color: #089dd9;
  margin-bottom: 10px;
}

.info-highlight h4 i {
  margin-right: 8px;
}

.info-highlight p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
}

.info-highlight-row .col-md-6 {
  margin-bottom: 15px;
}

.info-highlight-row .col-md-6 .info-highlight {
  height: 100%;
}

/*
SECONDARIA - MOBILE SPACING
*/

@media (max-width: 767.98px) {
  /* Intro: piu' spazio sotto il box blu */
  .scuola-secondaria .intro-scuola,
  .pentagramma .intro-scuola {
    margin-bottom: 30px;
  }

  .scuola-secondaria .intro-scuola h4,
  .pentagramma .intro-scuola h4 {
    font-size: 20px;
    line-height: 1.6;
  }

  /* Sezioni: riduci padding verticale */
  .scuola-secondaria .pt-100 { padding-top: 50px !important; }
  .scuola-secondaria .pt-70 { padding-top: 40px !important; }
  .scuola-secondaria .pb-70 { padding-bottom: 40px !important; }
  .scuola-secondaria .mb-50 { margin-bottom: 30px !important; }
  .scuola-secondaria .mb-40 { margin-bottom: 20px !important; }

  /* Info highlight: meno spazio tra i box */
  .info-highlight-row .col-md-6 {
    margin-bottom: 12px;
  }

  .info-highlight {
    padding: 18px 18px;
  }

  /* Info-box: spazio tra i box quando impilati */
  .row-eq-height > [class*="col-"] {
    margin-bottom: 20px;
  }

  /* Docenti: nascondi qualifica su mobile */
  .scuola-secondaria .designation,
  .pentagramma .designation {
    display: none;
  }
}

/*
SECONDARIA - DOCENTI (stile Pentagramma)
*/

.scuola-secondaria .docente-nascosto {
  display: none;
}

/*
SECONDARIA - SERVIZI LISTA (dentro info-box)
*/

.servizi-lista li {
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
}

.servizi-lista li:last-child {
  border-bottom: none;
}

.servizi-lista li strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.servizi-lista li p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.scuola-secondaria .single-teachers {
  border-radius: 8px;
  overflow: hidden;
}

.scuola-secondaria .single-teachers .teacherImg {
  border-radius: 0;
}

.scuola-secondaria .single-teachers .teacherImg .teachers-overley {
  background: rgba(8, 157, 217, 0);
}

.scuola-secondaria .single-teachers .teacherImg:hover .teachers-overley {
  background: rgba(8, 157, 217, 0.6);
}

.scuola-secondaria .single-teachers .teacherImg .teachers-overley .bio-open {
  background: #089dd9;
}

/*
SECONDARIA - LAYOUT CON SIDEBAR BINARIO
*/

.page-with-sidebar {
  display: flex;
}

.page-main-content {
  flex: 1;
  min-width: 0;
}

/* Binario laterale */
.page-sidebar-nav {
  width: 60px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  position: relative;
  z-index: 50;
}

.page-sidebar-rail {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  padding: 20px 0;
}

.page-sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-sidebar-nav li {
  margin-bottom: 18px;
  text-align: center;
}

.page-sidebar-nav li:last-child {
  margin-bottom: 0;
}

.page-sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}

.page-sidebar-nav a span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  transition: all 0.3s ease;
}

.page-sidebar-nav a:hover span,
.page-sidebar-nav a.active span {
  background: #089dd9;
  transform: scale(1.4);
  box-shadow: 0 0 0 3px rgba(8, 157, 217, 0.2);
}

/* Tooltip label su hover */
.page-sidebar-nav a::before {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #3c3c3b;
  background: #fff;
  padding: 5px 14px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 10;
}

.page-sidebar-nav a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.page-sidebar-nav a.active::before {
  color: #089dd9;
}

/* Sotto lg: layout normale senza sidebar */
@media (max-width: 991.98px) {
  .page-with-sidebar {
    display: block;
  }
}

.liceo-scientifico .title h2 { color: #f39200; }
.liceo-scientifico .title.title-line::before { background-color: #f39200; }
.liceo-scientifico .nav-pills .nav-link { color: #3c3c3b; }
.liceo-scientifico .nav-pills .nav-link:hover { background-color: #FFDAA3; }
.liceo-scientifico .intro-scuola,
.liceo-scientifico .nav-pills .nav-link.active,
.liceo-scientifico .nav-pills .show > .nav-link,
.liceo-scientifico .card-header,
.liceo-scientifico .blogImg .time_box,
.liceo-scientifico .orario { background-color: #f39200; color: #FFF; }
.liceo-scientifico .intro-scuola h4,
.liceo-scientifico .card-header a,
.liceo-scientifico .orario p { color: #FFF; }

.pentagramma .title h2 { color: #540f1a; }
.pentagramma .title.title-line::before { background-color: #540f1a; }
.pentagramma .nav-pills .nav-link { color: #3c3c3b; }
.pentagramma .nav-pills .nav-link:hover { background-color: #FFDAA3; }
.pentagramma .intro-scuola,
.pentagramma .nav-pills .nav-link.active,
.pentagramma .nav-pills .show > .nav-link,
.pentagramma .card-header,
.pentagramma .blogImg .time_box,
.pentagramma .orario { background-color: #540f1a; color: #FFF; }
.pentagramma .intro-scuola h4,
.pentagramma .card-header a,
.pentagramma .orario p { color: #FFF; }

/*
PENTAGRAMMA - GRIGLIA CORSI
*/

.pentagramma .corsi-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.pentagramma .corso-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: none;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pentagramma .corso-box-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.pentagramma .corso-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(84, 15, 26, 0.55);
  transition: background 0.3s ease;
  z-index: 1;
}

.pentagramma .corso-box:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(84, 15, 26, 0.25);
  text-decoration: none;
}

.pentagramma .corso-box:hover::after {
  background: rgba(84, 15, 26, 0.7);
}

.pentagramma .corso-box:hover .corso-box-img {
  transform: scale(1.05);
}

.pentagramma .corso-nome {
  display: block;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  transition: transform 0.3s ease;
}

.pentagramma .corso-box:hover .corso-nome {
  transform: translateY(-18px);
}

.pentagramma .corso-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #540f1a;
  color: #fff;
  font-size: 18px;
  position: absolute;
  bottom: 25%;
  left: 50%;
  margin-left: -25px;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  transition: all 0.3s ease;
}

.pentagramma .corso-box:hover .corso-btn-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/*
PENTAGRAMMA - POPUP CORSI
*/

.corso-popup {
  background: #540f1a;
  color: #fff;
  padding: 50px 40px;
  max-width: 700px;
  border-radius: 8px;
}

.corso-popup h2 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.corso-popup p {
  font-size: 16px;
  line-height: 1.8;
}

/*
PENTAGRAMMA - DOCENTI CARICA ALTRO
*/

.pentagramma .docente-nascosto {
  display: none;
}

.pentagramma .title-center::before {
  left: 50%;
  transform: translateX(-50%);
}

/*
BG ORARI PRIMARIA
*/

.scuola-primaria .bg-orari { background-image: url(/assets/img/bg-orari.jpg); background-repeat: no-repeat; background-position: bottom right; background-size: contain; }

/*
LISTA NUMERI
*/

.num_list { list-style: none; margin: 0; padding: 0; }
.num_list li { position: relative; padding-left: 50px; min-height: 40px; margin-bottom: 20px; }
.num_list li span { position: absolute; top: 0; left: 0; width: 40px; height: 40px; line-height: 40px; text-align: center; color: #FFF; font-weight: 700; }
.num_list li p { margin: 0; padding: 0; }

/*
TEACHERS OVERLAY (USATO SOLO IN PENTAGRAMMA)
*/

.single-teachers .teacherImg {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.single-teachers .teacherImg img {
  transition: transform 0.3s ease;
}

.single-teachers .teacherImg:hover img {
  transform: scale(1.05);
}

.single-teachers .teacherImg .teachers-overley {
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(84, 15, 26, 0);
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.single-teachers .teacherImg:hover .teachers-overley {
  background: rgba(84, 15, 26, 0.6);
}

.single-teachers .teacherImg .teachers-overley .bio-open {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  color: #ffffff;
  line-height: 50px;
  background: #540f1a;
  border-radius: 50%;
  display: block;
  font-size: 16px;
  z-index: 2;
  text-align: center;
  margin-left: -25px;
  margin-top: -25px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.single-teachers .teacherImg:hover .bio-open {
  opacity: 1;
  transform: scale(1);
}

/*
CONTATTI - INTRO
*/

.contatti-intro-testo {
	font-size: 20px;
	line-height: 32px;
	color: #666;
}

/*
CONTATTI - CARD SEGRETERIE
*/

.contatto-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contatto-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.contatto-card-header {
	padding: 30px 25px 20px;
	text-align: center;
}

.contatto-card-icon-wrap {
	width: 100px;
	height: 100px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contatto-card-icon-wrap img {
	width: 55px;
	height: auto;
}

.contatto-card-header h3 {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

/* Colori header per scuola */
.contatto-card-primaria .contatto-card-header { background-color: #bccf0f; }
.contatto-card-secondaria .contatto-card-header { background-color: #089dd9; }
.contatto-card-liceo .contatto-card-header { background-color: #f39200; }

.contatto-card-body {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.contatto-info-list {
	list-style: none;
	margin: 0 0 18px 0;
	padding: 0;
}

.contatto-info-list li {
	font-size: 14px;
	line-height: 20px;
	color: #3c3c3b;
	padding: 6px 0;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.contatto-info-list li i {
	color: #540f1a;
	width: 16px;
	text-align: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.contatto-info-list li a {
	color: #540f1a;
	text-decoration: none;
	word-break: break-all;
	font-size: 14px;
}

.contatto-info-list li a:hover {
	text-decoration: underline;
}

/* Colori link per scuola */
.contatto-card-primaria .contatto-info-list li a { color: #8a9800; }
.contatto-card-primaria .contatto-info-list li a:hover { color: #6e7a00; }
.contatto-card-secondaria .contatto-info-list li a { color: #0781b3; }
.contatto-card-secondaria .contatto-info-list li a:hover { color: #056a93; }
.contatto-card-liceo .contatto-info-list li a { color: #d07e00; }
.contatto-card-liceo .contatto-info-list li a:hover { color: #a86600; }

/* Colori icona per scuola */
.contatto-card-primaria .contatto-info-list li i { color: #8a9800; }
.contatto-card-secondaria .contatto-info-list li i { color: #089dd9; }
.contatto-card-liceo .contatto-info-list li i { color: #f39200; }

.contatto-nota {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #eee;
	font-size: 13px;
	line-height: 20px;
	color: #888;
}

/*
CONTATTI - FORM
*/

.contatti-form-wrap {
	background-color: #F4F4F4;
}

.contatti-form-mappe-row {
	display: flex;
	align-items: stretch;
}

.contatti-form-mappe-row > [class*="col-"] {
	display: flex;
}

.contatti-form-box {
	background: #fff;
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	width: 100%;
}

.contatti-mappe-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.contatti-mappe-stack .mappa-box {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.contatti-mappe-stack .mappa-iframe {
	flex: 1;
}

.contatti-mappe-stack .mappa-iframe iframe {
	width: 100%;
	height: 100%;
	min-height: 200px;
	display: block;
}

.contatti-form-box h2 {
	color: #540f1a;
	margin-bottom: 8px;
}

.contatti-form-desc {
	color: #888;
	font-size: 16px;
	margin-bottom: 30px;
}

.contatti-form-box label {
	font-size: 14px;
	font-weight: 600;
	color: #3c3c3b;
	margin-bottom: 6px;
}

.contatti-form-box .form-control {
	border-radius: 10px;
	border: 1px solid #ddd;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.5;
	height: auto;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contatti-form-box .form-control:focus {
	border-color: #540f1a;
	box-shadow: 0 0 0 3px rgba(84, 15, 26, 0.1);
	outline: none;
}

.contatti-form-box select.form-control {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23540f1a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 12px;
	background-color: #fff;
	padding-right: 40px;
}

.contatti-form-box textarea.form-control {
	resize: vertical;
	min-height: 120px;
}

.btn-contatti-invia {
	display: inline-block;
	padding: 14px 36px;
	background-color: #540f1a;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contatti-invia:hover {
	background-color: #6e1221;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(84, 15, 26, 0.25);
}

.btn-contatti-invia i {
	margin-left: 8px;
}

.contatti-form-box .alert {
	border-radius: 12px;
	margin-bottom: 20px;
}

/*
CONTATTI - MAPPE
*/

.mappa-box {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mappa-iframe iframe {
	width: 100%;
	height: 280px;
	display: block;
}

.mappa-label {
	padding: 14px 20px;
	background-color: #540f1a;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
}

.mappa-label i {
	margin-right: 8px;
}

@media screen and (max-width: 991px) {
	.contatti-form-mappe-row {
		flex-direction: column;
	}
	.contatti-mappe-stack {
		margin-top: 30px;
	}
	.contatti-mappe-stack .mappa-iframe iframe {
		min-height: 250px;
	}
}

@media screen and (max-width: 767px) {
	.contatti-form-box {
		padding: 25px 20px;
	}
}

/*
MODULI DI CONTATTO
*/

.box-captcha { border:1px solid #DDD; padding: 10px; margin-bottom: 15px; }
.box-captcha p { font-size: 14px; }

/*
ISCRIZIONE
*/

.iscrizione-form-row {
	display: flex;
	align-items: stretch;
	gap: 30px;
}

.iscrizione-form-row:not(.iscrizione-has-box) {
	max-width: 720px;
	margin: 0 auto;
}

.iscrizione-has-box .iscrizione-col-box {
	flex: 0 0 33.333%;
	max-width: 33.333%;
	display: flex;
}

.iscrizione-has-box .iscrizione-col-form {
	flex: 1;
	display: flex;
}

.iscrizione-col-form {
	display: flex;
	width: 100%;
}

.iscrizione-col-box .contatti-form-box,
.iscrizione-col-form .contatti-form-box {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.iscrizione-riquadro {
	background: #f9f9f9;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 16px;
}

.iscrizione-riquadro:last-child {
	margin-bottom: 0;
}

.iscrizione-riquadro p {
	font-size: 14px;
	line-height: 22px;
	color: #444;
	margin-bottom: 12px;
}

.iscrizione-riquadro .btn-sm {
	padding: 8px 20px;
	font-size: 13px;
}

.iscrizione-captcha-box {
	border-top: 1px solid #eee;
	padding-top: 20px;
	margin-top: 10px;
	margin-bottom: 24px;
}

.iscrizione-captcha-box > p {
	font-size: 13px;
	color: #666;
	line-height: 20px;
	margin-bottom: 10px;
}

.iscrizione-captcha-box > p a {
	color: #540f1a;
	text-decoration: underline;
}

@media screen and (max-width: 991px) {
	.iscrizione-form-row {
		flex-direction: column;
		gap: 20px;
	}
	.iscrizione-has-box .iscrizione-col-box {
		flex: none;
		max-width: 100%;
	}
}

/*
LAVORA CON NOI
*/

.lavora-form-row {
	display: flex;
	align-items: stretch;
	gap: 30px;
}

.lavora-form-col-left {
	flex: 3;
	display: flex;
}

.lavora-form-col-right {
	flex: 2;
	display: flex;
}

.lavora-form-col-left .contatti-form-box,
.lavora-form-col-right .contatti-form-box {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.lavora-form-col-right .lavora-captcha-box {
	margin-top: auto;
}

.lavora-file-input {
	height: auto !important;
	padding: 10px 16px;
	background-color: #fff;
	cursor: pointer;
}

.lavora-privacy-box {
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
}

.lavora-privacy-titolo {
	font-size: 15px;
	font-weight: 700;
	color: #3c3c3b;
	margin-bottom: 10px;
}

.lavora-privacy-testo {
	height: 200px;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 14px;
	overflow: auto;
	margin-bottom: 14px;
}

.lavora-privacy-testo p {
	font-size: 13px;
	line-height: 20px;
	color: #666;
	margin-bottom: 8px;
}

.lavora-privacy-check label {
	font-size: 13px !important;
	font-weight: 400 !important;
	color: #555;
	line-height: 20px;
	cursor: pointer;
}

.lavora-privacy-check label a {
	color: #540f1a;
	text-decoration: underline;
}

.lavora-privacy-check input[type="checkbox"] {
	margin-right: 6px;
}

.lavora-captcha-box {
	margin-bottom: 24px;
}

.lavora-captcha-box > p {
	font-size: 14px;
	color: #666;
	margin-bottom: 12px;
}

.lavora-captcha-row {
	display: flex;
	align-items: center;
	gap: 15px;
}

.lavora-captcha-row img {
	border-radius: 8px;
	height: 46px;
	flex-shrink: 0;
}

.lavora-captcha-row .form-control {
	max-width: 250px;
}

@media screen and (max-width: 991px) {
	.lavora-form-row {
		flex-direction: column;
		gap: 20px;
	}
}

@media screen and (max-width: 767px) {
	.lavora-captcha-row {
		flex-direction: column;
		align-items: flex-start;
	}
	.lavora-captcha-row .form-control {
		max-width: 100%;
	}
}

/*
FOOTER
*/

.school-stripe {
  display: flex;
  height: 12px;
  width: 100%;
}
.school-stripe .stripe-primaria { flex: 1; background-color: #becd00; }
.school-stripe .stripe-secondaria { flex: 1; background-color: #089dd9; }
.school-stripe .stripe-liceo { flex: 1; background-color: #f39200; }

.footer-wrap { background-color: #3c3c3b; }
.logo-footer { max-width: 200px; }
.footer_info { margin-left: 0; }
.footer-adress li { line-height: 30px; }
.footer-adress li > i { display:  inline-block; border: 1px solid #bcc5d0; border-radius: 50%; width: 40px; height: 40px; line-height: 40px; text-align: center; padding-top: 0; }
.footer-adress li > span { padding-left: 15px; }
.footer-separator { border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 15px 0; }
.footer-link-progetti { color: #fff; font-weight: 500; }
.footer-link-progetti:hover { color: #fff; text-decoration: underline; }
.footer-link-progetti i { margin-left: 8px; font-size: 12px; }

/*
MARGINI
*/

.mt-0 { margin-top: 0px; }
.mb-0 { margin-bottom: 0px; }
.mt-5 { margin-top: 5px; }
.mb-5 { margin-bottom: 5px; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mt-15 { margin-top: 15px; }
.mb-15 { margin-bottom: 15px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-25 { margin-top: 25px; }
.mb-25 { margin-bottom: 25px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.mt-35 { margin-top: 35px; }
.mb-35 { margin-bottom: 35px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mt-50 { margin-top: 50px; }
.mb-50 { margin-bottom: 50px; }
.mt-60 { margin-top: 60px; }
.mb-60 { margin-bottom: 60px; }
.mt-70 { margin-top: 70px; }
.mb-70 { margin-bottom: 70px; }
.mt-80 { margin-top: 80px; }
.mb-80 { margin-bottom: 80px; }
.mt-90 { margin-top: 90px; }
.mb-90 { margin-bottom: 90px; }
.mt-100 { margin-top: 100px; }
.mb-100 { margin-bottom: 100px; }

/*
PADDING
*/

.pt-0 { padding-top: 0px; }
.pb-0 { padding-bottom: 0px; }
.pt-5 { padding-top: 5px; }
.pb-5 { padding-bottom: 5px; }
.pt-10 { padding-top: 10px; }
.pb-10 { padding-bottom: 10px; }
.pt-15 { padding-top: 15px; }
.pb-15 { padding-bottom: 15px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.pt-25 { padding-top: 25px; }
.pb-25 { padding-bottom: 25px; }
.pt-30 { padding-top: 30px; }
.pb-30 { padding-bottom: 30px; }
.pt-35 { padding-top: 35px; }
.pb-35 { padding-bottom: 35px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }
.pt-50 { padding-top: 50px; }
.pb-50 { padding-bottom: 50px; }
.pt-60 { padding-top: 60px; }
.pb-60 { padding-bottom: 60px; }
.pt-70 { padding-top: 70px; }
.pb-70 { padding-bottom: 70px; }
.pt-80 { padding-top: 80px; }
.pb-80 { padding-bottom: 80px; }
.pt-90 { padding-top: 90px; }
.pb-90 { padding-bottom: 90px; }
.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }

/*
VIDEO
*/

.flex-video {
  position: relative;
  padding-bottom: 57.5%;
  height: 0;
  overflow: hidden;
}
.flex-video iframe,
.flex-video object,
.flex-video embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*
BOTTONE VUOTO BIANCO
*/

.btn-outline-white {
  color: #fff;
  border-color: #fff;
}

.btn-outline-white:hover {
  color: #343a40;
  background-color: #fff;
  border-color: #fff;
}

.btn-outline-white:focus, .btn-outline-white.focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

.btn-outline-white.disabled, .btn-outline-white:disabled {
  color: #fff;
  background-color: transparent;
}

.btn-outline-white:not(:disabled):not(.disabled):active, .btn-outline-white:not(:disabled):not(.disabled).active,
.show > .btn-outline-white.dropdown-toggle {
  color: #343a40;
  background-color: #fff;
  border-color: #fff;
}

.btn-outline-white:not(:disabled):not(.disabled):active:focus, .btn-outline-white:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-white.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

/*
BOTTONE ARANCIO
*/

.btn-sacro-cuore {
	background-color: #540f1a;
	color: #FFF;
}
.btn-sacro-cuore:hover {
	background-color: #6e1221;
	color: #FFF;
}

/*
HOME-PAGE - ALLINEAMENTO SCUOLE E NEWS
*/

.our-course-categories-two { padding: 100px 30px 60px 30px; }
.blog-wrap.flight-wrap { padding: 60px 30px; }
.blog-wrap.flight-wrap .container-fluid { padding-left: 0; padding-right: 0; }

/*
HOME-PAGE - NEWS CAROUSEL
*/

.news-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}
.news-header .title {
	margin-bottom: 0;
	text-align: left;
}
.news-header .readmore a {
	margin: 0;
}

/* Bottone "Tutte le news" - desktop: testo, mobile: solo freccia */
.news-header .readmore .btn-text {
	display: inline;
}
.news-header .readmore .btn-arrow {
	display: none;
	background: transparent;
	color: #540f1a;
	font-size: 22px;
	transition: color 0.3s ease;
}
.news-header .readmore .btn-arrow:hover {
	color: #6e1221;
	text-decoration: none;
}
.news-header .readmore .btn-arrow i {
	margin: 0;
}

@media screen and (max-width: 575px) {
	.news-header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.news-header .title h1 {
		font-size: 28px;
		margin: 0;
	}
	/* Nasconde il link testuale, mostra solo il bottone freccia */
	.news-header .readmore .btn-text {
		display: none;
	}
	.news-header .readmore .btn-arrow {
		display: inline-flex;
	}
}

.news-carousel { position: relative; }
.news-carousel .owl-stage { display: flex; }
.news-carousel .owl-item { display: flex; }
.news-carousel .news-item { display: flex; width: 100%; }
.news-carousel .blog_box { background: #fff; display: flex; flex-direction: column; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-carousel .blog_box:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.news-carousel .blogImg img { width: 100%; height: auto; }
.news-carousel .path_box { flex-grow: 1; display: flex; flex-direction: column; }
.news-carousel .owl-stage-outer { padding: 15px 0; }

/* Frecce navigazione */
.news-carousel .owl-nav {
	display: block !important;
}
.news-carousel .owl-nav button.owl-prev,
.news-carousel .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #540f1a !important;
	color: #fff !important;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 44px;
	text-align: center;
	padding: 0 !important;
	margin: 0 !important;
	border: none;
	cursor: pointer;
	transition: background 0.3s;
	z-index: 10;
}
.news-carousel .owl-nav button.owl-prev:hover,
.news-carousel .owl-nav button.owl-next:hover {
	background: #6e1221 !important;
}
.news-carousel .owl-nav button.owl-prev {
	left: -22px;
}
.news-carousel .owl-nav button.owl-next {
	right: -22px;
}
.news-carousel .owl-nav button span {
	font-size: 0;
}
.news-carousel .owl-nav button i {
	font-size: 18px;
	line-height: 44px;
}

/* Dots navigazione */
.news-carousel .owl-dots {
	display: block !important;
	text-align: center;
	margin-top: 25px;
}
.news-carousel .owl-dots button.owl-dot {
	display: inline-block;
	margin: 0 6px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
}
.news-carousel .owl-dots button.owl-dot span {
	display: block;
	width: 14px;
	height: 14px;
	background: #ddd;
	border-radius: 50%;
	transition: background 0.3s, transform 0.3s;
}
.news-carousel .owl-dots button.owl-dot:hover span {
	background: #bbb;
}
.news-carousel .owl-dots button.owl-dot.active span {
	background: #540f1a;
	transform: scale(1.2);
}

@media screen and (max-width: 991px) {
	.news-carousel .owl-nav button.owl-prev { left: -15px; }
	.news-carousel .owl-nav button.owl-next { right: -15px; }
}

@media screen and (max-width: 767px) {
	.our-course-categories-two { padding: 60px 15px 40px 15px; }
	.blog-wrap.flight-wrap { padding: 40px 15px; }
	.news-carousel .owl-nav button.owl-prev,
	.news-carousel .owl-nav button.owl-next {
		width: 36px;
		height: 36px;
		line-height: 36px;
	}
	.news-carousel .owl-nav button i {
		font-size: 16px;
		line-height: 36px;
	}
	.news-carousel .owl-nav button.owl-prev { left: -10px; }
	.news-carousel .owl-nav button.owl-next { right: -10px; }
}

/*
==============================================
PAGINE CHI SIAMO (proposta, vision, sostienici)
==============================================
*/

/* Placeholder per media (foto/video) - verranno sostituiti con immagini reali */
.page-media-placeholder {
	background: #f4f4f4;
	border: 2px dashed #ddd;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
}
.page-media-placeholder .media-placeholder-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 30px;
	color: #bbb;
	gap: 12px;
}
.page-media-placeholder .media-placeholder-inner i {
	font-size: 48px;
}
.page-media-placeholder .media-placeholder-inner span {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.page-media-wide .media-placeholder-inner {
	padding: 120px 30px;
}

/* Immagini integrate nelle pagine (non gallery) */
.page-media {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.page-media img {
	width: 100%;
	height: auto;
	display: block;
}
.page-media-wide {
	border-radius: 16px;
	overflow: hidden;
}
.page-media-wide img {
	width: 100%;
	height: auto;
	display: block;
}

/* Video integrato */
.page-video {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0,0,0,0.1);
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}
.page-video iframe,
.page-video video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/*
PROPOSTA EDUCATIVA
*/

/* Card valori */
.valore-card {
	background: #fff;
	border-radius: 16px;
	padding: 40px 30px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}
.valore-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.valore-icon {
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}
.valore-card h4 {
	color: #540f1a;
	margin-bottom: 12px;
}

/*
VISION E MISSION
*/

.vm-section-label {
	margin-bottom: 25px;
}
.vm-section-label span {
	display: inline-block;
	background: #540f1a;
	color: #fff;
	padding: 8px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.vm-citazione {
	border-left: 4px solid #540f1a;
	padding: 20px 30px;
	margin: 30px auto;
	max-width: 700px;
	font-style: italic;
	font-size: 20px;
	line-height: 32px;
	color: #540f1a;
}
.vm-citazione p {
	font-style: italic;
	font-size: 20px;
	line-height: 32px;
	color: #540f1a;
	margin-bottom: 0;
}

/*
SOSTIENICI
*/

.sostienici-card {
	background: #fff;
	border-radius: 16px;
	padding: 40px 35px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}
.sostienici-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.sostienici-card-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #540f1a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	font-size: 24px;
}
.sostienici-card h4 {
	color: #540f1a;
	margin-bottom: 12px;
}

/* Codice fiscale evidenziato */
.cf-evidenziato {
	display: inline-block;
	background: #540f1a;
	color: #fff;
	padding: 4px 14px;
	border-radius: 6px;
	font-size: 20px;
	letter-spacing: 2px;
	font-family: monospace;
}

/* Nota 5x1000 (senza dichiarazione) */
.sostienici-nota {
	background: #fff;
	border-left: 4px solid #540f1a;
	padding: 25px 30px;
	border-radius: 0 12px 12px 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.sostienici-nota h4 {
	color: #540f1a;
	font-size: 18px;
	margin-bottom: 12px;
}

/* Dati bancari */
.sostienici-dati-bancari {
	background: #f4f4f4;
	border-radius: 12px;
	padding: 25px 30px;
}
.dato-bancario {
	display: flex;
	gap: 15px;
	padding: 10px 0;
	border-bottom: 1px solid #e0e0e0;
	align-items: baseline;
}
.dato-bancario:last-child {
	border-bottom: none;
}
.dato-label {
	font-weight: 700;
	color: #540f1a;
	min-width: 110px;
	flex-shrink: 0;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.dato-value {
	color: #3c3c3b;
}

/* Lista documenti scaricabili */
.sostienici-documenti h4 {
	color: #540f1a;
	margin-bottom: 16px;
}
.doc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.doc-list li {
	margin-bottom: 10px;
}
.doc-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	background: #f4f4f4;
	border-radius: 10px;
	color: #3c3c3b;
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 500;
}
.doc-link:hover {
	background: #540f1a;
	color: #fff;
	text-decoration: none;
}
.doc-link i {
	font-size: 22px;
	color: #c0392b;
	flex-shrink: 0;
}
.doc-link:hover i {
	color: #fff;
}

/*
RESPONSIVE PAGINE CHI SIAMO
*/

@media screen and (max-width: 991px) {
	.page-media-placeholder .media-placeholder-inner {
		padding: 60px 20px;
	}
	.page-media-wide .media-placeholder-inner {
		padding: 80px 20px;
	}
	.vm-citazione {
		font-size: 18px;
		line-height: 28px;
		padding: 15px 20px;
	}
	.vm-citazione p {
		font-size: 18px;
		line-height: 28px;
	}
	/* Su tablet/mobile le colonne immagine vanno sotto il testo */
	.page-proposta-intro .col-lg-5,
	.page-proposta-territorio .col-lg-5,
	.page-vision .col-lg-5,
	.page-mission .col-lg-5,
	.page-sostienici-intro .col-lg-5,
	.page-sostienici-5x1000 .col-lg-5,
	.page-sostienici-donazione .col-lg-5,
	.page-sostienici-allegati .col-lg-5 {
		margin-top: 40px;
	}
	/* Dati bancari su mobile */
	.dato-bancario {
		flex-direction: column;
		gap: 4px;
	}
	.dato-label {
		min-width: auto;
	}
	.sostienici-nota {
		padding: 20px;
	}
}

@media screen and (max-width: 767px) {
	.valore-card {
		padding: 30px 20px;
	}
	.sostienici-card {
		padding: 30px 20px;
	}
}