/* GioEat – pagina di registrazione (mobile-first) */

/* ---------- Pagina intera ---------- */
body.gioeat-page {
	--ge-red: #e31b23;
	--ge-red-dark: #b8141b;
	--ge-ink: #1b1b1f;
	--ge-muted: #66666e;
	--ge-line: #e4e1dc;
	--ge-cream: #fff8f0;
	--ge-dark: #1f2228;
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--ge-cream);
	color: var(--ge-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body.gioeat-page *, body.gioeat-page *::before, body.gioeat-page *::after { box-sizing: border-box; }

.ge-top {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 20px;
	background: #fff;
	border-bottom: 1px solid var(--ge-line);
}
.ge-logo { display: inline-flex; line-height: 0; }
.ge-logo img { display: block; width: auto; height: 36px; }
@media (min-width: 900px) { .ge-logo img { height: 44px; } }

.ge-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 0 32px;
	display: flex;
	flex-direction: column;
}

/* ---------- Testata (su cellulare: compatta, sopra il modulo) ---------- */
.ge-hero {
	padding: 28px 22px 8px;
	background: var(--ge-dark);
	color: #fff;
}
.ge-hero__eyebrow { margin: 0 0 8px; color: #ff6b6b; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ge-hero__title { margin: 0 0 10px; font-size: 32px; line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.ge-hero__text { margin: 0 0 18px; color: #d7d9de; }
.ge-benefits { list-style: none; margin: 0; padding: 0 0 70px; display: grid; gap: 10px; }
.ge-benefits li { display: flex; gap: 10px; align-items: center; color: #eceef2; font-size: 15px; }
.ge-benefits span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; background: rgba(255, 255, 255, .08); }

.ge-form-wrap { padding: 0 14px; margin-top: -56px; }

.ge-footer { padding: 18px 20px 28px; text-align: center; color: var(--ge-muted); font-size: 13px; }
.ge-footer p { margin: 0; }
.ge-footer p + p { margin-top: 4px; }
.ge-footer a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ge-footer a:hover { color: var(--ge-red); }

/* ---------- Scheda del modulo ---------- */
.gioeat-registro {
	--ge-red: #e31b23;
	--ge-red-dark: #b8141b;
	--ge-ink: #1b1b1f;
	--ge-muted: #66666e;
	--ge-line: #e4e1dc;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding: 26px 20px 24px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 18px 50px rgba(31, 34, 40, .14);
	color: var(--ge-ink);
}
.gioeat-registro__eyebrow { margin: 0 0 6px; color: var(--ge-red); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gioeat-registro__title { margin: 0 0 6px; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.gioeat-registro__intro { margin: 0 0 8px; color: var(--ge-muted); }
.gioeat-registro__form label { display: block; margin: 18px 0 6px; font-size: 14px; font-weight: 700; }
.gioeat-registro__form input[type="text"],
.gioeat-registro__form input[type="email"],
.gioeat-registro__form input[type="tel"],
.gioeat-registro__form select {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1.5px solid var(--ge-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ge-ink);
	font: inherit;
	font-size: 16px; /* evita lo zoom automatico su iPhone */
	-webkit-appearance: none;
	appearance: none;
}
.gioeat-registro__form select {
	background-image: linear-gradient(45deg, transparent 50%, #66666e 50%), linear-gradient(135deg, #66666e 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	padding-right: 40px;
}
.gioeat-registro__form input:focus, .gioeat-registro__form select:focus {
	outline: none;
	border-color: var(--ge-red);
	box-shadow: 0 0 0 4px rgba(227, 27, 35, .14);
}
.gioeat-registro__slug { display: flex; align-items: stretch; border: 1.5px solid var(--ge-line); border-radius: 12px; overflow: hidden; background: #fff; }
.gioeat-registro__slug:focus-within { border-color: var(--ge-red); box-shadow: 0 0 0 4px rgba(227, 27, 35, .14); }
.gioeat-registro__slug input[type="text"] { flex: 1 1 0; width: auto; min-width: 80px; border: 0 !important; box-shadow: none !important; border-radius: 0; }
.gioeat-registro__slug span { display: flex; align-items: center; padding: 0 12px; background: #f7f5f2; color: var(--ge-muted); font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
.gioeat-registro__hint { min-height: 20px; margin: 6px 0 0; font-size: 13px; color: var(--ge-muted); }
.gioeat-registro__hint.is-ok { color: #0a7a2f; font-weight: 600; }
.gioeat-registro__hint.is-bad { color: var(--ge-red-dark); font-weight: 600; }
/* ---------- Scelta del pacchetto ---------- */
.gioeat-plans { margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.gioeat-plans legend { display: block; margin: 18px 0 8px; padding: 0; font-weight: 700; font-size: 14px; color: var(--ge-ink, #1f2228); }
.gioeat-plan {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px !important;
	padding: 14px 16px;
	border: 1.5px solid var(--ge-line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	font-weight: 400 !important;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.gioeat-registro__form .gioeat-plan input:focus { box-shadow: none; }
.gioeat-plan input[type="radio"] { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--ge-red); }
.gioeat-plan__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.gioeat-plan__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 800; font-size: 17px; color: var(--ge-ink, #1f2228); }
.gioeat-plan__sub { font-size: 13px; color: var(--ge-muted); margin-top: 2px; }
.gioeat-plan__price { flex: 0 0 auto; font-weight: 800; font-size: 15px; color: var(--ge-ink, #1f2228); text-align: right; }
.gioeat-plan__badge--soon { background: #1e3a8a !important; }
.gioeat-plan.is-soon { opacity: .75; cursor: not-allowed; }
.gioeat-plan__badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--ge-red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
/* Telefoni piccoli: il prezzo va sotto il nome, così l'etichetta "Consigliato" non lo copre mai. */
@media (max-width: 400px) {
	.gioeat-plan { flex-wrap: wrap; row-gap: 6px; }
	.gioeat-plan__body { flex-basis: calc(100% - 34px); }
	.gioeat-plan__price { flex-basis: 100%; padding-left: 34px; text-align: left; }
}
.gioeat-plan:has(input:checked) { border-color: var(--ge-red); background: #fff5f5; box-shadow: 0 0 0 4px rgba(227, 27, 35, .10); }
.gioeat-plan:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(227, 27, 35, .25); }

.gioeat-compare { margin: 4px 0 6px; }
.gioeat-compare summary { cursor: pointer; padding: 8px 0; color: var(--ge-red); font-weight: 700; font-size: 14px; list-style: none; }
.gioeat-compare summary::-webkit-details-marker { display: none; }
.gioeat-compare summary::after { content: " ▾"; }
.gioeat-compare[open] summary::after { content: " ▴"; }
.gioeat-compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ge-line); border-radius: 12px; }
.gioeat-compare table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gioeat-compare th, .gioeat-compare td { padding: 9px 8px; border-bottom: 1px solid var(--ge-line); text-align: center; }
.gioeat-compare thead th { background: #f7f5f2; font-weight: 800; white-space: nowrap; }
.gioeat-compare tbody th { text-align: left; font-weight: 400; color: var(--ge-ink, #1f2228); min-width: 140px; }
.gioeat-compare tr:last-child th, .gioeat-compare tr:last-child td { border-bottom: 0; }
.gioeat-compare td.yes { color: #0a7a2f; font-weight: 800; }
.gioeat-compare td.no { color: #c3c0bb; }

.gioeat-registro__plan-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff5f5; color: var(--ge-ink, #1f2228); font-size: 13px; line-height: 1.45; text-align: center; }
.gioeat-registro__plan-note:empty { display: none; }

.gioeat-registro__check { display: flex !important; gap: 12px; align-items: flex-start; margin-top: 20px !important; font-weight: 400 !important; font-size: 14px !important; color: var(--ge-muted); }
.gioeat-registro__check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--ge-red); }
.gioeat-registro__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gioeat-registro .cf-turnstile { margin-top: 16px; }
.gioeat-registro__submit {
	width: 100%;
	min-height: 56px;
	margin-top: 22px;
	border: 0;
	border-radius: 14px;
	background: var(--ge-red);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(227, 27, 35, .28);
	transition: background .15s ease, transform .15s ease;
}
.gioeat-registro__submit:hover { background: var(--ge-red-dark); }
.gioeat-registro__submit:active { transform: scale(.98); }
.gioeat-registro__small { margin: 12px 0 0; text-align: center; color: var(--ge-muted); font-size: 13px; }
.gioeat-registro__notice { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.gioeat-registro__notice--error { background: #fdecec; color: var(--ge-red-dark); }
.gioeat-registro__done { padding: 18px 4px 10px; text-align: center; }
.gioeat-registro__done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #e9f7ee;
	color: #0a7a2f;
	font-size: 36px;
	font-weight: 800;
}

/* ---------- Schermi grandi: due colonne ---------- */
@media (min-width: 900px) {
	.ge-top { justify-content: flex-start; padding: 18px 40px; }
	.ge-main { flex-direction: row; align-items: flex-start; gap: 48px; padding: 56px 40px; }
	.ge-hero { flex: 1 1 50%; padding: 40px; border-radius: 24px; }
	.ge-hero__title { font-size: 52px; }
	.ge-hero__text { font-size: 18px; }
	.ge-benefits { padding-bottom: 0; gap: 14px; }
	.ge-benefits li { font-size: 16px; }
	.ge-form-wrap { flex: 1 1 50%; padding: 0; margin-top: 0; }
	.gioeat-registro { padding: 34px 32px 30px; }
	.gioeat-registro__title { font-size: 30px; }
}

/* ---------- Link nel modulo e nel piè di pagina ---------- */
.gioeat-registro__check a { color: var(--ge-red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ge-footer__links a { color: inherit; font-weight: 600; }

/* ---------- Pagine legali ---------- */
.ge-legal { flex: 1 0 auto; width: 100%; max-width: 820px; margin: 0 auto; padding: 24px 16px 40px; }
.ge-legal__card { background: #fff; border-radius: 20px; padding: 28px 22px; box-shadow: 0 10px 30px rgba(27, 27, 31, .06); line-height: 1.65; font-size: 16px; }
.ge-legal__card h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.ge-legal__card h2 { margin: 28px 0 8px; font-size: 19px; }
.ge-legal__card p, .ge-legal__card ul { margin: 0 0 12px; }
.ge-legal__card ul { padding-left: 22px; }
.ge-legal__card li { margin-bottom: 6px; }
.ge-legal__meta { color: var(--ge-muted); font-size: 14px; }
@media (min-width: 900px) {
	.ge-legal { padding: 48px 24px 64px; }
	.ge-legal__card { padding: 48px 56px; }
	.ge-legal__card h1 { font-size: 40px; }
}

/* Accenti rossi e invito finale nelle pagine legali */
.ge-legal__card { border-top: 6px solid var(--ge-red); }
.ge-legal__card h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--ge-red); }
.ge-legal__card h2 { color: var(--ge-ink); padding-left: 12px; border-left: 4px solid var(--ge-red); }
.ge-legal__card li::marker { color: var(--ge-red); }
.ge-legal__card a { color: var(--ge-red); }
.ge-legal__cta { margin: 28px 0 0; padding: 26px 22px; border-radius: 20px; background: #1f2228; color: #fff; text-align: center; }
.ge-legal__cta p { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.ge-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; background: var(--ge-red); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 8px 20px rgba(227, 27, 35, .35); }
.ge-button:hover, .ge-button:focus { background: #c4151c; color: #fff; }

/* ---------- Selettore di lingua ---------- */
.ge-top { justify-content: space-between; gap: 12px; }
.ge-lang { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f4f1ec; }
.ge-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 8px; border-radius: 999px; color: var(--ge-muted); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.ge-lang a:hover, .ge-lang a:focus { color: var(--ge-ink); }
.ge-lang a.is-active { background: var(--ge-red); color: #fff; }
.ge-lang { flex-shrink: 0; }
.ge-logo { min-width: 0; }
/* Cellulari: logo e lingue devono stare su una riga senza uscire dallo schermo */
@media (max-width: 480px) {
	.ge-top { padding: 12px 14px; gap: 10px; }
	.ge-logo img { height: 28px; }
	.ge-lang { gap: 2px; padding: 3px; }
	.ge-lang a { min-width: 34px; min-height: 34px; padding: 0 6px; font-size: 12px; }
}
@media (max-width: 360px) {
	.ge-logo img { height: 24px; }
	.ge-lang a { min-width: 30px; padding: 0 4px; }
}
