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

:root {
  --primary-color: #034007;
  --secondary-color: #ffc05a;
  --light-color: #f9fafb;
  --dark-color: #272d35;
}

html,
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* Utility Classes */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Text Classes */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.section {
  margin: 2rem 0;
}

/* Section Header */
.section-header {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--dark-color);
}

.heading-border {
  width: 64px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto 2rem;
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.75rem;
  background: #fff;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.5s ease-in-out;
}

.navbar.navbar-scroll {
  background: rgba(13, 79, 13, 0.8);
  backdrop-filter: blur(10px);
}

.navbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar img {
  width: 180px;
  height: 50px;
  margin-left: -3rem;
}

.navbar .main-menu-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
  text-wrap: nowrap;
}

.navbar a {
  color: #fff;
}

.navbar a:hover {
  color: var(--secondary-color);
  transition: 0.4s ease-in-out;
}

.navbar i {
  font-size: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
}

.navbar .mobile-menu-toggle {
  /* display: block; */
  color: #fff;
  cursor: pointer;
}

.navbar .mobile-menu-items {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0.95;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.navbar .mobile-menu-items.active {
  transform: translateX(0);
}

.navbar .mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  background: #000 url('../images/background-hero.JPG') center center/cover
    no-repeat;
  padding: 11.5rem 2rem 8rem;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

.hero .hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6rem;
  padding-bottom: 8rem;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-left: -3rem;
}

.hero p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-weight: 400;
  margin-top: 3rem;
  margin-left: -3rem;
}

.hero img {
  width: 100%;
  margin-right: -100px;
}

.hero .frame-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
}

/* Pasta */
.swiper {
  width: 100%;
  height: 600px;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}

.swiper-slide {
  flex-shrink: 0;
  width: 300px;
  height: 600px;
  transition: transform 250ms ease-in-out;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Eccellenza Cards */
.eccellenza-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem 0 4rem;
}

.eccellenza-cards img {
  width: 180px;
  margin-top: 1rem;
  border-radius: 0.5rem;
}

.eccellenza-cards img {
  transition: transform 0.3s;
}

.eccellenza-cards img:hover {
  transform: scale(1.1);
}

.eccellenza-cards h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem 0;
}

/* Autore */
.details .details-flex {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: center;
}

.details img {
  width: 100%;
  max-width: 500px;
  transition: transform 0.3s;
}

.details img:hover {
  transform: scale(1.1);
}

.details h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.details .heading-border {
  margin: 0;
}

.details p {
  margin: 1rem 0 2rem;
}

.details + .details .details-flex {
  flex-direction: row-reverse;
}

.details ul {
  margin-bottom: 2rem;
}

.details ul li {
  line-height: 2;
}

.details i {
  margin-right: 0.5rem;
}

/* Esperienza */
.esperienza {
  background: #000 url(../images/esperienza-background.svg) center center/cover
    no-repeat;
  color: #fff;
  margin-bottom: 0;
  padding: 4rem 0;
}

.swiper1 {
  max-width: 100%;
  height: 600px;
}

.swiper1 .swiper-slide {
  flex-shrink: 0;
  width: 250px;
  height: 600px;
  transition: transform 250ms ease-in-out;
  position: relative;
}

.anni {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.esperienza .esperienza-numbers {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.esperienza .esperienza-numbers h3 {
  font-size: 3rem;
  font-weight: 700;
}

.esperienza .esperienza-numbers p {
  font-size: 0.8rem;
}

.esperienza .esperienza-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: #fff;
  border-top: 1px solid #384653;
  padding: 0.5rem 2rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.footer ul {
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  margin-right: -5rem;
}

.footer a {
  color: #fff;
}
