/*------------------------------------------------------*/
/* NOTIFICHE FISSE */
/*------------------------------------------------------*/
.notification-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	margin: 0;
}

.notification-fixed .icon {
	margin-right: 0.5rem;
}

.notification-fixed span,
.notification {
	color: #fff;
}

/*------------------------------------------------------*/
/* HOME: HERO */
/*------------------------------------------------------*/
.hero-custom {
	position: relative;
	padding: 0;
	background-image: linear-gradient(135deg, #0050ab 0%, #2af598 100%);
}

.hero-container {
	max-width: 1344px;
	margin: 0 auto;
	position: relative;
	display: flex;
}

.hero-content {
	width: 60%;
	position: relative;
	z-index: 2;
	padding: 4em 1em;
}

.hero-text-column {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.hero-text-column h1 {
	font-size: 3rem;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	line-height: 1.1;
}

.hero-text-column h2 {
	font-size: 1.8rem;
	color: #fff;
	opacity: 0.95;
	margin-bottom: 1.5rem;
}

.hero-text-column p {
	font-size: 1.1rem;
	margin-bottom: 0;
	color: #fff;
	line-height: 1.6;
}
.hero-text-column p strong {
	color: #fff;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.btn-primary,
.btn-secondary {
	padding: 1rem 2rem;
	font-size: 1.1rem;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: #454545;
}
.btn-primary:visited,
.btn-secondary:visited {
	color: #454545;
}
.btn-primary {
	background: #72ec59;
}
.btn-secondary {
	background-color: #ffc801;
}
.btn-primary:hover,
.btn-secondary:hover {
	background: #f8f9fa;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	color: #0050ab;
}

.btn {
	padding: 0.6rem 2rem;
	font-size: 1.1rem;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
}

.hero-image-column {
	width: 40%;
	display: flex;
	z-index: 1;
	align-self: flex-end;
}

.hero-image {
	max-width: 90%;
	height: auto;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

/*------------------------------------------------------*/
/* HOME: STEPS 3 */
/*------------------------------------------------------*/
.home .steps3 .steps3-content {
	position: relative;
	padding: 1.5rem 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: 20px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home .steps3 img {
	width: 100%;
	max-width: 90px;
	height: 90px;
	margin-bottom: 14px;
}
.home .steps3 .step-registrati {
	background-color: #f1f9ff;
}
.home .steps3 .step-vendi {
	background-color: #f1ffff;
}
.home .steps3 .step-acquista {
	background-color: #f7fffa;
}
.home .steps3 h3 {
	margin-bottom: 0.5rem;
}
.home .steps3 p {
	font-size: 1.1rem;
}
.home .steps3 .icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4rem;
	margin-bottom: 10px;
	background-color: #fff;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	text-align: center;
}
.home .steps3 .icon-box i {
	background: linear-gradient(135deg, #45c0de, #00d1b2);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
}
.home .steps3 .btn {
	margin-top: 20px;
}
.btn-registrati,
.btn-registrati:visited {
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
}
.btn-registrati:hover {
	background-color: var(--primary-color);
	color: #fff;
}
.btn-vendi,
.btn-vendi:visited {
	border: 2px solid var(--secondary-color);
	color: var(--secondary-color);
}
.btn-vendi:hover {
	background-color: var(--secondary-color);
	color: #fff;
}
.btn-acquista,
.btn-acquista:visited {
	border: 2px solid var(--tertiary-color);
	color: var(--tertiary-color);
}
.btn-acquista:hover {
	background-color: var(--tertiary-color);
	color: #fff;
}

/*------------------------------------------------------*/
/* HOME: FAQ */
/*------------------------------------------------------*/
.home .faq img {
	width: 100%;
	max-width: 120px;
	height: auto;
}

/*------------------------------------------------------*/
/* ULTIMI LIBRI */
/*------------------------------------------------------*/
.book-card {
	display: flex;
	/* flex-direction: column; */
	height: 100%;
	border: 1px solid #e0e0e0;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease-in-out;
	overflow: hidden;
	padding: 20px 20px;
	gap: 20px;
}

.book-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.book-card .card-image {
	width: 100%;
	max-width: 160px;
	height: auto;
}
.book-card .card-image .image {
	background-color: #fff;
}

.book-card .card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.book-card .card-content {
	flex-grow: 1;
	padding: 1.25rem;
	padding: 0 !important;
}
.book-card .card-content .content {
	margin-bottom: 10px;
}

.book-card .image.is-2by3 {
	padding: 0;
	min-height: 390px;
}

/* Stile per il titolo del libro (h3) per garantire altezza uniforme */
.book-card .card-content h3 {
	font-size: 1.25rem;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	margin-bottom: 0.5rem;
}

.book-card .card-content .isbn_libro {
	background-color: #f9f9f9;
	padding: 5px 12px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.book-card .card-content .isbn_libro::before {
	content: "";
	display: inline-block;
	width: 1.2em;
	height: 1.2em;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3e%3cpath d='M3 4h2v16H3V4zm3 0h1v16H6V4zm2 0h1v16H8V4zm2 0h1v16h-1V4zm2 0h1v16h-1V4zm3 0h2v16h-2V4zm3 0h2v16h-2V4z'/%3e%3c/svg%3e");
	mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3e%3cpath d='M3 4h2v16H3V4zm3 0h1v16H6V4zm2 0h1v16H8V4zm2 0h1v16h-1V4zm2 0h1v16h-1V4zm3 0h2v16h-2V4zm3 0h2v16h-2V4z'/%3e%3c/svg%3e");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.book-card .content dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.5em 1em;
	margin: 0;
	padding: 1rem 0;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.875rem;
	line-height: 1.2;
}

.book-card .content dt {
	grid-column: 1;
	font-weight: 700;
	color: #363636;
	text-align: right;
}

.book-card .content dd {
	grid-column: 2;
	margin-left: 0;
}

.book-card .card-footer {
	margin-top: auto;
	padding: 0.75rem 0;
	border-top: 0;
	display: inline-block;
}

.book-card .card-footer-item {
	justify-content: flex-start;
}

.book-card .is-warning {
	opacity: 1;
	color: #000;
	font-weight: 700;
}
.book-card .card-footer button {
	color: #fff;
}
.book-card .card-footer button,
.book-card .card-footer span,
.book-card .card-footer a {
	padding: 0.5rem 1rem;
}

/* Stili per la paginazione di Bulma */
.pagination-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
}

.pagination-list li {
	margin: 0 5px;
}

.pagination-list .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 4px;
	text-decoration: none;
	background-color: #f5f5f5;
	color: #363636;
}

.pagination-list .page-numbers.current {
	background-color: #3273dc;
	color: #fff;
	font-weight: 700;
}

.pagination-list .page-numbers:hover {
	background-color: #e5e5e5;
}

/*------------------------------------------------------*/
/* RICERCA */
/*------------------------------------------------------*/
#cerca .box {
	border-radius: 20px;
	background: transparent;
	box-shadow: unset;
	padding: 0;
}
#cerca .tab-content {
	background-image: linear-gradient(135deg, #0050ab 0%, #2af598 100%);
	padding: 2rem 2rem;
	border-radius: 20px;
}
#cerca .tabs {
	margin: 0 0 1px 0;
	overflow: visible;
}
#cerca .tabs ul {
	gap: 5px;
	border: 0;
}
#cerca button {
	color: #454545;
	background-color: #ffc801;
	font-weight: 700;
}
#cerca button:hover {
	background-color: #fff;
}
#cerca .tab-pane {
	display: none;
}
#cerca .tab-pane.is-active {
	display: block;
}

