:root {
  --blue: #123765;
  --blue-2: #0a2a52;
  --soft-blue: #6f89aa;
  --cream: #f8f4ed;
  --line: rgba(18, 55, 101, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", serif;
  color: var(--blue-2);
  background: var(--cream);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-call,
.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 890px;
  padding-bottom: 80px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(247, 250, 255, 0.98) 0%,
      rgba(247, 250, 255, 0.91) 30%,
      rgba(247, 250, 255, 0.48) 53%,
      rgba(247, 250, 255, 0.03) 78%
    ),
    url("img/hero-angelo.png") center right / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 17% 45%,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.34) 28%,
      transparent 43%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.15),
      rgba(248, 244, 237, 0.3)
    );
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 300px 1fr 260px;
  align-items: center;
  height: 128px;
  padding: 0 6.7vw;
  color: var(--blue);
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 230px;
  height: auto;
}

.logo img {
    width: 230px;
    height: auto;
    display: block;
}

.brand-text .eyebrow {
  margin-bottom: 7px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.brand-text .name {
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 3px;
  white-space: nowrap;
}

.brand-text .since {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-top: 13px;
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-text .since::before,
.brand-text .since::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: flex-start;
  gap: 34px;
  margin-left: 0;
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.phone {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 15px;
  height: 66px;
  padding-left: 34px;
  border-left: 1px solid var(--line);
  color: var(--blue);
  font-family: "Cinzel", serif;
}

.phone-icon {
  font-size: 22px;
  line-height: 1;
}

.phone b {
  display: block;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.phone small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-copy {
    position: relative;
    z-index: 3;
    width: 560px;
    margin: 85px 0 0 14vw;
    text-align: center;
    color: var(--blue);
}

.hero-copy h1 {
  margin-bottom: 34px;
  font-size: 94px;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -1.5px;
}

.ornament {
    width: 122px;
    height: 1px;
    background: var(--line);
    margin: 0 auto 28px;
    position: relative;
}

.ornament::after {
  content: "✦";
  position: absolute;
  top: -13px;
  right: -42px;
  color: var(--soft-blue);
  font-size: 23px;
}

.hero-copy p {
    font-size: 22px;
    line-height: 1.38;
    letter-spacing: .2px;
    max-width: 400px;
    margin: 0 auto 27px;
    color: var(--blue-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 220px;
  padding: 17px 32px;
  color: #fff;
  background: linear-gradient(135deg, #123765, #0b2a51);
  box-shadow: 0 14px 32px rgba(7, 35, 70, 0.22);
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.btn span {
  margin-top: -2px;
  font-size: 20px;
}

.intro {
  position: relative;
  z-index: 8;
  min-height: 280px;
  margin-top: 0;
  padding: 90px 7vw 70px;
  background:
    linear-gradient(
      90deg,
      rgba(248, 244, 237, 0.52),
      rgba(248, 244, 237, 0.94) 36%,
      rgba(248, 244, 237, 1) 100%
    ),
    url("fiori-laterali.jpg") left bottom / 385px auto no-repeat;
  box-shadow: 0 -18px 55px rgba(255, 255, 255, 0.6);
}

.intro-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 30px;
  min-height: 150px;
}

.claim {
  padding-top: 4px;
  color: var(--blue-2);
  text-align: center;
}

.claim .leaf {
  margin-bottom: 13px;
  color: var(--soft-blue);
  font-size: 32px;
}

.claim h2 {
  margin-bottom: 14px;
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.mini-line {
  width: 48px;
  height: 1px;
  margin: 0 auto 12px;
  background: var(--line);
}

.claim p {
  color: #3d4755;
  font-size: 18px;
  line-height: 1.43;
}

.contact-card {
  position: relative;
  padding:42px 34px;
  justify-self: end;
  width: 265px;
  padding: 24px 20px 22px;
  border: 1px solid var(--line);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.23);
  text-align: center;
}

.contact-card::before {
  content: "☎";
  position: absolute;
  top: -19px;
  left: 50%;
  padding: 0 19px;
  color: var(--blue);
  background: var(--cream);
  font-size: 21px;
  transform: translateX(-50%);
}

.contact-card small {
  display: block;
  margin-bottom: 13px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.contact-card b {
  display: block;
  margin-bottom: 5px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 1px;
}

.contact-card span {
  font-size: 15px;
}

.services {
  padding-top:70px;
  padding-bottom:45px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 78px;
  padding: 22px 0 23px;
}

.service {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 62px;
  border-right: 1px solid var(--line);
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 1.25px;
  text-align: left;
  text-transform: uppercase;
}

.service:last-child {
  border-right: none;
}

.service svg {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.55;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding: 120px 7vw;
  background: #fff;
}

.about h3 {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 57px;
  font-weight: 500;
  line-height: 1;
}

.about p {
  color: #3d4755;
  font-size: 20px;
  line-height: 1.65;
}

.box {
  padding: 38px 42px;
  border: 1px solid rgba(18, 55, 101, 0.13);
  background: var(--cream);
  box-shadow: 0 25px 80px rgba(18, 55, 101, 0.13);
}

.box div {
  color: var(--blue);
  font-size: 22px;
  line-height: 1.8;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  padding: 22px 7vw;
  color: #fff;
  background: linear-gradient(135deg, #123765, #08274d);
  font-size: 15px;
  letter-spacing: 0.7px;
}

footer span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  margin-left: 34px;
  background: rgba(255, 255, 255, 0.38);
  vertical-align: middle;
}

/* =========================
   RESPONSIVE HOME
========================= */

@media (max-width: 1200px) {
  .topbar {
    grid-template-columns: minmax(190px, 260px) 1fr minmax(170px, 230px);
    padding: 0 clamp(32px, 5vw, 80px);
  }

  .nav {
    gap: clamp(20px, 2vw, 30px);
    font-size: 13px;
  }

  .phone {
    padding-left: 22px;
  }

  .phone b {
    font-size: 18px;
  }

  .hero-copy {
    margin-left: clamp(24px, 9vw, 130px);
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    height: 110px;
  }

  .nav,
  .phone {
    display: none;
  }

  .hero {
    min-height: 780px;
    background-position: 65% center;
  }

  .hero-copy {
    width: min(560px, calc(100% - 48px));
    margin: 90px auto 0;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(58px, 9vw, 76px);
  }

  .intro-main {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-card {
    justify-self: center;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .service {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 900px;
    background-position: 67% center;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 34px 24px 0;
  }

  .nav,
  .phone,
  .brand-text {
    display: none;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .logo {
    display: flex;
    justify-content: center;
    width: 220px;
    height: auto;
  }

  .logo img {
    display: block;
    width: 220px;
    height: auto;
    margin: 0 auto;
  }

  .mobile-call {
    position: absolute;
    top: 38px;
    left: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(18, 55, 101, 0.16);
    border-radius: 50%;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(18, 55, 101, 0.08);
  }

  .mobile-call svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .menu-toggle {
    position: absolute;
    top: 42px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--blue);
    border-radius: 20px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 172px;
    left: 0;
    z-index: 998;
    display: none;
    width: 100%;
    padding: 34px 24px 38px;
    border-top: 1px solid rgba(18, 55, 101, 0.08);
    background: rgba(248, 244, 237, 0.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 22px;
    text-align: center;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu a {
    color: var(--blue);
    font-family: "Cinzel", serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .hero-copy {
    width: calc(100% - 48px);
    margin: 100px auto 0;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 13vw, 56px);
    line-height: 0.95;
  }

  .ornament {
    margin: 0 auto 28px;
  }

  .hero-copy p {
    max-width: 360px;
    margin: 0 auto 27px;
    font-size: 20px;
  }

  .intro {
    padding: 70px 24px 60px;
    background-size: 270px auto;
  }

  .claim h2 {
    font-size: 17px;
    letter-spacing: 4px;
  }

  .services {
    grid-template-columns: 1fr;
    padding-top: 55px;
    padding-bottom: 35px;
  }

  .about {
    padding: 90px 24px;
  }

  .about h3 {
    font-size: clamp(38px, 10vw, 43px);
  }

  footer {
    gap: 10px;
    text-align: center;
  }

  footer span::after {
    display: none !important;
  }
}


/* =========================
   PAGINE INTERNE
========================= */

.page-hero {
  position: relative;
  min-height: clamp(890px, 92vh, 900px);
  padding-bottom: 80px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(247, 250, 255, 0.98) 0%,
      rgba(247, 250, 255, 0.91) 30%,
      rgba(247, 250, 255, 0.48) 53%,
      rgba(247, 250, 255, 0.03) 78%
    ),
    url("img/hero-angelo.png") center right / cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 23% 47%,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.38) 30%,
      transparent 48%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.10),
      rgba(248, 244, 237, 0.32)
    );
}

.page-hero-copy {
  position: relative;
  z-index: 3;
  width: min(640px, calc(100% - 48px));
  margin: clamp(80px, 9vh, 110px) 0 0 clamp(24px, 12vw, 190px);
  color: var(--blue);
  text-align: center;
}

.page-kicker {
  display: block;
  margin-bottom: 18px;
  font-family: "Cinzel", serif;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 5px;
  text-transform: uppercase;
}

.page-hero-copy h1 {
  margin-bottom: 30px;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -1px;
}

.page-hero-copy p {
  max-width: 480px;
  margin: 0 auto 28px;
  color: var(--blue-2);
  font-size: clamp(20px, 1.5vw, 22px);
  line-height: 1.45;
}

.gallery-section {
  padding: clamp(70px, 8vw, 96px) 7vw;
  background: var(--cream);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 54px;
  color: var(--blue-2);
  text-align: center;
}

.section-heading .leaf {
  margin-bottom: 14px;
  color: var(--soft-blue);
  font-size: 34px;
}

.section-heading h2 {
  margin-bottom: 18px;
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-heading p {
  color: #3d4755;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}

.flower-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.flower-card {
  overflow: hidden;
  border: 1px solid rgba(18, 55, 101, 0.12);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 24px 70px rgba(18, 55, 101, 0.10);
}

.flower-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.flower-card div {
  padding: 28px 26px 30px;
}

.flower-card h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.flower-card p {
  color: #3d4755;
  font-size: 18px;
  line-height: 1.45;
}

.page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(52px, 5vw, 70px) 7vw;
  background: #fff;
}

.page-cta h2 {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.page-cta p {
  color: #3d4755;
  font-size: 20px;
}

@media (max-width: 980px) {
  .page-hero {
    min-height: 760px;
    background-position: 65% center;
  }

  .page-hero-copy {
    width: min(620px, calc(100% - 48px));
    margin: 90px auto 0;
  }

  .flower-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .page-hero {
    min-height: 860px;
    background-position: 67% center;
  }

  .page-hero-copy {
    width: calc(100% - 48px);
    margin: 105px auto 0;
  }

  .page-kicker {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .page-hero-copy h1 {
    font-size: 44px;
    line-height: 1.02;
  }

  .page-hero-copy p {
    max-width: 360px;
    font-size: 20px;
  }

  .gallery-section {
    padding: 68px 24px 76px;
  }

  .flower-grid {
    grid-template-columns: 1fr;
  }

  .page-cta {
    padding: 52px 24px;
  }
}


/* =========================
   GALLERIA FIORI
========================= */

.flowers-gallery {
  padding: clamp(80px, 8vw, 120px) 7vw;
  background: #f8f4ed;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 70px;
  text-align: center;
}

.section-intro h2 {
  margin-bottom: 22px;
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: clamp(4px, 0.5vw, 6px);
  text-transform: uppercase;
}

.section-intro p {
  color: var(--blue-2);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  image-rendering: auto;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .flowers-gallery {
    padding: 70px 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-intro {
    margin-bottom: 48px;
  }
}

/* =========================
   NECROLOGI
========================= */

.obituaries-section {
  padding: clamp(80px, 8vw, 120px) 7vw;
  background: var(--cream);
}

.obituaries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.obituary-card {
  padding: 46px 34px;
  border: 1px solid rgba(18, 55, 101, 0.13);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 70px rgba(18, 55, 101, 0.08);
  text-align: center;
}

.obituary-cross {
  margin-bottom: 22px;
  color: var(--soft-blue);
  font-size: 30px;
}

.obituary-card h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.obituary-date {
  margin-bottom: 24px;
  color: var(--soft-blue);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.obituary-text {
  margin-bottom: 30px;
  color: #3d4755;
  font-size: 19px;
  line-height: 1.55;
}

.obituary-link {
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

@media (max-width: 900px) {
  .obituaries-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .obituaries-section {
    padding: 70px 24px;
  }

  .obituaries-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .obituary-card {
    padding: 42px 26px;
  }

  .obituary-card h3 {
    font-size: 31px;
  }
}

.services-list {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 36px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.service-row span {
  color: var(--soft-blue);
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 3px;
}

.service-row h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 38px;
  font-weight: 500;
}

.service-row p {
  max-width: 620px;
  color: #3d4755;
  font-size: 20px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 36px 0;
  }

  .service-row h3 {
    font-size: 32px;
  }

  .service-row p {
    font-size: 19px;
  }
}

/* =========================
   CREMAZIONI
========================= */

.cremation-blog-section {
  padding: clamp(80px, 8vw, 120px) 7vw;
  background: var(--cream);
}

.cremation-blog {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(50px, 6vw, 90px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 100px;
}

.cremation-blog-text {
  color: var(--blue);
}

.small-label {
  display: block;
  margin-bottom: 24px;
  color: var(--soft-blue);
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.cremation-blog-text h3 {
  margin-bottom: 30px;
  color: var(--blue);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 500;
  line-height: 1;
}

.cremation-blog-text p {
  max-width: 620px;
  margin-bottom: 22px;
  color: #3d4755;
  font-size: 21px;
  line-height: 1.65;
}

.cremation-blog-image {
  border: 1px solid rgba(18, 55, 101, 0.13);
  background: rgba(255, 255, 255, 0.55);
  padding: 26px;
}

.cremation-blog-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cremation-list {
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .cremation-blog {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .cremation-blog-text {
    text-align: center;
  }

  .cremation-blog-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .cremation-blog-image {
    order: -1;
  }
}

@media (max-width: 620px) {
  .cremation-blog-section {
    padding: 70px 24px;
  }

  .cremation-blog-text h3 {
    font-size: 40px;
  }

  .cremation-blog-text p {
    font-size: 19px;
  }

  .cremation-blog-image {
    padding: 16px;
  }
}

/* =========================
   CONTATTI
========================= */

.contacts-section {
  padding: clamp(90px, 9vw, 140px) 7vw;
  background: var(--cream);
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.contacts-text h2 {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 500;
  line-height: 1;
}

.contacts-text p {
  max-width: 620px;
  margin-bottom: 22px;
  color: #3d4755;
  font-size: 21px;
  line-height: 1.65;
}

.contacts-card {
  padding: 46px 42px;
  border: 1px solid rgba(18, 55, 101, 0.13);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 24px 70px rgba(18, 55, 101, 0.08);
}

.contacts-card div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contacts-card div:first-child {
  padding-top: 0;
}

.contacts-card div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.contacts-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--soft-blue);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contacts-card a,
.contacts-card span {
  color: var(--blue);
  font-size: 27px;
  line-height: 1.25;
}

.map-section {
  padding: 0 7vw clamp(90px, 8vw, 130px);
  background: var(--cream);
}

.map-box {
  max-width: 1180px;
  height: 430px;
  margin: 0 auto;
  border: 1px solid rgba(18, 55, 101, 0.13);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) saturate(0.85);
}

.contact-final {
  padding: clamp(80px, 8vw, 120px) 24px;
  background: #fff;
  text-align: center;
}

.contact-final h2 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
}

.contact-final p {
  max-width: 620px;
  margin: 0 auto 34px;
  color: #3d4755;
  font-size: 21px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .contacts-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contacts-text h2,
  .contacts-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .contacts-card {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .contacts-section {
    padding: 70px 24px;
  }

  .contacts-card {
    padding: 36px 26px;
  }

  .contacts-card a,
  .contacts-card span {
    font-size: 23px;
  }

  .map-section {
    padding: 0 24px 70px;
  }

  .map-box {
    height: 360px;
  }
}

/* =========================================================
   FIX MOBILE GLOBALE - ALLINEAMENTO HERO, LOGO E MENU
   Questo blocco deve stare in fondo al file.
========================================================= */

@media (max-width: 620px) {

  html,
  body {
    overflow-x: hidden;
  }

  .hero,
  .page-hero {
    min-height: 820px;
    padding-bottom: 56px;
    background-position: 68% center;
  }

  .topbar {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 26px 24px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-text,
  .nav,
  .phone {
    display: none !important;
  }

  .logo {
    width: 190px;
    height: auto;
    display: flex;
    justify-content: center;
  }

  .logo img {
    width: 190px;
    height: auto;
    max-width: 190px;
    margin: 0 auto;
    display: block;
  }

  .mobile-call {
    position: fixed;
    top: 38px;
    left: 24px;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(18, 55, 101, 0.16);
    border-radius: 50%;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(18, 55, 101, 0.08);
  }

  .mobile-call svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .menu-toggle {
    position: fixed;
    top: 43px;
    right: 24px;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 27px;
    height: 2px;
    background: var(--blue);
    border-radius: 20px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 998;
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 175px 24px 60px;
    background:
      linear-gradient(
        180deg,
        rgba(248, 244, 237, 0.97) 0%,
        rgba(248, 244, 237, 0.985) 100%
      );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    text-align: center;
    border-top: none;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu a {
    color: var(--blue);
    font-family: "Cinzel", serif;
    font-size: 15px;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .hero-copy,
  .page-hero-copy {
    width: calc(100% - 48px);
    margin: 58px auto 0;
    text-align: center;
  }

  .page-kicker {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 3px;
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    margin-bottom: 28px;
    font-size: clamp(44px, 12vw, 54px);
    line-height: 0.96;
    letter-spacing: -0.8px;
  }

  .hero-copy p,
  .page-hero-copy p {
    max-width: 360px;
    margin: 0 auto 28px;
    font-size: 20px;
    line-height: 1.45;
  }

  .btn {
    min-width: min(100%, 470px);
    padding: 18px 30px;
    font-size: 13px;
  }

  .ornament {
    margin: 0 auto 28px;
  }

  .intro {
    padding: 70px 24px 60px;
    background-size: 270px auto;
  }

  .services {
    grid-template-columns: 1fr;
    margin-top: 54px;
    padding-top: 50px;
    padding-bottom: 35px;
  }

  .about {
    padding: 90px 24px;
  }

  .about h3 {
    font-size: clamp(38px, 10vw, 43px);
  }
}

/* Mobile più stretto: evita testi giganti e pulsanti tagliati */
@media (max-width: 390px) {
  .logo,
  .logo img {
    width: 175px;
    max-width: 175px;
  }

  .hero-copy,
  .page-hero-copy {
    margin-top: 48px;
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p,
  .page-hero-copy p {
    font-size: 19px;
  }

  .mobile-menu {
    padding-top: 165px;
    gap: 26px;
  }
}

/* =========================================================
   FIX FINALE MOBILE HEADER
   Logo compatto, area clic ridotta, telefono/logo/menu allineati.
   Questo blocco deve restare SEMPRE in fondo al file.
========================================================= */

@media (max-width: 620px) {
  .topbar {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 108px;
    padding: 0 24px;
    pointer-events: none;
  }

  .brand {
    width: auto !important;
    flex: 0 0 auto;
    justify-content: center;
    pointer-events: auto;
  }

  .logo {
    width: 172px !important;
    max-width: 172px !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(1px);
    pointer-events: auto;
  }

  .logo img {
    width: 172px !important;
    max-width: 172px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    pointer-events: none;
  }

  .mobile-call {
    position: fixed;
    top: 31px;
    left: 24px;
    z-index: 1004;
    pointer-events: auto;
  }

  .menu-toggle {
    position: fixed;
    top: 42px;
    right: 24px;
    z-index: 1004;
    pointer-events: auto;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 998;
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 165px 24px 60px;
    background:
      linear-gradient(
        180deg,
        rgba(248, 244, 237, 0.97) 0%,
        rgba(248, 244, 237, 0.985) 100%
      );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    text-align: center;
    border-top: none;
  }

  .mobile-menu.active {
    display: flex;
  }
}

@media (max-width: 390px) {
  .logo,
  .logo img {
    width: 160px !important;
    max-width: 160px !important;
  }

  .mobile-call {
    top: 31px;
    left: 22px;
  }

  .menu-toggle {
    top: 42px;
    right: 22px;
  }
}

/* =========================
   HERO BUTTONS
========================= */

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-outline {
  color: var(--blue);
  background: transparent;
  border: 1px solid rgba(18, 55, 101, 0.22);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(18, 55, 101, 0.05);
}

@media (max-width: 620px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 360px;
  }
}

.whatsapp-btn img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(18%) sepia(34%) saturate(1482%) hue-rotate(186deg) brightness(91%) contrast(92%);
}