/* ============================================================
   VARIABILI – modifica qui colori e font se necessario
   ============================================================ */
:root {
  --crema:        #fbeacf;
  --marrone:      #3b1f0e;
  --oro:          #c8973a;
  --testo-chiaro: #fdf6ee;
  --font-titolo:  'Playfair Display', Georgia, serif;
  --font-corpo:   'Lato', sans-serif;
}

/* Font face: Crunchy Pasta (local file) */
@font-face {
  font-family: 'Crunchy Pasta';
  src: url('./media/Crunchy Pasta.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

body {
  background: var(--crema);
  color: var(--marrone);
  font-family: var(--font-corpo);
}

.page-content {
  padding-top: 92px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  width: 100%;
  background: var(--crema);
  border-bottom: 1px solid rgba(59, 31, 14, 0.12);
  backdrop-filter: blur(10px);
}

.site-footer {
  width: 100%;
  background: var(--crema);
  border-top: 1px solid rgba(59, 31, 14, 0.12);
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  text-align: center;
  color: var(--marrone);
  font-family: var(--font-corpo);
  font-size: 0.95rem;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
}

.site-header__info,
.site-header__brand {
  display: flex;
  align-items: center;
}

.site-header__brand {
  flex-direction: row;
}

.site-header__info {
  flex-direction: column;
  align-items: flex-start;
}

.site-header__info--right {
  align-items: flex-end;
}

.site-header__label {
  font-family: var(--font-corpo);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 0.15rem;
}

.site-header__link,
.site-header__text,
.site-header__name {
  color: var(--marrone);
}

.site-header__link {
  font-weight: 700;
  text-decoration: none;
}

.site-header__text {
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}

.site-header__logo {
  display: block;
  height: 5.5rem;
  width: auto;
  margin-right: 10px;
}

.site-header__name {
  font-family: 'Crunchy Pasta', var(--font-titolo);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-left: 10px;
}

@media (max-width: 760px) {
  .site-header__inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .site-header__info {
    width: 100%;
    text-align: center;
  }

  .site-header__info--left,
  .site-header__info--right {
    align-items: center;
  }

  .page-content {
    padding-top: 120px;
  }
}

/* ============================================================
   HERO – immagine full-width con overlay e testo sovrapposto
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;          /* altezza quasi-schermo intera */
  min-height: 520px;
  overflow: hidden;
}

/* ── IMMAGINE ──────────────────────────────────────────────── */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  /* lieve scalatura all'entrata per effetto calore */
  animation: zoomIn 14s ease-out forwards;
}

@keyframes zoomIn {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

/* ── OVERLAY SCURO (opacità) ───────────────────────────────── */
.hero__overlay {
  position: absolute;
  inset: 0;

  /* gradiente: quasi trasparente in cima → scuro a metà →
     poi sfuma verso il basso fino a sparire nel colore crema */
  background:
    linear-gradient(
      to bottom,
      rgba(30, 12, 4, 0.35)  0%,
      rgba(30, 12, 4, 0.55) 45%,
      rgba(30, 12, 4, 0.20) 72%,
      rgba(245, 239, 230, 1) 100%   /* ← stessa tinta dello sfondo */
    );
}

/* ── TESTO SULL'IMMAGINE ───────────────────────────────────── */
.hero__content {
  position: relative;          /* sopra overlay */
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem 1.5rem 8rem;  /* padding-bottom extra per via dello sfumato */
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--font-corpo);
  font-weight: 300;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s 0.4s ease forwards;
}

.hero__title {
  font-family: var(--font-titolo);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--testo-chiaro);
  max-width: 800px;
  opacity: 0;
  animation: fadeUp 1s 0.7s ease forwards;

  /* leggera ombra per leggibilità su immagine */
  text-shadow: 0 2px 24px rgba(20, 8, 2, 0.55);
}

.hero__title em {
  font-style: italic;
  color: var(--oro);
}

.hero__subtitle {
  font-family: var(--font-corpo);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: rgba(255, 248, 235, 0.85);
  margin-top: 1.25rem;
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s 1s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ============================================================
   SEZIONE TESTO – titolo + descrizione sotto l'hero
   ============================================================ */
.intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  text-align: center;
}

