/* ============================================================
   Coolstreet Fine Jewels — coolstreetstore.com
   Design system Royaletiger — CSS custom, zero framework
   ============================================================ */

/* ---------- Font self-hosted (GDPR: nessuna richiesta a terzi) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  /* palette brand: nero profondo + oro champagne + avorio */
  --brand: #c9ab81;
  --brand-deep: #a9895b;
  --accent: #d9bc8f;
  --ink: #0d0c0a;
  --ink-soft: #17150f;
  --text: #2b2721;
  --muted: #6f675c;
  --bg: #faf8f4;
  --bg-alt: #f3eee5;
  --line: #e6ddcd;
  --white: #ffffff;
  /* tipografia */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 10px rgba(13, 12, 10, .06);
  --shadow-md: 0 10px 30px rgba(13, 12, 10, .10);
  --shadow-lg: 0 24px 60px rgba(13, 12, 10, .18);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --nav-h: 82px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

/* ---------- Utility ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, .82); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--brand); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .78); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid rgba(255, 255, 255, .55); color: var(--white); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); box-shadow: var(--shadow-md); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(13, 12, 10, .82), rgba(13, 12, 10, .55) 70%, transparent);
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(13, 12, 10, .96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.nav-logo img { width: 210px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu a {
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 6px 0;
  position: relative;
  transition: color .3s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--brand);
  transition: right .35s var(--ease);
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--brand); }
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { right: 0; }
.nav-cta { margin-left: 6px; padding: 11px 26px; font-size: .88rem; }
.nav-menu a.nav-cta, .nav-menu a.nav-cta:hover { color: var(--ink); }
.nav-menu a.nav-cta::after { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 110; }
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  margin: 6px auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero-page { min-height: 62vh; padding-bottom: 60px; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(10, 9, 7, .45), rgba(10, 9, 7, .72));
}
.hero h1 { color: var(--white); max-width: 900px; margin: 0 auto; }
.hero .lead {
  max-width: 680px;
  margin: 22px auto 34px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .88);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .72);
}
.breadcrumb a { color: var(--brand); }
.breadcrumb span[aria-hidden] { opacity: .6; }

/* ---------- Feature cards (Perché sceglierci) ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.feature-card > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform .8s var(--ease);
}
.feature-card:hover > img { transform: scale(1.06); }
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(13, 12, 10, 0) 30%, rgba(13, 12, 10, .88));
}
.feature-body { position: relative; z-index: 1; padding: 30px 28px; color: var(--white); }
.feature-body h3 { color: var(--white); margin-bottom: 10px; font-size: 1.5rem; }
.feature-body p { color: rgba(255, 255, 255, .85); font-size: .96rem; }

/* ---------- Split (Chi siamo / testo+immagine) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { margin-bottom: 18px; }
.split-body p { color: var(--muted); margin-bottom: 16px; }
.split-body .btn { margin-top: 12px; }
.section-dark .split-body p { color: rgba(255, 255, 255, .8); }

/* ---------- Category / service cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body .eyebrow { margin-bottom: 8px; font-size: .7rem; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-link {
  margin-top: 18px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link svg { transition: transform .3s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Value list (chi siamo) ---------- */
.value-list { display: grid; gap: 22px; }
.value-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.value-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.value-item p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.stat span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .75); font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  display: block;
  width: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 12, 10, 0);
  transition: background .4s;
}
.gallery-item:hover::after { background: rgba(13, 12, 10, .18); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 7, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(920px, 92vw); max-height: 86vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2.2rem;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card .card-media { aspect-ratio: 16 / 9; }
.blog-meta { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }

/* articolo */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.7rem; margin: 42px 0 16px; }
.article h3 { font-size: 1.25rem; margin: 30px 0 12px; }
.article p, .article li { color: var(--text); margin-bottom: 16px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 18px; }
.article ul li { list-style: disc; margin-bottom: 8px; }
.article ol li { list-style: decimal; margin-bottom: 8px; }
.article strong { color: var(--ink); }
.article .article-intro { font-size: 1.12rem; color: var(--muted); }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
}
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--brand-deep); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 4px 20px; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 90px) clamp(24px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 70% 20%, rgba(201, 171, 129, .22), transparent 55%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(255, 255, 255, .8); max-width: 620px; margin: 0 auto 30px; position: relative; }
.cta-banner .hero-actions { position: relative; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.contact-channels { display: grid; gap: 16px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-channel .value-icon { flex-shrink: 0; }
.contact-channel b { display: block; color: var(--ink); font-size: .95rem; }
.contact-channel span { color: var(--muted); font-size: .9rem; word-break: break-word; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .3s, box-shadow .3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 171, 129, .25);
}
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; font-size: .85rem; color: var(--muted); }
.form-check input { margin-top: 4px; accent-color: var(--brand-deep); }
.form-check a { color: var(--brand-deep); text-decoration: underline; }
.form-status { margin-top: 16px; font-size: .92rem; font-weight: 500; }
.form-status.ok { color: #256a37; }
.form-status.err { color: #a33; }

.map-note { margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* ---------- Pagine legali ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.45rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text); margin-bottom: 12px; font-size: .97rem; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal ul li { list-style: disc; }

/* ---------- 404 ---------- */
.page-404 { min-height: 70vh; display: flex; align-items: center; text-align: center; padding-top: var(--nav-h); }
.page-404 .big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.page-404 h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 12px 0 14px; }
.page-404 p { color: var(--muted); max-width: 460px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: clamp(56px, 8vw, 84px) 0 48px;
}
.footer-brand img { width: 220px; height: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .93rem; color: rgba(255, 255, 255, .78); transition: color .3s; }
.footer-col a:hover { color: var(--brand); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.footer-contact svg { flex-shrink: 0; margin-top: 4px; color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .7); transition: color .3s; }
.footer-bottom a:hover { color: var(--brand); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(13, 12, 10, .98);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; }
  .nav-menu a { font-size: 1.25rem; }
  .nav-toggle { display: block; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { min-height: 78vh; }
}

@media (max-width: 640px) {
  .features-grid, .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .nav-logo img { width: 170px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .feature-card { min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
