/*
Theme Name: Tarantino Marchesi
Author: sygyz
Description: Tema personalizzato per la landing di Tarantino Marchesi.
Version: 0.1.0
Text Domain: tarantino-marchesi
*/

@font-face {
  font-family: "ES Klarheit Grotesk";
  src: url("assets/fonts/ESKlarheitGrotesk-Md.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "ES Klarheit Grotesk";
  src: url("assets/fonts/ESKlarheitGrotesk-MdIt.woff") format("woff");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page-padding: 15px;
  --ink: #000;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "ES Klarheit Grotesk", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.13;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus, :focus-visible { outline: none; box-shadow: none; }
button::-moz-focus-inner { border: 0; }
img { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  height: 49px;
  padding: 15px var(--page-padding);
}
.site-header__brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  font-size: 17.5px;
  line-height: 1;
  white-space: nowrap;
  opacity: 1;
}
body.has-site-intro .site-header__brand {
  opacity: 0;
  transition: opacity .5s ease;
}
body.has-site-intro .site-header__brand.is-loaded { opacity: 1; }
.site-header__brand:hover { text-decoration: none; }
.site-header__brand-logo {
  display: block;
  width: auto;
  height: .775em;
}
@media (min-width: 701px) {
  .site-header__brand-logo { height: 16px; }
}
.site-navigation { display: flex; gap: 4px; align-items: center; margin-top: 0; font-size: 15px; }
.site-navigation a:hover { color: #8a8a8a; text-decoration: none; }

.home-main { min-height: 100vh; min-height: 100svh; }
.carousel { position: relative; min-height: 100vh; min-height: 100svh; }
.carousel__slide {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
}
.carousel__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}
.carousel__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 75vw;
  max-height: 100vh;
  max-height: 100svh;
  object-fit: contain;
  object-position: top right;
}
@media (min-width: 701px) {
  .carousel__image--horizontal {
    width: auto;
    max-width: 75vw;
    max-height: 100vh;
    max-height: 100svh;
    height: auto;
  }
}
.carousel__next {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
  cursor: default;
}
.empty-state { position: absolute; top: 85px; left: var(--page-padding); max-width: 400px; }

.site-intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #fff;
  opacity: 1;
  visibility: visible;
}
.site-intro img {
  position: absolute;
  bottom: 15px;
  left: var(--page-padding);
  display: block;
  width: 33.333333vw;
  height: auto;
  filter: brightness(0);
  opacity: 0;
}
body.intro-mark-visible .site-intro img { opacity: 1; }
body.intro-complete .site-intro { opacity: 0; visibility: hidden; pointer-events: none; }

.info-main { position: relative; min-height: 100vh; min-height: 100svh; }
.info-main__image {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  width: 33.5vw;
}
.info-main__image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  max-height: 78svh;
}
.info-main__contact {
  position: absolute;
  top: 120px;
  left: var(--page-padding);
  max-width: calc(65vw - var(--page-padding));
  font-size: 15px;
  line-height: normal;
}
.info-main__contact p, .info-main__bio p { margin: 0; }
.info-main__bio {
  position: absolute;
  right: var(--page-padding);
  bottom: 15px;
  left: var(--page-padding);
  font-size: 15px;
  line-height: normal;
}
.info-main__bio p + p { margin-top: .75em; }
.info-main a:hover { color: #8a8a8a; text-decoration: none; }
.info-scroll-space { height: 42px; }
.info-footer {
  position: fixed;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  height: 57px;
  background: #fff;
  color: #8a8a8a;
  font-size: 15px;
  line-height: normal;
  pointer-events: none;
  transform: translate3d(0, var(--info-footer-offset, 57px), 0);
  transition: transform .18s ease-out;
  will-change: transform;
}
.info-footer.is-interactive { pointer-events: auto; }
.info-footer__content {
  position: absolute;
  bottom: 15px;
  right: var(--page-padding);
  left: var(--page-padding);
  display: flex;
  flex-wrap: wrap;
  column-gap: 100px;
  align-items: baseline;
  white-space: nowrap;
}
.info-footer__primary { display: flex; align-items: baseline; gap: 100px; }
.info-footer__credits--mobile { display: none; }
.info-footer a:hover { color: inherit; text-decoration: none; }
.simple-main { padding: 100px var(--page-padding) 40px; }

@media (max-width: 700px) {
  :root { --page-padding: 15px; }
  body { font-size: 12px; }
  .site-header { align-items: baseline; justify-content: space-between; height: auto; padding: 15px var(--page-padding); }
  .site-header__brand { font-size: 15px; }
  .site-navigation {
    position: static;
    display: flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    align-self: baseline;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }
  .carousel__slide { left: 0; right: 0; }
  .carousel__image { width: 100%; max-width: none; max-height: none; height: auto; }
  .site-intro img { width: 66.666667vw; }
  .info-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .info-main__image { position: relative; order: 0; display: block; width: 100%; }
  .info-main__image img { width: 100%; max-height: none; }
  .info-main__contact {
    position: static;
    order: 1;
    max-width: none;
    margin: 15px var(--page-padding) 0;
    font-size: 12px;
    line-height: normal;
  }
  .info-main--no-image .info-main__contact { margin-top: 82px; }
  .info-main__bio {
    position: static;
    order: 2;
    margin: auto var(--page-padding) 15px;
    padding-top: 78px;
    font-size: 12px;
    line-height: normal;
  }
  .info-footer { font-size: 12px; line-height: 1; }
  .info-footer__content { display: block; }
  .info-footer__primary { gap: 40px; }
  .info-footer__credits--desktop { display: none; }
  .info-footer__credits--mobile { display: block; margin-top: 0; }
  .site-header__brand-logo { transform: translateX(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .site-intro { display: none; }
  .site-header__brand { transition: none; }
  .carousel__slide, .carousel__slide.is-active { transition: none; }
  .info-footer { transition: none; }
}
