/* ==========================================================
   Onoranze Funebri Verdi - Pisa
   Demo realizzata da Future Is Now - futureisnow.cloud
   Palette: Blu-grigio #2C3E50 | Oro caldo #B8932E | Avorio
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #2C3E50;
  --navy-mid:    #34495E;
  --navy-light:  rgba(44, 62, 80, 0.08);
  --gold:        #B8932E;
  --gold-light:  rgba(184, 147, 46, 0.12);
  --gold-soft:   #F0E8D0;
  --bg:          #F5F6F7;
  --white:       #FFFFFF;
  --ink:         #1A1A1A;
  --ink-soft:    #6B6B6B;
  --border:      #E2E5E8;
  --border-gold: rgba(184, 147, 46, 0.3);
  --shadow-sm:   0 1px 4px rgba(26, 26, 26, 0.06);
  --shadow-md:   0 4px 18px rgba(26, 26, 26, 0.09);
  --shadow-lg:   0 12px 36px rgba(26, 26, 26, 0.13);
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --container:   1200px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAV === */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand-logo { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 2px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--navy-mid) !important; color: var(--gold-soft) !important; }

/* === EYEBROW === */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--gold-light);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border-gold);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy-light); }
.btn-large { padding: 18px 44px; font-size: 16px; }
.btn-block { width: 100%; }

/* === HERO === */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(160deg, var(--bg) 0%, var(--white) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero h1 em { color: var(--navy); font-style: italic; }
.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta { margin-bottom: 44px; }
.hero-trust {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-trust > div { display: flex; flex-direction: column; }
.hero-trust strong {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1;
}
.hero-trust span { font-size: 12px; color: var(--ink-soft); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.85);
}
.hero-image-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-md);
  max-width: 260px;
  border-left: 3px solid var(--gold);
}
.tag-icon { font-size: 20px; color: var(--gold); flex-shrink: 0; }
.hero-image-tag p { font-size: 13px; line-height: 1.4; color: var(--ink); }
.hero-image-tag strong { color: var(--navy); }

/* === INTRO STATEMENT === */
.intro-statement {
  padding: 84px 0;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.intro-quote {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.45;
  max-width: 860px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}
.intro-quote em { color: var(--gold); font-style: italic; }

/* === SECTIONS BASE === */
section { padding: 100px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-head h2 em { color: var(--navy); font-style: italic; }
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* === CHI SIAMO === */
.section-chi { background: var(--bg); }
.chi-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.chi-image { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); }
.chi-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.75);
}
.chi-text h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.2;
  color: var(--ink);
}
.chi-text h2 em { color: var(--navy); font-style: italic; }
.chi-text p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.75;
}
.credentials { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 24px; }
.credentials li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.credentials li:last-child { border-bottom: none; }

/* Valori */
.valori-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.valore-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border-top: 3px solid var(--gold);
}
.valore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.valore-icon {
  display: block;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 16px;
}
.valore-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--navy);
}
.valore-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* === SERVIZI === */
.section-servizi { background: var(--white); }
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.servizio-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}
.servizio-card.featured {
  background: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.servizio-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-gold); }
.servizio-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.servizio-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--gold-light);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
  border: 1px solid var(--border-gold);
}
.servizio-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--navy);
}
.servizio-desc {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
}
.servizio-card ul { margin-bottom: 8px; }
.servizio-card ul li {
  padding: 5px 0 5px 20px;
  font-size: 13px;
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.servizio-card ul li:last-child { border-bottom: none; }
.servizio-card ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* === COMUNICAZIONE === */
.section-comunicazione { background: var(--bg); }
.comunicazione-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.comunicazione-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: var(--transition);
}
.comunicazione-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-gold); }
.com-icon {
  margin-bottom: 24px;
  width: 56px;
  height: 56px;
  background: var(--gold-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
}
.comunicazione-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--navy);
}
.comunicazione-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* === PRATICHE BUROCRATICHE === */
.section-pratiche { background: var(--white); }
.pratiche-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.pratiche-text h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.2;
  color: var(--ink);
}
.pratiche-text h2 em { color: var(--navy); font-style: italic; }
.pratiche-text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.02rem; line-height: 1.75; }
.pratiche-ul { }
.pratiche-ul li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.pratiche-ul li:last-child { border-bottom: none; }
.pratica-dot {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 4px;
}
.pratiche-ul strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 3px; }
.pratiche-ul span { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* === TESTIMONIANZE === */
.section-testi { background: var(--bg); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  position: relative;
}
.testi-virgola {
  font-family: var(--font-serif);
  font-size: 72px;
  color: var(--gold-soft);
  line-height: 0.8;
  margin-bottom: 12px;
  font-weight: 600;
}
.testi-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 24px;
}
.testi-author { display: flex; gap: 14px; align-items: center; }
.testi-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.testi-author strong { display: block; color: var(--ink); font-size: 15px; }
.testi-author span { font-size: 12px; color: var(--ink-soft); }

