/*
Theme Name: Libri Usati Child
Theme URI: http://underscores.me/
Template: libri-scolastici-usati
Author: Domenico Carnevale
Author URI: https://domenicocarnevale.it/
Description: Web Designer
Tags: custom-background,custom-logo,custom-menu,featured-images,threaded-comments,translation-ready
Version: 1.0.0.1754906216
Updated: 2025-08-11 09:56:56
*/

@font-face {
	font-display: swap;
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400;
	src: url("fonts/plus-jakarta-sans-v11-latin-regular.woff2") format("woff2"),
		url("fonts/plus-jakarta-sans-v11-latin-regular.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 700;
	src: url("fonts/plus-jakarta-sans-v11-latin-700.woff2") format("woff2"),
		url("fonts/plus-jakarta-sans-v11-latin-700.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Quicksand";
	font-style: normal;
	font-weight: 400;
	src: url("fonts/quicksand-v37-latin-regular.woff2") format("woff2"),
		url("fonts/quicksand-v37-latin-regular.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Quicksand";
	font-style: normal;
	font-weight: 700;
	src: url("fonts/quicksand-v37-latin-700.woff2") format("woff2"),
		url("fonts/quicksand-v37-latin-700.ttf") format("truetype");
}

html,
body {
	font-size: 18px;
	margin: 0;
	padding: 0;
}

div,
section {
	position: relative;
}

.page,
.post {
	margin: 0;
	padding: 0;
}

:root {
	--primary-color: #0050ab;
	--secondary-color: #149597;
	--tertiary-color: #09c772;
	--g-primary-color: #90b9e4;
	--g-secondary-color: #816cbe6e;
	--g-tertiary-color: #a7efcb;
}

.bk-fisso {
	position: fixed;
	width: 100%;
	height: 100%;
	inset: 0;
	background: radial-gradient(
			circle at 0% 20%,
			var(--g-primary-color) 0%,
			transparent 40%
		),
		radial-gradient(
			circle at 70% 0%,
			var(--g-secondary-color) 0%,
			transparent 37%
		),
		radial-gradient(
			circle at 100% 100%,
			var(--g-tertiary-color) 0%,
			transparent 40%
		);
	background-color: #ffffff;
	background-repeat: no-repeat;
	background-size: cover;
}

.c1 {
	color: var(--primary-color);
}
.c2 {
	color: var(--secondary-color);
}
.c3 {
	color: var(--tertiary-color);
}

.bk-box {
	background: linear-gradient(
		135deg,
		rgba(69, 192, 222, 0.23),
		rgba(0, 209, 178, 0.23)
	);
	border-radius: 10px;
	padding: 50px 30px;
}

.box {
	border-radius: 20px;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: "Quicksand";
	font-weight: 700;
}

p,
li,
dd,
dt,
dl,
span {
	font-family: "Plus Jakarta Sans";
}

.is-gradient {
	background-image: linear-gradient(135deg, #0050ab 0%, #2af598 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
}

.box {
	border-radius: 20px;
}

/* ===== HEADER ===== */
.wrap-nav {
	padding: 16px 0;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.sticky.show .site-branding {
	gap: 0.2rem;
}
.site-branding img.logo {
	width: 100%;
	max-width: 75px;
	height: auto;
}
.site-branding .site-title {
	font-family: "Quicksand", sans-serif;
	margin: 0;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
}
.site-branding .site-title span {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	display: block;
}

.site-branding .site-title a {
	display: block;
	text-decoration: none;
	transition: color 0.3s ease;
	background-image: linear-gradient(135deg, #0050ab 0%, #2af598 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
}

.site-branding .site-title a:hover {
	color: var(--secondary-color);
}

/* ------------------------------------- */

/* Pannello Destro dell'Header (contiene la navigazione) */
.header-right-panel {
	display: flex; /* Utilizza Flexbox per la navigazione (utile per futuri elementi) */
	align-items: center;
}

/* ------------------------------------- */

/* Navigazione Principale */
.main-navigation ul {
	list-style: none; /* Rimuove i pallini/numeri della lista */
	margin: 0;
	padding: 0;
	display: flex; /* Organizza le voci di menu in orizzontale */
	gap: 1.5rem; /* Spazio tra le voci di menu (equivalente a margin-right ma più moderno) */
	align-items: center;
	justify-content: flex-end; /* Allinea il menu a destra */
}

.main-navigation li {
	position: relative; /* Per futuri effetti o indicatori */
}

.main-navigation li a {
	color: #555555; /* Colore testo dei link */
	text-decoration: none; /* Rimuove sottolineatura */
	font-size: 1rem; /* Dimensione del font */
	font-weight: 700; /* Leggermente grassetto */
	padding: 0.5rem 0; /* Padding verticale per area cliccabile */
	display: flex; /* Per allineare icona e testo */
	align-items: center; /* Centra icona e testo verticalmente */
	transition: color 0.3s ease; /* Transizione fluida per il colore */
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
	color: #4caf50; /* Colore verde brillante per hover e voce attiva (come la barra dei passi) */
}

/* Stile per le icone Font Awesome all'interno dei link del menu */
.main-navigation li a .fas {
	margin-right: 0.5rem; /* Spazio tra icona e testo */
	font-size: 1.1rem; /* Dimensione leggermente più grande per le icone */
}

/* ------------------------------------- */

/* Mobile Menu Toggle Button - Design moderno */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: #333;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.menu-toggle:hover {
	background-color: rgba(0, 0, 0, 0.1);
	transform: scale(1.05);
}

.menu-toggle:focus {
	outline: none;
	background-color: rgba(0, 0, 0, 0.1);
}

/* Icona hamburger moderna */
.hamburger-icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 20px;
}

.hamburger-icon span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: currentColor;
	border-radius: 1px;
	transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	transform-origin: center;
}

/* Animazione hamburger quando menu è aperto - X moderna */
.menu-open .hamburger-icon span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .hamburger-icon span:nth-child(2) {
	opacity: 0;
	transform: scale(0);
}

.menu-open .hamburger-icon span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

/* Nascondi il testo per screen reader */
.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

/*------------------------------------------------------*/
/* PAGINE CONFERMA AZIONI UTENTE */
/*------------------------------------------------------*/
.page-template-page-azione-confermata .notification {
	padding: 5rem 3rem;
}
.page-template-page-azione-confermata .notification h1,
.page-template-page-azione-confermata .notification p,
.page-template-page-azione-confermata a {
	color: #fff;
}

/* ------------------------------------- */
@media (max-width: 1440px) {
	header .container {
		max-width: 100% !important;
		padding: 0 1rem;
	}
}

@media (max-width: 1024px) {
	.site-branding img.logo {
		width: 100%;
		max-width: 80px;
	}

	.wrap-nav .columns {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: nowrap;
		margin: 0;
	}

	.wrap-nav .column {
		padding: 0;
	}

	.wrap-nav .column:first-child {
		flex: 1;
		order: 1;
	}

	.wrap-nav .header-right-panel {
		justify-content: flex-end;
		order: 2;
		flex: 0 0 auto;
	}

	.header-right-panel {
		display: flex;
		align-items: center;
		width: auto;
		margin-left: auto;
	}

	/* Mostra sempre il contenitore navigation su mobile */
	.main-navigation {
		display: flex !important;
		align-items: center;
		position: relative;
		justify-content: flex-end;
		width: 100%;
	}

	/* Nascondi solo il menu ul desktop */
	.main-navigation ul {
		display: none !important;
	}

	/* Mostra il pulsante hamburger */
	.menu-toggle {
		display: block !important;
	}

	/* Regole da libri-usati.css consolidate qui */
	.container {
		max-width: 100%;
	}

	.wrap-last-books .column {
		width: 100%;
	}

	/* Menu Offcanvas Moderno - Solo su mobile */
	.menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 9998;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
		display: none;
	}

	.offcanvas-menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 90%;
		height: 100%;
		background: linear-gradient(135deg, #0050ab 0%, #2af598 100%);
		z-index: 9999;
		transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		overflow-y: auto;
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		display: none;
		box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
	}

	.menu-open .menu-overlay {
		opacity: 1;
		visibility: visible;
	}

	.menu-open .offcanvas-menu {
		right: 0;
	}

	.offcanvas-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 2rem 1.5rem;
	}

	.offcanvas-header h3 {
		margin: 0;
		font-size: 1.5rem;
		font-weight: 700;
		color: #ffffff;
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	}

	.close-menu {
		background: rgba(255, 255, 255, 0.2);
		border: none;
		padding: 0.4rem;
		cursor: pointer;
		border-radius: 50%;
		transition: all 0.3s ease;
		backdrop-filter: blur(10px);
	}

	.close-menu:hover {
		background: rgba(255, 255, 255, 0.3);
		transform: scale(1.1);
	}

	.close-icon {
		display: block;
		width: 24px;
		height: 24px;
		position: relative;
	}

	.close-icon span {
		position: absolute;
		top: 50%;
		left: 0;
		width: 100%;
		height: 2px;
		background-color: #ffffff;
		transition: all 0.3s ease;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	}

	.close-icon span:first-child {
		transform: translateY(-50%) rotate(45deg);
	}

	.close-icon span:last-child {
		transform: translateY(-50%) rotate(-45deg);
	}

	#offcanvas-primary-menu {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.offcanvas-menu ul {
		list-style: none;
		padding: 2rem 0;
		margin: 0;
	}

	.offcanvas-menu li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		margin: 0 1.5rem;
		border-radius: 12px;
		overflow: hidden;
		margin-bottom: 0.5rem;
		background: rgba(255, 255, 255, 0.05);
		backdrop-filter: blur(10px);
	}

	.offcanvas-menu a {
		display: block;
		padding: 1.25rem 1.5rem;
		text-decoration: none;
		color: #ffffff;
		font-size: 1.1rem;
		font-weight: 700;
		transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		position: relative;
		overflow: hidden;
	}

	.offcanvas-menu a:hover {
		background: rgba(255, 255, 255, 0.2);
		transform: translateX(8px);
		color: #ffffff;
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	}

	.offcanvas-menu a::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		width: 4px;
		background: #ffc801;
		transform: scaleY(0);
		transition: transform 0.3s ease;
		transform-origin: bottom;
	}

	.offcanvas-menu a:hover::before {
		transform: scaleY(1);
	}

	/* Nascondi il menu desktop originale su mobile */
	.main-navigation ul {
		display: none !important;
	}

	/* Previeni scroll del body quando menu è aperto */
	body.menu-open {
		overflow: hidden !important;
		position: fixed !important;
		width: 100% !important;
		height: 100% !important;
		top: 0 !important;
		left: 0 !important;
	}

	/* Responsive per tablet */
	@media (max-width: 1200px) {
		.offcanvas-menu {
			width: 85%;
		}
	}

	/* Responsive per mobile piccoli */
	@media (max-width: 480px) {
		.offcanvas-menu {
			width: 85%;
			right: -100%;
		}

		.offcanvas-header {
			padding: 1rem;
		}

		#offcanvas-primary-menu a {
			padding: 0.875rem 1rem;
		}
	}

	/* Rimuovi stili vecchi del menu dropdown - ora usiamo offcanvas */
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===== HEADER ===== */
.wrap-nav {
	padding: 1rem 0;
	position: relative;
	z-index: 3;
	transition: all 0.3s ease;
}

