/* =====================================================================
   The Blades Studio — LE PORTE DEL SITO NUOVO, le PAGINE (14/11/2026, ramo b-sito-nuovo)
   /brasnari-s-opit/, /oferti/, /ekim/<nome>/, la pagina degli studenti (inc/porte.php): si carica dopo porte.css
   (pezzi comuni, mazzo dei barbieri, home) e SOLO su queste pagine, così la home non scarica né aspetta questi stili
   prima del primo disegno. Stesse regole di porte.css: transform e opacity, «riduci movimento», #fb3d48, ≥ 44 px.
   ===================================================================== */

.pt-nota { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .68); max-width: 40em; }

/* le bandiere (le stesse di /ekim/ e /junior/: inc/lingue-barbieri.php) */
.pt-page .bl-langs, .pt-carta .bl-langs { display: inline-flex; flex-wrap: wrap; gap: 5px; --bl-f: 18px; }
.pt-page .bl-flag { position: relative; display: block; flex: none; width: var(--bl-f, 18px); height: var(--bl-f, 18px); border-radius: 50%; overflow: hidden; }
.pt-page .bl-flag svg { display: block; width: 100%; height: 100%; }
.pt-page .bl-flag::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }

/* il listino di un barbiere */
.pt-listino { margin: 16px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.pt-listino > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pt-listino dt { font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .78); }
.pt-listino dd { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; line-height: 1; color: #fff; white-space: nowrap; }

/* le spunte (cosa è incluso) */
.pt-spunte { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.pt-spunte li { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 16px; line-height: 1.4; color: #fff; }
.pt-spunte svg { flex: none; width: 22px; height: 22px; fill: none; stroke: #fb3d48; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) { .pt-spunte:not(.pt-spunte--1) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }

/* ---------------------------------------------------------------------
   LE PAGINE (ps-*): eroe con il mazzo, carte dei barbieri, motivi, offerte, tabella, scheda
   --------------------------------------------------------------------- */
.pt-page .ps-h1 .pt-sopra { display: flex; font-family: 'Inter', sans-serif; text-transform: uppercase; }
.pt-eroe__griglia { display: grid; gap: 36px; align-items: center; }
.pt-livelli { margin: -4px 0 16px; font: 700 clamp(18px, 5vw, 22px)/1.2 var(--ps-display, 'Barlow Condensed', sans-serif); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.pt-cena { display: block; margin-top: 10px; color: #fff; font-weight: 600; }
@media (min-width: 1024px) {
  .pt-eroe__griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}

/* le carte dei barbieri */
.pt-carte { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .pt-carte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pt-carte { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pt-carta { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; overflow: hidden; background: #111; }
.pt-carta__foto { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; background: #141414; }
.pt-carta__foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.pt-carta:hover .pt-carta__foto img { transform: scale(1.03); }
.pt-carta__livello {
  position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(10, 10, 10, .78); border: 1px solid rgba(251, 61, 72, .55);
  font: 600 11px/1 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.pt-carta__corpo { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.pt-carta__nome { margin: 0; font-family: var(--ps-display, 'Barlow Condensed', sans-serif); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; color: #fff; }
.pt-carta__nome small { display: block; margin-top: 6px; font: 600 11.5px/1.3 'Inter', sans-serif; letter-spacing: .16em; color: #fb3d48; }
.pt-carta__firma { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.pt-carta__lingue { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-lingue__t { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.pt-carta__azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 18px; }
.pt-carta__azioni .bs-cta { flex: 1 1 auto; }
.pt-carta__profilo {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: #fff;
  font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px;
}
.pt-carta__profilo:hover { text-decoration-color: #fb3d48; }
.pt-carta__profilo:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* perché un barbiere con esperienza */
.pt-motivi { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.pt-motivi li { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pt-motivi h3 { margin: 0 0 8px; font-family: var(--ps-display, 'Barlow Condensed', sans-serif); font-weight: 700; font-size: 24px; line-height: 1.05; text-transform: uppercase; color: #fff; }
.pt-motivi p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .76); }
@media (min-width: 900px) {
  .pt-motivi { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 0; }
  .pt-motivi li { border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; }
}

/* le offerte (/oferti/) */
.pt-offerte { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .pt-offerte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-offerta {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 20px 20px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14); background: radial-gradient(120% 120% at 100% 0%, rgba(176, 17, 30, .18), transparent 60%), #111;
  color: #fff; text-decoration: none; transition: border-color .3s ease;
}
.pt-offerta:hover { border-color: rgba(251, 61, 72, .6); }
.pt-offerta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pt-offerta--esperti { border-color: rgba(251, 61, 72, .5); }
.pt-offerta__tipo { font: 600 11px/1.3 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.pt-offerta__nome { margin: 8px 0 0; font-family: var(--ps-display, 'Barlow Condensed', sans-serif); font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; }
.pt-offerta__cifra { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 14px; }
.pt-offerta__cifra b { font-family: var(--ps-display, 'Barlow Condensed', sans-serif); font-weight: 700; font-size: 52px; line-height: .9; color: #fff; }
.pt-offerta__cifra small { font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .76); }
.pt-offerta__cifra .pt-offerta__prima { font: 600 13px/1 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fb3d48; }
.pt-offerta__testo { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .76); }
.pt-offerta__vai { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.pt-offerta__vai svg { width: 18px; height: 18px; fill: none; stroke: #fb3d48; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.pt-offerta:hover .pt-offerta__vai svg { transform: translateX(4px); }

/* la tabella dei prezzi di ogni barbiere */
.pt-tab-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; }
.pt-tab-wrap:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pt-tab { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.pt-tab caption { caption-side: bottom; padding: 14px 16px; text-align: left; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.pt-tab th, .pt-tab td { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.pt-tab thead th { font: 600 11px/1.3 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); border-bottom-color: rgba(255, 255, 255, .16); }
.pt-tab td { font-family: var(--ps-display, 'Barlow Condensed', sans-serif); font-weight: 700; font-size: 20px; color: #fff; white-space: nowrap; }
.pt-tab tbody th { font-weight: 600; color: #fff; }
.pt-tab tbody th a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.pt-tab tbody th a:hover { text-decoration-color: #fb3d48; }
.pt-tab tbody th small { display: block; margin-top: 2px; font: 600 10.5px/1.3 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.pt-tab__gruppo th { padding-top: 18px; font: 700 12px/1.3 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #fb3d48; background: rgba(176, 17, 30, .08); }
.pt-row__chi { display: block; margin-top: 6px; font: 500 13px/1.4 'Inter', sans-serif; text-transform: none; color: rgba(255, 255, 255, .72); }

/* la scheda di un barbiere */
.pt-scheda__griglia { display: grid; gap: 32px; align-items: start; }
.pt-scheda__foto { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: #141414; max-width: 460px; }
.pt-scheda__foto img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; }
.pt-titolo { margin: -6px 0 12px; font: 600 12px/1.3 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #fb3d48; }
.pt-page--scheda .pt-carta__firma { font-size: 15.5px; }
.pt-page--scheda .pt-carta__firma b { color: #fff; font-weight: 600; }
.pt-page--scheda .ps-lead { margin-top: 14px; }
.pt-page--scheda .pt-listino { max-width: 420px; }
@media (min-width: 900px) {
  .pt-scheda__griglia { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
  .pt-scheda__foto { max-width: none; }
}

/* il visore delle foto (= home.css, per le pagine ps-*) */
.pt-page .hm-lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden;
}
.pt-page .hm-lb[open] { display: grid; place-items: center; }
.pt-page .hm-lb::backdrop { background: rgba(6, 6, 6, .94); }
html:has(.pt-page .hm-lb[open]) { overflow: hidden; }
.pt-page .hm-lb__fig { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 0 16px; }
.pt-page .hm-lb__img { display: block; width: min(92vw, 78svh, 820px); height: auto; aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: #121212; object-fit: cover; }
.pt-page .hm-lb__cap { max-width: min(92vw, 78svh, 820px); text-align: center; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.pt-page .hm-lb__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 10, 10, .62);
  color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.pt-page .hm-lb__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-page .hm-lb__btn:active { transform: scale(.94); }
.pt-page .hm-lb__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pt-page .hm-lb__close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.pt-page .hm-lb__prev, .pt-page .hm-lb__next { bottom: max(18px, env(safe-area-inset-bottom)); }
.pt-page .hm-lb__prev { left: calc(50% - 58px); }
.pt-page .hm-lb__next { right: calc(50% - 58px); }
@media (min-width: 900px) {
  .pt-page .hm-lb__prev, .pt-page .hm-lb__next { bottom: auto; top: calc(50% - 24px); }
  .pt-page .hm-lb__prev { left: max(24px, calc(50% - 480px)); }
  .pt-page .hm-lb__next { right: max(24px, calc(50% - 480px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .pt-page .hm-lb[open] .hm-lb__fig.is-new { animation: pt-lb-in .55s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes pt-lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* la galleria nelle pagine: il mazzo esce dal margine come in home */
.pt-gal .mz { margin-top: 8px; }
.pt-fine .ps-act { justify-content: center; margin-left: auto; margin-right: auto; }
.pt-fine .pt-nota { margin: 18px auto 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .pt-offerta__vai svg, .pt-carta__foto img, .pt-page .hm-lb__btn { transition: none; }
  .pt-carta:hover .pt-carta__foto img { transform: none; }
}

/* la tabella sul telefono: ogni barbiere è una riga-scheda (nome e livello sopra, i tre prezzi etichettati sotto; colonne
   larghe quanto le etichette, che vanno a capo solo fra le parole),
   niente scorrimento di lato da 320 px in su; le intestazioni delle colonne restano per i lettori di schermo */
.pt-tab__l { display: none; }
@media (max-width: 599px) {
  .pt-tab-wrap { overflow: visible; }
  .pt-tab { display: flex; flex-direction: column; min-width: 0; }
  .pt-tab tbody, .pt-tab tr, .pt-tab th, .pt-tab td { display: block; }
  .pt-tab caption { display: block; order: 2; padding: 14px 14px 16px; }
  .pt-tab thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .pt-tab tbody { order: 1; }
  .pt-tab__gruppo th { padding: 14px 14px 12px; }
  .pt-tab .pt-tab__riga { display: grid; grid-template-columns: repeat(3, auto); column-gap: 10px; padding: 14px 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .pt-tab__riga th, .pt-tab__riga td { padding: 0; border-bottom: 0; }
  .pt-tab__riga th { grid-column: 1 / -1; margin-bottom: 12px; font-size: 16px; }
  .pt-tab__riga td { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; white-space: normal; font-size: 20px; line-height: 1.1; }
  .pt-tab__l { display: block; font: 600 11px/1.3 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
  .pt-tab__v { white-space: nowrap; }
}
/* sotto i 375 px tre colonne non bastano per «ПОДСТРИГВАНЕ»: i prezzi uno sotto l'altro, etichetta a sinistra e cifra a destra */
@media (max-width: 374px) {
  .pt-tab .pt-tab__riga { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .pt-tab__riga th { margin-bottom: 4px; }
  .pt-tab__riga td { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
}

/* 14/11 sera («più design»): nella scheda il ritratto si avvicina piano (solo transform; fermo con «riduci movimento») */
@media (prefers-reduced-motion: no-preference) {
  .pt-scheda__foto img { animation: vv-lento 24s ease-in-out infinite alternate; transform-origin: 50% 30%; }
}
