:root {
  --sm-red: #EE5445;
  --sm-red-dark: #D1443C;
  --sm-cream: #ECEBE2;
  --sm-cream-2: #F5F4EE;
  --sm-near-black: #221F1F;
  --sm-dark-2: #2E2A2A;
}

@font-face {
  font-family: OT-Regular;
  /* set name */
  src: url(assets/OT/Regular.otf);
  font-display: swap;
}

@font-face {
  font-family: OT-Bold;
  /* set name */
  src: url(assets/OT/Bold.otf);
  font-display: swap;
}

@font-face {
  font-family: OT-SemiBold;
  /* set name */
  src: url(assets/OT/SemiBold.otf);
  font-display: swap;
}

/* //////// */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: OT-Regular, 'Inter', system-ui, -apple-system, sans-serif;

  color: var(--sm-near-black);
  background: var(--sm-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  font-size: 1.15rem;
  line-height: 1.3;

  overflow-x: hidden;
}

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

a {
  color: var(--sm-red);
  transition: color .2s ease;
  display: inline-flex;
}

a:hover {
  color: var(--sm-red-dark);
}

strong,
b {
  font-family: OT-SemiBold, 'Inter', system-ui, -apple-system, sans-serif;
}

::selection {
  background: var(--sm-red);
  color: var(--sm-cream);
}

p,
div {
  margin: 0;
  padding: 0;
  width: auto;
}
p{  max-width: 92.5%;}


.container {
  display: flex;
  flex-direction: column;
}

section.container {
  width: 100%;
  max-width: none;
  padding: 7.5vh 15vw 10vh 15vw;
  gap: 2.5vh;
  height: 100vh;
}

/* text */
.h2 {
  font-size: 3rem;
  line-height: 1.2;
}

.h3 {
  font-size: 2.1rem;
}

.h4 {
  font-size: 1.3rem;
}

.bold {
  font-family: OT-SemiBold, 'Inter', system-ui, -apple-system, sans-serif;
}

.row {
  flex-direction: row;
  gap: 5vw;
}

.img {
  image-rendering: pixelated;
}

/*/////////*/

/* logo */
.brand {
  width: 10vw;
  height: auto;
}

/* hero */
section.container.hero {
  position: relative;
  /* background-color: var(--sm-cream-2); */
  background-image: url('assets/SuperModerno-S-Icon-White.svg');
  background-repeat: no-repeat;
  background-size: 105%;
  /* regola finché la S ha la grandezza giusta */
  background-position: 20vw -36vh;
  padding-top: 10vh;
  gap: 7.5vh;
}
section.container.hero > video {
  position: absolute;
  top:0;
  left:0;
  display: block;
  width: 100%;
  height: auto;
  z-index:-1;
}

