:root {
  --color-bg: #f5f1e8;
  --color-titles: #5a0e25;
  --color-text-dark: #2d2d2d;
  --color-text-light: #eaeaea;
  --color-accent: #a63d40;
}

/* ==== RESET BASE ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  scroll-padding-top: 65px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  height: 100%;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg);
}

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

a {
  text-decoration: none;
  color: inherit;
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
}

ul {
  list-style: none;
  padding-left: 0;
}

h1 {
  margin-top: 2rem;
  font-size: 5rem;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  color: var(--color-titles);
}

h2 {
  margin-top: 5rem;
  font-size: 3.5rem;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  color: var(--color-titles);
  margin-bottom: 3rem;
}

p {
  font-size: 1rem;
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
}

/* FONTS  */

/* playfair-display-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/playfair-display-v37-latin-regular.woff2") format("woff2");
}
/* playfair-display-500 - latin */
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/playfair-display-v37-latin-500.woff2") format("woff2");
}
/* playfair-display-600 - latin */
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/playfair-display-v37-latin-600.woff2") format("woff2");
}

/* source-sans-3-300 - latin */
@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/source-sans-3-v18-latin-300.woff2") format("woff2");
}
/* source-sans-3-300italic - latin */
@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 300;
  src: url("fonts/source-sans-3-v18-latin-300italic.woff2") format("woff2");
}
/* source-sans-3-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/source-sans-3-v18-latin-regular.woff2") format("woff2");
}
/* source-sans-3-italic - latin */
@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  src: url("fonts/source-sans-3-v18-latin-italic.woff2") format("woff2");
}
/* source-sans-3-600 - latin */
@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/source-sans-3-v18-latin-600.woff2") format("woff2");
}

/* GRID SYSTEM RESPONSIVE  */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

[class^="col-"],
[class*=" col-"] {
  padding-left: 2px;
  padding-right: 2px;
  box-sizing: border-box;
}

/* Column widths (12-column grid) */
.col-4 {
  width: 33.3333%;
}
.col-12 {
  width: 100%;
}

.col-md-2 {
  width: 16.6667%;
}
.col-md-3 {
  width: 25%;
}
.col-md-4 {
  width: 33.3333%;
}
.col-md-6 {
  width: 50%;
}
.col-md-8 {
  width: 66.6667%;
}
.col-md-12 {
  width: 100%;
}

/* Responsive collapse */
@media (max-width: 768px) {
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-md-8 {
    width: 100%;
  }
}

main {
  display: block;
}

/* TITOLO INIZIO  */

.titolo {
  text-align: center;
  margin-top: 8rem;
}

.titolo img {
  animation: appear 1.4s ease-in;
  height: 300px;
  width: auto;
  margin-bottom: 3rem;
}

.titolo h1 {
  animation: appear 1s ease-in;
}

.titolo h2 {
  font-size: 1.4rem;
  margin-top: 1rem;
  animation: appear 1s ease-in;
}

.btn {
  margin: 3rem 0rem;
  padding: 1rem 3rem;
  border: 1px solid var(--color-accent);
  background-color: transparent;
  color: var(--color-accent);
  transition: 0.4s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-accent);
  color: var(--color-text-light);
}

@keyframes appear {
  from {
    opacity: 0%;
  }
  to {
    opacity: 100%;
  }
}

.navbar {
  position: fixed;
  width: 100%;
  background-color: var(--color-bg);
  padding: 1.2rem;
  z-index: 999;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.05);
}

.nav-content {
  width: 30%;
  display: flex;
  background-color: var(--color-bg);
  justify-content: space-around;
}

.link {
  animation: appear 1s ease-in;
  transition: color 0.3s ease;
  font-weight: 400;
  position: relative;
}

.link:before {
  position: absolute;
  content: "";
  bottom: 0px;
  left: 0px;
  height: 1px;
  width: 0%;
  background-color: var(--color-accent);
  transition: 0.5s ease;
}

.link:hover:before {
  width: 100%;
}

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

.ig {
  position: fixed;
  top: 47%;
  right: 30px;
  z-index: 9;
  animation: appear 1s ease-in;
}

.wa {
  position: fixed;
  top: 53%;
  right: 32px;
  z-index: 9;
  animation: appear 1s ease-in;
}

svg {
  height: 28px;
  width: 28px;
  fill: var(--color-text-dark);
  transition: fill 0.3s ease;
}

svg.light {
  fill: var(--color-text-light) !important;
}

svg:hover {
  fill: var(--color-accent);
}

.img-sfondo {
  margin-top: 5rem;
  background-image: url("img/sfondo_zwb.webp");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  height: 600px;
  width: 100%;
  overflow: hidden;
  /* background-attachment: fixed; */
}

.relative {
  position: relative;
}

