/* ===== Base ===== */
:root {
  --rust: #803100;
  --cream: #fde0b0;
  --amber-brand: #eb881f;
  --hop: #73833a;
  --charcoal: #221811;
  --off-white: #fbf4ea;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  margin-inline: auto;
  max-width: 72rem;
}

.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(128, 49, 0, 0.7);
  margin-bottom: 0.75rem;
}

/* ===== Header ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: all 0.3s;
}

#site-header.scrolled {
  background: var(--rust);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.header-inner {
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 768px) {
  .header-logo img {
    height: 3rem;
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  color: var(--cream);
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.header-nav a:hover {
  color: #fff;
}

#menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
  padding: 0.5rem;
}

#mobile-menu {
  background: var(--rust);
  border-top: 1px solid rgba(253, 224, 176, 0.2);
}

#mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

#mobile-menu a {
  color: var(--cream);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .header-inner {
    padding-inline: 2rem;
  }
}

@media (min-width: 768px) {
  .header-inner {
    height: 5rem;
  }
  .header-nav {
    display: flex;
  }
  #menu-toggle,
  #mobile-menu {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(128, 49, 0, 0.4), rgba(128, 49, 0, 0.9));
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 1.5rem;
}

.hero-logo {
  width: 12rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  color: var(--cream);
  font-size: 2.25rem;
  max-width: 48rem;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-content > p {
  margin-top: 1.5rem;
  color: rgba(253, 224, 176, 0.9);
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-wrap: balance;
}

.hero-cta {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  background: var(--cream);
  color: var(--rust);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transition: transform 0.15s;
}

.hero-cta:hover {
  transform: scale(1.03);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(253, 224, 176, 0.7);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (min-width: 768px) {
  .hero-logo { width: 16rem; }
  .hero h1 { font-size: 3.75rem; }
  .hero-content > p { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
  .hero-logo { width: 18rem; }
  .hero h1 { font-size: 4.5rem; }
}

/* ===== Sections (shared) ===== */
#birra, #territorio {
  background: var(--off-white);
  padding: 6rem 1.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--rust);
}

.section-sub {
  margin-top: 1rem;
  color: rgba(34, 24, 17, 0.7);
  max-width: 36rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  #birra, #territorio {
    padding-block: 8rem;
  }
  .section-head h2 {
    font-size: 3rem;
    line-height: 1;
  }
}

/* ===== La Birra ===== */
.beer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .beer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .beer-grid {
    gap: 3rem;
  }
}

.beer-card {
  background: var(--rust);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.beer-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.beer-card-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.beer-card:hover .beer-card-img img {
  transform: scale(1.05);
}

.beer-card-body {
  padding: 2rem;
}

.beer-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.beer-card-title h3 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--cream);
}

.beer-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: rgba(253, 224, 176, 0.15);
  color: var(--cream);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.beer-desc {
  color: rgba(253, 224, 176, 0.85);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.beer-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(253, 224, 176, 0.3);
  padding-block: 0.75rem;
}

.spec-label {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(253, 224, 176, 0.7);
}

.spec-value {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--cream);
}

@media (min-width: 768px) {
  .beer-card-body {
    padding: 2.5rem;
  }
}

.coming-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px dashed rgba(128, 49, 0, 0.3);
  background: rgba(253, 224, 176, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 240px;
}

.coming-card .eyebrow {
  margin-bottom: 0.5rem;
}

.coming-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(128, 49, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.coming-card h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--rust);
  text-align: center;
}

.coming-sub {
  color: rgba(34, 24, 17, 0.7);
  text-align: center;
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* ===== La Storia ===== */
#storia {
  position: relative;
  background: var(--rust);
  color: var(--cream);
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.storia-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.storia-bg img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.storia-grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.storia-img {
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

#storia .eyebrow {
  color: rgba(253, 224, 176, 0.7);
}

#storia h2 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  margin-bottom: 2rem;
}

.storia-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: rgba(253, 224, 176, 0.85);
  line-height: 1.625;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  #storia {
    padding-block: 8rem;
  }
  #storia h2 {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .storia-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
  }
}

/* ===== Il Territorio ===== */
.territorio-head {
  margin-bottom: 3.5rem;
}

.territorio-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.territorio-img-wrap {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.territorio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.7s;
}

.territorio-img-wrap img:hover {
  transform: scale(1.05);
}

.territorio-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: rgba(34, 24, 17, 0.8);
  line-height: 1.625;
}

.territorio-text strong {
  color: var(--rust);
}

@media (min-width: 1024px) {
  .territorio-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3rem;
  }
  .territorio-img-wrap {
    grid-column: span 3 / span 3;
  }
  .territorio-text {
    grid-column: span 2 / span 2;
  }
}

/* ===== Footer ===== */
#contatti {
  background: var(--rust);
  color: var(--cream);
  padding: 5rem 1.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-logo {
  width: 8rem;
  margin-bottom: 1.5rem;
}

.footer-about {
  color: rgba(253, 224, 176, 0.7);
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 20rem;
}

.footer-label {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(253, 224, 176, 0.6);
  margin-bottom: 1rem;
}

.footer-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.footer-link svg {
  flex-shrink: 0;
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-link-mt {
  margin-top: 0.75rem;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253, 224, 176, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(253, 224, 176, 0.6);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
}

.reveal.in {
  animation: 0.9s ease-out forwards fade-up;
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
  }
  .reveal.in {
    animation: none;
  }
}
