/* ═══════════════════════════════════════════════════
   product-line.css — stili comuni pagine prodotto
   Dipende da: style.css
═══════════════════════════════════════════════════ */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MINIATURE CATEGORIE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pl-categories {
  background: var(--white);
  padding: 3.5rem 2rem;
  border-bottom: 1px solid var(--gray-lt);
}
.pl-categories-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: flex-start;
  justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}

.pl-cat-item {
  display: flex; flex-direction: column; align-items: center;
  gap: .9rem; text-decoration: none;
  flex: 0 0 160px; max-width: 160px;
  transition: transform .3s var(--ease);
}
.pl-cat-item:hover { transform: translateY(-4px); }

.pl-cat-item img {
  width: 120px; height: 120px;
  object-fit: cover;
  display: block;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.pl-cat-item:hover img {
  transform: scale(1.06);
  opacity: .85;
}

.pl-cat-label {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--black); text-align: center; line-height: 1.4;
  transition: color .3s var(--ease);
}
.pl-cat-item:hover .pl-cat-label { color: var(--red); }

@media (max-width: 768px) {
  .pl-categories-inner { gap: 1.2rem; }
  .pl-cat-item  { flex: 0 0 calc(33% - 1rem); max-width: 120px; }
  .pl-cat-item img { width: 88px; height: 88px; }
  .pl-cat-label { font-size: .7rem; }
}
@media (max-width: 480px) {
  .pl-cat-item { flex: 0 0 calc(50% - 1rem); }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SEPARATORE TRA SEZIONI
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pasta-hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.18);
  margin: 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SEZIONI CON SFONDO IMMAGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pasta-section {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex; align-items: center;
}

/* Overlay sfumato sinistra (default) — testo sempre a sinistra */
.pasta-section-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,15,15,.88) 0%,
    rgba(15,15,15,.72) 35%,
    rgba(15,15,15,.25) 65%,
    transparent       100%
  );
}

/* Overlay sfumato destra (sezioni pari) */
.pasta-section-overlay--right {
  background: linear-gradient(
    to left,
    rgba(15,15,15,.88) 0%,
    rgba(15,15,15,.72) 35%,
    rgba(15,15,15,.25) 65%,
    transparent       100%
  );
}

/* Contenuto a sinistra (default) */
.pasta-section-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 5rem 2rem;
  display: flex; align-items: center;
  justify-content: flex-start;
}

/* Contenuto a destra (sezioni pari) */
.pasta-section-inner--right {
  justify-content: flex-end;
}

.pasta-section-content {
  max-width: 520px;
  display: flex; flex-direction: column; gap: .9rem;
}

.pasta-section-eyebrow {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .22em; color: var(--red);
}

.pasta-section-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--white);
  line-height: 1.1; letter-spacing: -.025em; margin: 0;
}

.pasta-section-divider {
  width: 40px; height: 2px;
  background: var(--red); border-radius: 2px;
  margin: .4rem 0;
}

.pasta-section-body {
  font-size: clamp(.86rem, 1.2vw, .96rem);
  color: rgba(255,255,255,.78); line-height: 1.8;
}
.pasta-section-body strong { color: rgba(255,255,255,.95); font-weight: 600; }

.pasta-section-formats {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-top: .2rem;
}

@media (max-width: 768px) {
  .pasta-section { background-attachment: scroll; min-height: auto; }
  .pasta-section-overlay,
  .pasta-section-overlay--right { background: rgba(15,15,15,.75); }
  .pasta-section-inner { padding: 4rem 1.5rem; }
  .pasta-section-content { max-width: 100%; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SEZIONE SPECIALI (bianca)
   Whole wheat / Organic / Gluten Free
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pasta-specials {
  background: var(--white);
  padding: 6rem 2rem;
}
.pasta-specials-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}

/* Riga: testo + immagine affiancati */
.pasta-specials-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}
.pasta-specials-row--reverse {
  grid-template-columns: 2fr 3fr;
}

/* Testo */
.pasta-specials-text {
  display: flex; flex-direction: column; gap: 1rem;
}
.pasta-specials-text--right {
  text-align: right;
}

.pasta-specials-title {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--black);
  line-height: 1.2; letter-spacing: -.02em; margin: 0;
}
.pasta-specials-body {
  font-size: clamp(.88rem, 1.2vw, .96rem);
  color: var(--gray-dark); line-height: 1.8;
}
.pasta-specials-body strong { color: var(--black); font-weight: 600; }

/* Colori tematici */
.c-green { color: #7a9e1a; }
.c-red   { color: var(--red); }

/* Immagine: nessuna card, si fonde con sfondo bianco */
.pasta-specials-img img {
  width: 100%; height: auto;
  object-fit: contain; display: block;
}

/* Separatore interno sezione speciali */
.pasta-specials-hr {
  border: none;
  border-top: 1px solid var(--gray-lt);
  margin: 0;
}

@media (max-width: 900px) {
  .pasta-specials-row,
  .pasta-specials-row--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pasta-specials-row--reverse .pasta-specials-img { order: -1; }
  .pasta-specials-text--right { text-align: left; }
  .pasta-specials { padding: 4rem 1.5rem; }
}