/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand:    #F5F0E8;
  --sand2:   #EDE6D6;
  --cream:   #FAF7F2;
  --ink:     #1A1814;
  --ink2:    #3D3A34;
  --ink3:    #6B6760;
  --sea:     #1B6B8A;
  --sea2:    #2589AD;
  --sea3:    #D6EDF5;
  --coral:   #E05B3A;
  --gold:    #C9A84C;
  --white:   #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p  { color: var(--ink2); }
a  { color: inherit; text-decoration: none; }

/* ===== LAYOUT ===== */
/* Override Bootstrap container — manteniamo il max-width originale */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  max-width: 1140px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
section { padding: 96px 0; }
/* Offset per link ancora con navbar fissa */
section[id] { scroll-margin-top: 72px; }

/* ===== NAVBAR ===== */
.nav {
  padding: 12px 0;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,24,20,0.08);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(26,24,20,0.08); }

/* Rimuovi padding Bootstrap dal brand */
.nav .navbar-brand { padding: 0; margin-right: 0; }

/* Icona hamburger nel colore giusto */
.nav .navbar-toggler {
  border: none;
  padding: 4px 8px;
}
.nav .navbar-toggler:focus { box-shadow: none; outline: none; }
.nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2861%2C58%2C52%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Link navbar */
.nav .nav-link {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink2) !important;
  padding: 8px 10px;
  transition: color .2s;
}
.nav .nav-link:hover,
.nav .nav-link:focus { color: var(--sea) !important; }

/* Bottone CTA WhatsApp in navbar */
.nav-cta {
  background: var(--sea);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  display: inline-block;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--sea2); transform: translateY(-1px); }

/* Con il negozio aperto WhatsApp passa in secondo piano */
.nav-cta-alt { background: transparent; color: var(--sea) !important; box-shadow: inset 0 0 0 1.5px var(--sea); }
.nav-cta-alt:hover { background: var(--sea3); }

/* Carrello nella barra (telefono) */
.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--sea); }
.nav-cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 100px; background: var(--coral); color: var(--white); font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }
.nav-cart-badge[hidden] { display: none; }

/* Menu collassato su mobile */
@media (max-width: 991.98px) {
  .nav .navbar-collapse {
    background: rgba(250,247,242,0.98);
    border-top: 1px solid rgba(26,24,20,0.08);
    padding: 12px 0 16px;
    margin: 8px -24px 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav .navbar-nav { gap: 2px; }
  .nav-cta { margin: 6px 0 4px; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 48px 80px 24px;
  max-width: 580px;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sea3);
  color: var(--sea);
  font-size: .8rem; font-weight: 500;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 24px;
  width: fit-content;
  animation: fadeUp .6s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--sea); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.hero-title { animation: fadeUp .6s .1s ease both; margin-bottom: 8px; }
.hero-title em { color: var(--coral); font-style: italic; }

.hero-subtitle-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--ink3);
  margin-bottom: 28px;
  animation: fadeUp .6s .15s ease both;
}
.hero-desc {
  font-size: 1.05rem;
  max-width: 420px;
  margin-bottom: 40px;
  animation: fadeUp .6s .2s ease both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp .6s .25s ease both;
}

.hero-right { position: relative; overflow: hidden; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== BOTTONI ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 500;
  cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.btn-primary {
  background: var(--sea) !important;
  color: var(--white) !important;
  border-color: var(--sea) !important;
}
.btn-primary:hover { background: var(--sea2) !important; border-color: var(--sea2) !important; }

.btn-secondary {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1.5px solid rgba(26,24,20,0.2) !important;
}
.btn-secondary:hover { border-color: var(--sea) !important; color: var(--sea) !important; }

.btn-whatsapp {
  background: #25D366 !important;
  color: var(--white) !important;
  border-color: #25D366 !important;
}
.btn-whatsapp:hover { background: #20BA5A !important; }

.ico-wa { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ===== STRIP ORARI ===== */
.strip-orari {
  background: var(--ink);
  color: var(--white);
  padding: 20px 0;
}
.strip-item {
  display: flex; align-items: center; gap: 10px;
  opacity: .9; font-size: .875rem;
}
.strip-icon { font-size: 1rem; }
.strip-item strong { font-weight: 500; }
.strip-divider { width: 1px; height: 20px; background: rgba(255,255,255,.2); }

/* ===== BRAND STRIP ===== */
.brand-strip { background: var(--sand); padding: 40px 0; overflow: hidden; }
.brand-strip-inner {
  display: flex; align-items: center; gap: 24px;
  justify-content: center; flex-wrap: wrap;
}
.brand-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px;
  background: var(--white);
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(26,24,20,.06);
  font-weight: 500; font-size: .875rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink2);
}
.brand-pill-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-sea   { background: var(--sea); }
.dot-coral { background: var(--coral); }
.dot-gold  { background: var(--gold); }

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: .75rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sea);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc { max-width: 540px; font-size: 1.05rem; }

/* ===== BRAND CARDS (Prodotti) ===== */
.brand-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26,24,20,.06);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(26,24,20,.12); }

