/* pe.css — правки реставрации psicologia-energetica.it (шаблон 2007: таблица 800 px, нарезка Fireworks) */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #000; }
img { border: 0; }
.pe-mob-head { display: none; }
.pe-h1, .pe-h2 { display: block; margin: 0; padding: 0 8px; font: bold 18px/30px Arial, Helvetica, sans-serif; color: #fff; text-align: center; letter-spacing: .02em;
  background: #0b1460 url(/immagini/imm_home_2.jpg) center / 100% 100% no-repeat; }
.pe-h2 { font-size: 15px; }
.pe-quotes { width: 210px; max-width: 100%; margin: 12px auto; font-family: "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif; color: #1b3a8c; text-align: center; }
.pe-quotes blockquote { margin: 0 0 10px; padding: 8px 10px; background: #eef4ff; border: 1px solid #b9cdf2; border-radius: 6px; }
.pe-quotes p { margin: 0 0 4px; font-size: 13px; line-height: 1.35; font-weight: bold; }
.pe-quotes footer { font: 12px/1.3 Arial, Helvetica, sans-serif; color: #33466f; }
.pe-fig { margin: 14px auto; text-align: center; max-width: 100%; }
.pe-fig img { max-width: 100%; height: auto; }
.pe-fig figcaption { margin: 4px 8px 0; font: 12px/1.35 Arial, Helvetica, sans-serif; color: #333; }
.pe-left .pe-fig { width: 230px; max-width: 100%; }
.pe-content { padding: 10px 8px 20px; font: 13px/1.5 Arial, Helvetica, sans-serif; }
.pe-content table { max-width: 100%; }
.pe-block + .pe-block { margin-top: 18px; }
.pe-intro, .pe-legal { font: 14px/1.6 Arial, Helvetica, sans-serif; }
.pe-legal h2 { font: bold 16px Arial, Helvetica, sans-serif; color: #1b3a8c; margin: 18px 0 6px; }
.pe-center { text-align: center; }
.pe-foot { max-width: 800px; margin: 12px auto 24px; padding: 0 16px; font: 13px/1.7 Arial, Helvetica, sans-serif; color: #333; text-align: center; }
.pe-foot a { color: #1a3fa0; }
font[size="1"] { font-size: 12px; }
.tabhome img, .pe-content img { max-width: 100%; height: auto; }
/* исходные цвета текста на цветных плашках — темнее для контраста WCAG */
font[color="#0099FF" i] { color: #005c99 !important; }
font[color="#993399" i] { color: #6e1f6e !important; }
font[color="#9966FF" i] { color: #5229a3 !important; }
font[color="#33CC00" i] { color: #1f7a00 !important; }
font[color="#CC6600" i] { color: #a34f00 !important; }
/* ячейки контента с фиксированной высотой (после утраченных картинок) — по содержимому */
.pe-content td[height], .pe-content tr[height] { height: auto !important; }
/* десктоп: колонки шаблона фиксированы (266 + 479 + 40), широкие таблицы контента — по ширине колонки */
table.pe-main { table-layout: fixed; }
.pe-content table { width: 100% !important; height: auto !important; }
.pe-content td[width] { width: auto !important; }
/* телефон и планшет: шапка картинкой + текстовое меню, колонки друг под другом (контент первым) */
@media (max-width: 820px) {
  .pe-desk-head { display: none !important; }
  .pe-mob-head { display: block; }
  .pe-mob-head > a > img { display: block; width: 100%; height: auto; }
  .pe-mnav { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 0; border-bottom: 3px solid #0d2f8a; }
  .pe-mnav a { display: inline-block; padding: 9px 11px 8px; background: #0d2f8a; color: #fff; font: 15px Arial, Helvetica, sans-serif; text-decoration: none; border-radius: 6px 6px 0 0; }
  .pe-mnav a.pe-cur { background: #2f6fe0; }
  table, td, th { max-width: 100%; }
  table[width], td[width], table.pe-frame, table.pe-frame td { width: auto !important; }
  table.pe-frame { width: 100% !important; border-width: 0 !important; }
  tr.pe-row { display: flex; flex-direction: column; }
  tr.pe-row > td { display: block; width: auto !important; }
  tr.pe-row > td.pe-right { order: -1; }
  table.pe-main { table-layout: auto; width: 100% !important; }
  table:has(.pe-h1), table:has(.pe-h2) { width: 100% !important; }
  td:has(> .pe-h1), td:has(> .pe-h2) { display: block; width: auto !important; background: none !important; }
  tr:has(> td > .pe-h1) > td:not(:has(> .pe-h1)) { display: none; }
  tr.pe-row > td:not(.pe-left):not(.pe-right) { display: none; }
  td { word-break: break-word; }
  table[height], tr[height], td[height] { height: auto !important; }
  /* распорки 2007 года выравнивали колонки на десктопе; на телефоне колонки друг под другом */
  .pe-sp + .pe-sp, .pe-left .pe-sp { display: none; }
  /* строка © 2006/2015 под основной таблицей — поля по краям */
  table.pe-frame > tbody > tr > td > div[align="center"] { padding: 6px 14px; }
  /* полоса заголовка страницы — на всю ширину колонки */
  table:has(> tbody > tr > td > .pe-h1), table:has(> tbody > tr > td > .pe-h2) { display: block; width: 100% !important; }
  table:has(> tbody > tr > td > .pe-h1) > tbody, table:has(> tbody > tr > td > .pe-h2) > tbody, tr:has(> td > .pe-h1), tr:has(> td > .pe-h2) { display: block; }
  img { max-width: 100%; height: auto; }
  .pe-content { padding: 10px 14px 20px; }
  tr.pe-row > td.pe-right:not(:has(> .pe-content)) { padding: 8px 14px 16px; }
  tr.pe-row > td.pe-left { padding: 0 14px 10px; }
}
