/* Catalogo plugin e scheda prodotto. Niente gradienti, ombre colorate o barre sul lato delle card. */
.tw-software { background: var(--tw-paper); color: var(--tw-ink); }
.tw-software-hero { padding-block: clamp(56px, 7vw, 104px) clamp(28px, 3.5vw, 48px); }
.tw-software-kicker { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tw-blue); }
.tw-software-hero h1 { max-width: 14ch; margin: 0; font-size: clamp(44px, 6.4vw, 96px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.tw-software-intro { max-width: 640px; margin-top: 24px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--tw-ink-soft); }
.tw-software-intro > :first-child { margin-top: 0; }
.tw-software-intro > :last-child { margin-bottom: 0; }
.tw-software-points { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.tw-software-points li { padding: 9px 16px; border: 1px solid var(--tw-line); border-radius: 999px; background: var(--tw-white); font-size: 14px; font-weight: 600; }
.tw-software-results { padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 120px); }
.tw-software-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px); }
.tw-software-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tw-line); border-radius: 18px; background: var(--tw-white); transition: transform .2s ease, border-color .2s ease; }
.tw-software-card:hover, .tw-software-card:focus-within { transform: translateY(-3px); border-color: var(--tw-ink); }
.tw-software-card__media { display: block; aspect-ratio: 772 / 250; background: var(--tw-ink); overflow: hidden; }
.tw-software-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tw-software-card__media.is-icon { display: grid; place-items: center; background: var(--tw-paper); }
.tw-software-card__media.is-icon img { width: 96px; height: 96px; border-radius: 22px; }
.tw-software-card__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: clamp(20px, 2vw, 28px); }
.tw-software-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tw-software-card__chips span { padding: 4px 11px; border-radius: 999px; background: var(--tw-paper); font-size: 12.5px; font-weight: 600; color: var(--tw-ink-soft); }
.tw-software-card h2 { margin: 0; font-size: clamp(23px, 1.9vw, 28px); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.tw-software-card h2 a { color: inherit; text-decoration: none; }
.tw-software-card__text { margin: 0; line-height: 1.55; color: var(--tw-ink-soft); }
.tw-software-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--tw-line); }
.tw-software-card__price { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.tw-software-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--tw-ink); border-radius: 999px; color: var(--tw-ink); font-size: 15px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.tw-software-card:hover .tw-software-btn, .tw-software-btn:hover, .tw-software-btn.is-solid { background: var(--tw-ink); color: var(--tw-white); }
.tw-software a:focus-visible { outline: 3px solid var(--tw-blue); outline-offset: 3px; }
.tw-software-empty { max-width: 640px; padding-block: 24px; }
.tw-software-empty h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; }
.tw-software-empty p { margin-bottom: 24px; color: var(--tw-ink-soft); }

