/**
 * Page sections (custom sections nelle pagine)
 *
 * Struttura come la hero: sfondo fluid (full-width), contenuto in container.
 * - .fullstack-page-section = wrapper a tutta larghezza (sfondo, padding)
 * - .fullstack-page-section-bg = sfondo assoluto (video/immagine)
 * - .fullstack-page-section-inner = container con max-width per il contenuto
 *
 * @package Fullstack
 */

/* Section: wrapper fluid, sfondo a tutta larghezza */
.fullstack-page-section {
	position: relative;
	width: 100%;
	padding: 3rem 0;
	overflow: hidden;
	min-height: 300px; /* Altezza minima per permettere al video di essere visibile */
}
.fullstack-page-section.fullstack-page-section-has-inner-offset {
	overflow: visible;
	z-index: 2;
	margin-top: var(--fullstack-inner-comp-top, 0px);
	margin-bottom: var(--fullstack-inner-comp-bottom, 0px);
}

/* Sfondo (video) in posizione assoluta, fluid */
.fullstack-page-section-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

/* Overlay gradiente: si frappone tra background e contenuto */
.fullstack-page-section-overlay {
	position: absolute;
	inset: 0;
	z-index: 0.5;
	pointer-events: none; /* Permette il click attraverso l'overlay */
}
.fullstack-page-section-bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 0;
}
/* Video mobile nascosto su desktop */
.fullstack-page-section-bg-video-mobile {
	display: none;
}
/* Su mobile: nascondi video desktop e mostra mobile */
@media (max-width: 767px) {
	.fullstack-page-section-bg-video-desktop {
		display: none;
	}
	.fullstack-page-section-bg-video-mobile {
		display: block;
	}
}
/* Se c'è solo video desktop (senza mobile), deve essere sempre visibile */
.fullstack-page-section-bg-video:not(.fullstack-page-section-bg-video-desktop) {
	display: block;
}

/* Container per il contenuto (come hero overlay-container) */
.fullstack-page-section-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

/* Griglia colonne */
.fullstack-page-section-columns {
	display: flex;
	gap: 2rem;
	align-items: stretch; /* Le colonne si estendono alla stessa altezza */
	flex: 1; /* Occupa tutto lo spazio disponibile */
}
.fullstack-page-section-columns-1 .fullstack-page-section-col {
	flex: 1 1 100%;
}
.fullstack-page-section-columns-2 .fullstack-page-section-col {
	flex: 1 1 50%;
}
.fullstack-page-section-columns-3 .fullstack-page-section-col {
	flex: 1 1 33.3333%;
}

/* Colonna: allineamento verticale e orizzontale */
.fullstack-page-section-col {
	display: flex;
	flex-direction: column;
	align-self: stretch; /* Estendi la colonna all'altezza del container */
}
.fullstack-page-section-col-valign-top {
	justify-content: flex-start;
}
.fullstack-page-section-col-valign-center {
	justify-content: center;
}
.fullstack-page-section-col-valign-bottom {
	justify-content: flex-end;
}
.fullstack-page-section-col-halign-left {
	align-items: flex-start;
}
.fullstack-page-section-col-halign-center {
	align-items: center;
}
.fullstack-page-section-col-halign-right {
	align-items: flex-end;
}
.fullstack-page-section-col-text-align-left {
	text-align: left;
}
.fullstack-page-section-col-text-align-center {
	text-align: center;
}
.fullstack-page-section-col-text-align-right {
	text-align: right;
}
.fullstack-page-section-col-inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	flex: 1; /* Estendi all'altezza della colonna per permettere l'allineamento verticale */
	min-width: 0; /* Permette ai figli di ridursi correttamente */
	max-width: 100%;
}

/* Blocchi: wrapper generico */
.fullstack-page-section-block {
	width: 100%;
	flex-shrink: 0; /* Previene la compressione del blocco */
}
.fullstack-page-section-block-video {
	width: 100%;
	min-height: 0; /* Permette al contenuto di determinare l'altezza */
	display: block; /* Assicura che sia un block element */
}

