/* =========================================================================
   AGS CREDITI — stile principale.
   Mappatura 1:1 delle utility Tailwind del template Lovable, con prefisso ags-.
   ========================================================================= */

:root {
	--navy: var(--wp--preset--color--navy, oklch(0.26 0.09 265));
	--navy-deep: var(--wp--preset--color--navy-deep, oklch(0.19 0.07 265));
	--gold: var(--wp--preset--color--gold, oklch(0.75 0.11 82));
	--gold-soft: var(--wp--preset--color--gold-soft, oklch(0.86 0.08 85));
	--cloud: var(--wp--preset--color--cloud, oklch(0.975 0.003 260));
	--ink: var(--wp--preset--color--ink, oklch(0.22 0.02 260));
	--muted: var(--wp--preset--color--muted, oklch(0.5 0.02 260));
	--border: var(--wp--preset--color--border, oklch(0.92 0.008 260));

	--radius: 0.5rem;
	--shadow-soft: 0 10px 40px -20px color-mix(in oklab, var(--navy) 25%, transparent);
	--shadow-elevated: 0 24px 60px -30px color-mix(in oklab, var(--navy) 40%, transparent);
	--header-h: 4rem;
}

@media (min-width: 768px) {
	:root {
		--header-h: 5rem;
	}
}

/* --- Base ------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	/* clip, MAI hidden: hidden creerebbe un contenitore di scroll e romperebbe position:sticky. */
	overflow-x: clip;
}

body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.ags-section {
	scroll-margin-top: var(--header-h);
}

/* WordPress applica margin-block-start ai figli dei group (layout "flow"): dentro una
   griglia questo sfalsa le colonne, perché il primo figlio non lo riceve. Lo azzeriamo. */
.ags-hero__grid > *,
.ags-hero__usp > *,
.ags-cards > *,
.ags-problem__list > *,
.ags-steps > *,
.ags-checklist > *,
.ags-quizabout__grid > *,
.ags-contact__grid > *,
.ags-footer__top > * {
	margin-block: 0;
}

.ags-container {
	width: 100%;
	margin-inline: auto;
	padding-inline: 1.25rem;
	max-width: 76rem;
}

.ags-ico {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
	flex: none;
}

.ags-eyebrow {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
}

.ags-lead {
	color: color-mix(in oklab, var(--ink) 70%, transparent);
	line-height: 1.7;
}

@media (min-width: 768px) {
	.ags-lead {
		font-size: 1.125rem;
	}
}

.ags-italic {
	font-style: italic;
}

.ags-gold {
	color: var(--gold);
}

/* --- Bottoni ---------------------------------------------------------- */

.ags-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 0;
	border-radius: 9999px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ags-btn:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.ags-btn--primary {
	background: var(--navy);
	color: #fff;
	padding: 1rem 1.75rem;
	font-size: 1rem;
	box-shadow: var(--shadow-elevated);
}

.ags-btn--primary:hover {
	background: var(--navy-deep);
	color: #fff;
}

.ags-btn--gold {
	background: var(--gold);
	color: var(--navy);
	padding: 0.875rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.ags-btn--gold:hover {
	background: var(--gold-soft);
	color: var(--navy);
}

.ags-btn--sm {
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
	background: var(--navy);
	color: #fff;
	box-shadow: var(--shadow-soft);
}

.ags-btn--sm:hover {
	background: var(--navy-deep);
	color: #fff;
}

.ags-btn .ags-ico {
	width: 1rem;
	height: 1rem;
	transition: transform 0.2s ease;
}

.ags-btn:hover .ags-ico {
	transform: translateX(0.25rem);
}

.ags-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* --- Header ----------------------------------------------------------- */

.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky;
	top: 0;
	z-index: 40;
}

.ags-header {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ags-header.is-scrolled {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom-color: var(--border);
	box-shadow: 0 1px 20px -15px rgba(15, 33, 68, 0.4);
}

.ags-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	height: var(--header-h);
}

.ags-header__logo {
	display: flex;
	align-items: center;
	flex: none;
}

.ags-header__logo img {
	height: 2.25rem;
	width: auto;
	display: block;
}

@media (min-width: 768px) {
	.ags-header__logo img {
		height: 3rem;
	}
}

.ags-nav {
	display: none;
	align-items: center;
	gap: 1.75rem;
}

