/*
Theme Name: Siti Web Native
Description: Contenitore essenziale per le pagine HTML native di Itria Attiva e ReBeat.
Version: 0.2.2
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: siti-web-native
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Update URI: false
*/

/* Le pagine complete definiscono gia tutti gli stili dentro #ia-site o #rb-site. */
body { margin: 0; }

/* Queste regole si applicano soltanto al contenitore dei contenuti di riserva. */
#swn-fallback {
  box-sizing: border-box;
  max-width: 56rem;
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 3rem);
  color: #202020;
  background: #fff;
  font: 400 1rem/1.7 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
#swn-fallback *,
#swn-fallback *::before,
#swn-fallback *::after { box-sizing: border-box; }
#swn-fallback .swn-header,
#swn-fallback .swn-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}
#swn-fallback .swn-header { border-bottom: 1px solid #d0d0d0; }
#swn-fallback .swn-footer { border-top: 1px solid #d0d0d0; }
#swn-fallback .swn-header a,
#swn-fallback .swn-footer a { padding-block: 0.5rem; }
#swn-fallback main { padding-block: 1.5rem 3rem; }
#swn-fallback h1 { font-size: clamp(1.8rem, 5vw, 2.75rem); line-height: 1.2; }
#swn-fallback h2 { font-size: 1.4rem; line-height: 1.35; }
#swn-fallback a { color: inherit; text-underline-offset: 0.2em; }
#swn-fallback a:hover { text-decoration-thickness: 2px; }
#swn-fallback :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #202020;
  outline-offset: 4px;
}
#swn-fallback :where(input, button, select, textarea) { max-width: 100%; font: inherit; }
#swn-fallback img { max-width: 100%; height: auto; }
#swn-fallback pre { max-width: 100%; overflow: auto; }
#swn-fallback .swn-entry { margin-block: 2rem; }
#swn-fallback .page-numbers { display: inline-block; padding: 0.5rem 0.75rem; }
#swn-fallback .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#swn-fallback .swn-skip {
  position: absolute;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid #202020;
  background: #fff;
  transform: translateY(-200%);
}
#swn-fallback .swn-skip:focus { transform: none; }

/* ItriaAttiva: social links and complete mobile content, 2026-10-20. */
body footer .swn-social-links { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; max-width:100%; }
body footer .swn-social-links a { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; max-width:100%; padding:10px 14px; border:1px solid currentColor; border-radius:6px; color:inherit; font:600 .9375rem/1.4 system-ui,sans-serif; text-decoration:none; }
body footer .swn-social-links a:hover { text-decoration:underline; text-underline-offset:3px; }
body footer .swn-social-links a:focus-visible { outline:3px solid currentColor; outline-offset:4px; }
body footer .swn-social-links svg { display:block; flex:0 0 20px; width:20px; height:20px; }
body #ia-news .news-image img { object-fit:contain !important; object-position:center; }
body #ia-site .ia-territory-gallery figcaption { padding:14px 16px; font-size:.875rem; line-height:1.5; color:var(--ia-navy); background:#fff; }
@media (max-width:600px) {
  body #itriaattiva-privacy .lg-table-wrap table { min-width:0; table-layout:fixed; }
  body #itriaattiva-privacy .lg-table-wrap th,
  body #itriaattiva-privacy .lg-table-wrap td { padding:12px 10px; overflow-wrap:anywhere; }
  body #itriaattiva-privacy .lg-table-wrap th:first-child { width:40%; }
}