/**
 * Style Sheet | Fondazione Piccolo America
 * Author: Lorenzo Raffio
 *
*/

:root {
  --white: white;
  --black: black;
  --white-smoke: #f6f6f6;
  --accent: #e7b519;
  --accent2: #6e1c2a
}

/*
@font-face {
  font-family: 'ClashDisplay';
  src: url('../fonts/ClashDisplay-Variable.woff2') format('woff2'),
    url('../fonts/ClashDisplay-Variable.woff') format('woff'),
    url('../fonts/ClashDisplay-Variable.ttf') format('truetype');
  font-weight: 200 700;
  font-display: block;
  font-style: normal;
}
*/

@font-face {
  font-family: 'SuisseIntl';
  src: url('../fonts/SuisseIntl-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SuisseIntl';
  src: url('../fonts/SuisseIntl-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SuisseIntl';
  src: url('../fonts/SuisseIntl-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/*     Will be able to use when support for @container rules     */
/*     is more widespread                                        */
/*     https://x.com/diegohaz/status/1759358162086297759         */
/*                                                               */
/*     :root {                                                   */
/*       --themeBackground: var(--black);                        */
/*     }                                                         */
/*                                                               */
/*     @container (style(--themeBackground: var(--black))) {     */
/*       a {                                                     */
/*         color: var(--white);                                  */
/*       }                                                       */
/*     }                                                         */
/*                                                               */
/*     @container (style(--themeBackground: var(--white))) {     */
/*       a {                                                     */
/*         color: var(--black);                                  */
/*       }                                                       */
/*     }                                                         */

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

* {
  margin: 0;
  padding: 0;
}

html:focus-within {
  scroll-behavior: smooth;
}

html {
  scroll-snap-type: y proximity;
  overflow-y: scroll;
}

header,
section.hero,
footer {
  scroll-snap-align: start;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

img,
picture,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
}

input,
button,
textarea,
select {
  font: inherit;
}

body,
html {
  color: var(--black);
  background: var(--accent);
  font-size: 1rem;
  font-family: 'SuisseIntl', sans-serif;
  font-weight: 400;
  height: 100%;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

.container {
    margin: 0 3rem;
}

section p:not(:first-of-type) {
  margin-top: 1rem;
}

strong {
  font-weight: 700
}

.center * {
  text-align: center;
  align-content: center;
}

h1,
h2 {
  text-align: left;
  font-weight: 400
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.uppercase {
  text-transform: uppercase;
}

section p {
  font-size: clamp(1.5rem, 2vw, 3rem);
  text-align: left;
  overflow-wrap: anywhere
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
}

a {
  color: var(--black);
  text-decoration: none
}

section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.gradient::before {
  background: linear-gradient(rgba(0, 0, 0, .65), transparent) !important;
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
}

section a:hover:not(:has(img)):not(.button-cta) {
  text-decoration: none;
  border-bottom: 2px solid;
}

section p a {
  border-bottom: 1px solid;
}

a.button-cta {
  border: 1px solid var(--white);
  padding: 1rem;
  display: inline-block;
  margin-top: 1rem;
  background: rgba(0, 0, 0, .4);
  transition: 300ms background linear;
}

a.button-cta:hover {
  background: rgba(255, 255, 255, .9);
  color: var(--black) !important;
}

footer p {
  font-weight: 300;
}

footer a:hover {
  opacity: .7;
}

section.hero.black a,
footer a {
  color: var(--white);
}

nav {
  background-color: var(--black);
  mix-blend-mode: exclusion;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  display: flex;
  position: fixed;
  top: 0%;
  bottom: auto;
  left: 0%;
  right: 0%;
  z-index: 999
}

nav .menu a {
  color: var(--white);
  text-decoration: none;
  line-height: 1.5;
  font-weight: 500;
  z-index: 3;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

nav .menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

nav .menu a:hover::after {
  width: 100%;
}

.logo {
  width: 100px;
  filter: brightness(0) invert(1);
  z-index: 1001;
}

.menu {
  grid-column-gap: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger-icon {
  cursor: pointer;
  position: fixed;
  right: 1.5rem;
  z-index: 1001;
  display: none;
  background-color: var(--white);
  height: 3px;
  width: 30px;
  transition: all 0.3s ease;
}

.hamburger-icon:before,
.hamburger-icon:after {
  content: '';
  display: block;
  background-color: var(--white);
  height: 3px;
  width: 30px;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}

.hamburger-icon:before {
  top: -10px;
}

.hamburger-icon:after {
  top: 10px;
}

.hamburger-toggle {
  display: none;
}

section.hero {
  z-index: 2;
  width: 100%;
  height: 100vh;
  position: relative;
  padding: 2rem 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  gap: 2rem 0;
  flex-direction: column;
}

section.hero.black {
  background-color: var(--black);
  color: var(--white);
}

section.hero.white {
  background-color: var(--white-smoke);
  color: var(--black);
}

.accent {
  color: var(--accent);
}

.bg-image {
  background-size: cover;
  background-position: center center;
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
}

.bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent);
  z-index: -1;
}

.align-right {
  text-align: right
}

footer {
  background: var(--black);
  color: var(--white-smoke);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: clamp(1rem, 2vw, 3rem);
  padding: 5rem 4rem;
  position: relative;
  z-index: 2
}

footer .column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

footer h3 {
  font-size: clamp(1.5rem, 2vw, 2.5rem);
}

footer h4 {
  margin-top: 1rem;
}


footer .social {
  display: flex;
  gap: .5rem;
}

footer .social svg {
  width: 35px;
  height: 35px;
}

#hamburger-toggle:checked+nav {
  mix-blend-mode: normal;
}

section h2.vertical {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  line-height: .8;
  font-size: clamp(3rem, 7vw, 10rem);
  transform: scale(-1);
  letter-spacing: -3px;
  font-variation-settings: 'wght' 600;
}

section.black h2.vertical {
  color: var(--accent);
}

section.white h2.vertical {
  color: var(--accent2);
}

section.hero.two-cols {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 3.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.7;
}


/* MOBILE */
@media screen and (max-width: 768px) {
  section h2.vertical {
    writing-mode: unset;
    transform: none;
  }

  section.hero.two-cols {
    grid-template-columns: auto;
  }

  nav img {
    height: 30px;
  }

  .stretch {
    height: unset !important;
    align-items: unset !important;
  }

  nav .menu a::after {
    display: none
  }

  footer {
    justify-content: flex-start;
    gap: 2rem 0;
  }

  .align-right {
    text-align: unset;
  }

  html {
    scroll-snap-type: unset;
  }

  .hamburger-icon {
    cursor: pointer;
    position: fixed;
    right: 1.5rem;
    z-index: 1001;
    display: block;
    background-color: var(--white);
    width: 30px;
    height: 3px;
    transition: all 0.3s ease;
  }

  .hamburger-icon:before,
  .hamburger-icon:after {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
  }

  /*
  #hamburger-toggle:checked+nav .menu::before {
    background: radial-gradient(circle at bottom right, rgba(231, 181, 25, 0.6), transparent 60%);
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(8px);
    scale: 1.5;
  }
  */

  .hamburger-icon:before {
    top: -10px;
  }

  .hamburger-icon:after {
    top: 10px;
  }

  .menu {
    display: none;
    position: fixed;
    background-color: var(--black);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh
  }

  #hamburger-toggle:checked+nav .menu {
    display: flex;
  }

  #hamburger-toggle:checked+nav .hamburger-icon:before {
    transform: rotate(45deg);
    top: 0;
  }

  #hamburger-toggle:checked+nav .hamburger-icon:after {
    transform: rotate(-45deg);
    top: 0;
  }

  #hamburger-toggle:checked+nav .hamburger-icon {
    background-color: transparent;
  }

  #hamburger-toggle:checked+nav .menu a {
    color: var(--white);
    font-size: 2rem;
    padding: 0.5rem 1rem;
  }

  nav,
  footer,
  section.hero {
    padding: 2rem 1.5rem;
  }
}