/*
Theme Name: Polytec
Theme URI: https://polytec.it/
Description: Child theme di Twenty Twenty-Five per Polytec S.r.l. Colori, font e spaziature si modificano da Aspetto > Editor > Stili.
Author: Uccio
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: polytec
License: GNU General Public License v2 or later
*/

/* ---------- Base ---------- */
::selection { background: var(--wp--preset--color--accent-2); color: var(--wp--preset--color--base); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--wp--preset--color--accent-3); outline-offset: 3px; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, .wp-block-heading { text-wrap: balance; }
.wp-block-column > p, .pt-misura { max-width: var(--wp--custom--misura-testo); }
.pt-rosso { color: var(--wp--preset--color--accent-2); }
.pt-ciano { color: var(--wp--preset--color--accent-3); }
.pt-tenue { color: var(--wp--preset--color--accent-4); }
.has-accent-1-background-color .pt-tenue,
.has-navy-scuro-background-color .pt-tenue { color: #C9D3F2; }
.has-accent-1-background-color, .has-navy-scuro-background-color { --pt-on-dark: 1; }
.has-accent-1-background-color :where(h1,h2,h3,h4,h5,h6),
.has-navy-scuro-background-color :where(h1,h2,h3,h4,h5,h6),
.has-contrast-background-color :where(h1,h2,h3,h4,h5,h6),
.has-accent-2-background-color :where(h1,h2,h3,h4,h5,h6),
.wp-block-cover.is-dark :where(h1,h2,h3,h4,h5,h6) { color: var(--wp--preset--color--base); }
.has-accent-1-background-color a:where(:not(.wp-element-button)),
.has-navy-scuro-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--base); }
.pt-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--accent-4); }
.has-accent-1-background-color .pt-lead, .has-navy-scuro-background-color .pt-lead { color: #D3DBF4; }

/* ---------- Pulsanti ---------- */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; transition: background-color .2s, color .2s, border-color .2s; }
.wp-block-button .wp-block-button__link::after { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.wp-block-button .wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--wp--preset--color--accent-1); padding-top: 11px; padding-bottom: 11px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--accent-1); }
.has-accent-1-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-cover.is-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--base); }
.has-accent-1-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-cover.is-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--accent-1); border-color: var(--wp--preset--color--base); }
.wp-block-button .wp-block-button__link.has-base-background-color:hover { background: var(--wp--preset--color--accent-5) !important; color: var(--wp--preset--color--accent-1) !important; }
.pt-link-freccia a { font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; font-weight: 600; letter-spacing: .1em; text-decoration: none; }
.pt-link-freccia a::after { content: " →"; }

