/*
Theme Name: Old Guys DOS
Theme URI: https://oldguys.it
Author: Michael
Version: 1.1
Text Domain: oldguys-dos
*/

:root {
  --dos-bg: #000000;
  --dos-fg: #cfcfcf;
  --dos-fg-strong: #ededed;
  --dos-fg-soft: #8f8f8f;
  --dos-line: #4c4c4c;
  --dos-max: 1080px;
  --dos-pad: 40px;
}

html {
  margin: 0;
  min-height: 100%;
  background: var(--dos-bg);
  color: var(--dos-fg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--dos-bg) !important;
  color: var(--dos-fg) !important;
  font-family: "IBM VGA8", monospace;
  line-height: 1.45;
}

* {
  box-sizing: border-box;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;

}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-frame {
  min-height: 100vh;
}

.site-main,
.site-footer,
.site-header {
  width: 100%;
}

hr {
	display:block;
	margin:480px 0;
}


h1 {
  font-size: 3em;
  margin: 128px 0;
  font-weight: normal;
}
h2 {
  font-size: 2em;
  margin: 64px 0;
  font-weight: normal;
}
h3 {
  font-size: 1.8em;
  margin: 64px 0;
  font-weight: normal;
}
p {
	font-size:1.3em;
}

li{
	font-size:1.2em;
}

/* models */
.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.model-card img,
.model-featured img,
.model-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.model-card h2 {
  font-size: 16px;
  margin-top: 10px;
}

.model-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.model-data {
  margin: 20px 0;
}

@media (max-width: 900px) {
  .models-grid,
  .model-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}


.model-video a {
  background-color: #ededed;
  color: #000000;
  padding: 1em;
  margin: 1em 0;
}


.model-card-image {
  position: relative;
  overflow: hidden;
}

.model-card-image img {
  display: block;
}

/* layer b/n sopra */
.model-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  mix-blend-mode: saturation;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

/* hover */
.model-card-link:hover .model-card-image::after {
  opacity: 0;
}
/* fine models */


/* menu side */
.gaussian-side-nav-wrap {
  position: fixed;
  left: 20px;
  top: 180px;
  width:0;
  z-index: 20;
}

.gaussian-side-nav {
  position: sticky;
  top: 120px;
  width: 220px;
  margin-right: -300px;
}

.gaussian-side-nav__inner {
  padding-right: 26px;
  border-right: 1px solid rgba(255,255,255,0.28);
}

.gaussian-menu,
.gaussian-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gaussian-menu > li {
  margin-bottom: 18px;
}

.gaussian-menu li a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: "IBM VGA 8x8", monospace;
  font-size: 28px;
  line-height: 1.1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gaussian-menu li a:hover {
  opacity: 0.72;
  transform: translateX(4px);
}

.gaussian-menu .sub-menu {
  margin-top: 10px;
  margin-left: 14px;
  padding-left: 14px;
}

.gaussian-menu .sub-menu li {
  margin-bottom: 10px;
}

.gaussian-menu .sub-menu li a {
  font-size: 20px;
  opacity: 0.82;
}

@media (max-width: 900px) {
  .gaussian-side-nav-wrap {
    display: none;
  }
}
/* fine menu */





.dos-shell,
.dos-wrap,
.container {
  width: 100%;
  max-width: var(--dos-max);
  margin: 0 auto;
  padding-left: var(--dos-pad);
  padding-right: var(--dos-pad);
}

.site-header {
  border-bottom: 1px solid var(--dos-line);
}

.dos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.dos-brand {
  flex: 0 0 auto;
}

.dos-logo-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  display: block;
  max-height: 42px;
  width: auto;
}

.dos-logo-text {
  color: var(--dos-fg-strong);
  letter-spacing: 0.04em;
}

.dos-nav {
  flex: 1 1 auto;
}

.dos-menu {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dos-menu li {
  margin: 0;
}

.dos-menu a {
  color: var(--dos-fg);
}

.current-menu-item > a,
.current_page_item > a,
.current-page-ancestor > a {
  text-decoration: underline;
}

.hero-shell {
  min-height: calc(100vh - 82px - 90px);
  display: flex;
  align-items: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.dos-logo {
  margin: 0;
  white-space: pre;
  line-height: 1;
  font-size: clamp(36px, 2vw, 42px);
}

.dos-title,
.dos-subtitle,
.dos-text h1,
.dos-text h2,
.dos-text h3,
.dos-text h4,
.dos-text h5,
.dos-text h6 {
  color: var(--dos-fg-strong);
  font-weight: normal;
  line-height: 1.2;
}

.dos-title {
  font-size: clamp(36px, 2.5vw, 48px);
}

.dos-subtitle {
  font-size: clamp(24px, 2.3vw, 36px);
}

.dos-subtitle--small {
  font-size: clamp(18px, 1.6vw, 26px);
}

.dos-lead {
  max-width: 760px;
  margin: 0;
}

.dos-wrap {
  padding-top: 44px;
  padding-bottom: 44px;
}

.dos-entry + .dos-entry {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--dos-line);
}

.dos-text {
  width: 100%;
}

.dos-text > *:first-child {
  margin-top: 0;
}

.dos-text p,
.dos-text ul,
.dos-text ol,
.dos-text figure,
.dos-text .wp-block-columns,
.dos-text .wp-block-image,
.dos-text .wp-block-embed,
.dos-text .wp-block-video,
.dos-text .wp-block-media-text,
.dos-text .wp-block-group,
.dos-text .wp-block-separator {
  margin: 0 0 24px;
}

.dos-text ul,
.dos-text ol {
  padding-left: 24px;
}

.dos-text li {
  margin-bottom: 6px;
}

.dos-text hr,
.wp-block-separator {
  border: 0;
  border-top: 0px solid var(--dos-line);
  opacity: 1;
	margin: 250px 0;
	padding: 250px 0;
}

.dos-text .wp-block-image img,
.dos-text img {
  width: 100%;
  height: auto;
	margin: auto 0;
}

.dos-text .wp-block-columns {
  gap: 36px;
}

.dos-text .wp-block-column {
  min-width: 0;
}

.dos-text .wp-video,
.dos-text video {
  width: 100% !important;
  max-width: 100%;
}

.site-footer {
  border-top: 1px solid var(--dos-line);
}

.dos-footerline {
  margin: 0;
  padding: 28px 0;
  color: var(--dos-fg-soft);
}

/* WordPress resets */
body .is-layout-flex {
  display: flex;
}

body .is-layout-flex > * {
  margin: 0;
}

body .wp-block-post-template,
body .wp-block-columns,
body .wp-block-group,
body .wp-block-buttons {
  gap: 36px;
}

body .wp-block-heading {
  font-weight: normal;
}

@media (max-width: 900px) {
  :root {
    --dos-pad: 20px;
  }

  .dos-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dos-menu {
    justify-content: flex-start;
  }

  .hero-shell {
    min-height: auto;
  }

  .container,
  .dos-wrap {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .dos-text .wp-block-columns,
  body .wp-block-columns.is-layout-flex {
    flex-wrap: wrap !important;
    gap: 24px;
  }
}
