/* ============================================================
   Cantina Online — front.css (modulo cantinaconfig)
   Variabili CSS: --cp primario | --cpd scuro | --ca accento
                  --cbg sfondo  | --ct testo
   ============================================================ */

.co-wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

/* ---- HERO ---- */
.co-hero { position: relative; min-height: 360px; display: flex; align-items: center; background: #1a0d10; overflow: hidden; }
.co-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.co-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,6,9,.93) 0%, rgba(15,6,9,.55) 55%, rgba(15,6,9,.05) 100%); }
.co-hero__inner { position: relative; z-index: 2; padding: 56px 18px; color: #fff; }
.co-hero__title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.06; margin: 0 0 16px; max-width: 560px; }
.co-hero__sub   { font-size: clamp(.95rem, 1.8vw, 1.2rem); max-width: 480px; opacity: .92; margin: 0 0 30px; line-height: 1.5; }
.co-hero__btns  { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.co-btn { display: inline-block; padding: 13px 28px; border-radius: 6px; font-weight: 600; text-decoration: none; font-size: .9rem; letter-spacing: .02em; transition: background .16s, color .16s, border-color .16s; cursor: pointer; border: 2px solid transparent; }
.co-btn--fill  { background: var(--cp, #7a132e); color: #fff; }
.co-btn--fill:hover { background: var(--cpd, #5a0d22); color: #fff; }
.co-btn--ghost { border-color: #fff; color: #fff; background: transparent; }
.co-btn--ghost:hover { background: #fff; color: var(--cp, #7a132e); }
.co-btn--cart  { background: var(--cp, #7a132e); color: #fff; width: 100%; text-align: center; padding: 10px; border-radius: 6px; font-size: .82rem; margin-top: 10px; }
.co-btn--cart:hover { background: var(--cpd, #5a0d22); color: #fff; }

/* ---- CATEGORIE ---- */
.co-cats { padding: 36px 0; }
.co-cats__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.co-cat { background: #fff; border: 1.5px solid #efe7df; border-radius: 16px; padding: 22px 10px 18px; text-align: center; text-decoration: none; color: var(--ct, #2b2b2b); display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.co-cat:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(122,19,46,.13); border-color: var(--cp, #7a132e); }
.co-cat__thumb { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.co-cat__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.co-cat__glass { width: 36px; height: 52px; border: 2px solid var(--cp, #7a132e); border-top: none; border-radius: 0 0 18px 18px; opacity: .4; }
.co-cat__name { font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
.co-cat__cta   { font-size: .76rem; color: var(--cp, #7a132e); font-weight: 600; }

/* ---- USP ---- */
.co-usp { background: var(--cbg, #faf6f1); padding: 20px 0; border-top: 1px solid #efe7df; border-bottom: 1px solid #efe7df; }
.co-usp__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.co-usp__item { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.co-usp__item > span { font-size: 1.5rem; }
.co-usp__item b { display: block; font-size: .88rem; }
.co-usp__item small { color: #8a7f76; font-size: .78rem; }

/* ---- SECTION COMMONS ---- */
.co-sect { padding: 44px 0; }
.co-sect--bg { background: var(--cbg, #faf6f1); }
.co-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.co-head h2 { font-family: Georgia, serif; font-size: 1.45rem; margin: 0; color: var(--ct, #2b2b2b); }
.co-head a  { color: var(--cp, #7a132e); font-weight: 600; font-size: .88rem; text-decoration: none; }

/* ---- PRODOTTI ---- */
.co-products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.co-product { background: #fff; border: 1.5px solid #ede5dd; border-radius: 14px; overflow: hidden; position: relative; display: flex; flex-direction: column; transition: box-shadow .18s; }
.co-product:hover { box-shadow: 0 10px 28px rgba(122,19,46,.12); }
.co-product__badge { position: absolute; top: 10px; left: 10px; background: var(--cp, #7a132e); color: #fff; border-radius: 50%; width: 36px; height: 36px; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 1; }
.co-product__img-wrap { display: flex; align-items: center; justify-content: center; height: 200px; padding: 16px; background: #faf6f1; }
.co-product__img-wrap img { max-height: 170px; max-width: 100%; object-fit: contain; }
.co-product__noimg { font-size: 3rem; }
.co-product__info { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.co-product__brand { font-size: .72rem; color: #9a8f86; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.co-product__name  { font-size: .88rem; font-weight: 600; color: var(--ct, #2b2b2b); text-decoration: none; line-height: 1.3; flex: 1; }
.co-product__name:hover { color: var(--cp, #7a132e); }
.co-product__price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; }
.co-product__now   { font-weight: 700; font-size: 1.05rem; color: var(--cp, #7a132e); }
.co-product__old   { font-size: .82rem; color: #9a8f86; text-decoration: line-through; }

/* ---- OCCASIONI ---- */
.co-occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.co-occasion { position: relative; min-height: 180px; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; background: #3a2226 center/cover no-repeat; }
.co-occasion__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(15,6,9,.88) 100%); }
.co-occasion__txt { position: relative; z-index: 2; color: #fff; padding: 18px; }
.co-occasion__txt h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 1.15rem; }
.co-occasion__txt p  { margin: 0; font-size: .82rem; opacity: .9; }

/* ---- PRODUTTORI ---- */
.co-producers { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.co-producer { flex: 1; min-width: 110px; text-align: center; filter: grayscale(1) opacity(.6); transition: filter .2s; }
.co-producer:hover { filter: none; }
.co-producer img { max-height: 46px; max-width: 100%; object-fit: contain; }
.co-producer span { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; color: #5a5050; }

/* ---- REGIONI ---- */
.co-regions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.co-region { position: relative; min-height: 160px; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; background: #3a2226 center/cover no-repeat; }
.co-region__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(15,6,9,.82) 100%); }
.co-region__txt { position: relative; z-index: 2; color: #fff; padding: 16px; }
.co-region__txt h3 { margin: 0 0 2px; font-family: Georgia, serif; font-size: 1.1rem; }
.co-region__txt span { font-size: .76rem; opacity: .9; }

/* ============================================================
   RESPONSIVE — mobile "app-like"
   ============================================================ */
@media (max-width: 1024px) {
  .co-cats__grid  { grid-template-columns: repeat(3, 1fr); }
  .co-products    { grid-template-columns: repeat(3, 1fr); }
  .co-occasions   { grid-template-columns: repeat(2, 1fr); }
  .co-regions     { grid-template-columns: repeat(3, 1fr); }
  .co-usp__row    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* Hero compatta */
  .co-hero { min-height: 280px; }
  .co-hero__inner { padding: 36px 16px; }
  .co-hero__btns .co-btn { flex: 1; text-align: center; padding: 12px 10px; }

  /* Categorie 3 colonne piccole */
  .co-cats { padding: 20px 0; }
  .co-cats__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .co-cat { padding: 14px 6px; border-radius: 18px; }
  .co-cat__thumb { width: 44px; height: 44px; }
  .co-cat__name  { font-size: .72rem; }
  .co-cat__cta   { display: none; }

  /* Prodotti — carosello orizzontale tipo app */
  .co-products {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px;
  }
  .co-products > .co-product { flex: 0 0 72%; scroll-snap-align: start; }

  /* Occasioni 2 colonne */
  .co-occasions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .co-occasion  { min-height: 130px; border-radius: 18px; }

  /* Regioni — carosello orizzontale */
  .co-regions {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px;
  }
  .co-regions > .co-region { flex: 0 0 58%; scroll-snap-align: start; min-height: 140px; border-radius: 18px; }

  /* Produttori scorrimento */
  .co-producers { flex-wrap: nowrap; overflow-x: auto; gap: 20px; padding-bottom: 6px; justify-content: flex-start; }
  .co-producer  { flex: 0 0 auto; min-width: 90px; }

  .co-sect { padding: 28px 0; }
  .co-head h2 { font-size: 1.2rem; }
}
