/* home.css */

/* menu home */
.home-nav-header {
  background: #ffffff;
  border: 1px solid #ddd8d2;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 18px;
}

.home-nav-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  position: relative;
}

.home-nav-brand img {
  width: 88px;
  height: auto;
}

.home-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #d7d1ca;
  border-radius: 12px;
  background: #fff;
  color: #1f2933;
  cursor: pointer;
}

.home-nav-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  background: #1f2933;
  border-radius: 10px;
}

.home-nav-toggle__label {
  font-size: 12px;
  line-height: 1;
}

.home-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  background: #ffffff;
  border: 1px solid #ddd8d2;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.home-nav.is-open {
  display: flex;
  flex-direction: column;
}

.home-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #1f2933;
  font-weight: 700;
}

.home-nav a:hover,
.home-nav a:focus {
  background: #f6f1ee;
  text-decoration: none;
}

.home-nav__cta {
  color: #8f1d21 !important;
}

/* header intro - CON SFONDO E RIQUADRO COME FOOD/BEVERAGE */
.home-header {
  position: relative;
  overflow: hidden;
  background-color: #241f1b;
  background-image:
    linear-gradient(90deg,
      rgba(22,18,15,0.85) 0%,
      rgba(22,18,15,0.75) 18%,
      rgba(22,18,15,0.60) 34%,
      rgba(22,18,15,0.35) 52%,
      rgba(22,18,15,0.15) 68%,
      rgba(22,18,15,0.20) 100%
    ),
    url('../img/home-header-bg.jpg');
  background-repeat: no-repeat;
  background-position: center center, right center;
  background-size: cover, cover;
  border: 1px solid #ddd8d2;
  border-radius: 24px;
  padding: 24px 18px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.home-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.14) 0%,
    rgba(0,0,0,0.06) 38%,
    rgba(0,0,0,0.20) 100%
  );
  pointer-events: none;
}

.home-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-header__content {
  max-width: 100%;
  padding: 28px 34px;
  background: rgba(18,18,18,0.32);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
}

.home-logo img {
  width: 108px;
  height: auto;
}

.home-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dfdfdf;
}

.home-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  color: #ffffff;
}

.home-subtitle {
  margin: 0;
  max-width: 58ch;
  color: #f3f3f3;
}

.home-header__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.home-btn--primary {
  background: #8f1d21;
  color: #ffffff;
}

.home-btn--primary:hover,
.home-btn--primary:focus {
  background: #74171a;
  color: #ffffff;
  text-decoration: none;
}

.home-btn--secondary {
  background: #ffffff;
  color: #1f2933;
  border: 1px solid #ddd8d2;
}

.home-btn--secondary:hover,
.home-btn--secondary:focus {
  background: #f6f1ee;
  color: #1f2933;
  text-decoration: none;
}

/* blocchi home */
.home-main {
  display: grid;
  gap: 18px;
}

.home-section-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #ddd8d2;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.home-section-card__image img {
  display: block;
  width: 100%;
  max-width: 160px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.home-section-card__label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f1d21;
}

.home-section-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.home-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-links-list li + li {
  margin-top: 10px;
}

.home-links-list a {
  display: inline-block;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #1f2933;
  text-wrap: balance;
}

.home-section-card:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}

.home-links-list a:hover,
.home-links-list a:focus {
  color: #8f1d21;
  text-decoration: none;
}

.academy-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.academy-title a {
  color: #1f2933;
}

.academy-text {
  margin: 0 0 14px;
  color: #4a5560;
}

.academy-link {
  margin: 0;
}

.academy-link a {
  font-weight: 700;
}

/* tablet e desktop */
@media (min-width: 768px) {
  .home-nav-header__inner {
    padding: 16px 20px;
  }

  .home-nav-brand img {
    width: 104px;
  }

  .home-header {
    padding: 34px 28px;
    margin-bottom: 24px;
    background-position: left top, 82% center;
  }

  .home-header__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .home-header__content {
    max-width: 100%;
  }

  .home-header__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    min-width: 220px;
  }

  .home-logo img {
    width: 132px;
  }

  .home-title {
    font-size: 42px;
  }

  .home-section-card {
    grid-template-columns: 160px 1fr;
    align-items: start;
    padding: 24px;
  }

  .home-section-card__image img {
    max-width: 140px;
  }
}

.home-value {
  padding: 22px 18px;
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #ddd8d2;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.home-value__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f1d21;
}

.home-value__title {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
  color: #1f2933;
}

.home-value__grid {
  display: grid;
  gap: 14px;
}

.home-value__item {
  padding: 14px 16px;
  background: #f8f5f2;
  border: 1px solid #e3ddd7;
  border-radius: 16px;
}

.home-value__item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
  color: #1f2933;
}

.home-value__item p {
  margin: 0;
  color: #4a5560;
}

@media (min-width: 768px) {
  .home-value {
    padding: 28px 24px;
  }

  .home-value__title {
    font-size: 34px;
    max-width: 48ch;
  }

  .home-value__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .home-nav-toggle {
    display: none;
  }

  .home-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .home-nav a {
    padding: 10px 12px;
  }

  .home-header {
    padding: 40px 34px;
    background-position: left top, right center;
  }

  .home-title {
    font-size: 48px;
    max-width: 30ch;
  }

  .home-main {
    gap: 22px;
  }

  .home-section-card {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }

  .home-links-list a {
    font-size: 28px;
  }

  .academy-title {
    font-size: 32px;
  }
}

/* Mobile - sotto i 640px */
@media (max-width: 640px) {
  .home-header {
    background-image:
      linear-gradient(180deg,
        rgba(22,18,15,0.65) 0%,
        rgba(22,18,15,0.42) 45%,
        rgba(22,18,15,0.58) 100%
      ),
      url('../img/home-header-bg.jpg');
    background-position: center center, center center;
    background-size: cover, cover;
  }

  .home-header__content {
    padding: 22px 22px;
    background: rgba(18,18,18,0.40);
  }
}