/* Blocchi: titolo, testo, immagine */
.fullstack-page-section-title {
	margin: 0 0 0.5rem;
	color: inherit; /* Eredita il colore dalla section */
}
.fullstack-page-section-text {
	margin: 0;
}
.fullstack-page-section-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Animazioni sezioni */
.fullstack-page-section[data-animation] {
	transition: opacity 0.3s ease;
}
.fullstack-page-section[data-animation]:not(.animate__animated) {
	opacity: 0;
}

/* CTA */
.fullstack-page-section-cta-wrap {
	margin-top: 0.5rem;
}
.fullstack-page-section-cta-align-left {
	text-align: left;
}
.fullstack-page-section-cta-align-center {
	text-align: center;
}
.fullstack-page-section-cta-align-right {
	text-align: right;
}
.fullstack-page-section-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.4rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}
.fullstack-page-section-cta:hover {
	opacity: 0.9;
}
.fullstack-page-section-cta-icon {
	display: inline-block;
}

/* Animazioni hover icona CTA */
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-bounce {
	animation: bounce 1s;
}
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-pulse {
	animation: pulse 1s;
}
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-rubberBand {
	animation: rubberBand 1s;
}
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-shake {
	animation: shake 1s;
}
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-swing {
	animation: swing 1s;
}
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-tada {
	animation: tada 1s;
}
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-wobble {
	animation: wobble 1s;
}
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-jello {
	animation: jello 1s;
}
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-heartBeat {
	animation: heartBeat 1.3s ease-in-out infinite;
}
.fullstack-page-section-cta:hover .fullstack-cta-icon-hover-flash {
	animation: flash 1s;
}

/* Blocco video: maschera con aspect-ratio e video centrato */
.fullstack-page-section-video-mask {
	position: relative;
	width: 100%;
	overflow: hidden;
	min-height: 0; /* Permette ad aspect-ratio di funzionare correttamente */
	display: block; /* Assicura che sia un block element */
}
.fullstack-page-section-video-mask-square {
	aspect-ratio: 1 / 1;
}
.fullstack-page-section-video-mask-vertical {
	aspect-ratio: 3 / 4;
}
.fullstack-page-section-video-mask-horizontal {
	aspect-ratio: 16 / 9;
}
.fullstack-page-section-video-block {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.fullstack-page-section-video-mobile {
	display: none;
}

@media (max-width: 767px) {
	.fullstack-page-section-video-desktop-only {
		display: none;
	}
	/* Senza video mobile: adatta il video desktop per mobile (visibile e in fill del contenitore). */
	.fullstack-page-section-video-desktop:not(.fullstack-page-section-video-desktop-only) {
		display: block;
		object-fit: cover;
		object-position: center;
	}
	.fullstack-page-section-video-mobile {
		display: block;
	}
	.fullstack-page-section-columns {
		flex-direction: column;
	}
	.fullstack-page-section-col {
		flex: 1 1 100%;
	}
}

/* Blocco Stats (Statistiche/Obiettivi) */
.fullstack-page-section-stats {
	margin: 2rem 0;
}

.fullstack-page-section-stats-title {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 1rem;
	text-align: center;
}

.fullstack-page-section-stats-text {
	margin-bottom: 2rem;
	text-align: center;
}

.fullstack-page-section-stats-items {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
	align-items: flex-start;
}

.fullstack-page-section-stats-item {
	flex: 1 1 200px;
	min-width: 200px;
	max-width: 300px;
	text-align: center;
	padding: 1rem;
	position: relative;
}

.fullstack-page-section-stats-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: -1rem;
	top: 0;
	bottom: 0;
	width: 1px;
	background-color: currentColor;
	opacity: 0.3;
}

.fullstack-page-section-stats-number {
	font-size: 3rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
	color: inherit;
}

.fullstack-page-section-stats-icon {
	margin-bottom: 0.5rem;
	font-size: 3rem;
	line-height: 1;
}

