/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown:   #7B3F10;
  --green:   #2C5F2E;
  --gold:    #C8952A;
  --cream:   #FAF7F2;
  --alt-bg:  #F0EBE0;
  --text:    #000000;
  --muted:   #000000;
  --white:   #FFFFFF;
  --radius:  10px;
  --shadow:  0 4px 20px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; font-size: 16px; }

a, a:link, a:visited, a:hover, a:active { color: inherit; }

body {
  font-family: 'Georgia', serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.nav-logo {
  color: #000000;
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: .03em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: #000000;
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}

.nav-links a:hover { color: #000000; }

/* ── HERO ── */
#home {
  min-height: 50vh;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.72), rgba(255,255,255,.72)),
    url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Grosio_Valle_della_Rojola.jpg/1280px-Grosio_Valle_della_Rojola.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero-box { max-width: 780px; }

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #000000;
  font-family: 'Arial', sans-serif;
  font-size: .78rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.4rem;
}

.hero-box h1 {
  color: #000000;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-box h1 em {
  color: #000000;
  font-style: normal;
}

.hero-box p {
  color: #000000;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #000000;
  padding: .75rem 2rem;
  border-radius: 30px;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: .9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}

.btn:hover { background: #dba530; transform: translateY(-2px); }

.slogan {
  margin-top: 2.5rem;
  color: #000000;
  font-style: italic;
  font-size: .95rem;
}

/* ── SECTION GENERIC ── */
section { padding: 5rem 1.5rem; }
section.alt { background: var(--alt-bg); }

.container { max-width: 1000px; margin: auto; }

.section-label {
  display: block;
  font-family: 'Arial', sans-serif;
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: .6rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #000000;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.2rem;
  color: #000000;
  margin-bottom: .6rem;
}

p { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ── STORIA ── */
.storia-grid {
  display: block;
}


.storia-timeline { margin-top: 2rem; }

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.timeline-dot {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #000000;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  font-size: .85rem;
  margin-top: .1rem;
}

/* ── INGREDIENTI ── */
.ingredient-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.ingredient-table thead { background: var(--brown); color: var(--white); }
.ingredient-table th, .ingredient-table td {
  padding: .9rem 1.2rem;
  text-align: left;
}

.ingredient-table th { font-family: 'Arial', sans-serif; font-size: .9rem; letter-spacing: .04em; }
.ingredient-table td { font-size: .95rem; }
.ingredient-table tbody tr:nth-child(even) { background: #ede6db; }
.ingredient-table tbody tr:hover { background: #e0d5c5; }

.ingredient-icon { margin-right: .5rem; }

/* ── PREPARAZIONE ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform .2s;
}

.step-card:hover { transform: translateY(-4px); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #000000;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  margin-bottom: 1rem;
}

/* ── UTILIZZO IN CUCINA ── */
.uses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0 2.5rem;
  list-style: none;
}

.uses-list li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 1.5rem;
}

.uses-list li span {
  display: block;
  font-size: .9rem;
  font-family: 'Arial', sans-serif;
  color: var(--muted);
  margin-top: .4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: var(--white);
  font-size: .82rem;
  font-family: 'Arial', sans-serif;
  padding: .7rem .8rem .5rem;
}

/* ── TERRITORIO ── */
.territorio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.prodotti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.prodotto-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  font-size: .9rem;
  font-family: 'Arial', sans-serif;
}

.prodotto-card strong { display: block; color: #000000; margin-bottom: .3rem; }

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  width: 100%;
  height: 340px;
  border: none;
  display: block;
}

/* ── CURIOSITÀ ── */
.curiosita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.curiosita-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--green);
}

.curiosita-icon { font-size: 2rem; margin-bottom: .8rem; display: block; }

/* ── FOOTER ── */
footer {
  background: #f0ebe0;
  color: #000000;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-family: 'Arial', sans-serif;
  font-size: .85rem;
  border-top: 1px solid #d0c8bb;
}

footer strong { color: #000000; display: block; font-size: 1rem; margin-bottom: .4rem; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .storia-grid,
  .territorio-grid { grid-template-columns: 1fr; }

  .prodotti-grid { grid-template-columns: 1fr; }

  .nav-links { gap: .8rem; }
}
