/* Guide alle taglie — stile sobrio, prende font e colori dal tema dove può. */
.gt-dialogo {
	--gt-testo: var(--k-color-3, #222);
	--gt-scuro: var(--k-color-1, #000);
	--gt-linea: #e6e1dc;
	--gt-chiaro: var(--k-color-9, #f9f6f4);
	--gt-grigio: #6f6a66;
	font-family: inherit;
	color: var(--gt-testo);
	background: #fff;
	border: 0;
	padding: 0;
	width: min(720px, calc(100vw - 48px));
	max-height: min(86vh, 900px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
	overflow: hidden;
	display: none;
	flex-direction: column;
}
.gt-dialogo[open] { display: flex; animation: gt-entra .22s ease-out; }
.gt-dialogo::backdrop { background: rgba(20, 18, 16, .45); }
@keyframes gt-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html.gt-aperto { overflow: hidden; }

.gt-testa {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
	padding: 22px 28px 16px; border-bottom: 1px solid var(--gt-linea);
}
.gt-titolo { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--gt-scuro); }
.gt-marca { margin: 6px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gt-grigio); }
.gt-chiudi {
	flex: none; width: 40px; height: 40px; margin: -8px -10px 0 0; padding: 8px;
	background: none; border: 0; color: var(--gt-scuro); cursor: pointer; border-radius: 50%;
}
.gt-chiudi:hover { background: var(--gt-chiaro); }
.gt-chiudi svg { width: 24px; height: 24px; display: block; }

.gt-corpo { overflow-y: auto; padding: 18px 28px 26px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.gt-intro { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--gt-grigio); }

.gt-schede { display: flex; border-bottom: 1px solid var(--gt-linea); margin-bottom: 16px; }
.gt-scheda {
	flex: 1 1 0; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
	padding: 12px 8px; font: inherit; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--gt-grigio); cursor: pointer;
}
.gt-scheda[aria-selected="true"] { color: var(--gt-scuro); border-bottom-color: var(--gt-scuro); }
.gt-scheda:focus-visible, .gt-chip:focus-visible, .gt-apri:focus-visible, .gt-chiudi:focus-visible, .gt-scorri:focus-visible { outline: 2px solid var(--gt-scuro); outline-offset: 2px; }

.gt-nota { background: var(--gt-chiaro); padding: 12px 14px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.gt-nota strong { font-weight: 600; color: var(--gt-scuro); }
.gt-fonte-link { color: var(--gt-grigio); text-decoration: underline; font-size: 12px; }

.gt-varianti { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.gt-chip {
	font: inherit; font-size: 13px; padding: 7px 14px; border: 1px solid var(--gt-linea); background: #fff;
	color: var(--gt-testo); border-radius: 999px; cursor: pointer;
}
.gt-chip[aria-pressed="true"] { background: var(--gt-scuro); border-color: var(--gt-scuro); color: #fff; }

.gt-scorri { overflow: auto; max-height: 46vh; border: 1px solid var(--gt-linea); }
.gt-tabella { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; text-align: center; margin: 0; }
.gt-tabella th, .gt-tabella td { padding: 9px 12px; border: 0; border-bottom: 1px solid var(--gt-linea); white-space: nowrap; font-weight: 400; background: #fff; }
.gt-tabella thead th {
	position: sticky; top: 0; z-index: 2; background: var(--gt-chiaro); font-size: 12px; letter-spacing: .08em;
	text-transform: uppercase; color: var(--gt-scuro); vertical-align: bottom;
}
.gt-tabella tbody th { position: sticky; left: 0; z-index: 1; color: var(--gt-scuro); }
.gt-tabella thead th:first-child { left: 0; z-index: 3; }
.gt-tabella tbody tr:last-child > * { border-bottom: 0; }
.gt-tabella tbody tr:hover > * { background: #fbfaf8; }
.gt-tabella .gt-col-sito { font-weight: 600; }
.gt-sotto { display: block; font-size: 10px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--gt-grigio); margin-top: 2px; }
.gt-tabella tr.gt-scelta > * { background: var(--gt-scuro); color: #fff; }

.gt-misura { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gt-linea); }
.gt-sottotitolo { margin: 0 0 14px; font-size: 15px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--gt-scuro); }
.gt-misura-riga { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.gt-disegno svg { width: 100%; height: auto; display: block; }
.gt-passi { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.gt-passi li { margin: 0 0 8px; padding-left: 4px; }
.gt-consiglio { margin: 10px 0 0; font-size: 13px; color: var(--gt-grigio); }
.gt-piede { margin: 22px 0 0; font-size: 12px; color: var(--gt-grigio); }
.gt-piede a { color: inherit; text-decoration: underline; word-break: break-word; }

/* Pulsante nella pagina prodotto */
.gt-con-guida { position: relative; }
.gt-apri-riga { margin: 6px 0 14px; }
.gt-apri {
	display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0;
	font: inherit; font-size: 13px; letter-spacing: .04em; color: var(--k-color-3, #222);
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap;
}
.gt-apri:hover { color: var(--k-color-1, #000); text-decoration-thickness: 2px; }
.gt-icona { width: 18px; height: 18px; flex: none; }

/* Telefono: foglio dal basso a tutta larghezza */
@media (max-width: 640px) {
	.gt-dialogo {
		width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 14px 14px 0 0;
		animation-name: gt-sale;
	}
	@keyframes gt-sale { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
	.gt-testa { padding: 18px 16px 12px; }
	.gt-titolo { font-size: 17px; }
	.gt-corpo { padding: 14px 16px calc(22px + env(safe-area-inset-bottom)); }
	.gt-tabella { font-size: 13px; }
	.gt-tabella th, .gt-tabella td { padding: 8px 10px; }
	.gt-scorri { max-height: 52vh; }
	.gt-misura-riga { grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
	.gt-passi { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .gt-dialogo[open] { animation: none; } }
.gt-nota-cliente { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.gt-tabella thead th { white-space: normal; min-width: 52px; max-width: 120px; line-height: 1.3; }
@media (max-width: 640px) { .gt-tabella thead th { max-width: 84px; font-size: 11px; letter-spacing: .04em; } }
/* Un solo pulsante visibile: accanto a «Taglia» sul computer, nel pannello del tema sul telefono. */
html.gt-th .gt-apri-riga,
html.gt-clonata .gt-apri-riga { display: none; }
html.gt-clonata .size-selector-mobile .gt-apri-riga { display: block; margin: 14px 0 4px; }

/* Difesa dallo stile dei pulsanti del tema (Kalium colora ogni button[type=button]). */
html body button.gt-apri,
html body .gt-dialogo button.gt-scheda,
html body .gt-dialogo button.gt-chiudi,
html body .gt-dialogo button.gt-chip {
	background: none !important; box-shadow: none !important; border-radius: 0 !important;
	min-height: 0 !important; height: auto !important; line-height: 1.3 !important; font-weight: 400 !important;
	text-shadow: none !important; transform: none !important;
}
html body button.gt-apri { color: var(--k-color-3, #222) !important; border: 0 !important; padding: 0 !important; text-transform: none !important; font-size: 13px !important; letter-spacing: .04em !important; }
html body button.gt-apri:hover { color: var(--k-color-1, #000) !important; }
html body .gt-dialogo button.gt-scheda { color: #6f6a66 !important; border: 0 !important; border-bottom: 2px solid transparent !important; padding: 12px 8px !important; font-size: 14px !important; letter-spacing: .12em !important; text-transform: uppercase !important; }
html body .gt-dialogo button.gt-scheda[aria-selected="true"] { color: var(--k-color-1, #000) !important; border-bottom-color: var(--k-color-1, #000) !important; }
html body .gt-dialogo button.gt-chiudi { color: var(--k-color-1, #000) !important; border: 0 !important; padding: 8px !important; border-radius: 50% !important; width: 40px !important; height: 40px !important; }
html body .gt-dialogo button.gt-chiudi:hover { background: var(--k-color-9, #f9f6f4) !important; }
html body .gt-dialogo button.gt-chip { border: 1px solid #e6e1dc !important; border-radius: 999px !important; padding: 7px 14px !important; color: var(--k-color-3, #222) !important; background: #fff !important; text-transform: none !important; font-size: 13px !important; }
html body .gt-dialogo button.gt-chip[aria-pressed="true"] { background: var(--k-color-1, #000) !important; border-color: var(--k-color-1, #000) !important; color: #fff !important; }

/* Computer: link sopra la tabella delle varianti (1.0.3). */
.gt-apri-sopra { margin: 0 0 12px; }
html:not(.gt-th) .gt-apri-sopra { display: none; }