@media (min-width: 900px) {
	.ags-nav {
		display: flex;
	}
}

.ags-nav a {
	font-size: 0.875rem;
	font-weight: 500;
	color: color-mix(in oklab, var(--ink) 80%, transparent);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.ags-nav a:hover,
.ags-nav a.is-active {
	color: var(--navy);
}

/* Il bottone dentro la nav: il colore della voce di menu non deve prevalere. */
.ags-nav a.ags-btn,
.ags-nav a.ags-btn:hover,
.ags-menu__panel a.ags-btn,
.ags-menu__panel a.ags-btn:hover {
	color: #fff;
}

/* Menu mobile: <details>, nessun JS necessario. */
.ags-menu {
	position: relative;
}

@media (min-width: 900px) {
	.ags-menu {
		display: none;
	}
}

.ags-menu > summary {
	list-style: none;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 9999px;
	color: var(--navy);
	cursor: pointer;
}

.ags-menu > summary::-webkit-details-marker {
	display: none;
}

.ags-menu > summary .ags-ico--close,
.ags-menu[open] > summary .ags-ico--open {
	display: none;
}

.ags-menu[open] > summary .ags-ico--close {
	display: block;
}

.ags-menu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	min-width: 15rem;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 1rem;
	box-shadow: var(--shadow-elevated);
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.ags-menu__panel a {
	padding: 0.75rem 1rem;
	border-radius: 0.625rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--navy);
	text-decoration: none;
}

.ags-menu__panel a:hover {
	background: var(--cloud);
}

.ags-menu__panel .ags-btn {
	margin-top: 0.5rem;
	justify-content: center;
}

/* --- Hero ------------------------------------------------------------- */

.ags-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to bottom, var(--cloud) 0%, #fff 100%);
	padding-block: 3.5rem 4rem;
}

@media (min-width: 768px) {
	.ags-hero {
		padding-block: 5rem;
	}
}

.ags-hero::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 520px;
	pointer-events: none;
	background:
		radial-gradient(60% 60% at 80% 0%, rgba(201, 162, 76, 0.1), transparent 60%),
		radial-gradient(50% 60% at 0% 20%, rgba(15, 33, 68, 0.06), transparent 60%);
}

.ags-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.ags-hero__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 4rem;
	}
}

.ags-hero h1 {
	font-size: clamp(2.25rem, 6vw, 3.75rem);
	margin: 0;
}

.ags-hero__sub {
	margin-top: 1.5rem;
	max-width: 36rem;
}

.ags-hero__note {
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: var(--muted);
}

.ags-hero__usp {
	margin-top: 2.5rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	max-width: 32rem;
}

.ags-hero__usp > .wp-block-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

.ags-hero__usp .ags-hero__usp-ico {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--radius);
	background: color-mix(in oklab, var(--navy) 5%, transparent);
	color: var(--navy);
	margin: 0;
}

.ags-hero__usp .ags-ico {
	width: 1rem;
	height: 1rem;
}

.ags-hero__usp p {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	color: color-mix(in oklab, var(--ink) 70%, transparent);
}

.ags-hero__visual {
	position: relative;
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: var(--shadow-elevated);
	background: var(--cloud);
	max-width: 28rem;
	margin-inline: auto;
}

@media (min-width: 1024px) {
	.ags-hero__visual {
		max-width: none;
	}
}

.ags-hero__visual figure {
	margin: 0;
}

.ags-hero__visual img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: right;
}

@media (min-width: 640px) and (max-width: 1023px) {
	.ags-hero__visual img {
		aspect-ratio: 4 / 3;
	}
}

.ags-hero__cta {
	margin-top: 2rem;
}

/* --- Sezione problema ------------------------------------------------- */