.fullstack-page-section-stats-icon img {
	max-width: 64px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.fullstack-page-section-stats-icon span {
	display: inline-block;
}

.fullstack-page-section-stats-subtitle {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: inherit;
	line-height: 1.3;
}

.fullstack-page-section-stats-image {
	margin-bottom: 0.75rem;
}

.fullstack-page-section-stats-image img {
	max-width: 120px;
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 4px;
}

.fullstack-page-section-stats-item-text {
	font-size: 0.9rem;
	color: inherit;
	opacity: 0.8;
	line-height: 1.4;
}

/* Layout orizzontale per goals:
 * il blocco testo (titoletto + testo) resta in colonna,
 * viene affiancato solo il blocco immagine.
 */
.fullstack-page-section-stats-item-horizontal {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
	text-align: left;
}

.fullstack-page-section-stats-item-horizontal .fullstack-page-section-stats-content {
	flex: 1;
	min-width: 0;
}

.fullstack-page-section-stats-item-horizontal .fullstack-page-section-stats-image {
	margin-bottom: 0;
	flex-shrink: 0;
}

.fullstack-page-section-stats-item-horizontal .fullstack-page-section-stats-image img {
	max-width: 80px;
}

@media (max-width: 767px) {
	.fullstack-page-section-stats-item-horizontal {
		flex-direction: column;
		text-align: center;
		gap: 0.75rem;
	}
	
	.fullstack-page-section-stats-item-horizontal .fullstack-page-section-stats-image {
		margin-bottom: 0.5rem;
	}
}

@media (max-width: 767px) {
	.fullstack-page-section-stats-items {
		flex-direction: column;
		gap: 1.5rem;
		align-items: center;
	}
	
	.fullstack-page-section-stats-item {
		max-width: 100%;
	}
	
	.fullstack-page-section-stats-item::after {
		display: none;
	}
}

/* Blocco Media Set */
.fullstack-page-section-media-set-items {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.fullstack-page-section-media-set-viewport {
	overflow: hidden;
}

/* Poster immagine per blocco video singolo */
.fullstack-page-section-video-poster-wrap {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

.fullstack-page-section-video-poster-wrap.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fullstack-page-section-video-poster {
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Poster per video nel media set */
.fullstack-media-set-video-poster-wrap {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

.fullstack-media-set-video-poster-wrap.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fullstack-media-set-video-poster {
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.fullstack-page-section-media-set-items.is-carousel {
	flex-wrap: nowrap;
	transition: transform 0.35s ease;
	will-change: transform;
}

.fullstack-page-section-media-set-item {
	flex: 1 1 220px;
	min-width: 180px;
}

.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item {
	flex: 0 0 calc((100% - (var(--fullstack-media-set-visible-items, 1) - 1) * 1rem) / var(--fullstack-media-set-visible-items, 1));
	min-width: 0;
	transition: transform 0.25s ease;
	transform: scale(0.94);
	transform-origin: center center;
	position: relative;
	z-index: 1;
}

.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item.is-center-focus {
	transform: scale(1);
	z-index: 2;
}

.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item-video.is-center-focus::before {
	content: "";
	position: absolute;
	right: 1.75rem;
	bottom: 0.75rem;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.65);
	pointer-events: none;
}

.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item-video.is-center-focus::after {
	content: "";
	position: absolute;
	right: 2.45rem;
	bottom: 1.32rem;
	width: 0;
	height: 0;
	border-top: 0.34rem solid transparent;
	border-bottom: 0.34rem solid transparent;
	border-left: 0.52rem solid #fff;
	pointer-events: none;
}

.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item-video.fullstack-media-set-item-has-custom-play-icon.is-center-focus::before,
.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item-video.fullstack-media-set-item-has-custom-play-icon.is-center-focus::after {
	content: none;
}

.fullstack-media-set-play-icon-overlay {
	position: absolute;
	right: 1.2rem;
	bottom: 1.2rem;
	width: 3rem;
	height: 3rem;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	z-index: 3;
}

.fullstack-page-section-media-set-item:hover .fullstack-media-set-play-icon-overlay {
	opacity: 1;
}

.fullstack-page-section-media-set-item.is-center-focus .fullstack-media-set-play-icon-overlay {
	opacity: 1;
}

.fullstack-media-set-play-icon-overlay img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Media set senza carousel: icona play sempre visibile in basso a destra su tutti i video */
.fullstack-page-section-media-set-items:not(.is-carousel) .fullstack-media-set-play-icon-overlay.fullstack-media-set-play-icon-always-visible,
.fullstack-media-set-no-carousel .fullstack-media-set-play-icon-overlay.fullstack-media-set-play-icon-always-visible {
	opacity: 1 !important;
	display: block;
}

.fullstack-media-set-play-icon-default {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 2rem;
	min-height: 2rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.65);
	position: relative;
	box-sizing: border-box;
}

.fullstack-media-set-play-icon-default::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	margin-top: -0.34rem;
	margin-left: -0.15rem;
	border-top: 0.34rem solid transparent;
	border-bottom: 0.34rem solid transparent;
	border-left: 0.52rem solid #fff;
}

.fullstack-page-section-media-set-mask {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.fullstack-page-section-media-set-mask-auto {
	aspect-ratio: auto;
}

.fullstack-page-section-media-set-mask-square {
	aspect-ratio: 1 / 1;
}

.fullstack-page-section-media-set-mask-vertical {
	aspect-ratio: 3 / 4;
}

.fullstack-page-section-media-set-mask-horizontal {
	aspect-ratio: 16 / 9;
}

.fullstack-page-section-media-set-media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fullstack-page-section-media-set-media-video {
	cursor: pointer;
}

.fullstack-page-section-media-set-controls {
	margin-top: 0.65rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.fullstack-media-set-controls-position-below-left {
	justify-content: flex-start;
}

.fullstack-media-set-controls-position-below-center {
	justify-content: center;
}

.fullstack-media-set-controls-position-below-right {
	justify-content: flex-end;
}

.fullstack-page-section-media-set-arrows,
.fullstack-page-section-media-set-dots {
	display: flex;
	gap: 0.45rem;
	width: 100%;
}

.fullstack-media-set-arrow {
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	border-radius: 999px;
	padding: 0.25rem 0.55rem;
	cursor: pointer;
}

.fullstack-media-set-arrow.has-custom-image {
	border: 0;
	background: transparent;
	padding: 0;
}

.fullstack-media-set-arrow-image {
	display: block;
	width: 2rem;
	height: 2rem;
	object-fit: contain;
}

.fullstack-media-set-arrow[disabled] {
	opacity: 0.45;
	cursor: default;
}

.fullstack-media-set-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.fullstack-media-set-dot.is-active {
	background: currentColor;
}

/* Blocco Elenco contenuti */
.fullstack-page-section-content-list {
	display: grid;
	gap: 1rem;
}

.fullstack-page-section-content-list-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.fullstack-page-section-content-list-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fullstack-page-section-content-list-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fullstack-page-section-content-list-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fullstack-page-section-content-card {
	border-radius: 18px;
	overflow: hidden;
	min-width: 0;
	background: transparent;
}

.fullstack-page-section-content-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.fullstack-page-section-content-card-media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: rgba(0, 0, 0, 0.08);
}

.fullstack-page-section-content-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fullstack-page-section-content-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.05));
}

.fullstack-page-section-content-card-taxonomy {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	display: inline-block;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.8rem;
	line-height: 1.2;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
}

.fullstack-page-section-content-card-body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	background: rgba(0, 0, 0, 0.03);
}