#cerca .search-tab a {
	color: #159cbb !important;
	transition: all 0.2s ease;
	background: #fff;
	box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
}
#cerca label.label {
	color: #fff !important;
}

#cerca .search-tab.is-active a,
#cerca .search-tab.is-active a:hover,
#cerca .search-tab a:hover {
	background-image: linear-gradient(135deg, #0050ab 0%, #2af598 100%);
	color: #ffffff !important;
	border: 0;
}

#cerca .search-tab.is-active a span,
#cerca .search-tab.is-active a:hover span {
	color: #ffffff !important;
	border: 0;
}

#cerca .tabs.is-boxed a {
	border-radius: 8px 8px 0 0;
	font-weight: 700;
	border: 0;
}

#school_search_results .notification.is-info.is-light {
	background-color: rgba(255, 255, 255, 0.3);
	color: #296fa8;
	box-shadow: 0 0px 10px rgba(0, 0, 0, 0.08);
	border-radius: 10px;
}

.home #school_search_content.columns {
	display: flex !important;
	flex-wrap: wrap;
}

#cerca .tabs .mb {
	display: none;
}

@media (max-width: 1300px) {
	.hero-text-column h1 {
		font-size: 2.5rem;
	}
}

@media (max-width: 1140px) {
	.hero-custom {
		margin-top: 10px;
	}

	.hero-image-column {
		width: 40%;
	}
	.hero-content {
		width: 60%;
		padding: 2em 2em;
	}
	.hero-text-column h1 {
		font-size: 2.2rem;
	}
	.hero-text-column h2 {
		font-size: 1.5rem;
		line-height: 1.2;
		margin-top: 10px;
	}
	.hero-text-column p {
		font-size: 1rem;
	}
}