.intro__ornament {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--oro);
  margin: 0 auto 1.8rem;
  border-radius: 2px;
}

.intro__title {
  font-family: var(--font-titolo);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--marrone);
  margin-bottom: 1.4rem;
}

.intro__title strong {
  font-weight: 700;
}

.intro__text {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 300;
  line-height: 1.85;
  color: #5a3a22;
}

.intro__text + .intro__text {
  margin-top: 1rem;
}

.section-text {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  text-align: center;
}

/* ============================================================
   SEZIONE FORNO – immagine banner con sfumatura top e bottom
   ============================================================ */
.forno {
  position: relative;
  width: 100%;
  margin-top: 4rem;      /* spazio sopra ogni sezione forno/pasticceria/gastronomia */
}

/* ── CONTENITORE IMMAGINE ──────────────────────────────────── */
.forno__img-wrap {
  position: relative;
  width: 100%;
  height: 55vh;          /* più corta dell'hero */
  min-height: 340px;
  overflow: hidden;
}

.forno__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── SFUMATURE SOPRA E SOTTO ───────────────────────────────── */
.forno__fade {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.forno__fade--top {
  top: 0;
  height: 45%;           /* sfumatura alta, copre bene il bordo superiore */
  background: linear-gradient(
    to bottom,
    rgba(245, 239, 230, 1)   0%,
    rgba(245, 239, 230, 0)  100%
  );
}

.forno__fade--bottom {
  bottom: 0;
  height: 45%;           /* sfumatura simmetrica in basso */
  background: linear-gradient(
    to top,
    rgba(245, 239, 230, 1)   0%,
    rgba(245, 239, 230, 0)  100%
  );
}

/* ── OVERLAY SCURO CENTRALE per leggibilità del testo ──────── */
.forno__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 12, 4, 0.40);
  pointer-events: none;
}

/* ── TESTO SOVRAPPOSTO ─────────────────────────────────────── */
.forno__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.forno__title {
  font-family: var(--font-titolo);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--testo-chiaro);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(20, 8, 2, 0.5);
}

.forno__text {
  font-family: var(--font-corpo);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.05rem);
  line-height: 1.8;
  color: rgba(255, 248, 235, 0.88);
  max-width: 800px;
  text-shadow: 0 1px 10px rgba(20, 8, 2, 0.4);
}

/* ============================================================
   RESPONSIVE – piccoli aggiustamenti mobile
   ============================================================ */
@media (max-width: 600px) {
  .hero { height: 80vh; }
  .hero__content { padding-bottom: 6rem; }

  .forno__img-wrap { height: 52vh; }
  .forno__fade--top,
  .forno__fade--bottom { height: 35%; }

  .page-content {
    padding-top: 140px;
  }
}

/* ============================================================
   SEZIONE CONTATTI – info + mappa affiancate
   ============================================================ */
.contatti {
  background: var(--marrone);
  padding: 5rem 1.5rem;
}

.contatti__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── COLONNA INFO ──────────────────────────────────────────── */
.contatti__eyebrow {
  display: block;
  font-family: var(--font-corpo);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 0.75rem;
}

.contatti__title {
  font-family: var(--font-titolo);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--testo-chiaro);
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

.contatti__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contatti__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contatti__icon {
  font-size: 1.2rem;
  line-height: 1.6;
  flex-shrink: 0;
}

.contatti__item div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contatti__item strong {
  font-family: var(--font-corpo);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oro);
}

.contatti__item span,
.contatti__item a {
  font-family: var(--font-corpo);
  font-weight: 300;
  font-size: 0.97rem;
  line-height: 1.7;
  color: rgba(253, 246, 238, 0.85);
  text-decoration: none;
}

.contatti__item a:hover {
  color: var(--oro);
}

/* ── COLONNA MAPPA ─────────────────────────────────────────── */
.contatti__mappa {
  height: 380px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(200, 151, 58, 0.25);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .contatti__inner {
    grid-template-columns: 1fr;
  }

  .contatti__mappa {
    height: 280px;
  }
}