/* ============================================
   Cremazione Certificata Napoli — Gennaro Tammaro
   Editorial · refined · dignified
   ============================================ */

:root {
  /* Palette */
  --bg: #F5EFE6;            /* warm ivory */
  --bg-surface: #EFE6D8;    /* alt section */
  --bg-deep: #0E1B2C;       /* midnight */
  --ink: #0E1B2C;
  --ink-soft: #2C3849;
  --ink-mute: #5A5247;
  --gold: #A88B4A;
  --gold-deep: #7A6533;
  --gold-soft: #C9AE74;
  --hairline: #D6CCB8;
  --hairline-strong: #BFB39A;
  --white: #FFFDF8;

  /* Type */
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans: 'Sora', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 130px);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 .4em;
  color: var(--ink);
}
h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}
h2 {
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 500;
}
h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.005em;
}
h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1em;
}
p { margin: 0 0 1em; }
p strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 28px;
}
.eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.eyebrow-center {
  display: block;
  text-align: center;
  margin-bottom: 24px;
}
.eyebrow-light { color: var(--gold-soft); }

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
}

/* ===== Sticky mobile call ===== */
.sticky-call {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-deep);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px -8px rgba(14, 27, 44, 0.4);
  text-decoration: none;
}
.sticky-call strong { color: var(--gold-soft); font-weight: 600; letter-spacing: 0.04em; }
.sticky-call svg { color: var(--gold-soft); flex-shrink: 0; }

@media (max-width: 720px) {
  .sticky-call { display: flex; }
  body { padding-bottom: 80px; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 230, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.brand img {
  width: 200px;
  height: auto;
  filter: invert(1) brightness(0.18);
}
.head-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.head-tel-fixed, .head-tel-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.1;
  transition: background .2s var(--ease);
}
.head-tel-fixed { color: var(--ink-soft); }
.head-tel-cell { background: var(--bg-deep); color: var(--bg); }
.head-tel-fixed:hover { background: var(--bg-surface); color: var(--ink); }
.head-tel-cell:hover { background: #1a2842; color: var(--bg); }
.tel-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}
.head-tel-cell .tel-label { color: var(--gold-soft); opacity: 1; }
.tel-number {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .head-tel-fixed { display: none; }
  .head-tel-cell { padding: 8px 12px; }
  .tel-number { font-size: 16px; }
  .brand img { width: 150px; }
}

/* ===== Hero ===== */
.hero {
  padding: clamp(48px, 7vw, 100px) 0 var(--section-y);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(168, 139, 74, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { animation: fadeUp .9s var(--ease) both; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 44px;
}
.hero-image {
  margin: 0;
  position: relative;
  animation: fadeUp 1.1s var(--ease) .15s both;
}
.hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow:
    0 24px 60px -20px rgba(14, 27, 44, 0.25),
    0 8px 20px -10px rgba(14, 27, 44, 0.15);
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  transform: translate(16px, 16px);
  z-index: -1;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-width: 480px; }
  .hero-image::before { transform: translate(12px, 12px); inset: -12px; }
}

/* Trust strip */
.trust-strip {
  list-style: none;
  padding: 28px 0 0;
  margin: 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-strip li {
  display: flex;
  flex-direction: column;
}
.trust-strip strong {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 4px;
}
.trust-strip span {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr; gap: 14px; }
  .trust-strip li { flex-direction: row; align-items: baseline; gap: 12px; }
  .trust-strip strong { font-size: 22px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  text-decoration: none;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--bg-deep);
  color: var(--bg);
  border-color: var(--bg-deep);
}
.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(168, 139, 74, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-outline {
  background: transparent;
  color: var(--bg);
  border-color: var(--gold-soft);
}
.btn-outline:hover {
  background: var(--gold-soft);
  color: var(--bg-deep);
}
.btn-large { padding: 18px 30px; font-size: 16px; }

/* ===== Sections ===== */
.section { padding: var(--section-y) 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 76px);
}
.section-head h2 { margin: 0; }
.section-sub {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-mute);
  margin-top: 18px;
  line-height: 1.55;
}