.ags-problem {
	padding-block: 3.5rem;
	background: color-mix(in oklab, var(--cloud) 40%, #fff);
}

@media (min-width: 768px) {
	.ags-problem {
		padding-block: 5rem;
	}
}

.ags-head--center {
	margin-inline: auto;
	max-width: 48rem;
	text-align: center;
}

.ags-head--center h2,
.ags-head h2 {
	margin-top: 1rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.ags-head {
	max-width: 44rem;
}

.ags-head p {
	margin-top: 1rem;
}

.ags-problem__list {
	margin: 2.5rem auto 0;
	max-width: 42rem;
	border-block: 1px solid var(--border);
}

.ags-problem__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding-block: 1.25rem;
	border-top: 1px solid var(--border);
}

.ags-problem__item:first-child {
	border-top: 0;
}

.ags-problem__ico {
	margin: 0.125rem 0 0;
	color: var(--gold);
	flex: none;
}

.ags-problem__ico .ags-ico {
	stroke-width: 1.5;
}

.ags-problem__body {
	min-width: 0;
}

.ags-problem__list h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.ags-problem__body p {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: color-mix(in oklab, var(--ink) 70%, transparent);
}

@media (min-width: 1024px) {
	.ags-problem__list {
		margin-top: 3rem;
		max-width: none;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		border-block: 0;
	}

	.ags-problem__item {
		display: block;
		padding: 0 1.5rem;
		border-top: 0;
		border-left: 1px solid var(--border);
	}

	.ags-problem__item:first-child {
		border-left: 0;
	}

	.ags-problem__list h3 {
		margin-top: 1rem;
	}

	.ags-problem__body p {
		margin-top: 0.5rem;
	}
}

/* --- Soluzioni -------------------------------------------------------- */

.ags-solutions {
	padding-block: 3.5rem;
	background: var(--cloud);
}

@media (min-width: 768px) {
	.ags-solutions {
		padding-block: 6rem;
	}
}

.ags-cards {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.ags-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ags-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 1rem;
	padding: 2rem;
	background: #fff;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-soft);
}

.ags-card__ico {
	margin: 0;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.75rem;
	background: color-mix(in oklab, var(--navy) 5%, transparent);
	color: var(--navy);
}

.ags-card h3 {
	margin: 1.5rem 0 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

.ags-card__sub {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	font-style: italic;
	color: var(--gold);
}

.ags-card > p:last-child {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	line-height: 1.7;
	color: color-mix(in oklab, var(--ink) 70%, transparent);
}

.ags-card--featured {
	background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: var(--shadow-elevated);
}

@media (min-width: 768px) {
	.ags-card--featured {
		transform: translateY(-0.5rem);
	}
}

.ags-card--featured h3 {
	color: #fff;
}

.ags-card--featured .ags-card__ico {
	background: rgba(255, 255, 255, 0.1);
	color: var(--gold);
}

.ags-card--featured .ags-card__sub {
	color: var(--gold-soft);
}

.ags-card--featured > p:last-child {
	color: rgba(255, 255, 255, 0.8);
}

.ags-card__badge {
	margin: 0;
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--gold);
}

/* --- Metodo ----------------------------------------------------------- */

.ags-method {
	padding-block: 3.5rem;
	background: #fff;
}

@media (min-width: 768px) {
	.ags-method {
		padding-block: 6rem;
	}
}

.ags-steps {
	position: relative;
	margin-top: 3.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

@media (min-width: 768px) {
	.ags-steps {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.ags-steps::before {
		content: "";
		position: absolute;
		top: 1.5rem;
		left: 10%;
		right: 10%;
		height: 1px;
		background: linear-gradient(to right, transparent, color-mix(in oklab, var(--gold) 50%, transparent), transparent);
	}
}

.ags-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	text-align: left;
}

@media (min-width: 768px) {
	.ags-step {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

.ags-step__body {
	min-width: 0;
}

.ags-steps__n {
	margin: 0;
	flex: none;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	background: var(--navy);
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	box-shadow: var(--shadow-soft);
	box-shadow: 0 0 0 4px #fff, var(--shadow-soft);
}

.ags-steps h3 {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.35;
}

.ags-step__body p {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	line-height: 1.7;
	color: color-mix(in oklab, var(--ink) 70%, transparent);
}

/* --- Quiz + Chi siamo ------------------------------------------------- */

.ags-quizabout {
	padding-block: 3.5rem;
	background: var(--cloud);
}

@media (min-width: 768px) {
	.ags-quizabout {
		padding-block: 6rem;
	}
}

.ags-quizabout__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	align-items: stretch;
}

@media (min-width: 1024px) {
	.ags-quizabout__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3.5rem;
	}
}

.ags-quizbox {
	position: relative;
	overflow: hidden;
	border-radius: 1.5rem;
	padding: 2rem;
	background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
	color: #fff;
	box-shadow: var(--shadow-elevated);
}

@media (min-width: 768px) {
	.ags-quizbox {
		padding: 2.5rem;
	}
}

.ags-quizbox::before {
	content: "";
	position: absolute;
	top: -6rem;
	right: -6rem;
	width: 16rem;
	height: 16rem;
	border-radius: 9999px;
	background: color-mix(in oklab, var(--gold) 15%, transparent);
	filter: blur(48px);
	pointer-events: none;
}

.ags-quizbox > * {
	position: relative;
}

.ags-quizbox h2 {
	margin: 1.25rem 0 0;
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	line-height: 1.25;
}

.ags-quizbox p {
	margin: 1rem 0 0;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.7;
}

.ags-pill {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.1);
	padding: 0.375rem 0.75rem;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--gold-soft);
}