.brand-card-img {
  aspect-ratio: 4/3;
  background: var(--sand2);
  overflow: hidden;
}
.brand-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand-card-body { padding: 24px; }
.brand-card-tag {
  display: inline-block;
  background: var(--sea3); color: var(--sea);
  font-size: .7rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 12px;
}
.brand-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.brand-card p  { font-size: .9rem; }

/* ===== GALLERY ===== */
.gallery-section { background: var(--sand); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
  margin-top: 48px;
}
.gallery-item { border-radius: 16px; overflow: hidden; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-ph {
  width: 100%; height: 100%;
  background: var(--sand2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 16px;
}
.gallery-ph img { width: 100%; border-radius: 6px; margin-bottom: 8px; }
.ph-label {
  font-size: .78rem; color: var(--ink3);
  text-align: center; padding: 0 8px;
  line-height: 1.5;
}
.ph-label strong { display: block; font-size: .85rem; margin-bottom: 4px; color: var(--ink2); }

/* ===== COME ORDINARE (Steps) ===== */
.step-card { text-align: center; }
.step-num {
  width: 52px; height: 52px;
  background: var(--sea); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p  { font-size: .875rem; }

/* ===== NEGOZI ===== */
.negozi-section { background: var(--ink); color: var(--white); }
.negozi-section .section-label { color: var(--gold); }
.negozi-section h2 { color: var(--white); }
.negozi-section p { color: rgba(255,255,255,.65); }

.negozio-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 36px;
  transition: background .2s;
  height: 100%;
}
.negozio-card:hover { background: rgba(255,255,255,.09); }

.negozio-tag {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 20px;
}
.negozio-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.negozio-info { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.negozio-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .9rem; color: rgba(255,255,255,.7);
}
.negozio-row-icon { font-size: 1rem; margin-top: 1px; flex-shrink: 0; }

/* Mappa embedded */
.map-embed { margin-top: 20px; }
.map-embed iframe {
  width: 100%; height: 220px;
  border: 0; border-radius: 12px; display: block;
}

/* ===== TESTIMONIAL ===== */
.testimonials { background: var(--cream); }
.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(26,24,20,.06);
  height: 100%;
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text {
  font-size: .9rem; line-height: 1.7;
  font-style: italic; color: var(--ink2); margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sand2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: var(--sea);
  flex-shrink: 0;
}
.author-name { font-weight: 500; font-size: .875rem; }
.author-city { font-size: .75rem; color: var(--ink3); }

/* ===== FORM CONTATTI ===== */
.contact-section { background: var(--cream); }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 16px; }
.contact-info p  { margin-bottom: 28px; }

.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.channel-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(26,24,20,.08);
  transition: border-color .2s, transform .15s;
  text-decoration: none; color: inherit;
}
.channel-item:hover { border-color: var(--sea); transform: translateX(4px); }
.channel-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.ch-wa  { background: #E7F9EE; }
.ch-ig  { background: #FDE8F0; }
.ch-em  { background: var(--sea3); }
.channel-label { font-size: .75rem; color: var(--ink3); }
.channel-value { font-weight: 500; font-size: .95rem; }

.contact-form {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(26,24,20,.07);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 6px;
}
.form-subtitle { font-size: .875rem; color: var(--ink3); margin-bottom: 28px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: .8rem; font-weight: 500; color: var(--ink2); letter-spacing: .02em; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 12px 16px;
  border: 1.5px solid rgba(26,24,20,.14);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(27,107,138,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink3); opacity: .7; }
.form-group select { appearance: none; cursor: pointer; }

.form-privacy {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 24px;
}
.form-privacy input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 2px; cursor: pointer;
  accent-color: var(--sea);
}
.form-privacy label { font-size: .8rem; color: var(--ink3); line-height: 1.5; cursor: pointer; }
.form-privacy a { color: var(--sea); text-decoration: underline; }

.btn-submit {
  width: 100%;
  justify-content: center;
  background: var(--sea);
  color: var(--white) !important;
  padding: 15px;
  font-size: 1rem; font-weight: 500;
  border-radius: 12px;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .15s;
  display: flex; align-items: center; gap: 8px;
}
.btn-submit:hover {
  background: var(--sea2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,107,138,.25);
}

.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success .success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p  { font-size: .9rem; color: var(--ink3); }

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-brand p { font-size: .875rem; max-width: 300px; line-height: 1.7; }
.footer-col h4 {
  color: var(--white); font-size: .875rem; font-weight: 500;
  margin-bottom: 16px; letter-spacing: .04em;
}
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; flex-wrap: wrap; gap: 8px;
}

/* ===== WA FLOAT ===== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.wa-float svg { width: 28px; height: 28px; fill: white; }
.wa-tooltip {
  position: absolute; right: 68px;
  background: var(--ink); color: var(--white);
  font-size: .8rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ===== ANIMAZIONI ===== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  section { padding: 64px 0; }

  /* Hero a colonna singola */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 100px 24px 60px; max-width: 100%; }
  .hero-right { min-height: 320px; }

  /* Gallery: 2 colonne */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }
  .gallery-item:first-child { grid-row: auto; }
  .gallery-ph { min-height: 200px; }
}

@media (max-width: 575.98px) {
  .strip-divider { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
}
