:root {
    --bg: #f3f1e9;
    --panel-bg: #ffffff;
    --muted: #6b6b6b;
    --accent: #c9a97d; /* oro */
}

/* Overlay testi sopra backgroundHome */
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-family:"Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    animation: fadeIn 1.2s ease forwards;
    z-index: 10;
}

.hero-title {
    font-size: 3rem;
    margin: 0;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin: .5rem 0 1rem;
    font-weight: 300;
}

.hero-text {
    font-size: 1.1rem;
    color: #f3f1e9;
}

@keyframes fadeIn {
    from { opacity:0; transform:translate(-50%, -60%); }
    to { opacity:1; transform:translate(-50%, -50%); }
}

/* Container collezioni */
.shop-container {
    max-width:1200px;
    margin:0 auto;
    padding:4rem 2rem;
    text-align:center;
}

.shop-title {
    font-size:2.2rem;
    margin-bottom:.5rem;
    color:#111;
    animation: fadeIn 1s ease forwards;
}
.shop-subtitle {
    color:var(--muted);
    margin-bottom:3rem;
}

/* Griglia collezioni (max 2 colonne) */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

/* Card capi */
.item-card {
    background:var(--panel-bg);
    border-radius:1rem;
    box-shadow:0 1rem 2rem rgba(16,16,16,0.08);
    padding:2rem;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:1rem;
    transition:transform .35s ease, box-shadow .35s ease;
}
.item-card:hover {
    transform:translateY(-6px);
    box-shadow:0 1.4rem 2.5rem rgba(16,16,16,0.12);
}

.item-name {
    font-size:1.4rem;
    margin:0;
}
.item-desc {
    color:var(--muted);
    font-size:.95rem;
    line-height:1.4;
}

/* Pulsanti */
.btn {
    position:relative;
    overflow:hidden;
    display:inline-block;
    padding:.8rem 1.4rem;
    border-radius:.4rem;
    text-decoration:none;
    font-weight:600;
    width:220px;
    text-align:center;
    border:2px solid var(--accent);
    cursor:pointer;
    transition:color .35s ease, background .35s ease;
}
.btn span { position:relative; z-index:2; }

.btn.secondary {
    background:#fff;
    color:var(--accent);
}
.btn.secondary::after {
    content:"";
    position:absolute;
    top:0; left:-75%;
    width:50%; height:100%;
    background:linear-gradient(120deg, transparent 0%, rgba(201,169,125,0.25) 40%, rgba(201,169,125,0.55) 50%, transparent 100%);
    transform:skewX(-20deg);
    z-index:1;
}
.btn.secondary:hover::after {
    animation: shine-gold 0.9s forwards;
}
@keyframes shine-gold { 100% { left:125%; } }



/* Contenitore colori */
.color-selector {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Cerchi colore */
.color-option {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover elegante */
.color-option:hover {
  transform: scale(1.15);
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

/* Stato selezionato */
.color-option.selected {
  box-shadow: 0 0 0 2px var(--accent);
  transform: scale(1.2);
}

.color-selector {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.color-option {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.color-option:hover {
  transform: scale(1.12);
  box-shadow: 0 0 6px rgba(0,0,0,0.18);
}

.color-option.selected {
  box-shadow: 0 0 0 2px var(--accent);
  transform: scale(1.18);
}

/* Dissolvenza: fade-out / fade-in sulla stessa transizione */
.item-image img {
  width: 100%;
  border-radius: .6rem;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.4s ease; /* durata comoda, modificabile */
}

.item-image img.fade-out {
  opacity: 0;
}