/* ---------- Testata ---------- */
.pt-testata { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--accent-6); background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); }
.admin-bar .pt-testata { top: 32px; }
@media (max-width: 782px) { .admin-bar .pt-testata { top: 46px; } }
.pt-testata .wp-block-image img { height: 34px; width: auto; display: block; }
.pt-testata .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-2); }
.pt-testata .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--accent-6) !important; padding: 8px 0; min-width: 260px !important; }
.pt-testata .wp-block-navigation__submenu-container a { padding: 8px 18px !important; font-size: .95rem; }
.pt-tel { font-family: var(--wp--preset--font-family--titoli); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.pt-tel a { text-decoration: none; color: var(--wp--preset--color--accent-1); }
@media (max-width: 1100px) { .pt-tel { display: none; } }
@media (max-width: 600px) { .pt-testata .pt-cta-testata { display: none; } }

/* ---------- Hero ---------- */
.pt-hero-titolo { padding-top: var(--wp--preset--spacing--60); }
.pt-hero-cover { overflow: visible !important; }
.pt-hero-cover .wp-block-cover__inner-container { width: 100% !important; max-width: none !important; }
.pt-badge { width: min(360px, 100%); margin-left: auto !important; margin-right: clamp(16px, 4vw, 56px) !important; margin-bottom: -1px; gap: 0 !important; }
.pt-badge > * { margin: 0 !important; }
.pt-badge-rosso { display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 16px !important; }
.pt-badge-rosso .pt-numero { font-size: 4.4rem !important; line-height: .8 !important; }
.pt-badge-rosso p:not(.pt-numero) { font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; font-weight: 500; letter-spacing: .04em; font-size: 1.1rem; line-height: 1.1; margin: 0; }
.pt-badge-navy p { color: #DCE3F7; font-size: .98rem; }
@media (max-width: 640px) {
	.pt-hero-cover { min-height: 0 !important; padding: 0 !important; flex-direction: column; align-items: stretch !important; }
	.pt-hero-cover .wp-block-cover__image-background { position: relative !important; height: 300px !important; inset: auto !important; }
	.pt-hero-cover .wp-block-cover__background { display: none; }
	.pt-badge { width: 100%; margin-right: 0 !important; }
}

/* ---------- Numeri grandi ---------- */
.pt-numero { font-family: var(--wp--preset--font-family--titoli) !important; font-weight: 700; line-height: .82 !important; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; }
.pt-dato { border-top: 1px solid rgba(255,255,255,.28); padding-top: 18px; }
.pt-dato .pt-numero { font-size: clamp(3rem, 5vw, 5.2rem) !important; white-space: nowrap; margin-bottom: 10px; }
.pt-dato p:last-child { color: #D3DBF4; font-size: 1rem; max-width: 30ch; }

/* ---------- Bande tecniche (DUOL: fondo pieno con disegno a tratto) ---------- */
.is-style-tavola, .pt-tavola { position: relative; overflow: hidden; isolation: isolate; }
.is-style-tavola::before, .pt-tavola::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("assets/img/linee-distributore-bianco.webp") right -140px top -80px / min(1100px, 120%) auto no-repeat; opacity: .1; pointer-events: none; }
.pt-tavola-ciano::before { background-image: url("assets/img/linee-pompa-ciano.webp"); opacity: .35; background-position: right -60px center; }

/* onda azzurro-ciano della brochure, in fondo alle bande scure */
.pt-onda { position: relative; padding-bottom: calc(var(--wp--preset--spacing--80) + 40px) !important; }
.pt-onda::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 90px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 18 C 360 70 760 78 1440 6 L1440 90 L0 90Z' fill='%23DFF2FD'/%3E%3Cpath d='M0 30 C 380 84 820 86 1440 20 L1440 90 L0 90Z' fill='%23009FE3'/%3E%3Cpath d='M0 44 C 400 94 860 96 1440 36 L1440 90 L0 90Z' fill='%23FFFFFF'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }

/* ---------- Schede prodotto ---------- */
.pt-scheda { position: relative; border: 1px solid var(--wp--preset--color--accent-6); background: var(--wp--preset--color--base); height: 100%; transition: border-color .2s, transform .3s cubic-bezier(.16,1,.3,1); }
.pt-scheda:hover { border-color: var(--wp--preset--color--accent-1); transform: translateY(-3px); }
.pt-scheda .wp-block-image { margin: 0; background: var(--wp--preset--color--base); }
.pt-scheda .wp-block-image img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; padding: 14px; }
.pt-scheda .pt-etichetta { position: absolute; left: -1px; top: 16px; margin: 0; z-index: 2; }
.pt-scheda-testo { background: var(--wp--preset--color--accent-5); flex: 1; }
.pt-scheda h3 { font-size: 1.6rem; }
.pt-scheda h3 a { text-decoration: none; color: inherit; }
.pt-scheda h3 a::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.pt-scheda p { font-size: .95rem; color: var(--wp--preset--color--accent-4); }
.pt-etichetta, .pt-scheda .pt-etichetta { display: inline-block; background: var(--wp--preset--color--accent-2); color: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; font-weight: 500; letter-spacing: .06em; font-size: 1rem; line-height: 1.2; padding: 6px 14px 6px 16px; }

/* ---------- Due percorsi ---------- */
.pt-percorso { border-top: 4px solid var(--wp--preset--color--accent-1); height: 100%; }
.pt-percorso.has-accent-5-background-color { border-top-color: var(--wp--preset--color--accent-2); }

/* ---------- Lista numerata a punti (impianto) ---------- */
ol.pt-punti { list-style: none; counter-reset: punto; padding-left: 0 !important; margin: 0; display: grid; gap: 0; }
ol.pt-punti > li { counter-increment: punto; position: relative; padding: 16px 0 16px 60px; border-bottom: 1px solid var(--wp--preset--color--accent-6); }
ol.pt-punti > li::before { content: counter(punto); position: absolute; left: 0; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--titoli); font-weight: 700; box-shadow: 0 0 0 4px var(--wp--preset--color--accent-5); }
ol.pt-punti > li strong { display: block; margin-bottom: 2px; font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .03em; color: var(--wp--preset--color--accent-1); font-weight: 600; }