/* pres */
section.container.presentation {
      background: var(--sm-red);
    background-image: url('assets/BG_red_static.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  height: 60vh;
  color: var(--sm-near-black);
  justify-content: center;
}

a.pres {
  color: var(--sm-near-black)!important;
}

/* about */
section.container.about {
  height: auto;
}

.about {
  background: var(--sm-cream);
}

.ig-embed {
  max-width: 20vw;
  height: calc(20vw * 1.7);
  border-radius: 0.5vw;
  overflow: hidden;
  margin-bottom: 2.5vh;
}

.ig-embed video {
  display: block;
  width: 100%;
  height: auto;
}

.sub-about {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* naming */
section.container.naming {
  height: 80vh;
  height: auto;
  gap: 15vh;

  background: var(--sm-near-black);
  background-image: url('assets/BG_black_static.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  color: var(--sm-cream);
}
section.container.naming >.container {
  gap: 2.5vh;
}
canvas.img {
  position: absolute;
  display: block;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  z-index: -1;
}

/* founder */
section.container.founder {
  padding: 0 15vw;
  position: relative;
  overflow: hidden;
  align-items: stretch;
  height: auto;
}

.founder {
  background: var(--sm-red);
  width: 100%;
  max-width: none;
}
.founder-text{
  padding-top: 7.5vh;
  gap: 1.25vh;
}
.banzi-photo {
  height: 100%;
  padding-top: 7.5vh;
  width: auto;
  flex: 0 0 auto;
  align-self: flex-end;
  mix-blend-mode: multiply;
  border-radius: 0.5vw;
}


/* social */
section.container.find {
  height: 60vh;
  position: relative;
  overflow: hidden;
  /* align-items: center; */

  gap: 10vh;
}

.contact {
  display: flex;
  width:100%;
  flex-direction: column;
  gap: 1.25vh;
  align-items: center;
  text-align: center;
  line-height: 1.25;
}

.socials.row {
  display: flex;
  justify-content: center;
  gap: 1.5vw;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5vw;
  height: 5vw;
  border-radius: 50%;
  background: #ffffff;
  color: var(--sm-red);
  transition: transform .2s ease, background-color .2s ease;
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn svg {
  width: 50%;
  height: 50%;
}

/* youtube strip */
.yt-strip {
  --yt-card-w: 30vw;
  --yt-gap: 3vw;
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
}

.yt-track {
  display: flex;
  width: max-content;
  animation: yt-marquee linear infinite;
}

@keyframes yt-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.yt-card {
  flex: 0 0 var(--yt-card-w);
  margin-right: var(--yt-gap);
}

.yt-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.5vw;
  background: var(--sm-cream-2);
}


.yt-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.yt-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.yt-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transition: opacity .4s ease;
}

.yt-cover.hidden {
  opacity: 0;
}

.banzi-mac {
  display: none;
}

/* nascosta nel sito normale */
body.sys7 .banzi-photo:not(.banzi-mac) {
  display: none;
}

/* nasconde la normale in Mac */
body.sys7 .banzi-mac {
  display: block;
}

.s7-toggle{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10002;
  padding: 7px 12px;
  cursor: pointer;
  font: 13px/1 system-ui, sans-serif;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.s7-toggle:hover{ opacity: 1; }

/* mostra la dithered in Mac */

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  html {
    width: 100%;
  }

  section.container {
    width: 100%;
    max-width: none;
    padding: 2.5vh;
     padding-top: 5vh;
    gap: 5vh;
    height: auto;
    line-height: 1.3;
  }

  .row {
    flex-direction: column;
  }

  .brand {
    width: 20vw;
  }

  .h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .h3 {
    font-size: 1.75rem;
    /* font-family: OT-Bold, 'Inter', system-ui, -apple-system, sans-serif;  */
  }

  .h4 {
    font-size: 1.15rem;
  }

  section.container {
    height: auto;
  }

  section.container.hero {
    min-height: 100vh;
  min-height: 100vh;
  background-size: 275%;
  background-position: -60vw 5vh;
}
  section.container.about {
    /* background-image: url('assets/BG_white_static_V.webp'); */
    padding-top: 7.5vh;
    padding-bottom: 10vh;
    gap: 3vh;
  }

  .about>.container.row {
    gap: 7.5vh;
  }

  section.container.founder {
    padding: 0 2.5vh 0 2.5vh;
    gap: 0;
  }

  .banzi-photo {
    padding-top: 1.5vh;
  }

  .ig-embed {
    max-width: 50vw;
    height: calc(50vw * 1.7);
    border-radius: 0.5vw;
    overflow: hidden;
    margin-bottom: 2.5vh;
  }

  section.container.naming {
    height: 100vh;
    height: auto;

  }

  /* naming */
  section.container.naming {
    gap: 15vh;
  }

  .naming>.container {
    gap: 2.5vh;
  }

  section.container.contact {
    height: auto;
  }

  canvas.img {
    height: 100%;
    width: auto;
  }

  .social-btn {
    width: 15vw;
    height: 15vw;
  }

  .socials.row {
    flex-direction: row;
  }

  .yt-strip {
    --yt-card-w: 80vw;
  }

}