.fullstack-page-section-content-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.6rem;
	font-size: 0.87rem;
	line-height: 1.4;
	opacity: 0.85;
}

.fullstack-page-section-content-card-meta span + span::before {
	content: "-";
	margin-right: 0.6rem;
}

.fullstack-page-section-content-card-title {
	margin: 0;
	font-size: 1.8rem;
	line-height: 1.2;
}

.fullstack-page-section-content-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	margin-top: 0.2rem;
}

.fullstack-page-section-content-card-reading-time {
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.85;
}

.fullstack-page-section-content-card-readmore {
	text-decoration: underline;
	font-weight: 600;
}

.fullstack-page-section-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.fullstack-page-section-form-title {
	margin: 0;
}

.fullstack-page-section-form-notice {
	padding: 0.65rem 0.8rem;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 0.95rem;
}

.fullstack-page-section-form-notice.is-success {
	border-color: rgba(0, 120, 0, 0.25);
	background: rgba(0, 120, 0, 0.08);
}

.fullstack-page-section-form-notice.is-error {
	border-color: rgba(180, 0, 0, 0.25);
	background: rgba(180, 0, 0, 0.08);
}

.fullstack-page-section-form-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem 1rem;
}

.fullstack-page-section-form-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.fullstack-page-section-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.fullstack-page-section-form-field label {
	font-weight: 500;
}

