:root {
  --color-bg: #fbf8f5;
  --color-bg-soft: #f3ece5;
  --color-text: #3b3630;
  --color-text-muted: #8a8378;
  --color-accent: #b98a72;
  --color-accent-dark: #8c6f53;
  --color-white: #ffffff;
  --font-brand: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-weight: 300;
}

.brand-font {
  font-family: var(--font-brand);
}

a {
  color: var(--color-accent-dark);
}

.bg-soft {
  background-color: var(--color-bg-soft);
}

/* Navbar */
.navbar {
  background-color: var(--color-white) !important;
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.navbar-logo {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .navbar-logo {
    height: 36px;
  }

  /* titolo lungo: puo' andare a capo invece di essere tagliato dal pulsante del menu */
  .navbar .navbar-brand {
    flex: 1 1 0;
    min-width: 0;
    margin-right: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: normal;
  }

  .navbar-brand span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .navbar-toggler {
    flex: 0 0 auto;
  }
}

.navbar-brand {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  color: var(--color-text) !important;
}

.nav-link {
  color: var(--color-text) !important;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--color-accent-dark) !important;
}

/* Hero */
.hero {
  min-height: clamp(380px, 62vh, 600px);
  background: linear-gradient(160deg, #cbb29c 0%, #ab8973 55%, #8c6f53 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-carousel,
.hero-carousel .carousel-inner {
  position: absolute;
  inset: 0;
}

.hero-carousel .carousel-item {
  background-size: cover;
  background-position: center;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  z-index: 3;
  width: 8%;
  min-width: 52px;
}

.hero .carousel-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(40, 32, 24, 0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  transition: background 0.2s;
}

.hero .carousel-control-prev:hover .carousel-control-icon,
.hero .carousel-control-next:hover .carousel-control-icon {
  background: rgba(40, 32, 24, 0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 32, 24, 0.28);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  max-width: 900px;
  margin: 0 auto 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  font-weight: 300;
  opacity: 0.95;
}

/* Section titles */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
}

/* Category cards */
.category-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.category-img,
.category-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-img-placeholder {
  background: linear-gradient(160deg, var(--color-bg-soft), var(--color-accent));
}

.category-card:hover .category-img {
  transform: scale(1.06);
}

.category-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(20, 15, 10, 0.75), transparent);
  color: var(--color-white);
}

.category-overlay h3 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

/* Social wall */
.social-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.social-wall-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
}

.social-wall-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.social-wall-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .social-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-widget-embed {
  width: 100%;
  overflow-x: auto;
}

/* Gallery */
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact */
.contact-card {
  background-color: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(60, 45, 30, 0.08);
}

.map-embed {
  border-radius: 16px;
  overflow: hidden;
}

.map-placeholder {
  background-color: var(--color-bg-soft);
  min-height: 320px;
}

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 1030;
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  color: var(--color-white);
}

/* Footer */
.footer-section {
  background-color: var(--color-bg-soft);
}

.social-icon {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.social-icon:hover {
  color: var(--color-accent-dark);
}

/* Shop */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: -0.6rem;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
}

.btn-shop {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  letter-spacing: 0.03em;
}

.btn-shop:hover,
.btn-shop:focus {
  background-color: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-white);
}

.shop-filter {
  padding: 0.35rem 1rem;
  border: 1px solid var(--color-bg-soft);
  border-radius: 999px;
  background-color: var(--color-white);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
}

button.shop-filter {
  font-family: inherit;
  cursor: pointer;
  line-height: inherit;
}

.shop-filter:hover,
.shop-filter.active,
.shop-filter[aria-expanded="true"] {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
}

.product-img-wrap img,
.product-img-wrap .category-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 0.75rem;
}

.product-badge-featured {
  background-color: var(--color-accent-dark);
  color: #fff;
  font-weight: 500;
}

.product-badge-soldout {
  top: auto;
  bottom: 0.75rem;
}

/* Prodotti di una collezione: bordo e fascia nel colore della collezione */
.product-img-wrap.has-collection {
  box-shadow: 0 0 0 3px var(--coll-color);
}

