/*
Theme Name: Twenty Seventeen Child (FiraGO only)
Template: twentyseventeen
Author: Sztukmistrz
*/

/* --- FiraGO: local WOFF2 (only the weights you have) --- */

@font-face{
  font-family: "FiraGO";
  src: url("assets/fonts/firago/FiraGO-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "FiraGO";
  src: url("assets/fonts/firago/FiraGO-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face{
  font-family: "FiraGO";
  src: url("assets/fonts/firago/FiraGO-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "FiraGO";
  src: url("assets/fonts/firago/FiraGO-SemiBoldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face{
  font-family: "FiraGO";
  src: url("assets/fonts/firago/FiraGO-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "FiraGO";
  src: url("assets/fonts/firago/FiraGO-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* --- Apply: replace fonts only --- */
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
  font-family: "FiraGO", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Monospace zostawiamy w spokoju (kod ma być czytelny) */
code, kbd, samp, pre {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}
/* H1 (tytuł strony) – trochę większy niż H2 */
h1.entry-title{
  font-size: 1.95rem !important;
  line-height: 1.25 !important;
}

/* Nagłówki w treści */
.entry-content h2{
  font-size: 1.6rem !important;
  line-height: 1.25 !important;
}
.entry-content h3{
  font-size: 1.3rem !important;
  line-height: 1.3 !important;
}

/* Jeśli edytor blokowy ustawił “Large/Huge”, nie pozwól mu przebić H1 */
.entry-content .has-large-font-size{ font-size: 1.6rem !important; }
.entry-content .has-huge-font-size { font-size: 1.75rem !important; }

@media (max-width: 48em){
  h1.entry-title{ font-size: 1.95rem !important; }
}

/* Front page (panele) – żeby nie przebijały tytułu strony */
@media screen and (min-width: 48em){
  .twentyseventeen-front-page .panel-content h2{
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }
  .twentyseventeen-front-page .panel-content h3{
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  /* Jeśli Gutenberg dał "Huge/Large" w panelach */
  .twentyseventeen-front-page .panel-content .has-large-font-size{ font-size: 1.6rem !important; }
  .twentyseventeen-front-page .panel-content .has-huge-font-size { font-size: 1.75rem !important; }
}

:root { --content-max: 1000px; }

@media screen and (min-width: 48em){

  /* podstrony */
  .site-content > .wrap,
  .site-content .wrap{
    max-width: var(--content-max) !important;
  }

  /* strona powitalna (panele) */
  .twentyseventeen-front-page .panel-content > .wrap,
  .twentyseventeen-front-page .panel-content .wrap,
  .twentyseventeen-front-page .site-content > .wrap{
    max-width: var(--content-max) !important;
  }
}

/* MOBILE: tytuł strony powitalnej w Twenty Seventeen bywa H2 */
@media (max-width: 48em){
  .twentyseventeen-front-page h2.entry-title,
  .twentyseventeen-front-page .panel-content h2,
  .home h2.entry-title{
    font-size: 1.6rem !important;  /* dopasuj */
    line-height: 1.25 !important;
  }
}



.he {
	direction:rtl;
	font-family:"FiraGO";
	color:#003E74;
}
.en {
	font-family:"FiraGO";
	font-style:italic;
	color:#A51900;
}
.page-id-6 .entry-title {

/* display: none;*/

}

.page-id-6 .entry-header { 
/*  display: none;*/
}

#english {
  scroll-margin-top: 120px; /* dopasuj */
}

#partners {
	margin-top:72px;
}

#partners figure{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

#partners img{
  height: 100px;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#partners figcaption{
  margin-top: 24px;
  text-align: center !important;
}

#partners a{
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

#partners a:hover,
#partners a:focus-visible{
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  color: #b20000;
}

/* Emoji jako obrazki: zawsze jak znak tekstowy, nie jak ilustracja */
img.wp-smiley,
img.emoji,
img[class*="emoji"],
img[alt*="emoji"],
.entry-content img.wp-smiley,
.entry-content img.emoji,
.entry-content img[class*="emoji"]{
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  display: inline !important;
  vertical-align: -0.12em !important;
}

/* Ilustracje w treści — ale NIE emoji i NIE ikon plików */
.entry-content figure img:not(.wp-smiley):not(.emoji):not([class*="emoji"]):not(.file-icon),
.entry-content .wp-block-image img:not(.wp-smiley):not(.emoji):not([class*="emoji"]):not(.file-icon),
.entry-content img:not(.wp-smiley):not(.emoji):not([class*="emoji"]):not(.file-icon){
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

.entry-content li img.wp-smiley,
.entry-content li img.emoji,
.entry-content li img[class*="emoji"]{
  vertical-align: -0.15em !important;
}
/* Ikonki plików (PDF itp.) w blokach obrazka – nie rozciągaj na szerokość łamu */
.entry-content img.file-icon{
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  height: auto !important;
  display: inline-block !important;
}

