/*
 * Pagina "Grazie — Ordine confermato".
 * Usa esclusivamente il sistema visivo già definito in frontend.css.
 */

html { scroll-behavior: smooth; }
.gaps-thankyou-body { background: var(--gaps-cream, #fffdf7); }
.gaps-thankyou-page { overflow: hidden; }
.gaps-thankyou-page section { scroll-margin-top: 24px; }
.gaps-ty-topbar { display: flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: 0.05em; }
.gaps-ty-topbar span {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	color: var(--gaps-teal-deep, #0b6560);
	background: #fff;
	font-weight: 800;
}

.gaps-ty-js .gaps-ty-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}
.gaps-ty-js .gaps-ty-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hero */
.gaps-ty-hero {
	position: relative;
	padding: clamp(72px, 9vw, 118px) 0 clamp(68px, 8vw, 104px);
	background:
		radial-gradient(circle at 10% 15%, rgba(44, 173, 169, 0.2), transparent 33%),
		radial-gradient(circle at 90% 85%, rgba(194, 78, 58, 0.14), transparent 35%),
		linear-gradient(135deg, #fffdf7 0%, #f8f2e4 54%, #fff7e9 100%);
}
.gaps-ty-hero::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -120px;
	width: 380px;
	height: 380px;
	border: 1px solid rgba(11, 101, 96, 0.1);
	border-radius: 50%;
	box-shadow: 0 0 0 46px rgba(11, 101, 96, 0.025), 0 0 0 92px rgba(11, 101, 96, 0.02);
}
.gaps-ty-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.72fr);
	align-items: center;
	gap: clamp(42px, 7vw, 86px);
}
.gaps-ty-hero-copy h1 {
	max-width: 760px;
	margin: 13px 0 22px;
	font-size: clamp(2.35rem, 5vw, 4.7rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
}
.gaps-ty-hero-sub {
	max-width: 64ch;
	margin: 0;
	color: var(--gaps-ink-soft, #3a3a3a);
	font-size: clamp(1.04rem, 1.6vw, 1.22rem);
	line-height: 1.68;
}
.gaps-ty-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}
.gaps-ty-trust-row span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 11px;
	border: 1px solid rgba(11, 101, 96, 0.13);
	border-radius: 999px;
	color: var(--gaps-teal-deep, #0b6560);
	background: rgba(255, 255, 255, 0.72);
	font-size: 0.82rem;
	font-weight: 700;
}
.gaps-ty-jump-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.gaps-ty-jump-nav a {
	color: var(--gaps-ink, #1a1a1a);
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(11, 101, 96, 0.32);
	text-underline-offset: 5px;
}
.gaps-ty-confirm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 42px 34px 38px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 28px;
	color: #fff;
	background: linear-gradient(155deg, var(--gaps-teal-deep, #0b6560), #084a47);
	box-shadow: 0 30px 70px rgba(11, 101, 96, 0.26);
	text-align: center;
	transform: rotate(1.3deg);
}
.gaps-ty-confirm-card::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 20px;
	pointer-events: none;
}
.gaps-ty-check {
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	margin-bottom: 22px;
	border-radius: 50%;
	color: var(--gaps-teal-deep, #0b6560);
	background: #fff;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
	animation: gaps-ty-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gaps-ty-check svg { width: 44px; height: 44px; }
.gaps-ty-confirm-card > strong { font-family: var(--gaps-font-display, "Fredoka", sans-serif); font-size: 1.45rem; }
.gaps-ty-confirm-card p { max-width: 32ch; margin: 12px 0 0; color: rgba(255, 255, 255, 0.82); line-height: 1.58; }
@keyframes gaps-ty-pop { from { opacity: 0; transform: scale(0.45) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

/* Order summary */
.gaps-ty-summary-section { padding: clamp(72px, 9vw, 112px) 0; background: #fff; }
.gaps-ty-summary-card {
	max-width: 980px;
	display: grid;
	grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
	align-items: center;
	gap: clamp(34px, 6vw, 72px);
	margin: 0 auto;
	padding: clamp(30px, 5vw, 58px);
	border: 1px solid rgba(11, 101, 96, 0.1);
	border-radius: 28px;
	background: linear-gradient(145deg, var(--gaps-cream, #fffdf7), #f8f2e7);
	box-shadow: 0 24px 64px rgba(54, 42, 26, 0.1);
}
.gaps-ty-summary-visual { position: relative; max-width: 245px; margin: 0 auto; }
.gaps-ty-summary-visual::before {
	content: "";
	position: absolute;
	inset: 9% -9% -7% 10%;
	border-radius: 18px;
	background: var(--gaps-teal-bright, #2cada9);
	opacity: 0.18;
	transform: rotate(6deg);
}
.gaps-ty-summary-visual img { position: relative; width: 100%; border-radius: 14px; box-shadow: 0 24px 40px rgba(31, 31, 25, 0.2); transform: rotate(-2.5deg); }
.gaps-ty-summary-body h2 { max-width: 600px; margin: 8px 0 8px; font-size: clamp(1.45rem, 2.7vw, 2.15rem); line-height: 1.13; }
.gaps-ty-summary-price { margin: 0 0 22px; color: var(--gaps-teal-deep, #0b6560); font-family: var(--gaps-font-display, "Fredoka", sans-serif); font-size: 1.8rem; font-weight: 700; }
.gaps-ty-summary-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gaps-ty-summary-list li { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 10px; color: var(--gaps-ink-soft, #3a3a3a); line-height: 1.52; }
.gaps-ty-summary-list li > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #fff; }
.gaps-ty-delivery-note { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding: 14px 16px; border-left: 4px solid var(--gaps-teal-bright, #2cada9); border-radius: 8px 12px 12px 8px; background: rgba(44, 173, 169, 0.08); }
.gaps-ty-delivery-note > span { font-size: 1.35rem; }
.gaps-ty-delivery-note div { display: grid; gap: 3px; }
.gaps-ty-delivery-note small { color: var(--gaps-ink-soft, #3a3a3a); line-height: 1.4; }

/* Checklist */
.gaps-ty-action-section { padding: clamp(76px, 9vw, 116px) 0; color: #fff; background: var(--gaps-teal-deep, #0b6560); }
.gaps-ty-action-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr); align-items: center; gap: clamp(44px, 7vw, 92px); }
.gaps-ty-action-intro .gaps-eyebrow { color: #b9f0e8; }
.gaps-ty-action-intro h2 { margin: 10px 0 17px; color: #fff; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.08; }
.gaps-ty-action-intro p { margin: 0; color: rgba(255, 255, 255, 0.76); line-height: 1.62; }
.gaps-ty-progress { height: 9px; margin-top: 30px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.15); }
.gaps-ty-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #f8d29a; transition: width 0.3s ease; }
.gaps-ty-action-intro .gaps-ty-progress-label { margin-top: 8px; color: #fff; font-size: 0.82rem; font-weight: 700; }
.gaps-ty-checklist { display: grid; gap: 12px; }
.gaps-ty-check-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; background: rgba(255, 255, 255, 0.08); cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease; }
.gaps-ty-check-item:hover { transform: translateX(4px); background: rgba(255, 255, 255, 0.12); }
.gaps-ty-check-item input { position: absolute; opacity: 0; pointer-events: none; }
.gaps-ty-check-control { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, 0.58); border-radius: 8px; }
.gaps-ty-check-control::after { content: "✓"; opacity: 0; color: var(--gaps-teal-deep, #0b6560); font-weight: 900; transform: scale(0.4); transition: opacity 0.16s ease, transform 0.16s ease; }
.gaps-ty-check-item input:focus-visible + .gaps-ty-check-control { outline: 3px solid #f8d29a; outline-offset: 3px; }
.gaps-ty-check-item input:checked + .gaps-ty-check-control { border-color: #f8d29a; background: #f8d29a; }
.gaps-ty-check-item input:checked + .gaps-ty-check-control::after { opacity: 1; transform: scale(1); }
.gaps-ty-check-item:has(input:checked) { border-color: rgba(248, 210, 154, 0.55); background: rgba(255, 255, 255, 0.14); }
.gaps-ty-check-item > span:last-child { display: grid; gap: 4px; }
.gaps-ty-check-item strong { color: #fff; font-size: 1rem; }
.gaps-ty-check-item small { color: rgba(255, 255, 255, 0.7); font-size: 0.84rem; line-height: 1.5; }

/* Value cards */
.gaps-ty-value-section { padding: clamp(78px, 9vw, 118px) 0; background: var(--gaps-cream, #fffdf7); }
.gaps-ty-section-heading { max-width: 720px; margin: 0 auto 45px; text-align: center; }
.gaps-ty-section-heading h2 { margin: 9px 0 13px; font-size: clamp(1.85rem, 3.6vw, 3rem); line-height: 1.08; }
.gaps-ty-section-heading p { margin: 0; color: var(--gaps-ink-soft, #3a3a3a); font-size: 1.04rem; line-height: 1.6; }
.gaps-ty-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gaps-ty-value-card { min-height: 260px; padding: 28px; border: 1px solid rgba(11, 101, 96, 0.1); border-radius: 20px; background: #fff; box-shadow: 0 15px 38px rgba(52, 42, 26, 0.07); }
.gaps-ty-value-card > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--gaps-teal-deep, #0b6560); font-family: var(--gaps-font-display, "Fredoka", sans-serif); font-size: 0.85rem; font-weight: 700; }
.gaps-ty-value-card h3 { margin: 30px 0 11px; font-size: 1.25rem; }
.gaps-ty-value-card p { margin: 0; color: var(--gaps-ink-soft, #3a3a3a); line-height: 1.62; }
.gaps-ty-safety-note { max-width: 800px; margin: 32px auto 0; padding: 16px 20px; border: 1px solid rgba(194, 78, 58, 0.16); border-radius: 14px; color: var(--gaps-ink-soft, #3a3a3a); background: rgba(194, 78, 58, 0.055); text-align: center; line-height: 1.55; }

/* Timeline */
.gaps-ty-next-section { padding: clamp(76px, 9vw, 112px) 0; background: #fff; }
.gaps-ty-timeline { position: relative; max-width: 800px; display: grid; gap: 12px; margin: 0 auto; }
.gaps-ty-timeline::before { content: ""; position: absolute; left: 28px; top: 38px; bottom: 38px; width: 2px; background: rgba(11, 101, 96, 0.18); }
.gaps-ty-timeline-item { position: relative; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 20px; padding: 18px 22px 18px 0; border: 1px solid rgba(11, 101, 96, 0.09); border-radius: 18px; background: var(--gaps-cream, #fffdf7); }
.gaps-ty-timeline-item > span { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; margin-left: 7px; border-radius: 50%; color: #fff; background: var(--gaps-teal-deep, #0b6560); font-family: var(--gaps-font-display, "Fredoka", sans-serif); font-weight: 700; }
.gaps-ty-timeline-item strong { font-size: 1.06rem; }
.gaps-ty-timeline-item p { margin: 4px 0 0; color: var(--gaps-ink-soft, #3a3a3a); line-height: 1.5; }

/* FAQ */
.gaps-ty-faq-section { padding: clamp(76px, 9vw, 112px) 0; background: #f5eee1; }
.gaps-ty-faq-layout { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); align-items: start; gap: clamp(42px, 7vw, 88px); }
.gaps-ty-faq-intro { position: sticky; top: 28px; }
.gaps-ty-faq-intro h2 { margin: 9px 0 14px; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; }
.gaps-ty-faq-intro p { margin: 0; color: var(--gaps-ink-soft, #3a3a3a); line-height: 1.6; }
.gaps-ty-faq-list { display: grid; gap: 10px; }
.gaps-ty-faq-list details { overflow: hidden; border: 1px solid rgba(11, 101, 96, 0.1); border-radius: 15px; background: #fff; }
.gaps-ty-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; color: var(--gaps-ink, #1a1a1a); font-weight: 700; cursor: pointer; list-style: none; }
.gaps-ty-faq-list summary::-webkit-details-marker { display: none; }
.gaps-ty-faq-list summary span { display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 50%; color: var(--gaps-teal-deep, #0b6560); background: rgba(44, 173, 169, 0.1); font-size: 1.1rem; transition: transform 0.2s ease; }
.gaps-ty-faq-list details[open] summary span { transform: rotate(45deg); }
.gaps-ty-faq-list details p { margin: 0; padding: 0 20px 20px; color: var(--gaps-ink-soft, #3a3a3a); line-height: 1.62; }

/* Course */
.gaps-ty-course-section { padding: clamp(76px, 9vw, 112px) 0; background: #fff; }
.gaps-ty-course-wrap { max-width: 980px; display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: clamp(28px, 5vw, 54px); margin: 0 auto; padding: clamp(34px, 6vw, 58px); border: 1px solid rgba(11, 101, 96, 0.14); border-radius: 26px; background: linear-gradient(135deg, rgba(44, 173, 169, 0.1), rgba(245, 217, 168, 0.22)); }
.gaps-ty-course-icon { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 34px; color: #fff; background: var(--gaps-teal-deep, #0b6560); box-shadow: 0 18px 40px rgba(11, 101, 96, 0.2); font-size: 3.5rem; transform: rotate(-4deg); }
.gaps-ty-course-wrap h2 { margin: 8px 0 13px; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
.gaps-ty-course-wrap p { max-width: 65ch; margin: 0 0 22px; color: var(--gaps-ink-soft, #3a3a3a); line-height: 1.6; }
.gaps-ty-course-wrap .gaps-btn-primary { display: inline-flex; }
.gaps-ty-course-wrap .gaps-ty-course-micro { margin: 13px 0 0; font-size: 0.8rem; }

.gaps-ty-contact-section { text-align: center; }
.gaps-ty-contact-section .gaps-eyebrow { color: #c7f5ed; }
.gaps-ty-contact-section h2 { max-width: 720px; margin: 10px auto 28px; }
.gaps-ty-contact-section .gaps-contact-pill > span:first-child { display: inline-grid; place-items: center; min-width: 24px; }

@media (max-width: 900px) {
	.gaps-ty-hero-grid,
	.gaps-ty-action-grid,
	.gaps-ty-faq-layout { grid-template-columns: 1fr; }
	.gaps-ty-hero-copy { text-align: center; }
	.gaps-ty-hero-sub { margin-inline: auto; }
	.gaps-ty-trust-row,
	.gaps-ty-jump-nav { justify-content: center; }
	.gaps-ty-confirm-card { max-width: 430px; margin: 0 auto; transform: none; }
	.gaps-ty-action-intro { max-width: 680px; text-align: center; margin: 0 auto; }
	.gaps-ty-faq-intro { position: static; max-width: 680px; margin: 0 auto; text-align: center; }
	.gaps-ty-value-grid { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
	.gaps-ty-value-card { min-height: 0; }
}

@media (max-width: 650px) {
	.gaps-ty-topbar { padding-inline: 12px; font-size: 0.72rem; }
	.gaps-ty-hero { padding-top: 62px; }
	.gaps-ty-hero-copy h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
	.gaps-ty-trust-row span { width: 100%; justify-content: center; }
	.gaps-ty-jump-nav { gap: 12px 16px; }
	.gaps-ty-summary-card { grid-template-columns: 1fr; text-align: center; }
	.gaps-ty-summary-visual { max-width: 170px; }
	.gaps-ty-summary-list { text-align: left; }
	.gaps-ty-delivery-note { text-align: left; }
	.gaps-ty-action-grid { gap: 34px; }
	.gaps-ty-check-item { padding: 17px; }
	.gaps-ty-course-wrap { grid-template-columns: 1fr; text-align: center; }
	.gaps-ty-course-icon { width: 94px; height: 94px; margin: 0 auto; border-radius: 26px; font-size: 2.8rem; }
	.gaps-ty-course-wrap .gaps-btn-primary { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gaps-ty-check { animation: none; }
	.gaps-ty-js .gaps-ty-reveal { opacity: 1; transform: none; transition: none; }
	.gaps-ty-check-item,
	.gaps-ty-progress span { transition: none; }
}