/* === BANNER === */
.section-banner { padding: 60px 0; background: var(--gold-light); }
.banner-inner {
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 64px;
  text-align: center;
}
.banner-eyebrow { background: rgba(255,255,255,0.12); color: var(--gold-soft); border-color: rgba(184,147,46,0.3); }
.banner-inner h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.banner-inner h2 em { color: var(--gold); font-style: italic; }
.banner-inner p {
  font-size: 1.05rem;
  margin-bottom: 36px;
  opacity: 0.85;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.banner-inner .btn-primary {
  background: var(--gold);
  color: var(--white);
  font-size: 16px;
  letter-spacing: 0.01em;
}
.banner-inner .btn-primary:hover { background: #a07a20; }

/* === FAQ === */
.section-faq { background: var(--white); }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  padding-right: 36px;
  position: relative;
  list-style: none;
  line-height: 1.5;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--gold);
  transition: var(--transition);
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 15px;
}

/* === CONTATTI === */
.section-contatti { background: var(--bg); }
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
}
.contatti-text h2 {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--ink);
}
.contatti-text h2 em { color: var(--navy); font-style: italic; }
.contatti-text > p { color: var(--ink-soft); margin-bottom: 32px; font-size: 1rem; line-height: 1.75; }
.contatti-info { }
.contatti-info > div {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.contatti-info > div:last-child { border-bottom: none; }
.info-icon { font-size: 16px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contatti-info strong { display: block; color: var(--navy); font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.contatti-info div > div { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.contatti-info em { font-size: 12px; color: var(--gold); font-style: italic; }
.contatti-form-wrap {
  background: var(--white);
  padding: 44px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contatti-form h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 28px;
  color: var(--navy);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contatti-form label {
  display: block;
  margin-bottom: 18px;
}
.contatti-form label > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contatti-form input,
.contatti-form select,
.contatti-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
  transition: var(--transition);
}
.contatti-form input:focus,
.contatti-form select:focus,
.contatti-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-light);
}
.form-check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px !important;
  color: var(--ink-soft) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.form-check input { width: auto !important; margin-top: 3px; flex-shrink: 0; }
.form-privacy-link { color: var(--gold); text-decoration: underline; }
.form-promise {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.02em;
}

/* === FOOTER === */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-brand .brand-name { color: var(--white); display: block; margin-bottom: 4px; font-size: 20px; }
.footer-brand .brand-sub { color: rgba(255,255,255,0.5); display: block; margin-bottom: 18px; }
.footer p { font-size: 14px; opacity: 0.75; line-height: 1.7; }
.footer h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 18px;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.footer ul li { padding: 5px 0; }
.footer a { font-size: 14px; opacity: 0.75; transition: var(--transition); }
.footer a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}

/* === DEMO BADGE === */
.demo-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #3AA6B9;
  color: var(--white);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(58, 166, 185, 0.4);
  font-size: 13px;
  max-width: 380px;
  z-index: 200;
  line-height: 1.5;
}
.demo-badge a { color: var(--white); text-decoration: underline; font-weight: 600; }
.demo-badge a:hover { color: #CAE6E8; }

/* === RESPONSIVE 1024px === */
@media (max-width: 1024px) {
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .valori-grid { grid-template-columns: repeat(2, 1fr); }
  .comunicazione-grid { grid-template-columns: 1fr; gap: 24px; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* === RESPONSIVE 768px === */
@media (max-width: 768px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid,
  .chi-grid,
  .pratiche-grid,
  .contatti-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .chi-text h2,
  .pratiche-text h2,
  .contatti-text h2,
  .banner-inner h2 { font-size: 1.9rem; }
  .section-head h2 { font-size: 1.8rem; }
  .intro-quote { font-size: 1.5rem; }
  section { padding: 60px 0; }
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-200%);
    transition: var(--transition);
    z-index: 99;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .valori-grid,
  .comunicazione-grid,
  .testi-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .servizi-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 24px; flex-wrap: wrap; }
  .hero-image img { height: 360px; }
  .banner-inner { padding: 40px 24px; }
  .contatti-form-wrap { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .demo-badge { right: 8px; left: 8px; max-width: none; font-size: 12px; }
  .chi-image img { height: 320px; }
  .footer-grid { gap: 32px; }
}