/* Scheda prodotto: banner in testa */
.twss-hero { margin: 0 0 clamp(24px, 3vw, 40px); border-radius: 18px; overflow: hidden; aspect-ratio: 772 / 250; background: var(--tw-ink); }
.twss-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Changelog */
.twss-changelog { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); clear: both; margin-block: clamp(48px, 6vw, 96px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--tw-line); }
.twss-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tw-blue); }
.twss-changelog__head { align-self: start; position: sticky; top: calc(var(--tw-header-height, 120px) + 24px); }
.twss-changelog__head h2 { margin: 0 0 14px; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; letter-spacing: -.045em; }
.twss-changelog__head p { margin: 0 0 14px; color: var(--tw-ink-soft); line-height: 1.55; }
.twss-compat { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.twss-compat li { padding: 5px 12px; border: 1px solid var(--tw-line); border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--tw-white); }
.twss-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.twss-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--tw-line); }
.twss-release { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 32px; padding: 0 0 clamp(28px, 3vw, 44px) 36px; }
.twss-release::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border: 2px solid var(--tw-ink); border-radius: 50%; background: var(--tw-paper); }
.twss-release.is-latest::before { background: var(--tw-ink); }
.twss-release__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.twss-release__ver { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.twss-release__meta time { font-size: 14px; color: var(--tw-ink-soft); }
.twss-release__tag { padding: 3px 10px; border-radius: 999px; background: var(--tw-ink); color: var(--tw-white); font-size: 12px; font-weight: 700; }
.twss-release__body { padding: clamp(16px, 1.6vw, 24px); border: 1px solid var(--tw-line); border-radius: 14px; background: var(--tw-white); line-height: 1.6; overflow-wrap: anywhere; }
.twss-release__body > :first-child { margin-top: 0; }
.twss-release__body > :last-child { margin-bottom: 0; }
.twss-release__body h3, .twss-release__body h4, .twss-release__body h5 { display: inline-block; margin: 18px 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--tw-paper); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.twss-release__body ul, .twss-release__body ol { margin: 0 0 8px; padding-left: 1.2em; }
.twss-release__body li { margin-bottom: 6px; }
.twss-release__body p { margin: 0 0 10px; }
.twss-release__body code { padding: 1px 6px; border-radius: 4px; background: var(--tw-paper); font-size: .9em; }
@media (max-width: 1100px) { .tw-software-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .twss-changelog { grid-template-columns: 1fr; } .twss-changelog__head { position: static; } }
@media (max-width: 700px) {
	.tw-software-grid { grid-template-columns: 1fr; }
	.twss-release { grid-template-columns: 1fr; padding-left: 30px; }
	.twss-release__meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) { .tw-software-card, .tw-software-btn { transition: none; } .tw-software-card:hover { transform: none; } }

/* Scheda plugin: immagine come piccola icona accanto al titolo, senza miniature né lente */
.twss-product div.product { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: clamp(20px, 3vw, 40px); align-items: start; }
.twss-product div.product > * { grid-column: 1 / -1; }
.twss-product div.product > .woocommerce-product-gallery { grid-column: 1; float: none; width: 112px !important; max-width: 112px; margin: 0; }
.twss-product div.product > .summary { grid-column: 2; float: none; width: auto !important; margin: 0; }
.twss-product .woocommerce-product-gallery__trigger, .twss-product .flex-control-thumbs { display: none !important; }
.twss-product .woocommerce-product-gallery__wrapper { margin: 0; }
.twss-product .woocommerce-product-gallery__image img { width: 112px; height: 112px; object-fit: cover; border-radius: 24px; }
.twss-product .woocommerce-product-gallery__image:not(:first-child) { display: none; }
@media (max-width: 560px) { .twss-product div.product { grid-template-columns: 80px minmax(0, 1fr); } .twss-product div.product > .woocommerce-product-gallery { width: 80px !important; } .twss-product .woocommerce-product-gallery__image img { width: 80px; height: 80px; border-radius: 18px; } }

/* Evidenza: software su misura */
.twss-custom { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; clear: both; margin-block: clamp(36px, 5vw, 72px); padding: clamp(28px, 4vw, 56px); border-radius: 22px; background: var(--tw-ink); color: var(--tw-white); }
.twss-custom__kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.twss-custom h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; color: inherit; }
.twss-custom p:not(.twss-custom__kicker) { margin: 0; max-width: 62ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: rgba(255, 255, 255, .88); }
.twss-custom__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.twss-custom__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--tw-white); color: var(--tw-ink); font-weight: 700; text-decoration: none; }
.twss-custom__btn:hover { background: var(--tw-paper); }
.twss-custom__link { display: inline-flex; align-items: center; gap: 8px; color: var(--tw-white); font-weight: 600; }
.twss-custom a:focus-visible { outline: 3px solid var(--tw-white); outline-offset: 3px; }
@media (max-width: 800px) { .twss-custom { grid-template-columns: 1fr; } }
.twss-custom a.twss-custom__btn, .twss-custom a.twss-custom__btn:visited { background: var(--tw-white); color: var(--tw-ink); }
.twss-custom a.twss-custom__btn:hover { background: var(--tw-paper); color: var(--tw-ink); }
.twss-custom a.twss-custom__link { color: var(--tw-white); text-decoration: underline; text-underline-offset: 4px; }