/* Media query 1024px rimossa - duplicata in style.css */

@media (max-width: 833px) {
	.hero-custom {
		padding: 20px 20px;
		margin: 0;
	}
	.hero-container {
		flex-direction: column;
		min-height: auto;
	}
	.hero-content {
		width: 100%;
		text-align: center;
	}
	.hero-buttons {
		justify-content: center;
	}
	.hero-text-column {
		border-radius: 0;
		padding: 0;
	}
	.hero-image-column {
		position: relative;
		top: 0;
		width: 100%;
		margin-top: 2rem;
		display: none;
	}
	.hero-text-column h1 {
		font-size: 2rem;
	}

	.home .steps3 {
		margin-top: 0 !important;
	}
	.home .steps3 p {
		font-size: 1rem;
	}
	.home .steps3 .steps3-content {
		padding: 1rem 1rem;
	}

	.home .vendi-acquista {
		padding-top: 0;
	}

	/* .home .wrap-last-books .column,
	.home #school_search_content .column {
		width: 50%;
		flex-basis: 50%;
	} */
}

@media (max-width: 768px) {
	.home .steps3 .steps3-content {
		margin-bottom: 0;
	}
	#cerca .is-narrow label {
		display: none;
	}
	#cerca .is-narrow .control {
		text-align: center;
	}
}

@media (max-width: 740px) {
	#cerca .tabs .dk {
		display: none;
	}
	#cerca .tabs .mb {
		display: block;
	}
}

@media (max-width: 600px) {
	.home .wrap-last-books .columns,
	.home #school_search_content.columns {
		flex-direction: column;
		align-items: center;
	}

	.hero-content {
		padding: 2em 1em;
	}
}

@media (max-width: 480px) {
	.home .hero-custom h1 br {
		display: none;
	}
	.home .hero-buttons a {
		padding: 1rem 1rem;
		font-size: 1rem;
	}
	.book-card {
		display: flex;
		flex-direction: column;
	}
	.book-card .card-image {
		max-width: 100%;
	}

	#cerca .tab-content {
		border-radius: 16px;
	}
	#cerca .tabs a {
		padding: 0.5em 0.5em;
	}
	#cerca .tabs .mb {
		font-size: 0.9rem;
	}
}

@media (max-width: 414px) {
	.home .hero-buttons a {
		padding: 0.7rem 0.7rem;
		font-size: 1rem;
	}
}