/* Header Sticky */
.wrap-nav.sticky {
	position: fixed;
	top: -100px;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0.5rem 0;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.9) 0%,
		rgba(255, 255, 255, 0.6) 40%,
		rgba(255, 255, 255, 0.2) 80%,
		rgba(255, 255, 255, 0) 100%
	);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: top 0.3s ease;
}

.wrap-nav.sticky.show {
	top: 0;
}

.wrap-nav.sticky .site-branding {
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.wrap-nav.sticky .logo {
	height: 35px;
	transition: height 0.3s ease;
}

/* Compensazione per contenuto quando header è sticky */
body.has-sticky-header {
	padding-top: 80px;
}

/* ===== FOOTER ===== */
.site-footer {
	position: relative;
	z-index: 2;
	color: #333;
	padding: 2rem;
	text-align: center;
	font-size: 0.9rem;
}

.site-footer a {
	color: var(--secondary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--secondary-color);
}

/* Footer copyright */
.site-footer .site-info {
	margin-top: 1rem;
	font-style: italic;
}

/* Stili per la sezione utente nell'header */
.header-right-panel {
	display: flex;
	align-items: center;
	gap: 1.5rem; /* Spazio tra menu e pulsanti utente */
}

.site-header-actions .buttons {
	margin-bottom: 0; /* Rimuove il margine inferiore di Bulma dai bottoni */
}

/* Base Reset per un controllo preciso del box model */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/*------------------------------------------------------*/
/* LOGIN REGISTRAZIONE */
/*------------------------------------------------------*/
.login-registrazione {
	background: linear-gradient(
		135deg,
		rgba(69, 192, 222, 0.43),
		rgba(86, 178, 0, 0.43)
	);
	border-radius: 10px;
	padding: 30px; /* margine interno per distanziare il contenuto */
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* opzionale */
}
.login-registrazione .um-login,
.login-registrazione .um-register {
	width: 100% !important;
	max-width: 100% !important;
}

.login-registrazione .um-form input[type="number"],
.login-registrazione .um-form input[type="password"],
.login-registrazione .um-form input[type="search"],
.login-registrazione .um-form input[type="tel"],
.login-registrazione .um-form input[type="text"] {
	border-radius: 10px !important;
	padding: 8px 10px !important;
	height: 50px !important;
}
.login-registrazione .um-field-label .um-field-label-icon i {
	font-size: 16px;
	top: 3px;
}
.login-registrazione .um-field-label .um-field-label-icon {
	margin: 0 4px 0 0;
	height: 22px;
	line-height: 18px;
	display: inline-block;
	width: 24px;
	text-align: center;
}
.login-registrazione input[type="submit"] {
	background: linear-gradient(135deg, #45c0de, #00d1b2) !important;
	border: none !important;
	color: #fff !important;
	font-weight: 700;
	padding: 0.8rem 2rem;
	border-radius: 12px;
	transition: all 0.2s ease;
}
.login-registrazione .um-field-label {
	margin: 0 0 4px 0;
}
.login-registrazione .um-field-label .um-button:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}
.login-registrazione .um-link-alt:hover {
	text-decoration: underline;
}
.login-registrazione a.link-registrati,
.login-registrazione a.link-login,
.login-registrazione .um-login a,
.login-registrazione .um-register a {
	color: #159cbb;
	font-weight: 700;
}

/*------------------------------------------------------*/
/* LOGIN REGISTRAZIONE */
/*------------------------------------------------------*/
.faq-section {
	position: relative;
}

.faq-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 28px 0 12px;
	color: #2a2a2a;
	border-left: 3px solid #1d4ed8;
	padding-left: 10px;
}

.faq-item {
	border-bottom: 1px solid #e9e9e9;
	background-color: #fff;
	padding: 14px 20px;
	border-radius: 10px;
	margin: 10px 0;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-question {
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	text-align: left;
	font-size: 1rem;
	font-weight: 700;
	color: #111;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.faq-question:hover {
	color: var(--secondary-color);
}

.faq-toggle {
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1;
	width: 1.2rem;
	text-align: center;
	color: #666;
	transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item.active .faq-toggle {
	color: #111;
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
	color: #494949;
	font-size: 0.96rem;
	line-height: 1.6;
	padding: 0 0;
}

.faq-item.active .faq-answer {
	max-height: 480px;
	opacity: 1;
	padding: 4px 0 16px 0;
}

@media (max-width: 480px) {
	.faq-title {
		font-size: 1.05rem;
	}

	.faq-question {
		font-size: 0.98rem;
	}
}

@media (max-width: 414px) {
	.site-branding img.logo {
		width: 100%;
		max-width: 55px;
	}
	.site-branding .site-title {
		font-size: 2.2rem;
	}
}
