:root {
  --home-cream: #f8f5ea;
  --home-ink: #062d21;
  --home-green: #00b96b;
  --home-green-bright: #00e884;
  --home-soft-green: #e9fff4;
}

html { scroll-behavior: smooth; }
body { margin: 0; color: var(--home-ink); background: var(--home-cream); }
body.menu-open { overflow: hidden; }

.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px clamp(18px, 2.7vw, 42px) 0;
  background: linear-gradient(to bottom, rgba(248,245,234,.98), rgba(248,245,234,.92) 76%, transparent);
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 10px 14px 10px 30px;
  border: 1px solid #dfe5df;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 15px 30px rgba(8,44,32,.08);
}

.logo { display: inline-flex; align-items: center; }
.logo img { width: 190px; height: auto; display: block; }

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(23px, 2.6vw, 42px);
  padding-inline: 24px;
}
.desktop-nav > a,
.guide-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 18px;
  border: 0;
  background: transparent;
  color: var(--home-ink);
  font: 800 18px/1 var(--famyro-font-heading, Poppins, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.desktop-nav > a:hover,
.desktop-nav > a:focus-visible,
.guide-menu-trigger:hover,
.guide-menu-trigger:focus-visible { background: var(--home-soft-green); color: #007b49; }
.nav-icon { display: inline-grid; place-items: center; width: 24px; color: #00a960; font-size: 24px; line-height: 1; }
.nav-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-chevron { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s ease; }
.guide-menu-trigger[aria-expanded="true"] { padding-inline: 18px; border-radius: 18px; background: var(--home-soft-green); color: #008852; }
.guide-menu-trigger[aria-expanded="true"] .guide-chevron { transform: rotate(180deg); }

.topbar-actions { display: flex; align-items: center; gap: 18px; }
.header-login { color: var(--home-ink); font: 800 18px/1 var(--famyro-font-heading, Poppins, sans-serif); text-decoration: none; }
.register-button,
.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  border: 2px solid var(--home-ink);
  border-radius: 17px;
  padding: 0 25px;
  font: 800 17px/1 var(--famyro-font-heading, Poppins, sans-serif);
  text-decoration: none;
}
.register-button { min-width: 184px; background: var(--home-green-bright); color: var(--home-ink); box-shadow: 5px 6px 0 var(--home-ink); }

.guide-menu { position: relative; }
.guide-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(650px, 76vw);
  padding: 30px 28px 28px;
  border: 1.5px solid var(--home-ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 10px 12px 0 var(--home-ink);
}
.guide-menu-panel[hidden] { display: none; }
.guide-menu-eyebrow { margin: 0 0 8px; color: #00824e; font: 900 14px/1.2 var(--famyro-font-heading, Poppins, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.guide-menu-title { margin: 0 0 24px; font: 900 clamp(24px, 2.3vw, 31px)/1.1 var(--famyro-font-heading, Poppins, sans-serif); }
.guide-menu-columns { display: grid; grid-template-columns: 1.05fr .95fr; }
.guide-menu-links { display: grid; gap: 16px; padding-right: 34px; }
.guide-category-link { display: flex; align-items: center; gap: 13px; color: var(--home-ink); font: 800 18px/1.2 var(--famyro-font-heading, Poppins, sans-serif); text-decoration: none; }
.guide-category-link span { color: #00824e; font-size: 20px; }
.guide-coming-list { display: grid; gap: 30px; padding-left: 36px; border-left: 1px solid #d9dfdc; }
.guide-coming-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #63776f; font: 800 18px/1.12 var(--famyro-font-heading, Poppins, sans-serif); }
.guide-coming-row span { border: 1px solid #cdd6d1; border-radius: 999px; padding: 6px 11px; font-size: 13px; white-space: nowrap; }
.guide-menu-all { display: inline-flex; margin-top: 30px; color: #00824e; font: 900 17px/1 var(--famyro-font-heading, Poppins, sans-serif); text-decoration: none; }

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

.home-hero {
  overflow: hidden;
  background: radial-gradient(circle at 66% 34%, rgba(255,255,255,.85), rgba(255,255,255,0) 34%), var(--home-cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(460px, .94fr);
  align-items: center;
  gap: clamp(24px, 2.6vw, 46px);
  max-width: 1480px;
  min-height: 610px;
  margin: 0 auto;
  padding: 40px clamp(38px, 4vw, 68px) 30px;
}
.hero-copy { position: relative; z-index: 2; min-width: 0; max-width: 780px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: #007f4b; font: 900 14px/1 var(--famyro-font-heading, Poppins, sans-serif); letter-spacing: .1em; text-transform: uppercase; }
.hero-eyebrow span { width: 11px; height: 11px; flex: 0 0 11px; border: 0; border-radius: 50%; background: #139b4e; box-shadow: 0 0 0 8px #e3f2e9; }
.hero-copy h1 { margin: 0; max-width: 780px; font: 900 clamp(48px, 4.45vw, 70px)/.98 var(--famyro-font-heading, Poppins, sans-serif); letter-spacing: -.055em; }
.hero-copy h1 em { color: #36b873; font-style: normal; white-space: nowrap; }
.hero-lead { max-width: 630px; margin: 26px 0 0; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.hero-primary { background: #008c52; color: #fff; box-shadow: 5px 6px 0 var(--home-ink); }
.hero-secondary { background: #fff; color: var(--home-ink); box-shadow: 3px 4px 0 var(--home-ink); }
.hero-primary,
.hero-secondary {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.hero-primary:hover,
.hero-secondary:hover {
  transform: translate(2px, 2px);
}
.hero-primary:hover { box-shadow: 3px 4px 0 var(--home-ink); background: #007f4b; }
.hero-secondary:hover { box-shadow: 1px 2px 0 var(--home-ink); background: #f8fffB; }
.hero-primary:focus-visible,
.hero-secondary:focus-visible { outline: 3px solid #00c879; outline-offset: 4px; }
.social-proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.social-proof img { width: 100px; height: auto; object-fit: contain; }
.social-proof p { margin: 0; font-size: 14px; line-height: 1.35; }
.social-proof strong { font-family: var(--famyro-font-heading, Poppins, sans-serif); font-weight: 900; }
.hero-visual {
  position: relative;
  align-self: start;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
  margin-top: 6px;
  isolation: isolate;
}
.hero-visual img {
  display: block;
  width: min(118%, 930px);
  max-width: none;
  margin-right: -28px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(1, 47, 35, .12));
}
.next-section-marker { min-height: 160px; padding: 20px 0 70px; background: #fff; }
.next-section-marker h2 { margin: 0; text-align: center; font-size: clamp(28px, 3vw, 42px); }

@media (max-width: 1160px) {
  .desktop-nav { gap: 18px; padding-inline: 18px; }
  .desktop-nav > a, .guide-menu-trigger { font-size: 16px; }
  .logo img { width: 165px; }
  .register-button { min-width: 160px; }
  .hero-inner { grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); }
  .hero-copy h1 { max-width: 700px; font-size: clamp(42px, 4.35vw, 58px); }
  .hero-visual img { width: min(114%, 840px); margin-right: -20px; }
}

@media (max-width: 980px) {
  .topbar-shell { padding: 10px 14px 0; }
  .site-header { grid-template-columns: 1fr auto; min-height: 66px; padding: 7px 8px 7px 20px; border-radius: 20px; }
  .logo img { width: 145px; }
  .desktop-nav, .topbar-actions { display: none; }
  .mobile-menu-toggle {
    display: grid;
    place-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--home-ink);
    border-radius: 14px;
    background: #00c879;
    box-shadow: 3px 4px 0 var(--home-ink);
    cursor: pointer;
  }
  .mobile-menu-toggle span { width: 21px; height: 2.5px; margin: 2.5px 0; border-radius: 4px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 14px;
    border: 1.5px solid var(--home-ink);
    border-radius: 20px;
    background: #fff;
    box-shadow: 7px 8px 0 var(--home-ink);
  }
  .mobile-menu-panel[hidden] { display: none; }
  .mobile-menu-panel > a,
  .guide-mobile-menu > summary { display: flex; align-items: center; justify-content: space-between; min-height: 51px; padding: 0 12px; border-bottom: 1px solid #e4e9e6; color: var(--home-ink); font: 800 17px/1.2 var(--famyro-font-heading, Poppins, sans-serif); text-decoration: none; cursor: pointer; }
  .guide-mobile-menu > summary { list-style: none; }
  .guide-mobile-menu > summary::-webkit-details-marker { display: none; }
  .guide-mobile-menu[open] > summary { border-radius: 13px; background: var(--home-soft-green); color: #00824e; }
  .guide-mobile-panel { display: grid; gap: 8px; padding: 10px 8px 14px; }
  .guide-mobile-panel a,
  .mobile-coming { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 0 11px; border-radius: 10px; color: var(--home-ink); font: 700 15px/1.2 var(--famyro-font-heading, Poppins, sans-serif); text-decoration: none; }
  .guide-mobile-panel a:hover { background: #f4f8f6; }
  .mobile-coming { color: #6b7b74; }
  .mobile-coming small { border: 1px solid #cfd8d3; border-radius: 999px; padding: 4px 8px; }
  .mobile-all-guides { color: #00824e !important; }
  .mobile-menu-panel .register-button { margin-top: 12px; border-bottom: 2px solid var(--home-ink); color: var(--home-ink); }

  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 44px 24px 48px; }
  .hero-copy { max-width: 720px; }
  .hero-copy h1 { max-width: 620px; font-size: clamp(42px, 7vw, 58px); }
  .hero-copy h1 em { white-space: normal; }
  .hero-visual { display: none; }
}

@media (max-width: 640px) {
  .topbar-shell { padding-inline: 12px; }
  .site-header { min-height: 60px; padding-left: 15px; border-radius: 18px; }
  .logo img { width: 132px; }
  .mobile-menu-toggle { width: 44px; height: 44px; border-radius: 12px; box-shadow: 2px 3px 0 var(--home-ink); }
  .home-hero { background: var(--home-cream); }
  .hero-inner { padding: 32px 24px 42px; }
  .hero-eyebrow { margin-bottom: 19px; font-size: 12px; }
  .hero-copy h1 { font-size: clamp(36px, 11.4vw, 49px); line-height: 1; letter-spacing: -.05em; }
  .hero-lead { margin-top: 22px; font-size: 17px; line-height: 1.52; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .hero-primary, .hero-secondary { min-height: 50px; padding-inline: 13px; border-radius: 12px; font-size: 14px; gap: 8px; box-shadow: 3px 4px 0 var(--home-ink); }
  .social-proof { margin-top: 22px; gap: 10px; }
  .social-proof img { width: 88px; }
  .social-proof p { font-size: 12px; }
  .next-section-marker { padding-top: 18px; }
}

@media (max-width: 390px) {
  .hero-inner { padding-inline: 18px; }
  .hero-copy h1 { font-size: clamp(34px, 10.8vw, 43px); }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-primary, .hero-secondary { width: 100%; }
}

/* Step 02.2 — Social proof e categorie */
.social-proof img {
  width: 132px;
  max-width: 36vw;
}

.home-categories {
  padding: 56px clamp(20px, 4vw, 64px) 74px;
  background: #fff;
  border-top: 1px solid rgba(6, 45, 33, .08);
}

.categories-inner {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font: 900 clamp(30px, 3vw, 44px)/1.08 var(--famyro-font-heading, Poppins, sans-serif);
  letter-spacing: -.035em;
}

.section-heading p {
  margin: 10px 0 0;
  color: #52675f;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid #e1e6e3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(6, 45, 33, .06);
  color: var(--home-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card:not(.is-coming):hover {
  transform: translateY(-5px);
  border-color: rgba(0, 140, 82, .42);
  box-shadow: 0 16px 30px rgba(6, 45, 33, .11);
}

.category-card:not(.is-coming):focus-visible {
  outline: 3px solid var(--home-green-bright);
  outline-offset: 4px;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e7faef;
  color: #008b51;
}

.category-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card--couple .category-icon { background: #fff0f1; color: #ef4b57; }
.category-card--family .category-icon { background: #edf3ff; color: #3569d4; }
.category-card--budget .category-icon { background: #fff6de; color: #e89500; }
.category-card--saving .category-icon { background: #f1eaff; color: #7951cf; }
.category-card--deadlines .category-icon { background: #e8f8ed; color: #16894d; }

.category-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.category-content strong {
  font: 900 19px/1.15 var(--famyro-font-heading, Poppins, sans-serif);
}

.category-content small {
  display: block;
  margin-top: 9px;
  color: #52675f;
  font-size: 13px;
  line-height: 1.5;
}

.category-link,
.category-badge {
  margin-top: auto;
  padding-top: 18px;
  font: 800 13px/1.1 var(--famyro-font-heading, Poppins, sans-serif);
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #00824e;
}

.category-card:hover .category-link span { transform: translateX(4px); }
.category-link span { transition: transform .2s ease; }

.category-badge {
  align-self: flex-start;
  color: #6a7a73;
}

.category-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #aab5b0;
}

.category-card.is-coming {
  background: #fbfcfb;
}

@media (max-width: 1240px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-card { min-height: 230px; }
}

@media (max-width: 760px) {
  .home-categories { padding: 42px 18px 56px; }
  .section-heading { margin-bottom: 22px; text-align: left; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-card { min-height: 208px; padding: 18px 15px 16px; border-radius: 17px; }
  .category-icon { width: 50px; height: 50px; margin-bottom: 14px; }
  .category-icon svg { width: 26px; height: 26px; }
  .category-content strong { font-size: 17px; }
  .category-content small { font-size: 12px; line-height: 1.42; }
  .category-link, .category-badge { padding-top: 14px; font-size: 12px; }
}

@media (max-width: 420px) {
  .home-categories { padding-inline: 14px; }
  .category-grid { gap: 10px; }
  .category-card { min-height: 194px; padding: 15px 12px 14px; }
  .category-content small { font-size: 11.5px; }
  .category-link { gap: 4px; }
}


/* Step 02.3 — allineamento heading e icone unificate */
.section-heading p { text-align: center; }
.menu-icon { display:inline-grid; place-items:center; width:22px; height:22px; flex:0 0 22px; color:#00824e; }
.menu-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.guide-category-link:hover .menu-icon, .desktop-nav > a:hover .nav-icon { transform: translateY(-1px); }
.menu-icon, .nav-icon { transition: transform .18s ease, color .18s ease; }
@media (max-width:760px){ .section-heading { text-align:center; } .section-heading p { max-width:34rem; margin-inline:auto; } }
.mobile-menu-panel > a { justify-content:flex-start; gap:12px; }
.guide-mobile-panel a { justify-content:flex-start; gap:11px; }
.guide-mobile-panel .mobile-all-guides { justify-content:space-between; }
.mobile-menu-panel .nav-icon { width:22px; flex:0 0 22px; }


/* Step 02.6 — refine guide menu, hero visual hover and larger mockup */
.menu-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:24px;height:24px;color:currentColor}
.menu-icon svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.guide-category-link{transition:color .18s ease,transform .18s ease}
.guide-category-link .menu-icon{transition:color .18s ease,transform .18s ease}
@media (hover:hover){
  .guide-category-link:hover,
  .guide-category-link:focus-visible{color:#07985a;transform:translateX(2px)}
  .guide-category-link:hover .menu-icon,
  .guide-category-link:focus-visible .menu-icon{color:#00b266;transform:scale(1.06)}
  .guide-menu-all:hover,
  .guide-menu-all:focus-visible{color:#07985a;transform:translateX(2px)}
}
.guide-category-link:focus-visible,.guide-menu-all:focus-visible{outline:3px solid #7cf0b5;outline-offset:4px;border-radius:10px}
.guide-menu-all{font-weight:600;transition:color .18s ease,transform .18s ease}
.mobile-all-guides{font-weight:600}
.hero-visual{overflow:visible}
.hero-visual::before{content:"";position:absolute;left:11%;right:9%;bottom:7%;height:20%;border-radius:12px;background:radial-gradient(circle at center,rgba(0,212,116,.28),rgba(0,212,116,0) 72%);filter:blur(18px);opacity:.45;z-index:-1;transition:opacity .25s ease,transform .25s ease}
.hero-visual img{width:min(126%,1000px);transition:transform .28s ease,filter .28s ease}
@media (hover:hover){
  .hero-visual:hover::before{opacity:.95;transform:scale(1.04)}
  .hero-visual:hover img{transform:translateY(-6px) translateX(4px) scale(1.025);filter:drop-shadow(0 22px 44px rgba(5,95,56,.24))}
}
@media (prefers-reduced-motion:reduce){
  .guide-category-link,.guide-menu-all,.guide-category-link .menu-icon,.hero-visual::before,.hero-visual img{transition:none}
}


/* Step 02.7 — desktop nav hover polish */
.desktop-nav > a .nav-icon,.guide-menu-trigger .nav-icon{transition:color .18s ease,transform .18s ease}
.desktop-nav > a:hover .nav-icon,.desktop-nav > a:focus-visible .nav-icon,.guide-menu-trigger:hover .nav-icon,.guide-menu-trigger:focus-visible .nav-icon{color:#00ae64;transform:translateY(-1px)}


/* Step 02.8 — category emphasis and premium hero shine */
.home-categories .section-heading{margin-bottom:30px;text-align:center}
.home-categories .section-heading p{max-width:42rem;margin:12px auto 0;text-align:center}
.category-grid{gap:18px}
.category-card{border-color:#d8e1dc;box-shadow:0 14px 30px rgba(6,45,33,.09),0 1px 0 rgba(255,255,255,.9) inset;background:linear-gradient(180deg,#ffffff 0%,#fcfefd 100%)}
.category-card::before{content:"";position:absolute;inset:0 0 auto 0;height:72px;background:linear-gradient(180deg,rgba(233,255,244,.65),rgba(233,255,244,0));opacity:.55;pointer-events:none}
.category-card:not(.is-coming):hover{transform:translateY(-6px);border-color:rgba(0,140,82,.5);box-shadow:0 20px 38px rgba(6,45,33,.13)}
.category-card.is-coming{background:linear-gradient(180deg,#fbfdfc 0%,#f8fbf9 100%)}
.hero-visual{isolation:isolate}
.hero-visual::after{content:"";position:absolute;top:-8%;left:-36%;width:34%;height:120%;background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.08) 26%,rgba(255,255,255,.72) 48%,rgba(255,255,255,.08) 70%,rgba(255,255,255,0) 100%);transform:skewX(-18deg) translateX(0);opacity:0;pointer-events:none;mix-blend-mode:screen;filter:blur(1px);z-index:2}
@media (hover:hover){
  .hero-visual:hover::after{opacity:1;animation:homeHeroShine .85s ease forwards}
}
@keyframes homeHeroShine{0%{transform:skewX(-18deg) translateX(0);opacity:0}12%{opacity:.9}100%{transform:skewX(-18deg) translateX(430%);opacity:0}}
@media (max-width:760px){
  .home-categories .section-heading,.home-categories .section-heading p{text-align:center}
  .home-categories .section-heading p{max-width:30rem}
  .category-card{box-shadow:0 10px 24px rgba(6,45,33,.08)}
}
@media (prefers-reduced-motion:reduce){
  .hero-visual::after{animation:none;transition:none}
}


/* Step 02.9 — solid-shadow category cards */
.category-card{
  border:2px solid #062d21;
  box-shadow:7px 8px 0 #062d21;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.category-card.is-coming{border-color:#52675f;box-shadow:7px 8px 0 #52675f}
@media (hover:hover){
  .category-card:hover{transform:translate(4px,4px)}
  .category-card:not(.is-coming):hover{border-color:#062d21;box-shadow:3px 4px 0 #062d21}
  .category-card.is-coming:hover{box-shadow:3px 4px 0 #52675f}
}
.category-card:active{transform:translate(7px,8px);box-shadow:0 0 0 #062d21}
@media (max-width:760px){
  .category-card,.category-card.is-coming{box-shadow:5px 6px 0 #062d21}
}
@media (prefers-reduced-motion:reduce){.category-card{transition:none}}


/* Step 03.0 — lighter category shadows and larger card content */
.category-card{box-shadow:5px 6px 0 #062d21}
.category-card.is-coming{box-shadow:5px 6px 0 #52675f}
.category-icon{width:66px;height:66px}
.category-icon svg{width:35px;height:35px}
.category-content small{font-size:14px;line-height:1.55}
@media (hover:hover){
  .category-card:hover{transform:translate(3px,3px)}
  .category-card:not(.is-coming):hover{box-shadow:2px 3px 0 #062d21}
  .category-card.is-coming:hover{box-shadow:2px 3px 0 #52675f}
}
@media (max-width:760px){
  .category-card,.category-card.is-coming{box-shadow:4px 5px 0 #062d21}
  .category-icon{width:56px;height:56px}
  .category-icon svg{width:30px;height:30px}
  .category-content small{font-size:12.5px}
}


/* Step 03.6 — category cards restyled as colorful dynamic panels */
.home-categories .category-grid{
  gap:22px;
  align-items:start;
}
.home-categories .category-card > a,
.home-categories .category-card > a:link,
.home-categories .category-card > a:visited,
.home-categories .category-card > a:hover,
.home-categories .category-card > a:focus,
.home-categories .category-card > a:active{
  display:flex;
  flex:1;
  flex-direction:column;
  color:inherit;
  text-decoration:none;
}
.home-categories .category-card > a *{
  text-decoration:none;
}

.home-categories .category-card{
  overflow:visible;
  border:2px solid #062d21;
  color:#062d21;
  box-shadow:7px 8px 0 #062d21;
  background:#ffffff;
  isolation:isolate;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,filter .22s ease;
}
.home-categories .category-card::before{
  opacity:0;
}
.home-categories .category-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 45%);
  pointer-events:none;
}
.home-categories .category-card .category-icon{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  width:100%;
  height:68px;
  margin-bottom:13px;
  background:none;
  border-radius:0;
  backdrop-filter:none;
}
.home-categories .category-card .category-icon img{
  display:block;
  width:auto;
  max-width:70px;
  max-height:66px;
  height:auto;
  object-fit:contain;
}
.home-categories .category-content strong{
  font-size:20px;
  letter-spacing:-.02em;
}
.home-categories .category-content small{
  margin-top:10px;
  color:rgba(6,45,33,.78);
  font-size:14px;
  line-height:1.52;
}
.home-categories .category-link,
.home-categories .category-badge{
  color:#062d21;
  font-size:14px;
  font-weight:900;
}
.home-categories .category-badge::before{
  background:currentColor;
  opacity:.55;
}
.home-categories .category-card--single{
  background:#b8f247;
  transform:rotate(-1.3deg) translateY(-8px);
}
.home-categories .category-card--couple{
  background:#ff9f93;
  transform:rotate(.9deg) translateY(14px);
}
.home-categories .category-card--family{
  background:#afc8ff;
  transform:rotate(-1deg) translateY(4px);
}
.home-categories .category-card--budget{
  background:#ffd95b;
  transform:rotate(1.1deg) translateY(16px);
}
.home-categories .category-card--saving{
  background:#d7c6ff;
  transform:rotate(-.9deg) translateY(-2px);
}
.home-categories .category-card--deadlines{
  background:#bfeecf;
  transform:rotate(1deg) translateY(12px);
}
.home-categories .category-card--single .category-icon{color:#108651;}
.home-categories .category-card--couple .category-icon{color:#e54d63;}
.home-categories .category-card--family .category-icon{color:#3c67d8;}
.home-categories .category-card--budget .category-icon{color:#d69000;}
.home-categories .category-card--saving .category-icon{color:#7b58cd;}
.home-categories .category-card--deadlines .category-icon{color:#16894d;}
@media (hover:hover){
  .home-categories .category-card:hover{
    filter:saturate(1.03);
  }
  .home-categories .category-card--single:hover{transform:rotate(-.4deg) translateY(-14px) scale(1.01);}
  .home-categories .category-card--couple:hover{transform:rotate(.25deg) translateY(6px) scale(1.01);}
  .home-categories .category-card--family:hover{transform:rotate(-.25deg) translateY(-4px) scale(1.01);}
  .home-categories .category-card--budget:hover{transform:rotate(.25deg) translateY(8px) scale(1.01);}
  .home-categories .category-card--saving:hover{transform:rotate(-.2deg) translateY(-8px) scale(1.01);}
  .home-categories .category-card--deadlines:hover{transform:rotate(.2deg) translateY(4px) scale(1.01);}
  .home-categories .category-card:hover{box-shadow:4px 5px 0 #062d21;border-color:#062d21;}
}
.home-categories .category-card:focus-visible{
  outline:3px solid rgba(255,255,255,.95);
  outline-offset:4px;
}
@media (max-width:1240px){
  .home-categories .category-grid{gap:18px;}
}
@media (max-width:760px){
  .home-categories .category-grid{gap:14px;}
  .home-categories .category-card{transform:none!important;box-shadow:5px 6px 0 #062d21;}
  .home-categories .category-card .category-icon{height:60px;margin-bottom:10px;}
  .home-categories .category-card .category-icon img{max-width:58px;max-height:58px;}
  .home-categories .category-content strong{font-size:18px;}
  .home-categories .category-content small{font-size:13px;}
}
@media (prefers-reduced-motion:reduce){
  .home-categories .category-card{transition:none;}
}


/* Step 03.8 — featured guides, how it works and final CTA */
.home-section-inner{width:min(1480px,calc(100% - 64px));margin-inline:auto}
.home-featured{padding:72px 0 64px;background:#fff}
.home-section-heading{margin-bottom:30px;text-align:center}
.home-section-heading--row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;text-align:left}
.home-section-heading h2{margin:0;color:#062d21;font:800 clamp(31px,3vw,46px)/1.08 var(--famyro-font-heading,Poppins,sans-serif);letter-spacing:-.04em}
.home-section-heading p{margin:9px 0 0;color:#52675f;font-size:17px;line-height:1.5}
.home-featured .home-section-heading>div{width:100%;text-align:center}
.home-featured .home-section-heading p{text-align:center}
.home-section-link{display:inline-flex;align-items:center;gap:8px;color:#07864e;font:600 17px/1.2 var(--famyro-font-heading,Poppins,sans-serif);text-decoration:none;transition:color .18s ease,transform .18s ease}
.home-featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.home-featured-grid article{min-width:0}
.home-guide-card{display:flex;height:100%;flex-direction:column;overflow:hidden;border:1px solid #dfe6e2;border-radius:18px;background:#fff;box-shadow:0 12px 28px rgba(6,45,33,.07);color:#17372e;text-decoration:none;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.home-guide-card-media{position:relative;overflow:hidden}
.home-guide-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .26s ease}
.home-guide-readtime{position:absolute;right:13px;bottom:13px;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid #d8e1dc;border-radius:11px;background:rgba(255,255,255,.97);box-shadow:0 6px 16px rgba(6,45,33,.10);color:#17372e;font:700 13px/1 var(--famyro-font-heading,Poppins,sans-serif)}
.home-guide-category,.home-guide-card h3,.home-guide-card p,.home-guide-action{margin-inline:18px}
.home-guide-category{margin-top:15px;color:#07864e;font:900 12px/1.2 var(--famyro-font-heading,Poppins,sans-serif);letter-spacing:.05em;text-transform:uppercase}
.home-guide-card h3{margin-top:10px;margin-bottom:9px;font:800 19px/1.25 var(--famyro-font-heading,Poppins,sans-serif);letter-spacing:-.025em;transition:color .18s ease}
.home-guide-card p{margin-top:0;margin-bottom:16px;color:#52675f;font-size:14px;line-height:1.55}
.home-guide-action{display:inline-flex;align-items:center;gap:8px;margin-top:auto;margin-bottom:20px;color:#07864e;font:700 14px/1.2 var(--famyro-font-heading,Poppins,sans-serif)}
.home-guide-action span{transition:transform .18s ease}
.home-how{padding:68px 0 72px;background:#f8f5ea}
.home-how-grid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px}
.home-how-grid::before{content:"";position:absolute;top:58px;left:17%;right:17%;border-top:2px dashed rgba(0,134,80,.25);z-index:0}
.home-how-step{position:relative;z-index:1;display:grid;grid-template-columns:auto auto 1fr;gap:14px;align-items:start;padding:22px;border:1px solid #dfe7e2;border-radius:20px;background:#fff;box-shadow:0 10px 24px rgba(6,45,33,.06)}
.home-how-number{position:absolute;top:-14px;left:18px;display:grid;place-items:center;width:34px;height:34px;border:2px solid #fff;border-radius:50%;background:#07864e;color:#fff;font:800 14px/1 var(--famyro-font-heading,Poppins,sans-serif);box-shadow:0 4px 12px rgba(6,45,33,.15)}
.home-how-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:#eaf9f0;color:#07864e}
.home-how-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-how-step h3{margin:3px 0 7px;font:800 18px/1.2 var(--famyro-font-heading,Poppins,sans-serif)}
.home-how-step p{margin:0;color:#52675f;font-size:14px;line-height:1.55}
.home-final-cta{padding:0 32px 68px;background:#f8f5ea}
.home-final-cta-inner{display:grid;grid-template-columns:1.05fr 1.1fr .85fr;align-items:center;gap:24px;width:min(1480px,100%);min-height:300px;margin-inline:auto;padding:34px 40px;overflow:hidden;border:2px solid #062d21;border-radius:24px;background:linear-gradient(135deg,#087244,#004d34);box-shadow:7px 8px 0 #062d21;color:#fff}
.home-final-copy h2{margin:0;font:800 clamp(28px,2.5vw,43px)/1.12 var(--famyro-font-heading,Poppins,sans-serif);letter-spacing:-.035em}
.home-final-copy p{max-width:520px;margin:18px 0 0;color:#d9f4e5;font-size:15px;line-height:1.6}
.home-final-visual{align-self:end;min-width:0}
.home-final-visual img{display:block;width:128%;max-width:none;margin:-22px -14% -50px;filter:drop-shadow(0 18px 28px rgba(0,0,0,.24))}
.home-final-action{display:grid;justify-items:stretch;text-align:center}
.home-final-action p{margin:0 0 14px;font-weight:700}
.home-final-action a{display:flex;align-items:center;justify-content:center;gap:12px;min-height:58px;border:2px solid #062d21;border-radius:14px;background:#00e884;color:#062d21;font:800 17px/1 var(--famyro-font-heading,Poppins,sans-serif);text-decoration:none;box-shadow:5px 6px 0 #062d21;transition:transform .18s ease,box-shadow .18s ease}
.home-final-action small{margin-top:14px;color:#d9f4e5}
@media (hover:hover){
  .home-section-link:hover,.home-section-link:focus-visible{color:#056b3e;transform:translateX(3px);outline:none}
  .home-guide-card:hover,.home-guide-card:focus-visible{transform:translateY(-8px) scale(1.01);border-color:#cbded5;box-shadow:0 20px 38px rgba(6,45,33,.13);outline:none}
  .home-guide-card:hover img,.home-guide-card:focus-visible img{transform:scale(1.045)}
  .home-guide-card:hover h3,.home-guide-card:focus-visible h3{color:#07864e}
  .home-guide-card:hover .home-guide-action span,.home-guide-card:focus-visible .home-guide-action span{transform:translateX(4px)}
  .home-final-action a:hover,.home-final-action a:focus-visible{transform:translate(2px,2px);box-shadow:3px 4px 0 #062d21;outline:none}
}
@media (max-width:1180px){
  .home-section-inner{width:min(100% - 40px,1100px)}
  .home-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-how-grid{gap:18px}
  .home-how-grid::before{display:none}
  .home-how-step{grid-template-columns:auto 1fr}
  .home-final-cta-inner{grid-template-columns:1fr 1fr}
  .home-final-action{grid-column:1/-1;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;text-align:left}
  .home-final-action p{margin:0}.home-final-action small{margin:0;text-align:right}
}
@media (max-width:760px){
  .home-section-inner{width:min(100% - 28px,680px)}
  .home-featured{padding:52px 0 48px}
  .home-section-heading--row{display:grid;align-items:start;text-align:center}
  .home-section-heading--row .home-section-link{justify-self:center}
  .home-featured-grid{grid-template-columns:1fr}
  .home-how{padding:50px 0 54px}
  .home-how-grid{grid-template-columns:1fr}
  .home-how-step{grid-template-columns:auto 1fr;padding:20px}
  .home-final-cta{padding:0 14px 48px}
  .home-final-cta-inner{grid-template-columns:1fr;padding:28px 24px 26px;text-align:center}
  .home-final-copy p{margin-inline:auto}
  .home-final-visual img{width:116%;margin:-12px -8% -36px}
  .home-final-action{grid-column:auto;grid-template-columns:1fr;text-align:center}
  .home-final-action small{text-align:center}
}
@media (max-width:420px){
  .home-section-inner{width:min(100% - 22px,390px)}
  .home-guide-card h3{font-size:18px}
  .home-how-step{grid-template-columns:1fr;text-align:center}
  .home-how-icon{margin-inline:auto}
  .home-final-cta-inner{padding-inline:19px}
}
@media (prefers-reduced-motion:reduce){
  .home-section-link,.home-guide-card,.home-guide-card img,.home-guide-card h3,.home-guide-action span,.home-final-action a{transition:none}
}


/* Step 03.9 — centered how subtitle and final CTA readability */
.home-how .home-section-heading p{
  max-width:44rem;
  margin:12px auto 0;
  text-align:center;
}
.home-final-copy h2{
  color:#fff7d6;
  text-shadow:0 2px 0 rgba(6,45,33,.18);
}
.home-final-copy p{
  color:#f2fbf6;
  font-size:17px;
  line-height:1.65;
}
.home-final-visual{
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  min-width:0;
}
.home-final-visual img{
  width:min(100%,560px);
  max-width:100%;
  height:auto;
  margin:0;
  object-fit:contain;
  aspect-ratio:auto;
  filter:drop-shadow(0 18px 28px rgba(0,0,0,.24));
}
.home-final-action p{
  margin:0 0 16px;
  color:#fff7d6;
  font-size:17px;
  line-height:1.4;
  font-weight:700;
}
.home-final-action a{
  background:#ffd95b;
  color:#062d21;
}
.home-final-action small{
  margin-top:16px;
  color:#fff;
  font-size:15px;
  line-height:1.45;
  font-weight:700;
}
@media (max-width:1180px){
  .home-final-visual img{width:min(100%,520px)}
  .home-final-action p{font-size:16px}
  .home-final-action small{font-size:14px}
}
@media (max-width:760px){
  .home-how .home-section-heading p{max-width:32rem}
  .home-final-copy h2{font-size:clamp(30px,9vw,42px)}
  .home-final-copy p{font-size:16px}
  .home-final-visual img{width:min(100%,480px);margin:4px auto 0}
  .home-final-action p{font-size:16px}
  .home-final-action small{font-size:14px}
}


/* Step 04.0 — final CTA visual balance */
.home-final-cta-inner{grid-template-columns:.95fr 1.22fr .83fr;gap:20px}
.home-final-copy h2{color:#fff;font-size:clamp(27px,2.2vw,38px);line-height:1.1}
.home-final-copy h2 span{color:#ffd95b}
.home-final-copy p{font-size:17px;line-height:1.62}
.home-final-visual img{width:min(116%,650px);max-width:none}
.home-final-action small{font-size:17px;line-height:1.45;font-weight:800}
@media (max-width:1180px){
  .home-final-cta-inner{grid-template-columns:1fr 1.08fr}
  .home-final-visual img{width:min(108%,590px)}
  .home-final-action small{font-size:16px}
}
@media (max-width:760px){
  .home-final-cta-inner{grid-template-columns:1fr}
  .home-final-copy h2{font-size:clamp(29px,8.7vw,40px)}
  .home-final-visual img{width:min(108%,520px);max-width:108%}
  .home-final-action small{font-size:15px}
}


/* Step 04.1 — animated final CTA banner and stronger yellow highlights */
.home-final-cta-inner{
  position:relative;
  isolation:isolate;
  transition:transform .3s ease,box-shadow .3s ease,filter .3s ease;
}
.home-final-cta-inner::after{
  content:"";
  position:absolute;
  top:-18%;
  left:-34%;
  width:28%;
  height:136%;
  background:linear-gradient(105deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.06) 28%,rgba(255,255,255,.58) 50%,rgba(255,255,255,.08) 72%,rgba(255,255,255,0) 100%);
  transform:skewX(-18deg) translateX(0);
  opacity:0;
  pointer-events:none;
  mix-blend-mode:screen;
  filter:blur(1px);
  z-index:3;
}
.home-final-copy h2 span{
  color:#ffd95b!important;
  text-shadow:0 1px 0 rgba(6,45,33,.22);
}
@media (hover:hover){
  .home-final-cta-inner:hover{
    transform:translateY(-6px) scale(1.006);
    box-shadow:10px 13px 0 #062d21,0 22px 46px rgba(6,45,33,.2);
    filter:saturate(1.03);
  }
  .home-final-cta-inner:hover::after{
    opacity:1;
    animation:finalCtaShine .95s ease forwards;
  }
  .home-final-cta-inner:hover .home-final-visual img{
    transform:translateY(-5px) scale(1.025);
    filter:drop-shadow(0 24px 34px rgba(0,0,0,.28));
  }
}
.home-final-visual img{transition:transform .3s ease,filter .3s ease}
@keyframes finalCtaShine{
  0%{transform:skewX(-18deg) translateX(0);opacity:0}
  12%{opacity:.9}
  100%{transform:skewX(-18deg) translateX(520%);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .home-final-cta-inner,.home-final-cta-inner::after,.home-final-visual img{transition:none;animation:none!important}
}


/* Step 04.3 — mobile final CTA tighter action copy and larger mockup */
@media (max-width:760px){
  .home-final-visual img{
    width:min(124%,560px);
    max-width:124%;
    margin:2px -12% -4px;
  }
  .home-final-action{
    gap:0;
  }
  .home-final-action p{
    margin:0 0 7px;
  }
  .home-final-action small{
    margin-top:8px;
  }
}
@media (max-width:420px){
  .home-final-visual img{
    width:130%;
    max-width:130%;
    margin-inline:-15%;
  }
  .home-final-action p{margin-bottom:6px}
  .home-final-action small{margin-top:7px}
}


/* Step 04.4 — desktop banner scale and compact-on-scroll header */
@media (min-width:981px){
  .desktop-nav{gap:10px}
  .desktop-nav .guide-menu{margin-right:34px}
  .topbar-shell,.site-header,.logo img,.desktop-nav> a,.guide-menu-trigger,.register-button{transition:padding .24s ease,min-height .24s ease,max-width .24s ease,width .24s ease,font-size .24s ease,border-radius .24s ease,box-shadow .24s ease,transform .24s ease}
  .topbar-shell.is-compact{padding-top:8px}
  .topbar-shell.is-compact .site-header{min-height:68px;max-width:1370px;padding:7px 12px 7px 24px;border-radius:22px;box-shadow:0 12px 24px rgba(8,44,32,.09)}
  .topbar-shell.is-compact .logo img{width:166px}
  .topbar-shell.is-compact .desktop-nav> a,
  .topbar-shell.is-compact .guide-menu-trigger{min-height:42px;font-size:16px;padding-inline:15px}
  .topbar-shell.is-compact .register-button{min-height:50px;min-width:166px;font-size:16px;border-radius:15px}
  .topbar-shell.is-compact .header-login{font-size:17px}
  .home-final-visual img{width:min(132%,760px);max-width:none}
}
@media (min-width:981px) and (max-width:1280px){
  .desktop-nav{gap:8px}
  .desktop-nav .guide-menu{margin-right:22px}
  .home-final-visual img{width:min(120%,680px)}
}
@media (prefers-reduced-motion:reduce){
  .topbar-shell,.site-header,.logo img,.desktop-nav> a,.guide-menu-trigger,.register-button{transition:none}
}

/* Step 04.6 — raise the "Come funziona" section on desktop */
@media (min-width:1181px){
  .home-how{
    padding-top:38px;
  }
}



/* v5.1 — contenuti legacy visibili ma non navigabili */
.home-guide-card.is-coming{cursor:default;border-color:#d9e1dc;background:linear-gradient(180deg,#fff 0%,#f7faf8 100%)}
.home-guide-card.is-coming .home-guide-coming{display:inline-flex;width:max-content;padding:8px 12px;border-radius:999px;background:#eef3f0;color:#52675f;font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
@media (hover:hover){
  .home-guide-card.is-coming:hover{transform:none;border-color:#d9e1dc;box-shadow:0 12px 28px rgba(6,45,33,.07)}
  .home-guide-card.is-coming:hover img{transform:none}
  .home-guide-card.is-coming:hover h3{color:#17372e}
}

/* v5.2 — active Budget e Spese category */
/* v5.5 — card Budget interamente cliccabile e coerente con le altre */
.home-categories .category-card--budget{padding:0}
.home-categories .category-card--budget>a{
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  min-height:100%;
  padding:22px 20px 20px;
  border-radius:inherit;
  color:inherit;
  text-decoration:none;
}
.home-categories .category-card--budget>a *,
.home-categories .category-card--budget>a:hover,
.home-categories .category-card--budget>a:hover *{
  text-decoration:none;
}
.home-categories .category-card--budget .category-badge--active{
  display:inline-flex;
  align-items:center;
  gap:7px;
  width:max-content;
  padding-top:18px;
  background:transparent;
  color:#062d21;
  transition:transform .2s ease;
}
.home-categories .category-card--budget .category-badge--active::before{display:none}
.home-categories .category-card--budget>a:hover .category-badge--active{transform:translateX(3px)}
@media (max-width:760px){
  .home-categories .category-card--budget>a{padding:18px 15px 16px}
}
@media (max-width:430px){
  .home-categories .category-card--budget>a{padding:15px 12px 14px}
}

/* v6.32 — Hero Home Guide: titolo più compatto e mockup più a destra */
@media (min-width: 1161px) {
  .hero-copy h1 {
    max-width: 720px;
    font-size: clamp(46px, 4vw, 62px);
  }

  .hero-visual {
    transform: translateX(34px);
  }
}

/* v7.43 — freccia a L per il bottone hero "Esplora le guide" */
.hero-primary{
  gap:12px;
}
.hero-primary span[aria-hidden]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.05em;
  height:1.05em;
  margin-left:2px;
  font-size:0;
  line-height:1;
  transform:translateY(1px);
  flex:none;
}
.hero-primary span[aria-hidden]::before{
  content:"↴";
  font-size:18px;
  line-height:1;
  font-weight:900;
}

/* v7.47 — blindatura proporzioni card "Guide in primo piano" */
.home-featured-grid > article,
.home-featured-grid .home-guide-card{
  min-width:0;
  height:100%;
}
.home-featured-grid .home-guide-card{
  display:flex;
  flex-direction:column;
}
.home-featured-grid .home-guide-card-media{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  flex:0 0 auto;
  overflow:hidden;
}
.home-featured-grid .home-guide-card-media img{
  display:block;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  min-height:100% !important;
  object-fit:cover !important;
  object-position:center;
}
.home-featured-grid .home-guide-card h3,
.home-featured-grid .home-guide-card p{
  flex:0 0 auto;
}
.home-featured-grid .home-guide-action{
  margin-top:auto;
}
@media (max-width:760px){
  .home-featured-grid .home-guide-card-media{
    aspect-ratio:16 / 10;
  }
}

/* v7.53 — box home "Ultima pubblicazione" (solo desktop/tablet) */
.home-latest-publication{
  padding:0 0 12px;
  background:#fffdf8;
}
.home-latest-slot{display:block}
.home-latest-card{
  display:grid;
  grid-template-columns:minmax(0,1.62fr) minmax(320px,.98fr);
  gap:0;
  overflow:hidden;
  border:1px solid #dbe4df;
  border-radius:28px;
  background:#fff;
  box-shadow:0 18px 36px rgba(6,45,33,.08);
}
.home-latest-media{
  position:relative;
  display:block;
  min-height:100%;
  overflow:hidden;
  color:inherit;
  text-decoration:none;
  background:#e9efeb;
}
.home-latest-media img{
  display:block;
  width:100%;
  height:100%;
  min-height:360px;
  object-fit:cover;
  transition:transform .32s ease;
}
.home-latest-badge,
.home-latest-readtime{
  position:absolute;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 16px;
  border:1px solid #062d21;
  border-radius:12px;
  box-shadow:4px 5px 0 #062d21;
  font:900 12px/1.1 var(--famyro-font-heading,Poppins,sans-serif);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.home-latest-badge{
  left:20px;
  top:20px;
  background:#ffda57;
  color:#073726;
}
.home-latest-readtime{
  right:20px;
  bottom:20px;
  background:rgba(255,255,255,.96);
  color:#083c2a;
  letter-spacing:0;
  text-transform:none;
}
.home-latest-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  justify-content:center;
  padding:32px 30px;
}
.home-latest-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  color:#0a8a50;
  font:900 13px/1.2 var(--famyro-font-heading,Poppins,sans-serif);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.home-latest-kicker > span{
  width:12px;
  height:12px;
  border:3px solid #c8f4da;
  border-radius:999px;
  background:#00d982;
  flex:none;
}
.home-latest-copy h2{
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  color:#062d21;
  font:900 clamp(30px,2.65vw,42px)/1.05 var(--famyro-font-heading,Poppins,sans-serif);
  letter-spacing:-.045em;
  overflow-wrap:anywhere;
  word-break:normal;
}
.home-latest-copy p{
  margin:16px 0 0;
  color:#52675f;
  font-size:17px;
  line-height:1.6;
}
.home-latest-meta{
  display:grid;
  gap:14px;
  margin-top:22px;
}
.home-latest-author{
  display:flex;
  align-items:center;
  gap:12px;
}
.home-latest-author strong,
.home-latest-author small{
  display:block;
}
.home-latest-author strong{
  color:#17372e;
  font-size:14px;
  line-height:1.12;
}
.home-latest-author small{
  margin-top:2px;
  color:#60726b;
  font-size:12px;
  line-height:1.12;
}
.home-latest-author-icon{
  position:relative;
  width:42px;
  height:42px;
  overflow:hidden;
  border-radius:50%;
  background:#dff6e9;
  flex:none;
}
.home-latest-author-icon img{
  position:absolute;
  inset:0 auto 0 0;
  width:210px;
  max-width:none;
  height:42px;
  object-fit:contain;
  object-position:left center;
}
.home-latest-date{
  color:#4f645d;
  font-size:13px;
  font-weight:800;
}
.home-latest-link{
  display:inline-flex;
  align-items:center;
  gap:12px;
  width:max-content;
  min-height:50px;
  margin-top:24px;
  padding:0 18px;
  border:1px solid #062d21;
  border-radius:12px;
  background:#fff9d7;
  box-shadow:4px 5px 0 #062d21;
  color:#062d21;
  font-weight:900;
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease;
}
.home-latest-link span[aria-hidden]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.05em;
  height:1.05em;
  font-size:18px;
  line-height:1;
}
@media (hover:hover){
  .home-latest-card:hover .home-latest-media img,
  .home-latest-media:focus-visible img{transform:scale(1.035)}
  .home-latest-card:hover h2,
  .home-latest-media:focus-visible + .home-latest-copy h2{color:#07864e}
  .home-latest-link:hover,
  .home-latest-link:focus-visible{transform:translateY(-2px);box-shadow:5px 6px 0 #062d21;background:#ffe985;outline:none}
}
@media (max-width:1080px){
  .home-latest-card{grid-template-columns:minmax(0,1.34fr) minmax(280px,1fr)}
  .home-latest-media img{min-height:320px}
  .home-latest-copy{padding:26px 24px}
  .home-latest-copy h2{font-size:clamp(28px,3vw,36px)}
  .home-latest-copy p{font-size:15px}
}
@media (max-width:767px){
  .home-latest-publication{
    display:block;
    padding:28px 0 34px;
  }
  .home-latest-card{
    grid-template-columns:1fr;
    border-radius:20px;
  }
  .home-latest-media{
    min-height:0;
    aspect-ratio:16 / 10;
  }
  .home-latest-media img{
    min-height:0;
    height:100%;
  }
  .home-latest-badge,
  .home-latest-readtime{
    min-height:34px;
    padding:0 12px;
    font-size:10px;
    box-shadow:3px 4px 0 #062d21;
  }
  .home-latest-badge{left:14px;top:14px}
  .home-latest-readtime{
    right:18px;
    bottom:18px;
    min-width:58px;
    min-height:32px;
    padding:0 10px;
    border-radius:10px;
    box-shadow:3px 3px 0 #062d21;
  }
  .home-latest-copy{padding:22px 18px 24px}
  .home-latest-kicker{margin-bottom:12px;font-size:11px}
  .home-latest-copy h2{
    font-size:clamp(27px,8vw,36px);
    line-height:1.06;
  }
  .home-latest-copy p{
    margin-top:12px;
    font-size:14px;
    line-height:1.5;
  }
  .home-latest-meta{margin-top:18px}
  .home-latest-link{
    width:auto;
    min-height:44px;
    margin:20px 4px 0;
    padding:0 16px;
    justify-content:space-between;
    border-radius:10px;
    box-shadow:3px 4px 0 #062d21;
  }
}
@media (prefers-reduced-motion:reduce){
  .home-latest-media img,.home-latest-link{transition:none}
}

/* v7.54 — separatori sfumati e pulsante Mostra altre */
.home-latest-publication{
  position:relative;
  padding-top:48px;
  padding-bottom:48px;
}
.home-latest-publication::before,
.home-latest-publication::after{
  content:"";
  position:absolute;
  left:50%;
  width:min(1180px,calc(100% - 56px));
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,rgba(6,45,33,0),rgba(6,45,33,.22) 18%,rgba(6,45,33,.22) 82%,rgba(6,45,33,0));
}
.home-latest-publication::before{top:18px}
.home-latest-publication::after{bottom:18px}
.home-latest-meta{margin-top:22px}
.home-featured-grid > article[hidden]{display:none!important}
.home-featured-more-wrap{
  display:flex;
  justify-content:center;
  margin-top:30px;
}
.home-featured-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:0 22px;
  border:2px solid #062d21;
  border-radius:14px;
  background:#fff9d7;
  box-shadow:4px 5px 0 #062d21;
  color:#062d21;
  font:900 15px/1 var(--famyro-font-heading,Poppins,sans-serif);
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease;
}
.home-featured-more span{font-size:18px;line-height:1}
.home-featured-more:hover,
.home-featured-more:focus-visible{
  transform:translateY(-2px);
  box-shadow:5px 6px 0 #062d21;
  background:#ffe985;
  outline:none;
}
.home-featured-more[hidden]{display:none!important}
@media (max-width:767px){
  .home-latest-publication::before,
  .home-latest-publication::after{display:none}
}
@media (prefers-reduced-motion:reduce){
  .home-featured-more{transition:none}
}

/* v7.81.6 — centratura reale heading Guide in primo piano */
.home-featured .home-section-heading {
  display: grid;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.home-featured .home-section-heading > div {
  display: grid;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.home-featured .home-section-heading h2,
.home-featured .home-section-heading p {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* v7.82.6 — rifinitura definitiva card Ultima pubblicazione mobile */
@media (max-width:767px){
  .home-latest-readtime{
    right:14px;
    bottom:14px;
    min-width:54px;
    min-height:30px;
    padding:0 9px;
    border-radius:9px;
    box-shadow:2px 3px 0 #062d21;
  }

  .home-latest-copy{
    min-width:0;
    padding:20px 14px 22px;
  }

  .home-latest-copy h2{
    max-width:100%;
    font-size:clamp(24px,7.25vw,31px);
    line-height:1.04;
    letter-spacing:-.045em;
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .home-latest-link{
    align-self:flex-start;
    width:auto;
    min-width:0;
    min-height:42px;
    margin:18px 0 0;
    padding:0 16px;
    justify-content:center;
    gap:10px;
    border-radius:9px;
    box-shadow:2px 3px 0 #062d21;
  }

  .home-latest-link span[aria-hidden]{
    width:auto;
    height:auto;
    font-size:16px;
  }
}

/* v7.83.4 — testo nota CTA finale leggermente più grande */
.home-final-action small{
  font-size:14px;
  line-height:1.35;
  font-weight:400;
}
@media (max-width:760px){
  .home-final-action small{
    font-size:13px;
    line-height:1.3;
    font-weight:400;
    white-space:nowrap;
  }
}

/* v7.176 — Badge categoria card: più piccolo, leggero, con puntino Famyro */
.home-guide-category{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:calc(100% - 36px);
  gap:8px;
  font-size:11px;
  font-weight:500;
  line-height:1.3;
  letter-spacing:.06em;
}
.home-guide-category::before{
  content:"";
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#139B4E;
  box-shadow:0 0 0 4px rgba(19,155,78,.13);
}
.home-latest-kicker{
  gap:8px;
  font-size:11px;
  font-weight:500;
  line-height:1.3;
  letter-spacing:.06em;
}
.home-latest-kicker > span{
  width:6px;
  height:6px;
  flex:0 0 6px;
  border:0;
  background:#139B4E;
  box-shadow:0 0 0 4px rgba(19,155,78,.13);
}