.mark-uno {
  position: absolute;
  opacity: 50%;
  top: 14rem;
  left: 43%;
  /* z-index: 1; */
}

.italic {
  font-style: italic;
}

.slider-container {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  flex-wrap: nowrap;
  animation: scroll 20s linear infinite alternate;
}

.menu-gallery {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
  width: 100%;
}

.menu-gallery h4 {
  text-align: start;
  margin-bottom: 2rem;
}

.menu-gallery p {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.menu-img-cont {
  flex: 0 0 25%;
  max-width: 25%;
  position: relative;
  overflow: hidden;
}

.img-wrapper {
  transition: opacity 0.5s ease;
}

.menu-img-cont:hover .img-wrapper {
  opacity: 0.3; /* solo l'immagine sfuma */
}

.menu-img {
  width: 100%;
  height: auto;
  /* border-radius: 100%; */
}

.menu-img-cont .piatto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  color: var(--color-text-dark); /* o bianco se serve contrasto */
  transition: opacity 0.5s ease;
  text-align: center;
  z-index: 1;
}

.menu-img-cont:hover .piatto {
  opacity: 1;
}

.slider-container:hover .slider-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.logo-img {
  height: auto;
  width: 180px;
  transition: 0.4s ease;
}

.logo-img-cont {
  transition: 0.4s ease;
}

.logo-img-cont:hover {
  opacity: 40%;
}

#eventi {
  margin-bottom: 3rem;
}

.svg-position {
  position: relative;
}

.svg-position p {
  padding-top: 18rem;
  font-size: 1.4rem;
  width: 70%;
  position: relative;
  z-index: 9;
}

.img-mark {
  position: absolute;
  height: 480px;
  left: 22rem;
  top: 0rem;
  width: 400px;
  z-index: 1;
}

.eventi {
  text-align: end;
}

h4 {
  font-size: 1.5rem;
  color: var(--color-titles);
  margin-bottom: 1rem;
}

.eventi li {
  margin-bottom: 1.5rem;
}

.eventi li span {
  color: var(--color-accent);
}

/* FOOTER  */

footer {
  background-color: var(--color-titles);
  padding-top: 1rem;
}

footer h2 {
  color: var(--color-text-light);
}
footer p {
  color: var(--color-text-light);
}
footer a {
  color: var(--color-text-light);
}
footer h5 {
  color: var(--color-text-light);
}

#contatti {
  margin-bottom: 5rem;
}

.p-footer {
  text-align: end;
  font-size: 0.8rem;
  padding-bottom: 0.5rem;
}

h5 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  margin-top: 1rem;
}

#mappa {
  width: 100%;
  height: 300px; /* o quello che vuoi */
}

.fade-in {
  opacity: 0;
  transition: opacity 2.6s ease-in;
}

.fade-in.show {
  opacity: 1;
}

.logo-img.fade-in {
  opacity: 0;
}

.logo-img.fade-in.show {
  opacity: 1;
  transition: opacity 2.6s ease-out;
}

.silvio {
  height: 600px;
}

.silvio img {
  margin-top: 5rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: auto;
  border-radius: 100%;
}

@media (max-width: 600px) {
  body {
    text-align: center;
  }
  .mt-3 {
    margin-top: 3rem;
  }
  .h2-mobile {
    margin-top: 10rem;
  }
  .ig {
    top: 600px;
    right: 10px;
  }
  .wa {
    top: 550px;
    right: 12px;
  }
  .nav-content {
    width: 100%;
  }
  .menu-img-cont {
    flex: 0 0 65%;
    max-width: 65%;
  }
  .slider-track {
    animation: scroll 6s linear infinite alternate;
  }
  h1 {
    font-size: 3rem;
  }
  .titolo img {
    height: 180px;
  }
  .titolo h2 {
    font-size: 1.2rem;
  }
  .img-sfondo {
    height: 400px;
  }
  h2 {
    margin-top: 5rem;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
  }
  .avanti p {
    text-align: center;
  }
  .mark-uno {
    position: absolute;
    top: 18rem;
    left: -1rem;
    z-index: 1;
  }
  .silvio {
    height: 500px;
  }

  .silvio img {
    margin-top: 5rem;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    width: 100%;
    height: auto;
    border-radius: 100%;
  }
  p {
    text-align: center;
  }
  .logo-img-cont {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .logo-img-cont img {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .svg-position p {
    padding-top: 0rem;
    margin-bottom: 3rem;
    width: 100%;
  }
  h4 {
    text-align: center;
  }
  .img-mark {
    display: none;
  }
  .p-footer {
    text-align: center;
  }
  .img-sfondo {
    background-image: url("img/zwb_sfondo_mobile.webp");
    height: 380px;
  }
  .menu-gallery h4 {
    text-align: center;
  }
}

@media (min-width: 601px) {
  .nav-content {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .nav-content {
    width: 30%;
  }
}