/* lista con spunta */
ul.pt-spunte { list-style: none; padding-left: 0 !important; display: grid; gap: 10px; }
ul.pt-spunte li { position: relative; padding-left: 30px; }
ul.pt-spunte li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; background: var(--wp--preset--color--ciano-scuro); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.has-accent-1-background-color ul.pt-spunte li::before { background: var(--wp--preset--color--accent-3); }

/* elenco componenti a colonne */
ul.pt-elenco { columns: 2 220px; column-gap: 40px; padding-left: 0 !important; list-style: none; }
ul.pt-elenco li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--wp--preset--color--accent-6); }

/* marchi distribuiti */
ul.pt-marchi { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
ul.pt-marchi li { font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; font-weight: 600; letter-spacing: .06em; font-size: 1.15rem; color: var(--wp--preset--color--accent-1); border: 1px solid var(--wp--preset--color--accent-6); padding: 8px 16px; background: var(--wp--preset--color--base); }

/* ---------- Tre colonne "vantaggi" ---------- */
.pt-tre h3 { color: var(--wp--preset--color--accent-3) !important; font-size: 1.6rem; }
.pt-tre .wp-block-column { border-top: 1px solid rgba(255,255,255,.28); padding-top: 20px; }

/* ---------- FAQ ---------- */
.wp-block-details summary { cursor: pointer; font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; color: var(--wp--preset--color--accent-1); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--accent-2); font-size: 1.6rem; line-height: 1; }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { max-width: var(--wp--custom--misura-testo); }

/* ---------- Tabelle ---------- */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th { font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--accent-1); text-align: left; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--accent-6); padding: 12px 14px; font-variant-numeric: tabular-nums; }
.wp-block-table thead { border-bottom: 2px solid var(--wp--preset--color--accent-1); }

/* ---------- Immagini ---------- */
.pt-foto-prodotto img { background: var(--wp--preset--color--base); object-fit: contain; }
.pt-cornice { border: 1px solid var(--wp--preset--color--accent-6); }
.wp-block-image.pt-cornice img { padding: 16px; }

/* ---------- News ---------- */
.pt-news .wp-block-post { border-top: 4px solid var(--wp--preset--color--accent-1); padding-top: 16px; }
.pt-news .wp-block-post-title a { text-decoration: none; }
.pt-news .wp-block-post-date { font-variant-numeric: tabular-nums; }