.ags-pill .ags-ico {
	width: 0.875rem;
	height: 0.875rem;
}

.ags-gauge {
	position: relative;
	margin-top: 2rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.ags-gauge__ring {
	position: relative;
	width: 6rem;
	height: 6rem;
	flex: none;
}

.ags-gauge__ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.ags-gauge__ring .ags-ico {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--gold);
}

.ags-gauge__label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.5);
}

.ags-gauge__value {
	margin-top: 0.25rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	line-height: 1.3;
}

.ags-quizbox__cta {
	margin-top: 2rem;
}

.ags-about {
	border-radius: 1.5rem;
	background: #fff;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-soft);
	padding: 2rem;
}

@media (min-width: 768px) {
	.ags-about {
		padding: 2.5rem;
	}
}

.ags-about h2 {
	margin: 1rem 0 0;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.ags-about__body {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: flex-start;
}

@media (min-width: 768px) {
	.ags-about__body {
		flex-direction: row;
	}
}

.ags-about__photo {
	flex: none;
	width: 11rem;
	margin-inline: auto;
	border-radius: 1rem;
	background: var(--cloud);
	border: 1px solid var(--border);
	padding: 0.75rem;
}

@media (min-width: 768px) {
	.ags-about__photo {
		width: 12rem;
		margin-inline: 0;
	}
}

.ags-about__photo figure {
	margin: 0;
}

.ags-about__photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.75rem;
	object-fit: cover;
}

.ags-about__text {
	min-width: 0;
	color: color-mix(in oklab, var(--ink) 80%, transparent);
	line-height: 1.7;
}

.ags-about__text p {
	margin: 0 0 1rem;
}

.ags-about__sign {
	padding-top: 0.5rem;
	border-top: 1px solid var(--border);
}

.ags-about__sign p {
	margin: 0;
}

.ags-about__sign strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 1.125rem;
	color: var(--navy);
}

.ags-about__sign span {
	font-size: 0.875rem;
	color: color-mix(in oklab, var(--ink) 60%, transparent);
}

/* --- Contatti --------------------------------------------------------- */

.ags-contact {
	padding-block: 3.5rem;
	background: #fff;
}

@media (min-width: 768px) {
	.ags-contact {
		padding-block: 6rem;
	}
}

.ags-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.ags-contact__grid {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 3.5rem;
	}

	.ags-contact__intro {
		position: sticky;
		top: calc(var(--header-h) + 2rem);
	}
}

.ags-contact__intro h2 {
	margin: 1rem 0 0;
	font-size: clamp(1.75rem, 4.5vw, 3rem);
}

.ags-contact__intro p {
	margin-top: 1.25rem;
}

.ags-checklist {
	margin-top: 2rem;
	display: grid;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: color-mix(in oklab, var(--ink) 80%, transparent);
}

.ags-checklist p {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ags-checklist .ags-ico {
	width: 1rem;
	height: 1rem;
	color: var(--gold);
}

.ags-formwrap {
	border-radius: 1.5rem;
	border: 1px solid var(--border);
	background: color-mix(in oklab, var(--cloud) 60%, #fff);
	padding: 1.5rem;
	box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
	.ags-formwrap {
		padding: 2.5rem;
	}
}

/* --- Form (Contact Form 7) -------------------------------------------- */

.ags-form p {
	margin: 0;
}

.ags-form .ags-field {
	display: block;
	margin-bottom: 1.5rem;
}

.ags-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--navy);
	margin-bottom: 0.5rem;
}

.ags-form .ags-req {
	color: var(--gold);
}

