:root {
  --color-primary: #f9f9f9;
  --color-secondary: #f5edea;
  --color-tertiary: #99392e;
  --color-quaternary: #64261f;
  --color-quinary: #ebcaca;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

h1 {
  font-size: 5rem;
  color: var(--color-secondary);
  text-align: center;
}
h2 {
  font-size: 2rem;
  color: var(--color-quinary);
  mix-blend-mode: luminosity;
  text-align: center;
  transform: translate3d(0, 0, 0);
}
h3 {
  font-size: 2rem;
  color: var(--color-tertiary);
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 0.875rem;
}
p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 55ch;
}

header,
footer {
  text-align: center;
  display: flex;
}

footer {
  min-height: 80px;
}

header {
  top: 0;
  left: 0;
  position: absolute;
  min-height: 100px;
  width: 100%;
  padding: 0 10vw;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  z-index: 1000;
}

header a {
  color: var(--color-primary);
}

header a::after {
  content: "";
  display: block;
  margin-top: 5px;
  width: 0;
  height: 2px;
  background-color: var(--color-quinary);
  transition: width 0.2s ease-in-out;
}

header a:hover::after {
  width: 100%;
}

header #logo svg {
  display: inline;
  fill: var(--color-primary);
}

header #logotipo {
  display: none;
}

header #instagram svg {
  transform: scale(1);
  fill: var(--color-primary);
  transition-property: transform, fill;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
}

header #instagram svg:hover {
  transform: scale(0.95);
  fill: var(--color-quinary);
}

footer {
  justify-content: center;
  align-items: center;
}

ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

li {
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-tertiary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--color-quinary);
}

section {
  display: flex;
}

#intro {
  position: relative;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
}

#intro #scroll {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
}

.circle-1,
.circle-2 {
  animation: scroll 2s infinite linear;
  opacity: 0;
}

.circle-2 {
  animation-delay: 1s;
}

@keyframes scroll {
  0% {
    cy: 4;
    opacity: 0;
  }
  45%,
  55% {
    opacity: 1;
    cy: 9;
  }
  100% {
    cy: 14;
    opacity: 0;
  }
}

#bgVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
}

#chi-sono {
  height: 100%;
  flex-direction: row;
  padding: 0 10vw;
}

#chi-sono img {
  width: 100%;
  height: auto;
  z-index: -1;
}

#chi-sono article,
#chi-sono aside {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#chi-sono article {
  align-self: center;
  justify-content: center;
  gap: 1rem;
}

#chi-sono aside {
  margin-top: 10vh;
  justify-content: flex-end;
}

#portfolio {
  padding: 10vh 0;
  background-color: var(--color-secondary);
  flex-direction: column;
  align-items: center;
}

#portfolio #gallery {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  padding: 2rem 10vw;
  gap: 2rem;
}

#portfolio #gallery img {
  width: 500px;
  height: auto;
  object-fit: cover;
}

#servizi {
  padding: 10vh 0;
  flex-direction: column;
  align-items: center;
}

#servizi #list {
  margin-top: 8vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
  align-items: center;
  justify-content: center;
}

#servizi #list article {
  position: relative;
  height: 40vh;
  width: 40vh;
  max-height: 400px;
  max-width: 400px;
  border-radius: 3rem;
  background-color: var(--color-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2.5rem;
  color: var(--color-primary);
  background-size: cover;
  background-position: center;
}

.g1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("/public/assets/Lu_02.jpg");
}

.g2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("/public/assets/Lu_05.jpg");
}

.g3 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("/public/assets/Lu_03.jpg");
}

.g4 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("/public/assets/Lu_07.jpg");
}

#contatti {
  padding: 8vh 0;
  background-color: var(--color-primary);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

#contatti #info {
  margin-top: 3vh;
  display: flex;
  flex-direction: row;
  gap: 3rem;
}

#contatti #info article {
  min-width: 10vw;
}

#contatti form {
  width: 30vw;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contatti form input {
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
}

#contatti form textarea {
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  resize: none;
}

#contatti form button {
  cursor: pointer;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--color-tertiary);
  color: var(--color-primary);
  transition: background-color 0.2s ease-in-out;
}

#contatti form button:hover {
  background-color: var(--color-quaternary);
}

@media screen and (max-width: 768px), (orientation: portrait) {
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 1.8rem;
  }

  header nav {
    display: none;
  }
  header #logo {
    display: none;
  }
  header #logotipo {
    display: inline;
  }
  header #logotipo img {
    width: 200px;
    height: auto;
  }

  header #logotipo svg {
    width: 200px;
    fill: var(--color-primary);
  }
  #chi-sono {
    padding-top: 5vh;
    flex-direction: column;
  }
  #servizi #list {
    grid-template-columns: 1fr;
  }
  #servizi #list article {
    height: 80vw;
    width: 80vw;
  }
  #contatti #info {
    flex-direction: column;
    gap: 1rem;
  }
  #contatti form {
    width: 80vw;
  }
}

.anim {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.5s ease-out;
  transition-delay: 0.1s;
}

.animated {
  opacity: 1;
  transform: translateX(0);
}