/* ---------- Piè di pagina ---------- */
.pt-piede a { color: var(--wp--preset--color--base); }
.pt-piede .pt-tenue a { color: #C9D3F2; }
.pt-piede img { height: 30px; width: auto; }
.pt-piede ul { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 6px; }
.pt-piede ul a { text-decoration: none; }
.pt-piede ul a:hover { text-decoration: underline; }

/* barra contatti fissa su mobile */
.pt-barra-mobile { display: none !important; }
@media (max-width: 782px) {
	.pt-barra-mobile { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0 !important; gap: 0 !important; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 24px rgba(20,24,46,.18); }
	.pt-barra-mobile .wp-block-button { flex: 1; margin: 0; }
	.pt-barra-mobile .wp-block-button__link { width: 100%; justify-content: center; min-height: 56px; }
	body { padding-bottom: 56px; }
}

/* ---------- Comparsa allo scroll (una sola, morbida) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.pt-js .pt-entra { transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .9s cubic-bezier(.16,1,.3,1); }
	.pt-js .pt-entra.pt-attesa { transform: translateY(18px); opacity: 0; }
}

/* punti numerati su fondo navy */
.has-accent-1-background-color ol.pt-punti > li { border-bottom-color: rgba(255,255,255,.22); }
.has-accent-1-background-color ol.pt-punti > li strong { color: var(--wp--preset--color--base); }
.has-accent-1-background-color ol.pt-punti > li::before { background: var(--wp--preset--color--accent-2); box-shadow: 0 0 0 4px rgba(255,255,255,.14); }
.has-accent-1-background-color ol.pt-punti > li { color: #D3DBF4; }

/* sezioni a tutta larghezza attaccate tra loro, senza bande bianche */
.wp-site-blocks > * { margin-block-start: 0; }
.pt-pagina > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ---------- Moduli (Contact Form 7) ---------- */
.wpcf7 form { display: grid; gap: 20px; }
.wpcf7 fieldset.pt-passo { border: 0; border-top: 4px solid var(--wp--preset--color--accent-1); background: var(--wp--preset--color--base); margin: 0; padding: 22px clamp(18px, 3vw, 28px) 26px; display: grid; gap: 16px; min-width: 0; }
.wpcf7 legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; font-weight: 600; font-size: 1.35rem; letter-spacing: .03em; color: var(--wp--preset--color--accent-1); }
.wpcf7 legend + * { clear: both; }
.wpcf7 label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; color: var(--wp--preset--color--contrast); }
.wpcf7 .pt-campi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6); border-radius: 0; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--wp--preset--color--accent-1); box-shadow: 0 0 0 3px var(--wp--preset--color--accent-5); }
.wpcf7 input[type="file"] { font-size: .9rem; padding: 10px; border: 1px dashed var(--wp--preset--color--accent-3); background: var(--wp--preset--color--accent-5); width: 100%; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.wpcf7 input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--wp--preset--color--accent-1); margin-top: 2px; flex: none; }
.wpcf7 .pt-nota { font-size: .9rem; color: var(--wp--preset--color--accent-4); margin: 0; }
.wpcf7 input[type="submit"] { justify-self: start; min-height: 52px; padding: 0 28px; border: 0; cursor: pointer; background: var(--wp--preset--color--accent-2); color: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; font-weight: 600; letter-spacing: .1em; font-size: 1.05rem; transition: background-color .2s; }
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--navy-scuro); }
.wpcf7 .wpcf7-not-valid-tip { color: var(--wp--preset--color--accent-2); font-size: .88rem; font-weight: 500; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 14px 16px; border: 0; border-top: 3px solid var(--wp--preset--color--accent-3); background: var(--wp--preset--color--accent-5); }
.wpcf7 form.invalid .wpcf7-response-output { border-top-color: var(--wp--preset--color--accent-2); background: #FDECEC; }
@media (max-width: 600px) { .pt-scheda .wp-block-image img { aspect-ratio: 16 / 9; } }
.pt-galleria .wp-block-image img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; background: var(--wp--preset--color--base); }

