/* Tremolada Finiture — si appoggia a css/singoloProdotto.css del tema (accordionTitle, listaColori, vedi-tutti-btn). */
/* Contenitore della pagina: NON usare la classe "content" del tema. Il JS del tema aggiunge padding-top a ogni
   .content quando il menu diventa fisso; un secondo .content annidato raddoppiava lo spazio (scatto + fascia bianca). */
.tf-page { --tf-ink: #222; --tf-muted: #6b6b6b; --tf-line: #ebebeb; --tf-soft: #fbfbfb; margin: 150px 0 40px; }
@media (max-width: 1000px) { .tf-page { margin-top: 40px; } }

/* Filtri */
.tf-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; padding: 18px 0; margin: 0 0 10px; border-top: 1px solid var(--tf-line); border-bottom: 1px solid var(--tf-line); }
.tf-filters[hidden] { display: none; }
.tf-fgroup { display: grid; gap: 8px; min-width: 0; }
.tf-flabel { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--tf-muted); font-weight: 500; margin: 0; }
.tf-seg { display: flex; flex-wrap: wrap; border: 1px solid #111; }
.tf-seg button { font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; background: #fff; color: #111; border: 0; border-right: 1px solid #111; padding: 10px 16px; cursor: pointer; line-height: 1.2; }
.tf-seg button:last-child { border-right: 0; }
.tf-seg button[aria-pressed="true"] { background: #111; color: #fff; }
.tf-select { font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #111; background-color: #fff; border: 1px solid #111; border-radius: 0; padding: 10px 36px 10px 12px; min-width: 230px; height: auto; -webkit-appearance: none; appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
	background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.tf-count { margin: 0 0 0 auto; font-size: 12px; letter-spacing: .06em; color: var(--tf-muted); }
.tf-seg button:focus-visible, .tf-select:focus-visible, .tf-acc:focus-visible, .tf-sw-btn:focus-visible, .tf-more:focus-visible, .tf-modal button:focus-visible, .tf-card:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

/* Elenco */
.tf-group { margin: 34px 0 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--tf-muted); }
.tf-group:first-child { margin-top: 10px; }
.tf-acc { display: flex; align-items: baseline; gap: 16px; padding-right: 48px !important; }
.tf-acc-meta { margin-left: auto; font-size: 12px; letter-spacing: .14em; color: var(--tf-muted); font-weight: 400; white-space: nowrap; }
.tf-line[hidden], .tf-group[hidden] { display: none; }
.tf-line-desc { margin: 0 0 12px; color: var(--tf-muted); }
.tf-line-link { margin: 6px 0 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.tf-line-link a { color: #111; }
.tf-empty { padding: 24px 0; text-align: center; color: var(--tf-muted); }
.tf-sw { margin: 0; }
.tf-sw.tf-extra { display: none; }
.tf-colors.tf-all .tf-sw.tf-extra { display: block; }
.tf-sw-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tf-sw-btn img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.tf-sw figcaption { margin-top: 6px; letter-spacing: .03em; }
.tf-more { display: block; margin: 0 auto 10px; }

/* Scheda tecnica */
.tf-specs { display: grid; gap: 0; margin: 0; }
.tf-spec { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--tf-line); }
.tf-spec dt { display: grid; gap: 1px; font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--tf-ink); }
.tf-spec .tf-en { font-weight: 400; font-size: 10.5px; letter-spacing: .08em; color: var(--tf-muted); }
.tf-spec dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tf-ink); overflow-wrap: anywhere; }
.tf-wash { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tf-wash-icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.3; color: var(--tf-ink); }
.tf-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--tf-muted); text-align: center; }
.tf-disclaimer { max-width: 760px; margin: 26px auto 0; font-size: 11px; line-height: 1.5; color: #888; text-align: center; }

/* Scheda colore in sovrapposizione */
.tf-modal { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: #fff; color: var(--tf-ink, #222); overflow: auto; }
.tf-modal::backdrop { background: rgba(20, 20, 20, .55); }
.tf-modal-body { padding: 44px clamp(18px, 4vw, 56px) 30px; }
.tf-modal-close { position: sticky; top: 0; float: right; margin: 8px 8px 0 0; width: 44px; height: 44px; font-size: 34px; line-height: 1; background: #fff; border: 0; cursor: pointer; color: #111; z-index: 1; }
.tf-modal-title { margin: 0 0 26px; text-align: center; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tf-modal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 52px); align-items: start; }
.tf-modal-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.tf-modal-desc { margin: 0 0 10px; }
.tf-modal-desc:empty { display: none; }
.tf-modal-link { display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #111; }
.tf-modal-link[hidden] { display: none; }
.tf-modal-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.tf-modal-nav button { font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: #fff; color: #111; border: 1px solid #111; padding: 9px 14px; cursor: pointer; }
.tf-pos { font-size: 12px; letter-spacing: .1em; color: var(--tf-muted); font-variant-numeric: tabular-nums; }
html.tf-modal-open { overflow: hidden; }

/* Pagina finitura */
.tf-fhead { text-align: center; margin-bottom: 34px; }
.tf-fhead .titoloProdottoFinitura { margin-bottom: 8px; }
.tf-back { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.tf-back a { color: var(--tf-muted); }
.tf-fpage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.tf-fpage-solo { grid-template-columns: 1fr; }
.tf-fpage .listaColori { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 0; }
.tf-fpage-solo .listaColori { grid-template-columns: repeat(6, 1fr); }
.tf-coming { padding: 40px 0; text-align: center; color: var(--tf-muted); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--tf-line); }
.tf-products { margin-top: 44px; display: grid; gap: 12px; }
.tf-products ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tf-products a { display: block; padding: 7px 12px; border: 1px solid var(--tf-line); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #111; }
.tf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; }
.tf-card { display: grid; gap: 8px; color: #111; text-decoration: none; }
.tf-card-img { display: block; aspect-ratio: 1; background: var(--tf-soft); overflow: hidden; }
.tf-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tf-card:hover .tf-card-img img { transform: scale(1.04); }
.tf-card-empty { display: grid; place-items: center; height: 100%; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tf-muted); }
.tf-card-name { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.tf-card-tip { font-size: 12px; color: var(--tf-muted); letter-spacing: .06em; }

@media (max-width: 1024px) {
	.tf-fpage .listaColori { grid-template-columns: repeat(3, 1fr); }
	.tf-fpage-solo .listaColori { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
	.tf-modal { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; }
	.tf-modal-grid, .tf-fpage { grid-template-columns: 1fr; }
	.tf-spec { grid-template-columns: 1fr; gap: 3px; }
	.tf-acc { flex-wrap: wrap; gap: 4px 12px; }
	.tf-acc-meta { margin-left: 0; width: 100%; }
	.tf-count { margin-left: 0; width: 100%; }
	.tf-select { min-width: 0; width: 100%; }
	.tf-fpage .listaColori, .tf-fpage-solo .listaColori { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.tf-card-img img, .listaColori figure { transition: none !important; }
}