.fullstack-page-section-form-field input:not([type="checkbox"]):not([type="radio"]),
.fullstack-page-section-form-field select,
.fullstack-page-section-form-field textarea {
	width: 100%;
	min-height: 52px;
	padding: 0.62rem 0.78rem;
	border: 1px solid #d9dee5;
	border-radius: 0.5rem;
	background-color: #fff;
	color: inherit;
	font-size: 1rem;
	line-height: 1.4;
	box-sizing: border-box;
}

.fullstack-page-section-form-field textarea {
	min-height: 150px;
	resize: vertical;
}

.fullstack-page-section-form-field-textarea,
.fullstack-page-section-form-field-recaptcha,
.fullstack-page-section-form-field-privacy {
	grid-column: 1 / -1;
}

.fullstack-page-section-form-options {
	display: grid;
	gap: 0.45rem;
}

.fullstack-page-section-form-options label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.fullstack-page-section-form-field-recaptcha {
	overflow-x: auto;
}

.fullstack-page-section-form-submit {
	justify-self: flex-start;
	grid-column: 1 / -1;
	min-height: 50px;
	padding: 0.62rem 1.2rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 1rem;
}

@media (max-width: 767px) {
	.fullstack-page-section-form-fields {
		grid-template-columns: 1fr;
	}
}

.fullstack-page-section-sponsor-logos {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.fullstack-page-section-block-sponsor_logos {
	min-width: 0;
}

.fullstack-page-section-sponsor-logos-title {
	margin: 0;
}

.fullstack-page-section-sponsor-logos.fullstack-page-section-sponsor-logos-align-left .fullstack-page-section-sponsor-logos-title,
.fullstack-page-section-sponsor-logos.fullstack-page-section-sponsor-logos-align-left .fullstack-page-section-sponsor-logos-text {
	text-align: left;
}

.fullstack-page-section-sponsor-logos.fullstack-page-section-sponsor-logos-align-center .fullstack-page-section-sponsor-logos-title,
.fullstack-page-section-sponsor-logos.fullstack-page-section-sponsor-logos-align-center .fullstack-page-section-sponsor-logos-text {
	text-align: center;
}

.fullstack-page-section-sponsor-logos.fullstack-page-section-sponsor-logos-align-right .fullstack-page-section-sponsor-logos-title,
.fullstack-page-section-sponsor-logos.fullstack-page-section-sponsor-logos-align-right .fullstack-page-section-sponsor-logos-text {
	text-align: right;
}

.fullstack-page-section-sponsor-logos-text > :first-child {
	margin-top: 0;
}

.fullstack-page-section-sponsor-logos-text > :last-child {
	margin-bottom: 0;
}

.fullstack-page-section-sponsor-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.9rem;
}

.fullstack-page-section-sponsor-item-link {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.85rem;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.fullstack-page-section-sponsor-item-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 84px;
}

.fullstack-page-section-sponsor-item-logo img {
	max-width: 100%;
	height: auto;
	max-height: 74px;
	width: auto;
}

.fullstack-page-section-sponsor-item-logo-placeholder {
	width: 100%;
	height: 72px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.05));
}

.fullstack-page-section-sponsor-item-title {
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
	text-align: center;
}

.fullstack-page-section-sponsor-grid-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
}

.fullstack-page-section-sponsor-grid-pages {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.fullstack-page-section-sponsor-grid-controls button,
.fullstack-sponsor-carousel-dot,
.fullstack-sponsor-carousel-arrow {
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: transparent;
	color: inherit;
	border-radius: 999px;
	cursor: pointer;
}

.fullstack-page-section-sponsor-grid-controls button {
	padding: 0.32rem 0.62rem;
}

.fullstack-page-section-sponsor-grid-controls button.is-active {
	background: rgba(0, 0, 0, 0.08);
}

.fullstack-page-section-sponsor-grid-controls button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fullstack-page-section-sponsor-carousel {
	position: relative;
}

.fullstack-page-section-sponsor-logos.is-carousel-fullwidth .fullstack-page-section-sponsor-carousel {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: clamp(12px, 2.5vw, 24px);
	padding-right: clamp(12px, 2.5vw, 24px);
}

.fullstack-page-section-sponsor-carousel-viewport {
	overflow: hidden;
}

.fullstack-page-section-sponsor-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.9rem;
}