/* Descrizione del plugin: niente linguetta datata, una sezione pulita con titolo a sinistra */
body.twss-product .woocommerce-tabs { margin-block: clamp(36px, 5vw, 72px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--tw-line); }
body.twss-product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; border: 0; background: none; }
body.twss-product .woocommerce-tabs ul.tabs::before, body.twss-product .woocommerce-tabs ul.tabs::after { display: none; }
body.twss-product .woocommerce-tabs ul.tabs:has(li:only-child) { display: none; }
body.twss-product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 1px solid var(--tw-line); border-radius: 999px; background: var(--tw-white); }
body.twss-product .woocommerce-tabs ul.tabs li::before, body.twss-product .woocommerce-tabs ul.tabs li::after { display: none; }
body.twss-product .woocommerce-tabs ul.tabs li a { display: block; padding: 9px 18px; color: var(--tw-ink); font-size: 14px; font-weight: 600; }
body.twss-product .woocommerce-tabs ul.tabs li.active { border-color: var(--tw-ink); background: var(--tw-ink); }
body.twss-product .woocommerce-tabs ul.tabs li.active a { color: var(--tw-white); }
body.twss-product .woocommerce-tabs .woocommerce-Tabs-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); column-gap: clamp(24px, 5vw, 80px); margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
body.twss-product .woocommerce-tabs .woocommerce-Tabs-panel[style*="display: none"] { display: none; }
body.twss-product .woocommerce-tabs .woocommerce-Tabs-panel > * { grid-column: 2; max-width: 74ch; line-height: 1.65; }
body.twss-product .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child { grid-column: 1; grid-row: 1 / span 40; align-self: start; position: sticky; top: calc(var(--tw-header-height, 120px) + 24px); margin: 0; max-width: none; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; letter-spacing: -.045em; }
body.twss-product .woocommerce-tabs .woocommerce-Tabs-panel h3 { margin: 28px 0 10px; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; }
@media (max-width: 1100px) { body.twss-product .woocommerce-tabs .woocommerce-Tabs-panel { grid-template-columns: 1fr; } body.twss-product .woocommerce-tabs .woocommerce-Tabs-panel > *, body.twss-product .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child { grid-column: 1; grid-row: auto; position: static; } }
body.twss-product.tw-commerce-context .woocommerce div.product .woocommerce-tabs .panel { padding: 0; border: 0; background: none; box-shadow: none; }
body.twss-product.tw-commerce-context .woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 999px; background: var(--tw-white); border-color: var(--tw-line); }
body.twss-product.tw-commerce-context .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--tw-ink); border-color: var(--tw-ink); }

/* Prodotti correlati: griglia uniforme, schede alte uguali, pulsante sempre in basso */
body.twss-product section.related { margin-block: clamp(36px, 5vw, 72px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--tw-line); }
body.twss-product section.related > h2 { margin: 0 0 clamp(24px, 3vw, 40px); font-size: clamp(32px, 3.4vw, 52px); line-height: 1; letter-spacing: -.045em; }
body.twss-product section.related ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
body.twss-product section.related ul.products::before, body.twss-product section.related ul.products::after { display: none; }
body.twss-product section.related ul.products li.product { display: flex; flex-direction: column; float: none; width: auto; min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--tw-line); border-radius: 20px; background: var(--tw-white); box-shadow: none; transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s; }
body.twss-product section.related ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 20, 30, .10); }
body.twss-product section.related ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex: 1; flex-direction: column; padding: 0; color: var(--tw-ink); text-decoration: none; }
body.twss-product section.related ul.products li.product img { display: block; width: 100%; height: 190px; margin: 0; padding: 28px; object-fit: contain; background: var(--tw-paper); }
body.twss-product section.related ul.products li.product .woocommerce-loop-product__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.5em; margin: 20px 22px 0; padding: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; letter-spacing: -.02em; }
body.twss-product section.related ul.products li.product .price { margin: auto 22px 0; padding-top: 14px; color: var(--tw-ink); font-size: 16px; font-weight: 800; }
body.twss-product section.related ul.products li.product a.button { align-self: stretch; margin: 16px 22px 22px; padding: 13px 20px; border-radius: 999px; background: var(--tw-ink); color: var(--tw-white); font-weight: 700; text-align: center; }
body.twss-product section.related ul.products li.product a.button:hover { background: var(--tw-blue); color: var(--tw-white); }
