/* ═══════════════════════════════════════════════════════════════
   home.css — Stili pagina Home (index.html)
   (hero, strip, chi siamo, specialità, perché noi)
═══════════════════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(92, 34, 16, 0.44) 0%, rgba(30, 10, 5, 0.67) 100%),
    url('../img/hero-spaghetti.jpg') center / cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(193, 120, 48, 0.03) 40px,
    rgba(193, 120, 48, 0.03) 80px
  );
}

/* Soft vignette behind hero text — no hard edges */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 68% 72% at 50% 46%, rgba(0, 0, 0, 0.46) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-lt);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.2em;
}

.hero-script {
  font-family: var(--ff-script);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--amber-lt);
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* piatto circolare desktop */
.hero-dish {
  position: absolute;
  bottom: 90px;
  right: 7%;
  width: min(300px, 33vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-dish img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.155);
}

@media (min-width: 1000px) {
  .hero-dish {
    display: block;
  }
}

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

/* ─── INFO STRIP ────────────────────────────────────────────── */
#strip {
  position: relative;
  background: var(--rust);
  padding: 48px 20px;
}

#strip::before,
#strip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
}

#strip::before {
  top: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFDF8' d='M0,0 L1440,0 L1440,28 C1260,8 1080,40 720,22 C360,4 180,36 0,18 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

#strip::after {
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFDF8' d='M0,40 L1440,40 L1440,12 C1260,32 1080,2 720,18 C360,34 180,4 0,22 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2.5rem;
  position: relative;
  z-index: 1;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.79rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.strip-item .ico {
  font-size: 1.15rem;
}

/* ─── CHI SIAMO ─────────────────────────────────────────────── */
#chi-siamo {
  padding: 100px 0;
  background: var(--warm-white);
}

.chi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.chi-img-wrap {
  position: relative;
}

.chi-img-wrap img {
  border-radius: var(--radius);
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: 8px 8px 0 rgba(168, 98, 40, 0.45), 0 20px 60px rgba(92, 34, 16, 0.15);
}

.chi-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--rust-dk);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.chi-badge .num {
  font-family: var(--ff-head);
  font-size: 2.6rem;
  color: var(--amber-lt);
  line-height: 1;
}

.chi-badge .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.chi-text .section-title,
.chi-text .amber-line,
.chi-text .section-sub {
  text-align: left;
  margin-left: 0;
}

.chi-text .amber-line {
  margin: 0.9rem 0;
}

.chi-text p {
  color: var(--text-lt);
  line-height: 1.85;
  font-size: 0.97rem;
  margin-bottom: 1.1rem;
}

.chi-text p:last-of-type {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  #chi-siamo {
    padding: 70px 0;
  }

  .chi-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chi-text .section-title,
  .chi-text .section-sub {
    text-align: center;
  }

  .chi-text .amber-line {
    margin: 0.9rem auto;
  }

  .chi-text {
    order: 1;
  }

  .chi-img-wrap {
    order: 2;
  }

  .chi-badge {
    left: 10px;
  }
}

/* ─── SPECIALITÀ ────────────────────────────────────────────── */
#specialita {
  padding: 100px 0;
  background: var(--rust-dk);
  position: relative;
}

#specialita::before,
#specialita::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
}

#specialita::before {
  top: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFDF8' d='M0,0 L1440,0 L1440,28 C1260,8 1080,40 720,22 C360,4 180,36 0,18 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

#specialita::after {
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23F0E5CC' d='M0,40 L1440,40 L1440,12 C1260,32 1080,2 720,18 C360,34 180,4 0,22 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.spec-img {
  position: relative;
  display: flex;
  justify-content: center;
}

.spec-img .plate {
  width: min(380px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--amber);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.spec-img .plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.spec-img .ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(193, 120, 48, 0.4);
  pointer-events: none;
}

.spec-text .section-title {
  text-align: left;
}

.spec-text .amber-line {
  margin: 0.9rem 0;
}

.spec-text p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.4rem 0;
}

.tag {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(193, 120, 48, 0.35);
  color: var(--amber-lt);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  #specialita {
    padding: 70px 0;
  }

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

  .spec-text .section-title {
    text-align: center;
  }

  .spec-text .amber-line {
    margin: 0.9rem auto;
  }

  .spec-text p {
    text-align: center;
  }

  .tags {
    justify-content: center;
  }
}

/* ─── GALLERIA FOTO ─────────────────────────────────────────── */
#galleria {
  padding: 90px 0;
  background: var(--warm-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 20px rgba(92, 34, 16, 0.12);
  transition: transform var(--t), box-shadow var(--t);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(92, 34, 16, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 4 / 3;
  }
}

/* ─── PERCHÉ NOI ────────────────────────────────────────────── */
#perche {
  padding: 100px 0;
  background: var(--cream-dk);
}

.perche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  justify-content: center;
  gap: 28px;
  margin-top: 3.5rem;
}

.perche-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(92, 34, 16, 0.08);
  border-bottom: 3px solid transparent;
  transition: var(--t);
}

.perche-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(92, 34, 16, 0.13);
  border-bottom-color: var(--amber);
}

.perche-icon {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.perche-card h3 {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  color: var(--rust-dk);
  margin-bottom: 8px;
}

.perche-card p {
  font-size: 0.88rem;
  color: var(--text-lt);
  line-height: 1.65;
}

@media (max-width: 768px) {
  #perche {
    padding: 70px 0;
  }
}
