
/* ==========================================================================
   Home page — layout nativo (sostituisce Elementor, 31.07.2026)
   Palette e tipografia identiche alla versione precedente.
   ========================================================================== */

.tsr-home {
  --tsr-blue: #234a5e;
  --tsr-blue-dark: #26425b;
  --tsr-gold: #c0883b;
  --tsr-cream: #f1e8da;
  --tsr-sand: #faf7f2;
  --tsr-sand-2: #f6efe3;
  --tsr-text: #3f3f3f;
  --tsr-muted: #5f5f5f;
  color: var(--tsr-text);
}

.tsr-home * { box-sizing: border-box; }

.tsr-home .tsr-band { padding: 62px 20px; }
.tsr-home .tsr-band--cream { background: var(--tsr-cream); }
.tsr-home .tsr-band--sand { background: var(--tsr-sand); }
.tsr-home .tsr-band--sand2 { background: var(--tsr-sand-2); }
.tsr-home .tsr-band--white { background: #fff; }
.tsr-home .tsr-band--gold { background: var(--tsr-gold); }
.tsr-home .tsr-band--blue { background: var(--tsr-blue); }

.tsr-home .tsr-inner { max-width: 1140px; margin: 0 auto; }
.tsr-home .tsr-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

.tsr-home h2.tsr-h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 700;
  color: var(--tsr-blue);
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.25;
}
.tsr-home .tsr-band--gold h2.tsr-h2,
.tsr-home .tsr-band--blue h2.tsr-h2 { color: #fff; }

.tsr-home .tsr-sub {
  text-align: center;
  color: var(--tsr-muted);
  max-width: 780px;
  margin: 0 auto 34px;
  font-size: 1.02rem;
  line-height: 1.65;
}
.tsr-home .tsr-band--gold .tsr-sub,
.tsr-home .tsr-band--blue .tsr-sub { color: rgba(255,255,255,0.94); }

/* --- Hero --- */
.tsr-home .tsr-hero {
  position: relative;
  padding: 96px 20px 88px;
  background: var(--tsr-blue) url("/wp-content/uploads/2026/05/carro-funebre-mercedes-allestito.webp") center/cover no-repeat;
  text-align: center;
}
.tsr-home .tsr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 30, 44, 0.66);
}
.tsr-home .tsr-hero > * { position: relative; }
.tsr-home .tsr-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
  line-height: 1.2;
  margin: 0 auto 18px;
  max-width: 16em;
}
.tsr-home .tsr-hero p {
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 28px;
}

/* --- Bottoni --- */
.tsr-home .tsr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.tsr-home .tsr-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.tsr-home .tsr-btn:hover,
.tsr-home .tsr-btn:focus { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.tsr-home .tsr-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tsr-home .tsr-btn--gold { background: var(--tsr-gold); color: #fff; }
.tsr-home .tsr-btn--wa { background: #25d366; color: #fff; }
.tsr-home .tsr-btn--blue { background: var(--tsr-blue); color: #fff; }

/* --- Griglie --- */
.tsr-home .tsr-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.tsr-home .tsr-grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* --- Card tratte --- */
.tsr-home .tsr-route {
  display: block;
  background: #fff;
  border: 1px solid #e4d9c6;
  border-left: 3px solid var(--tsr-gold);
  border-radius: 3px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.tsr-home .tsr-route:hover,
.tsr-home .tsr-route:focus {
  box-shadow: 0 6px 20px rgba(35, 74, 94, 0.13);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.tsr-home .tsr-route h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--tsr-blue);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.tsr-home .tsr-route p { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--tsr-muted); }
.tsr-home .tsr-flag { width: 24px; height: auto; display: inline-block; vertical-align: middle; border-radius: 2px; }

/* --- Card servizi / passaggi --- */
.tsr-home .tsr-card {
  background: #fff;
  border: 1px solid #ece2d2;
  border-radius: 3px;
  padding: 26px 22px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
a.tsr-card:hover, a.tsr-card:focus {
  box-shadow: 0 6px 20px rgba(35, 74, 94, 0.13);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.tsr-home .tsr-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--tsr-blue);
  margin: 0 0 8px;
}
.tsr-home .tsr-ico {
  display: block;
  font-size: 2.05rem;
  line-height: 1;
  color: var(--tsr-gold);
  margin-bottom: 14px;
}
.tsr-home .tsr-route h3 .tsr-ico-inline {
  font-size: 1.05rem;
  color: var(--tsr-gold);
  margin-right: 3px;
}
.tsr-home .tsr-card p { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--tsr-muted); }
.tsr-home .tsr-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tsr-gold);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* --- Gallerie --- */
.tsr-home .tsr-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.tsr-home .tsr-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

/* --- Aree servite --- */
.tsr-home .tsr-areas { text-align: center; }
.tsr-home .tsr-areas h3 {
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tsr-gold);
  margin: 0 0 12px;
  font-weight: 700;
}
.tsr-home .tsr-areas + .tsr-areas { margin-top: 30px; }
.tsr-home .tsr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tsr-home .tsr-links li { margin: 0; }
.tsr-home .tsr-links a {
  display: inline-block;
  padding: 7px 15px;
  background: var(--tsr-sand-2);
  border: 1px solid #e6dac6;
  border-radius: 40px;
  font-size: 0.9rem;
  color: var(--tsr-blue);
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.tsr-home .tsr-links a:hover,
.tsr-home .tsr-links a:focus { background: var(--tsr-gold); border-color: var(--tsr-gold); color: #fff; text-decoration: none; }

/* --- Guide --- */
.tsr-home .tsr-guides { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.tsr-home .tsr-guide {
  display: block;
  background: #fff;
  border: 1px solid #e8ddcb;
  border-radius: 3px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.tsr-home .tsr-guide:hover,
.tsr-home .tsr-guide:focus { border-color: var(--tsr-gold); box-shadow: 0 5px 16px rgba(35,74,94,0.1); text-decoration: none; color: inherit; }
.tsr-home .tsr-guide strong { display: block; color: var(--tsr-blue); font-size: 1rem; margin-bottom: 5px; }
.tsr-home .tsr-guide span { font-size: 0.89rem; color: var(--tsr-muted); line-height: 1.55; }

/* --- Chiusura --- */
.tsr-home .tsr-closing { text-align: center; }
.tsr-home .tsr-closing p { color: rgba(255,255,255,0.94); font-size: 1.05rem; max-width: 700px; margin: 0 auto 26px; line-height: 1.65; }

@media (max-width: 640px) {
  .tsr-home .tsr-band { padding: 46px 16px; }
  .tsr-home .tsr-hero { padding: 68px 16px 62px; }
  .tsr-home .tsr-gallery img { height: 180px; }
  .tsr-home .tsr-btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tsr-home .tsr-btn,
  .tsr-home .tsr-route,
  .tsr-home .tsr-card,
  .tsr-home .tsr-guide { transition: none; }
  .tsr-home .tsr-btn:hover,
  .tsr-home .tsr-route:hover,
  .tsr-home a.tsr-card:hover { transform: none; }
}