.ags-form input[type="text"],
.ags-form input[type="email"],
.ags-form input[type="tel"],
.ags-form textarea {
	display: block;
	width: 100%;
	border-radius: 0.75rem;
	border: 1px solid var(--border);
	background: #fff;
	padding: 0.875rem 1rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	box-shadow: 0 1px 2px rgba(15, 33, 68, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ags-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.ags-form input::placeholder,
.ags-form textarea::placeholder {
	color: var(--muted);
}

.ags-form input:focus,
.ags-form textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 30%, transparent);
}

.ags-form .ags-consent {
	display: block;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: color-mix(in oklab, var(--ink) 75%, transparent);
}

.ags-form .ags-consent .wpcf7-list-item {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.ags-form .ags-consent input[type="checkbox"] {
	margin-top: 0.3rem;
	width: 1rem;
	height: 1rem;
	flex: none;
	accent-color: var(--navy);
}

.ags-form .ags-consent .wpcf7-list-item-label {
	font-weight: 400;
}

.ags-form .ags-btn {
	width: 100%;
}

.ags-form .wpcf7-spinner {
	display: block;
	margin: 0.75rem auto 0;
}

.ags-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.375rem;
	font-size: 0.8125rem;
	color: oklch(0.58 0.22 27);
}

.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	border-radius: 0.75rem;
	border-width: 1px;
	padding: 0.875rem 1rem;
	font-size: 0.875rem;
}

/* --- Footer ----------------------------------------------------------- */

.ags-footer {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.8);
}

.ags-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ags-footer a:hover {
	color: var(--gold);
}

.ags-footer__inner {
	padding-block: 3.5rem;
}

.ags-footer__top {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.ags-footer__top {
		grid-template-columns: 1fr auto;
		align-items: start;
	}
}

.ags-footer__brand {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.ags-footer__mark {
	display: grid;
	place-items: center;
	flex: none;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 0.75rem;
	background: #fff;
	padding: 0.375rem;
}

.ags-footer__mark img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.ags-footer__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	color: #fff;
}

.ags-footer__addr {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
}

.ags-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.875rem;
}

@media (min-width: 768px) {
	.ags-footer__links {
		align-items: flex-end;
	}
}

.ags-footer__bottom {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
	.ags-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* --- Pagine legali ---------------------------------------------------- */

.ags-page {
	padding-block: 3.5rem 5rem;
}

@media (min-width: 768px) {
	.ags-page {
		padding-block: 5rem 6rem;
	}
}

.ags-page__title {
	font-size: clamp(1.875rem, 5vw, 3rem);
	margin: 0;
}

.ags-page__rule {
	width: 3rem;
	height: 3px;
	border: 0;
	margin: 1.25rem 0 2.5rem;
	background: var(--gold);
	border-radius: 2px;
}

.ags-prose {
	max-width: 48rem;
	line-height: 1.8;
	color: color-mix(in oklab, var(--ink) 85%, transparent);
}

.ags-prose h2 {
	margin-top: 2.5rem;
	font-size: 1.5rem;
}

.ags-prose h3 {
	margin-top: 2rem;
	font-size: 1.1875rem;
}

.ags-prose p,
.ags-prose ul,
.ags-prose ol {
	margin-block: 1rem;
}

.ags-prose ul,
.ags-prose ol {
	padding-left: 1.5rem;
}

.ags-prose li {
	margin-block: 0.375rem;
}

.ags-prose a {
	color: var(--navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ags-prose a:hover {
	color: var(--gold);
}

/* --- Reveal on scroll ------------------------------------------------- */

/* Nasconde solo se il JS è attivo: senza JS il contenuto resta visibile. */
.ags-js .ags-reveal {
	opacity: 0;
	transform: translateY(1.25rem);
	transition: opacity 0.7s ease, transform 0.7s ease;
	will-change: opacity, transform;
}

.ags-js .ags-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ags-js .ags-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* --- Back to top ------------------------------------------------------ */

.ags-totop {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 30;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 9999px;
	background: var(--navy);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--shadow-elevated);
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.ags-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ags-totop .ags-ico {
	width: 1.125rem;
	height: 1.125rem;
	transform: rotate(-90deg);
}

.ags-totop:hover {
	background: var(--navy-deep);
}

/* --- Accessibilità ---------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