/* About section */
.section-about { background: var(--bg-surface); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-image { margin: 0; }
.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 24px 60px -24px rgba(14, 27, 44, 0.3);
}
.about-text p { color: var(--ink-soft); }
.about-text p.callout {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 253, 248, 0.5);
  font-size: 16px;
  color: var(--ink);
}
.about-text p.callout a {
  color: var(--gold-deep);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}
.about-text p.callout a:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 420px; }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.service-card {
  padding: 40px 32px 44px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background .3s var(--ease);
}
.service-card:hover {
  background: var(--bg-surface);
}
.service-num {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.service-card h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
}
.service-card p {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 880px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px 36px; }
}

/* Heritage */
.section-heritage { background: var(--bg-deep); color: var(--bg); }
.section-heritage h2,
.section-heritage h3 { color: var(--bg); }
.section-heritage .eyebrow { color: var(--gold-soft); }
.section-heritage .eyebrow-line { background: var(--gold-soft); }
.heritage-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.heritage-text p { color: rgba(245, 239, 230, 0.78); font-size: 17px; }
.heritage-text p strong { color: var(--gold-soft); font-weight: 600; }
.heritage-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.heritage-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(245, 239, 230, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: rgba(245, 239, 230, 0.85);
}
.heritage-list li:last-child { border-bottom: 0; }
.heritage-list strong { color: var(--bg); font-weight: 600; }
.check {
  color: var(--gold-soft);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  transition: gap .25s var(--ease);
}
.link-arrow:hover {
  gap: 14px;
  color: var(--bg);
  border-color: var(--bg);
}
.heritage-image { margin: 0; }
.heritage-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(168, 139, 74, 0.3);
}
.heritage-image figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-soft);
  text-align: center;
  margin-top: 14px;
}

@media (max-width: 880px) {
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage-image { max-width: 420px; order: -1; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.06); }

@media (max-width: 880px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Sedi */
.section-sedi { background: var(--bg-surface); }
.sedi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sede-card {
  padding: 32px 26px 30px;
  background: var(--bg);
  border-radius: 4px;
  border-top: 2px solid var(--gold);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sede-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(14, 27, 44, 0.18);
}
.sede-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--ink);
}
.sede-card address {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-bottom: 16px;
}
.sede-card .link-arrow {
  font-size: 14px;
  color: var(--gold-deep);
  border-color: var(--gold);
}
.sede-card .link-arrow:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 880px) { .sedi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sedi-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-list details {
  border-bottom: 1px solid var(--hairline);
  padding: 0;
}
.faq-list summary {
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  transition: transform .3s var(--ease);
  line-height: 1;
}
.faq-list details[open] summary { color: var(--gold-deep); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 0 22px;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.65;
  max-width: 700px;
}

/* CTA */
.section-cta {
  background: var(--bg-deep);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(168, 139, 74, 0.18), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-wrap {
  text-align: center;
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.cta-wrap h2 { color: var(--bg); }
.cta-sub {
  font-size: clamp(16px, 1.3vw, 18px);
  color: rgba(245, 239, 230, 0.8);
  max-width: 560px;
  margin: 18px auto 36px;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}
.cta-buttons .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
}
.cta-buttons .btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  box-shadow: 0 10px 28px -8px rgba(168, 139, 74, 0.6);
}
.cta-footnote {
  font-size: 14px;
  color: rgba(245, 239, 230, 0.6);
  margin: 0;
}
.cta-footnote a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(201, 174, 116, 0.4);
}
.cta-footnote a:hover { color: var(--bg); border-color: var(--bg); }

/* Footer */
.site-footer {
  background: #0A1422;
  color: rgba(245, 239, 230, 0.7);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.1);
}
.footer-brand img {
  width: 180px;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.6);
}
.footer-col h4 { color: var(--gold-soft); margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li {
  padding: 6px 0;
  color: rgba(245, 239, 230, 0.65);
  line-height: 1.55;
}
.footer-col a {
  color: rgba(245, 239, 230, 0.85);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(245, 239, 230, 0.5);
}
.footer-bottom a { color: var(--gold-soft); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