/* ---------- Correzioni dopo la revisione ---------- */
/* parola accento su fondo scuro: bianca con sottolineatura rossa (il rosso su navy non regge il contrasto) */
.has-accent-1-background-color .pt-rosso, .has-navy-scuro-background-color .pt-rosso, .wp-block-cover.is-dark .pt-rosso {
	color: var(--wp--preset--color--base); text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent-2); text-decoration-thickness: .09em; text-underline-offset: .12em; text-decoration-skip-ink: none;
}
/* hero: card navy con filo rosso che scavalca il bordo della foto */
.pt-badge { border-top: 4px solid var(--wp--preset--color--accent-2); position: relative; z-index: 2; }
@media (min-width: 641px) { .pt-hero-cover { margin-bottom: 64px !important; } .pt-badge { margin-bottom: -64px !important; } }
.pt-badge-rosso .pt-numero { white-space: nowrap; }
.pt-hero-titolo .wp-block-buttons { flex-wrap: wrap; }
/* schede prodotto */
.pt-scheda .wp-block-image img { padding: 48px 14px 14px; }
@media (min-width: 782px) { .pt-scheda h3 { min-height: 2.8em; } }
@media (max-width: 600px) {
	.pt-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
	.pt-griglia .pt-scheda .wp-block-image img { aspect-ratio: 1 / 1; padding: 40px 8px 8px; }
	.pt-griglia .pt-scheda p:not(.pt-etichetta) { display: none; }
	.pt-griglia .pt-scheda h3 { font-size: 1.1rem; }
	.pt-griglia .pt-scheda-testo { padding: 12px !important; }
	.pt-griglia .pt-etichetta { font-size: .8rem; padding: 4px 10px; top: 10px; }
}
/* due percorsi */
.pt-percorso-bordo { border: 1px solid var(--wp--preset--color--accent-6); border-top: 4px solid var(--wp--preset--color--accent-1); }
/* cornici e didascalie */
.pt-cornice figcaption { padding: 0 16px 14px; margin-top: 0; }
.pt-galleria .wp-block-image { margin: 0; }
/* reparti e sede */
.pt-reparti .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.pt-sede img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 65%; width: 100%; }
/* contatti */
@media (min-width: 782px) { .pt-sticky { position: sticky; top: 110px; } }
/* landing */
.pt-cta-landing .wp-block-button__link, .pt-testata .wp-block-button__link { white-space: nowrap; }
@media (max-width: 420px) { .pt-cta-landing .wp-block-button__link { font-size: .85rem; padding-left: 14px; padding-right: 14px; letter-spacing: .06em; } }
/* articoli */
.pt-articolo h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem) !important; font-weight: 600; margin-block-start: 2.2em !important; margin-block-end: .5em; }
.pt-articolo h2 + * { margin-block-start: 0 !important; }
.pt-articolo .wp-block-image { margin-block-end: 2em; }
/* tabelle su mobile */
.wp-block-table { overflow-x: auto; }
@media (max-width: 600px) { .wp-block-table table { min-width: 520px; } .wp-block-table th { letter-spacing: .03em; hyphens: none; word-break: normal; } }
/* piè di pagina */
.pt-piede h2 { margin-bottom: 12px !important; }
@media (max-width: 782px) { .pt-piede ul a { display: inline-block; padding: 8px 0; } }
/* campo file dei moduli */
.wpcf7 input[type="file"]::file-selector-button { margin-right: 12px; border: 0; padding: 9px 14px; cursor: pointer; background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--titoli); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pt-obbl { color: var(--wp--preset--color--accent-2); }
.wpcf7 label { display: block; }
.wpcf7 label > :is(input, select, textarea, .wpcf7-form-control-wrap) { display: block; margin-top: 6px; }
.wpcf7 .wpcf7-acceptance label, .wpcf7 .wpcf7-list-item label { display: flex; }
.pt-numero { text-transform: none !important; }
.pt-badge-rosso .pt-numero { font-size: 3.8rem !important; }
.pt-dati-cover .pt-rosso { color: var(--wp--preset--color--base); text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent-2); text-decoration-thickness: .09em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.pt-scheda-testo { align-self: stretch; width: 100%; }
@media (max-width: 600px) { .pt-news .wp-block-post-template { grid-template-columns: 1fr !important; } }
.pt-destra { text-align: right; }
@media (max-width: 781px) { .pt-destra { text-align: left; } }
.wp-block-table { background: linear-gradient(to right, transparent calc(100% - 24px), rgba(20,24,46,.06)) ; }