.fullstack-page-section-sponsor-carousel-item {
	flex: 0 0 calc((100% - (var(--fullstack-sponsor-visible-items, 1) - 1) * 0.9rem) / var(--fullstack-sponsor-visible-items, 1));
	min-width: 0;
}

.fullstack-page-section-sponsor-carousel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 0.7rem;
}

.fullstack-page-section-sponsor-carousel-arrows {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.fullstack-sponsor-carousel-arrow {
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fullstack-sponsor-carousel-arrow.has-custom-image {
	border: 0;
	background: transparent;
	padding: 0;
}

.fullstack-sponsor-carousel-arrow-image {
	display: block;
	width: 2rem;
	height: 2rem;
	object-fit: contain;
}

.fullstack-page-section-sponsor-carousel-dots {
	display: flex;
	align-items: center;
	gap: 0.38rem;
}

.fullstack-sponsor-carousel-dot {
	width: 0.68rem;
	height: 0.68rem;
	padding: 0;
}

.fullstack-sponsor-carousel-dot.is-active {
	background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
	.fullstack-page-section-content-list-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fullstack-page-section-sponsor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fullstack-page-section-content-card-title {
		font-size: 1.55rem;
	}
}

@media (max-width: 767px) {
	.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item {
		flex: 0 0 100%;
		transform: scale(1);
	}

	/* Su mobile il play deve essere sempre visibile sui video. */
	.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item-video::before {
		content: "";
		position: absolute;
		right: 1.75rem;
		bottom: 0.75rem;
		width: 2rem;
		height: 2rem;
		border-radius: 999px;
		background: rgba(0, 0, 0, 0.65);
		pointer-events: none;
	}

	.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item-video::after {
		content: "";
		position: absolute;
		right: 2.45rem;
		bottom: 1.32rem;
		width: 0;
		height: 0;
		border-top: 0.34rem solid transparent;
		border-bottom: 0.34rem solid transparent;
		border-left: 0.52rem solid #fff;
		pointer-events: none;
	}

	.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item-video.fullstack-media-set-item-has-custom-play-icon::before,
	.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item-video.fullstack-media-set-item-has-custom-play-icon::after {
		content: none;
	}

	.fullstack-page-section-media-set-items.is-carousel .fullstack-page-section-media-set-item-video .fullstack-media-set-play-icon-overlay {
		opacity: 1;
	}

	.fullstack-page-section-content-list {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.fullstack-page-section-sponsor-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	/* Un solo logo: JS imposta viewport e item in px; contenimento overflow. */
	.fullstack-page-section-sponsor-logos.is-carousel-mode {
		overflow-x: hidden;
	}
	.fullstack-page-section-sponsor-carousel-viewport {
		min-width: 0;
	}
	.fullstack-page-section-sponsor-carousel-item {
		box-sizing: border-box;
	}

	/* Su mobile il full-width sponsor deve restare nel viewport senza overflow orizzontale. */
	.fullstack-page-section-sponsor-logos.is-carousel-fullwidth .fullstack-page-section-sponsor-carousel {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.fullstack-page-section-sponsor-item-link {
		padding: 0.7rem;
	}

	.fullstack-page-section-sponsor-item-logo {
		min-height: 72px;
	}

	.fullstack-page-section-sponsor-item-logo img {
		max-height: 64px;
	}

	.fullstack-page-section-content-card-title {
		font-size: 1.35rem;
	}
}

/* Contenuto principale WP (the_content) reso come section fluida */
.fullstack-entry-content-section {
	min-height: 0;
}

.fullstack-entry-content-section .entry-content {
	margin-bottom: 0;
}

/* Titolo per hero-separator: senza min-height e padding-bottom minimo */
.fullstack-entry-title-section-hero-separator {
	min-height: 0;
	padding-top: 1.5rem;
	padding-bottom: 0rem;
}