.product-collection-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.3rem 0.5rem;
  background-color: var(--coll-color);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Simbolo della categoria: tondino in basso a destra dell'anteprima */
.product-category-icon {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  font-size: 1.05rem;
  line-height: 1;
}

.has-collection .product-category-icon {
  bottom: 2.4rem;
}

.has-collection .product-badge-soldout {
  bottom: 2.4rem;
}

/* Chip collezione: stesso colore del bordo dei suoi prodotti */
.shop-filter-coll {
  border-color: var(--coll-color);
}

.shop-filter-coll:hover,
.shop-filter-coll.active {
  background-color: var(--coll-color);
  border-color: var(--coll-color);
  color: #fff;
}

.sale-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.sale-ribbon span {
  position: absolute;
  top: 24px;
  right: -34px;
  width: 140px;
  padding: 0.25rem 0;
  background: #d62828;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.product-price-old {
  color: #8a8178;
  text-decoration: line-through;
  margin-right: 0.4rem;
  font-size: 0.9em;
}

.product-price-sale {
  color: #d62828;
  font-weight: 600;
}

.product-badge-inline {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.product-img-wrap.is-featured {
  box-shadow: 0 0 0 3px var(--color-accent-dark);
}

.product-name {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.product-price {
  color: var(--color-accent-dark);
  font-weight: 500;
}

.product-detail-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.product-detail-img img,
.product-detail-img .category-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qty-input {
  width: 5rem;
  flex-shrink: 0;
}

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
}

.cart-thumb img,
.cart-thumb .category-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-subtotal {
  min-width: 5.5rem;
}

.min-w-0 {
  min-width: 0;
}

@media (max-width: 576px) {
  .cart-row {
    flex-wrap: wrap;
  }
}

/* Hall of Fame */
.hof-stat {
  background: var(--color-white);
  border-radius: 14px;
  padding: 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.hof-stat-num {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-accent-dark);
}

.hof-stat-num small {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.hof-timeline {
  max-width: 860px;
  margin: 0 auto;
  border-left: 2px solid var(--color-bg-soft);
  padding-left: 1.5rem;
}

.hof-year {
  position: relative;
  margin-bottom: 2rem;
}

.hof-year::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 7px);
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hof-year-label {
  font-size: 1.6rem;
  color: var(--color-accent-dark);
  margin-bottom: 0.75rem;
}

.hof-year-items {
  display: grid;
  gap: 1rem;
}

.hof-award,
.hof-review {
  background: var(--color-white);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(59, 54, 48, 0.06);
}

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

.hof-award a {
  color: inherit;
  text-decoration: none;
}

.hof-award a:hover {
  color: var(--color-accent-dark);
}

.hof-award-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}

.hof-award-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  color: var(--color-accent);
  font-size: 1.8rem;
}

.hof-featured {
  border: 1px solid var(--color-accent);
}

.hof-review {
  margin: 0;
}

.hof-stars {
  color: #d9a441;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.hof-stars-off {
  color: var(--color-bg-soft);
}

.hof-review blockquote {
  font-style: italic;
}

/* Banner cookie */
.cookie-banner {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  max-width: 420px;
  z-index: 1080;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.cookie-banner[hidden] {
  display: none;
}

@media (max-width: 575.98px) {
  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    max-width: none;
  }
}

.shop-filter-sub {
  font-size: 0.85rem;
  padding: 0.25rem 0.8rem;
}

.brand-subtitle {
  font-style: italic;
  font-weight: 400;
  font-size: .62em;
  color: var(--color-accent);
  margin-top: .3em;
  letter-spacing: .04em;
}

/* Immagine hero cliccabile: overlay e testi lasciano passare il clic */
.hero-slide-link { position: absolute; inset: 0; z-index: 1; }
.hero-overlay { pointer-events: none; }
.hero > .container { pointer-events: none; }
.hero > .container a, .hero > .container button { pointer-events: auto; }
