/* Famyro Area Guide — category page v1.0 */
:root{--cat-ink:#13231c;--cat-green:#00e884;--cat-soft:#eafff4;--cat-cream:#fff9ec;--cat-yellow:#ffd95b;--cat-border:#18352a}
body{background:#fff;color:var(--cat-ink)}
.category-breadcrumb a,
.category-primary,
.category-primary span,
.category-guide--featured a,
.category-guide--featured a *,
.category-guide-copy b,
.category-cta a,
.category-cta a span {
  text-decoration: none;
}

.category-breadcrumb a:hover,
.category-primary:hover,
.category-guide--featured a:hover,
.category-guide--featured a:hover *,
.category-cta a:hover {
  text-decoration: none;
}
.category-shell{width:min(1160px,calc(100% - 40px));margin-inline:auto}.category-hero{padding:56px 0 72px;background:linear-gradient(135deg,#f5fff9 0%,#fffaf0 100%);border-bottom:1px solid #dcebe4}.category-breadcrumb{display:flex;gap:10px;align-items:center;margin-bottom:44px;font-size:14px;font-weight:600;color:#607269}.category-breadcrumb a{color:#168457}.category-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:70px;align-items:center}.category-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 18px;text-transform:uppercase;letter-spacing:.11em;font-size:13px;font-weight:800;color:#007b49}.category-eyebrow span{width:12px;height:12px;border-radius:50%;background:var(--cat-green);box-shadow:0 0 0 7px rgba(0,232,132,.16);flex:none}.category-hero h1{margin:0;font-size:clamp(46px,6vw,78px);line-height:.98;letter-spacing:-.055em}.category-hero h1 em{font-style:normal;color:#00a960}.category-lead{max-width:690px;margin:26px 0 32px;font-size:19px;line-height:1.65;color:#53665d}.category-primary{display:inline-flex;align-items:center;gap:12px;padding:15px 22px;border:2px solid var(--cat-border);border-radius:14px;background:var(--cat-yellow);box-shadow:5px 5px 0 var(--cat-border);font-weight:800;transition:.2s ease}.category-primary:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 var(--cat-border)}.category-visual{min-height:330px;border:2px solid var(--cat-border);border-radius:34px;background:var(--cat-green);box-shadow:12px 12px 0 var(--cat-border);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;transform:rotate(2deg)}.category-visual-icon{display:grid;place-items:center;width:118px;height:118px;border:2px solid var(--cat-border);border-radius:30px;background:#fff}.category-visual svg{width:64px;fill:none;stroke:currentColor;stroke-width:1.8}.category-visual strong{margin-top:24px;font-size:34px}.category-visual small{font-size:21px;font-weight:700}.category-guides{padding:86px 0}.category-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:34px}.category-heading p{margin:0 0 8px;color:#008d54;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:13px}.category-heading h2{margin:0;font-size:clamp(34px,4vw,52px);letter-spacing:-.04em}.category-heading>span{padding:8px 12px;border-radius:999px;background:var(--cat-soft);font-size:13px;font-weight:700;color:#06794a}.category-grid{display:grid;grid-template-columns:1.35fr .825fr .825fr;gap:24px}.category-guide{border:2px solid var(--cat-border);border-radius:24px;background:#fff;box-shadow:6px 6px 0 var(--cat-border);overflow:hidden}.category-guide--featured a{display:block;height:100%}.category-guide-media{position:relative;aspect-ratio:16/10;overflow:hidden}.category-guide-media img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.category-guide-media span{position:absolute;right:14px;top:14px;padding:7px 10px;border:2px solid var(--cat-border);border-radius:10px;background:#fff;font-size:12px;font-weight:800}.category-guide-copy{padding:24px}.category-guide-copy small,.category-guide.is-coming>small{color:#008d54;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.category-guide h3{margin:10px 0 12px;font-size:25px;line-height:1.14;letter-spacing:-.03em}.category-guide p{margin:0;color:#596c62;line-height:1.65}.category-guide-copy b{display:inline-block;margin-top:20px}.category-guide--featured a:hover img{transform:scale(1.04)}.category-guide--featured a:hover h3{color:#008d54}.category-guide.is-coming{padding:28px;background:var(--cat-cream);display:flex;flex-direction:column;align-items:flex-start}.coming-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:22px;border:2px solid var(--cat-border);border-radius:15px;background:var(--cat-yellow);font-size:30px;font-weight:700}.category-guide.is-coming>span{margin-top:auto;padding-top:24px;font-weight:800;color:#8b6c05}.category-method{padding:10px 0 90px}.category-method-card{display:grid;grid-template-columns:1.2fr .8fr;gap:54px;align-items:center;padding:42px;border:2px solid var(--cat-border);border-radius:28px;background:var(--cat-soft);box-shadow:8px 8px 0 var(--cat-border)}.category-method-card p:first-child{margin:0 0 10px;text-transform:uppercase;letter-spacing:.08em;font-size:13px;font-weight:800;color:#008d54}.category-method-card h2{margin:0;font-size:clamp(30px,4vw,46px);line-height:1.08;letter-spacing:-.04em}.category-method-card>p{font-size:18px;line-height:1.7;color:#52675d}.category-cta{padding:42px 0;background:#162b22;color:#fff}.category-cta .category-shell{display:flex;justify-content:space-between;align-items:center;gap:30px}.category-cta strong{font-size:28px}.category-cta p{margin:7px 0 0;color:#d8e8e0}.category-cta a{flex:none;padding:14px 20px;border:2px solid #fff;border-radius:14px;background:var(--cat-yellow);color:#14251d;font-weight:800;box-shadow:5px 5px 0 #fff}.category-cta a:hover{transform:translate(-2px,-2px)}
@media(max-width:900px){.category-hero-grid,.category-method-card{grid-template-columns:1fr}.category-visual{min-height:260px}.category-grid{grid-template-columns:1fr 1fr}.category-guide--featured{grid-column:1/-1}.category-cta .category-shell{align-items:flex-start}}
@media(max-width:640px){.category-shell{width:min(100% - 28px,1160px)}.category-hero{padding:28px 0 52px}.category-breadcrumb{margin-bottom:30px}.category-hero-grid{gap:38px}.category-hero h1{font-size:47px}.category-lead{font-size:17px}.category-visual{min-height:235px;border-radius:25px;box-shadow:7px 7px 0 var(--cat-border)}.category-visual-icon{width:88px;height:88px}.category-visual svg{width:48px}.category-visual strong{font-size:28px}.category-guides{padding:62px 0}.category-heading{align-items:flex-start;flex-direction:column}.category-grid{grid-template-columns:1fr}.category-guide--featured{grid-column:auto}.category-method{padding-bottom:68px}.category-method-card{padding:28px;gap:22px;box-shadow:6px 6px 0 var(--cat-border)}.category-method-card>p{font-size:16px}.category-cta{padding:36px 0}.category-cta .category-shell{flex-direction:column}.category-cta a{width:100%;justify-content:center;text-align:center}}
@media(prefers-reduced-motion:reduce){.category-primary,.category-guide-media img,.category-cta a{transition:none}}


/* Step 05.0 — visual hero categoria Budget e Spese */
.category-visual--image {
  position: relative;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  transform: none;
  animation: categoryVisualFloat 5.4s ease-in-out infinite;
  padding: 14px;
}

.category-visual--image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: 0;
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 22px 30px rgba(5, 74, 45, .20));
  transition: transform .32s ease, filter .32s ease;
}

.category-visual--image::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -12%;
  left: -42%;
  width: 34%;
  height: 126%;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 26%, rgba(255,255,255,.82) 49%, rgba(255,255,255,.10) 72%, rgba(255,255,255,0) 100%);
  filter: blur(1px);
  mix-blend-mode: screen;
  transform: skewX(-18deg);
  animation: categoryVisualShine 5.4s ease-in-out infinite;
}

@keyframes categoryVisualFloat {
  0%, 100% { transform: translateY(0) rotate(.15deg); }
  50% { transform: translateY(-8px) rotate(-.2deg); }
}

@keyframes categoryVisualShine {
  0%, 58% { left: -42%; opacity: 0; }
  64% { opacity: .95; }
  82% { left: 112%; opacity: .7; }
  88%, 100% { left: 112%; opacity: 0; }
}

@media (hover:hover) and (pointer:fine) {
  .category-visual--image:hover img {
    transform: translateY(-5px) scale(1.025);
    filter: drop-shadow(0 28px 38px rgba(5, 74, 45, .28));
  }
}

@media(max-width:900px) {
  .category-visual--image {
    width: min(720px, 100%);
    margin-inline: auto;
  }
  .category-visual--image img {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }
}

@media(max-width:640px) {
  .category-visual--image {
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .category-visual--image img {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    filter: drop-shadow(0 15px 22px rgba(5, 74, 45, .18));
  }
}

@media(prefers-reduced-motion:reduce) {
  .category-visual--image,
  .category-visual--image::after {
    animation: none;
  }
  .category-visual--image img {
    transition: none;
  }
}


/* Step 05.4 — visual hero più ampio su desktop */
@media (min-width:901px) {
  .category-hero .category-shell {
    width: min(1380px, calc(100% - 72px));
  }

  .category-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr);
    gap: 32px;
  }

  .category-visual--image {
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .category-visual--image img {
    width: 100%;
    max-width: none;
  }

  .category-visual--image::after {
    clip-path: inset(0 round 26px);
  }
}


/* Step 06.0 — CTA categoria premium + copy bottone hero */
.category-cta {
  padding: 20px 0 64px;
  background: transparent;
  color: #fff;
}

.category-cta .category-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 38px 44px;
  border: 2px solid #0f3024;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(0, 232, 132, .18) 0%, rgba(0, 232, 132, 0) 28%),
    radial-gradient(circle at bottom left, rgba(255, 217, 91, .14) 0%, rgba(255, 217, 91, 0) 34%),
    linear-gradient(135deg, #10261d 0%, #123828 52%, #0d2b20 100%);
  box-shadow: 6px 6px 0 #0b2018;
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s ease, box-shadow .28s ease;
}

.category-cta .category-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.04) 50%, rgba(255,255,255,0) 100%);
  opacity: .55;
  pointer-events: none;
}

.category-cta .category-shell::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -35%;
  width: 28%;
  height: 150%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 20%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.10) 80%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  opacity: 0;
}

.category-cta .category-shell > * {
  position: relative;
  z-index: 2;
}

.category-cta strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -.045em;
  color: #fff;
}

.category-cta p {
  margin: 0;
  max-width: 720px;
  font-size: 22px;
  line-height: 1.6;
  color: #e4f1eb;
}

.category-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 212px;
  padding: 18px 26px;
  border: 2px solid #fff;
  border-radius: 18px;
  background: var(--cat-yellow);
  color: #14251d;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 6px 6px 0 #0b2018;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.category-cta a:hover,
.category-cta a:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #0b2018;
  filter: saturate(1.02);
}

@media (hover:hover) and (pointer:fine) {
  .category-cta .category-shell:hover {
    transform: translateY(-3px);
    box-shadow: 10px 10px 0 #0b2018;
  }

  .category-cta .category-shell:hover::after {
    animation: categoryCtaShine 1.25s ease forwards;
  }
}

@keyframes categoryCtaShine {
  0% {
    left: -35%;
    opacity: 0;
  }
  18% {
    opacity: .95;
  }
  100% {
    left: 118%;
    opacity: 0;
  }
}

@media (max-width:900px) {
  .category-cta {
    padding: 12px 0 54px;
  }

  .category-cta .category-shell {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 34px 30px;
    gap: 24px;
  }

  .category-cta p {
    max-width: none;
    font-size: 19px;
  }
}

@media (max-width:640px) {
  .category-cta {
    padding: 8px 0 42px;
  }

  .category-cta .category-shell {
    padding: 28px 22px;
    border-radius: 28px;
    box-shadow: 8px 8px 0 #0b2018;
  }

  .category-cta strong {
    font-size: 30px;
  }

  .category-cta p {
    font-size: 17px;
  }

  .category-cta a {
    width: 100%;
    min-width: 0;
    padding: 17px 20px;
    box-shadow: 5px 5px 0 #0b2018;
  }
}

@media(prefers-reduced-motion:reduce) {
  .category-cta .category-shell,
  .category-cta .category-shell::after,
  .category-cta a {
    transition: none;
    animation: none;
  }
}


/* Step 06.2 — rifinitura finale ombre CTA categoria */
@media (hover:hover) and (pointer:fine) {
  .category-cta .category-shell:hover {
    box-shadow: 8px 8px 0 #0b2018;
  }
}

@media (max-width:640px) {
  .category-cta .category-shell {
    box-shadow: 5px 5px 0 #0b2018;
  }
}


/* Step 06.13 — layout categoria più ampio e griglia guide riequilibrata */
.category-shell{
  width:min(1440px,calc(100% - 64px));
}

.category-hero{
  padding:48px 0 68px;
}

.category-hero .category-shell{
  width:min(1440px,calc(100% - 64px));
}

.category-hero-grid{
  grid-template-columns:minmax(0,1.04fr) minmax(520px,.96fr);
  gap:46px;
}

.category-hero h1{
  max-width:820px;
  font-size:clamp(52px,5.5vw,82px);
}

.category-lead{
  max-width:760px;
  font-size:20px;
}

.category-guides{
  padding:78px 0 88px;
}

.category-heading{
  margin-bottom:30px;
}

.category-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}

.category-guide--featured{
  grid-column:1;
  grid-row:1 / 3;
}

.category-guide--featured a{
  display:grid;
  grid-template-rows:auto 1fr;
}

.category-guide-media{
  aspect-ratio:16 / 9;
}

.category-guide-copy{
  display:flex;
  flex-direction:column;
  padding:30px 32px 32px;
}

.category-guide-copy h3{
  font-size:clamp(28px,2.4vw,38px);
}

.category-guide-copy p{
  max-width:760px;
  font-size:17px;
}

.category-guide-copy b{
  margin-top:auto;
  padding-top:24px;
}

.category-guide.is-coming{
  min-height:0;
  padding:30px 32px;
  justify-content:center;
}

.category-guide.is-coming .coming-icon{
  width:44px;
  height:44px;
  margin-bottom:16px;
}

.category-guide.is-coming h3{
  font-size:clamp(22px,1.8vw,29px);
}

.category-guide.is-coming p{
  font-size:15px;
  line-height:1.55;
}

.category-guide.is-coming>span{
  margin-top:18px;
  padding-top:0;
}

.category-method{
  padding:4px 0 82px;
}

.category-method-card{
  padding:44px 48px;
}

@media(max-width:1180px){
  .category-shell,
  .category-hero .category-shell{
    width:min(100% - 48px,1100px);
  }

  .category-hero-grid{
    grid-template-columns:1fr 1fr;
    gap:32px;
  }

  .category-grid{
    grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  }
}

@media(max-width:900px){
  .category-shell,
  .category-hero .category-shell{
    width:min(100% - 36px,760px);
  }

  .category-hero-grid{
    grid-template-columns:1fr;
  }

  .category-grid{
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto auto;
  }

  .category-guide--featured{
    grid-column:1 / -1;
    grid-row:auto;
  }

  .category-guide.is-coming{
    min-height:330px;
  }
}

@media(max-width:640px){
  .category-shell,
  .category-hero .category-shell{
    width:min(100% - 28px,600px);
  }

  .category-hero{
    padding:28px 0 48px;
  }

  .category-hero h1{
    font-size:clamp(44px,13vw,58px);
  }

  .category-lead{
    font-size:17px;
  }

  .category-guides{
    padding:58px 0 64px;
  }

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

  .category-guide--featured{
    grid-column:auto;
  }

  .category-guide.is-coming{
    min-height:0;
    padding:26px;
  }

  .category-guide-copy{
    padding:24px;
  }

  .category-method-card{
    padding:28px;
  }
}

/* Step 06.16 — breadcrumb categorie uniformato agli articoli */
.category-breadcrumb {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

@media (max-width: 640px) {
  .category-breadcrumb {
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
  }
}

/* Step 06.19 — angoli arrotondati obbligatori per le immagini Hero delle categorie */
.category-visual--image {
  border-radius: 36px;
  overflow: hidden;
}

.category-visual--image img {
  border-radius: inherit;
  clip-path: inset(0 round 36px);
}

.category-visual--image::after {
  border-radius: inherit;
  clip-path: inset(0 round 36px);
}

@media (max-width: 640px) {
  .category-visual--image {
    border-radius: 28px;
  }

  .category-visual--image img,
  .category-visual--image::after {
    clip-path: inset(0 round 28px);
  }
}

/* v6.65 — multiple published guides remain visible in category grids */
.category-grid > .category-guide--featured{
  grid-column:auto;
  grid-row:auto;
}

.category-grid > .category-guide--featured:first-child{
  grid-column:1;
  grid-row:1 / 3;
}

@media(max-width:900px){
  .category-grid > .category-guide--featured,
  .category-grid > .category-guide--featured:first-child{
    grid-column:1 / -1;
    grid-row:auto;
  }
}

@media(max-width:640px){
  .category-grid > .category-guide--featured,
  .category-grid > .category-guide--featured:first-child{
    grid-column:auto;
    grid-row:auto;
  }
}

/* v6.66 — layout categorie: prime 2 card al 50%, successive a 3 colonne */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 24px;
  align-items: stretch;
}

.category-grid > .category-guide {
  grid-column: span 2;
  grid-row: auto;
  min-width: 0;
}

.category-grid > .category-guide:nth-child(-n + 2) {
  grid-column: span 3;
}

.category-grid > .category-guide--featured,
.category-grid > .category-guide--featured:first-child {
  grid-row: auto;
}

.category-guide--featured a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-guide--featured .category-guide-copy {
  flex: 1;
}

.category-grid > .category-guide:nth-child(n + 3) .category-guide-copy h3 {
  font-size: clamp(22px, 1.75vw, 29px);
}

@media (max-width: 980px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid > .category-guide,
  .category-grid > .category-guide:nth-child(-n + 2),
  .category-grid > .category-guide--featured,
  .category-grid > .category-guide--featured:first-child {
    grid-column: span 1;
    grid-row: auto;
  }
}

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

  .category-grid > .category-guide,
  .category-grid > .category-guide:nth-child(-n + 2),
  .category-grid > .category-guide--featured,
  .category-grid > .category-guide--featured:first-child {
    grid-column: auto;
    grid-row: auto;
  }
}

/* v6.68 — badge ultima pubblicazione integrato nell’angolo della prima card */
.category-grid > .category-guide:first-child {
  position: relative;
  overflow: hidden;
}

.category-grid > .category-guide:first-child::before {
  content: "ULTIMA PUBBLICAZIONE";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  background: var(--cat-yellow);
  color: var(--cat-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-bottom-left-radius: 14px;
  white-space: nowrap;
}

/* Il tempo di lettura resta separato dal badge editoriale */
.category-guide-media span {
  top: auto;
  bottom: 14px;
  right: 14px;
}

@media (max-width: 640px) {
  .category-grid > .category-guide:first-child::before {
    font-size: 11px;
    padding: 8px 14px;
  }

  .category-guide-media span {
    bottom: 12px;
    right: 12px;
  }
}

/* v6.70 — badge ultima pubblicazione sempre visibile anche su mobile */
.category-grid > .category-guide:first-child {
  isolation: isolate;
}

.category-grid > .category-guide:first-child > a {
  position: relative;
  z-index: 1;
}

.category-grid > .category-guide:first-child::before {
  z-index: 20;
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: none;
  transform: none;
}

@media (max-width: 640px) {
  .category-grid > .category-guide:first-child {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  .category-grid > .category-guide:first-child::before {
    content: "ULTIMA PUBBLICAZIONE";
    top: 0;
    right: 0;
    z-index: 20;
    display: block;
    visibility: visible;
    opacity: 1;
    max-width: calc(100% - 20px);
    padding: 8px 13px;
    background: var(--cat-yellow);
    color: var(--cat-ink);
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: .035em;
    border-bottom-left-radius: 12px;
    white-space: nowrap;
  }
}


/* v6.86 — Hero video per la categoria Risparmio e Obiettivi */
.category-visual--video {
  position: relative;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  transform: none;
  animation: none;
  padding: 14px;
}

.category-hero-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: 0;
  object-fit: cover;
  border-radius: 28px;
  filter: drop-shadow(0 22px 30px rgba(5, 74, 45, .20));
  transition: transform .32s ease, filter .32s ease;
  background: #dfe9e2;
}

.category-visual--video::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -12%;
  left: -42%;
  width: 34%;
  height: 126%;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 26%, rgba(255,255,255,.82) 49%, rgba(255,255,255,.10) 72%, rgba(255,255,255,0) 100%);
  filter: blur(1px);
  mix-blend-mode: screen;
  transform: skewX(-18deg);
  animation: categoryVisualShine 5.4s ease-in-out infinite;
}

@media(max-width:900px) {
  .category-visual--video {
    width: min(720px, 100%);
    margin-inline: auto;
  }
  .category-hero-video {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }
}

@media(max-width:640px) {
  .category-visual--video {
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .category-hero-video {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    filter: drop-shadow(0 15px 22px rgba(5, 74, 45, .18));
  }
}

@media(prefers-reduced-motion:reduce) {
  .category-visual--video,
  .category-visual--video::after {
    animation: none;
  }
  .category-hero-video {
    transition: none;
  }
}


/* v6.87 — Video Hero statico nella sola categoria Risparmio e Obiettivi */
.category-visual--video {
  animation: none !important;
  transform: none !important;
}

.category-visual--video:hover {
  transform: none !important;
}

.category-visual--video:hover .category-hero-video {
  transform: none !important;
  filter: drop-shadow(0 22px 30px rgba(5, 74, 45, .20));
}


/* v6.89 — pulsante play dopo due riproduzioni del video Hero */
.category-visual--video {
  position: relative;
  animation: none;
}

.category-hero-video {
  transform: none !important;
  transition: none;
}

.category-visual--video::after {
  animation: categoryVisualShine 5.4s ease-in-out infinite;
}

.category-video-replay {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: #16392c;
  box-shadow: 0 8px 18px rgba(9, 42, 31, .28), 0 2px 6px rgba(9, 42, 31, .18);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.category-video-replay::before {
  content: none;
}

.category-video-replay:hover {
  transform: translateY(-2px) scale(1.04);
  background: #ffffff;
  box-shadow: 0 11px 22px rgba(9, 42, 31, .32), 0 3px 8px rgba(9, 42, 31, .20);
}

.category-video-replay:focus-visible {
  outline: 3px solid rgba(0, 232, 132, .5);
  outline-offset: 4px;
}

.category-video-replay svg {
  width: 20px;
  height: 20px;
  display: block;
  margin-left: 2px;
  filter: none;
}

.category-video-replay[hidden] {
  display: none !important;
}

@media(max-width:640px) {
  .category-video-replay {
    top: 18px;
    left: 18px;
    width: 40px;
    height: 40px;
  }

  .category-video-replay svg {
    width: 18px;
    height: 18px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .category-video-replay {
    transition: none;
  }
}


/* v6.94 — stato fermo del video Hero e preferenza riduzione movimento */
.category-visual--video.is-video-stopped::after {
  animation-play-state: paused;
  opacity: 0;
}

@media(prefers-reduced-motion:reduce) {
  .category-visual--video::after {
    animation: none;
    opacity: 0;
  }
}

/* v7.31 — focus uniforme per card e CTA delle categorie */
.category-page .category-primary:focus-visible,
.category-page .category-cta a:focus-visible,
.category-page .category-guide--featured > a:focus-visible{
  outline:3px solid #00a960;
  outline-offset:5px;
}

.category-page .category-guide--featured > a:focus-visible{
  border-radius:22px;
}

.category-page .category-guide--featured > a:focus-visible h3{
  color:#008d54;
}

/* v7.38 — link delle card categoria sempre senza sottolineatura */
.category-page .category-guide > a,
.category-page .category-guide > a *,
.category-page .category-guide > a:hover,
.category-page .category-guide > a:hover *,
.category-page .category-guide > a:focus-visible,
.category-page .category-guide > a:focus-visible *{
  text-decoration:none !important;
}

/* v7.39 — ultima guida pubblicata in evidenza e link card senza sottolineature */
.category-page .category-guide--latest > a,
.category-page .category-guide--latest > a *,
.category-page .category-guide > a,
.category-page .category-guide > a *{
  text-decoration:none !important;
  text-decoration-line:none !important;
}

.category-page .category-guide--latest{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

/* v7.40 — mai sottolineature nel box destro delle categorie */
.category-grid > .category-guide > a,
.category-grid > .category-guide > a:link,
.category-grid > .category-guide > a:visited,
.category-grid > .category-guide > a:hover,
.category-grid > .category-guide > a:focus,
.category-grid > .category-guide > a:focus-visible,
.category-grid > .category-guide > a > .category-guide-copy,
.category-grid > .category-guide > a > .category-guide-copy *,
.category-grid > .category-guide > a:hover > .category-guide-copy,
.category-grid > .category-guide > a:hover > .category-guide-copy *,
.category-grid > .category-guide > a:focus-visible > .category-guide-copy,
.category-grid > .category-guide > a:focus-visible > .category-guide-copy *{
  text-decoration:none !important;
  text-decoration-line:none !important;
  text-decoration-color:transparent !important;
}

/* v7.41 — interazioni centralizzate per tutte le card cliccabili delle categorie */
.category-page .category-guide > a{
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none !important;
}

.category-page .category-guide > a .category-guide-media img,
.category-page .category-guide > a .category-guide-copy h3{
  transition:transform .28s ease,color .2s ease;
}

@media (hover:hover) and (pointer:fine){
  .category-page .category-guide > a:hover .category-guide-media img,
  .category-page .category-guide > a:focus-visible .category-guide-media img{
    transform:scale(1.04);
  }

  .category-page .category-guide > a:hover .category-guide-copy h3,
  .category-page .category-guide > a:focus-visible .category-guide-copy h3{
    color:#008d54;
  }
}

.category-page .category-guide > a:focus-visible{
  outline:3px solid #00a960;
  outline-offset:4px;
  border-radius:20px;
}

@media (prefers-reduced-motion:reduce){
  .category-page .category-guide > a .category-guide-media img,
  .category-page .category-guide > a .category-guide-copy h3{
    transition:none;
  }
}

/* v7.42 — interazioni centralizzate sulle card categoria reali */
.category-grid > .category-guide > a,
.category-grid > .category-guide > a:link,
.category-grid > .category-guide > a:visited{
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none !important;
  text-decoration-line:none !important;
}

.category-grid > .category-guide > a .category-guide-media img,
.category-grid > .category-guide > a .category-guide-copy h3{
  transition:transform .3s ease,color .2s ease;
}

@media (hover:hover) and (pointer:fine){
  .category-grid > .category-guide > a:hover .category-guide-media img{
    transform:scale(1.04);
  }

  .category-grid > .category-guide > a:hover .category-guide-copy h3{
    color:#008d54;
  }
}

.category-grid > .category-guide > a:focus-visible{
  outline:3px solid #00a960;
  outline-offset:4px;
  border-radius:20px;
}

.category-grid > .category-guide > a:focus-visible .category-guide-copy h3{
  color:#008d54;
}

@media (prefers-reduced-motion:reduce){
  .category-grid > .category-guide > a .category-guide-media img,
  .category-grid > .category-guide > a .category-guide-copy h3{
    transition:none;
  }
}

/* v7.43 — freccia a L per il bottone categoria "Scopri le Guide" */
.category-primary{
  gap:12px;
}
.category-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;
}
.category-primary span[aria-hidden]::before{
  content:"↴";
  font-size:18px;
  line-height:1;
  font-weight:900;
}

/* v7.84.0 — categoria pilota Finanze di Coppia */
.category-page--modern .category-pilot-overview{padding:54px 0 22px;background:#fff}
.category-page--modern .category-pilot-overview-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);gap:34px;align-items:stretch;padding:34px 36px;border:1px solid #d9e8df;border-radius:30px;background:linear-gradient(135deg,#f5fcf8 0%,#fbfffd 100%);box-shadow:0 10px 28px rgba(10,61,42,.04)}
.category-page--modern .category-pilot-kicker{margin:0 0 8px;color:#008d54;font-size:12px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.category-page--modern .category-pilot-why h2,.category-page--modern .category-pilot-path h2,.category-page--modern .category-pilot-section-heading h2{margin:0;color:#0d3024;font-size:clamp(26px,2.2vw,32px);line-height:1.08;letter-spacing:-.04em}
.category-page--modern .category-pilot-why-lead{max-width:720px;margin:12px 0 0;color:#61736b;font-size:18px;line-height:1.62}
.category-page--modern .category-pilot-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:34px}
.category-page--modern .category-pilot-benefit-item{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.category-page--modern .category-pilot-benefit-icon{display:grid;place-items:center;width:64px;height:64px;margin-bottom:16px;border-radius:999px;background:#edf9f2;color:#0a9a59}
.category-page--modern .category-pilot-benefit-icon svg{width:30px;height:30px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.category-page--modern .category-pilot-benefit-item strong,.category-page--modern .category-pilot-benefit-item small{display:block}
.category-page--modern .category-pilot-benefit-item strong{font-size:14px;line-height:1.3;color:#123429}
.category-page--modern .category-pilot-benefit-item small{margin-top:8px;color:#687a71;font-size:12px;line-height:1.55}
.category-page--modern .category-pilot-stats{padding:32px;border:1px solid #dfe8e3;border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(10,61,42,.05)}
.category-page--modern .category-pilot-stats-title{margin:0;color:#123429;font-size:26px;line-height:1.15;letter-spacing:-.035em}
.category-page--modern .category-pilot-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);margin-top:28px}
.category-page--modern .category-pilot-stat-item{padding:0 18px;text-align:center;border-right:1px solid #dfe7e2}
.category-page--modern .category-pilot-stat-item:last-child{border-right:0}
.category-page--modern .category-pilot-stat-icon{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 18px;border-radius:999px;background:#edf9f2;color:#0a9a59}
.category-page--modern .category-pilot-stat-icon svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.category-page--modern .category-pilot-stat-item strong,.category-page--modern .category-pilot-stat-item span{display:block}
.category-page--modern .category-pilot-stat-item strong{font:900 clamp(42px,3vw,54px)/1 Poppins,sans-serif;color:#0c3326;letter-spacing:-.05em}
.category-page--modern .category-pilot-stat-item span{margin-top:12px;color:#66786f;font-size:14px;line-height:1.4}
.category-page--modern .category-pilot-path{padding:22px 0 34px}
.category-page--modern .category-pilot-path-card{display:grid;grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr);gap:30px;align-items:center;padding:30px;border:1px solid #d8e7df;border-radius:26px;background:linear-gradient(135deg,#eefaf3,#fbfffd)}
.category-page--modern .category-pilot-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0;padding:0;list-style:none}
.category-page--modern .category-pilot-steps li{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:16px;border:1px solid #dfe7e2;border-radius:16px;background:#fff}
.category-page--modern .category-pilot-steps li>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#129658;color:#fff;font-weight:900}
.category-page--modern .category-pilot-steps strong,.category-page--modern .category-pilot-steps small{display:block}
.category-page--modern .category-pilot-steps strong{font-size:13px;line-height:1.25}
.category-page--modern .category-pilot-steps small{margin-top:5px;color:#6a7a73;font-size:11px;line-height:1.35}
.category-page--modern .category-pilot-more{padding:18px 0 42px}
.category-page--modern .category-pilot-section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px}
.category-page--modern .category-pilot-section-heading a{color:#07864e;font-weight:800;text-decoration:none}
.category-page--modern .category-pilot-more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.category-page--modern .category-pilot-mini-card{display:grid;grid-template-columns:42% 1fr;min-width:0;overflow:hidden;border:1px solid #dce6e1;border-radius:18px;background:#fff;color:#15362c;text-decoration:none;box-shadow:0 8px 22px rgba(6,45,33,.06);transition:transform .2s ease,box-shadow .2s ease}
.category-page--modern .category-pilot-mini-card img{width:100%;height:100%;min-height:150px;object-fit:cover}
.category-page--modern .category-pilot-mini-card>div{padding:18px}
.category-page--modern .category-pilot-mini-card small{color:#07864e;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.category-page--modern .category-pilot-mini-card h3{margin:8px 0 15px;font-size:18px;line-height:1.25}
.category-page--modern .category-pilot-mini-card span{color:#6b7c74;font-size:12px}
@media(hover:hover) and (pointer:fine){.category-page--modern .category-pilot-mini-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(6,45,33,.11)}}
@media(max-width:980px){
  .category-page--modern .category-pilot-overview-grid,.category-page--modern .category-pilot-path-card{grid-template-columns:1fr}
  .category-page--modern .category-pilot-more-grid{grid-template-columns:1fr 1fr}
  .category-page--modern .category-pilot-steps{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .category-page--modern .category-pilot-overview{padding-top:34px}
  .category-page--modern .category-pilot-overview-grid{padding:22px;border-radius:22px}
  .category-page--modern .category-pilot-benefits,.category-page--modern .category-pilot-stat-grid,.category-page--modern .category-grid--pilot,.category-page--modern .category-pilot-more-grid,.category-page--modern .category-pilot-steps{grid-template-columns:1fr}
  .category-page--modern .category-pilot-benefits{gap:18px}
  .category-page--modern .category-pilot-benefit-item{padding-bottom:4px}
  .category-page--modern .category-pilot-benefit-icon{width:56px;height:56px;margin-bottom:12px}
  .category-page--modern .category-pilot-stat-item{padding:16px 0;border-right:0;border-bottom:1px solid #dfe7e2}
  .category-page--modern .category-pilot-stat-item:last-child{border-bottom:0}
  .category-page--modern .category-pilot-stat-item strong{font-size:40px}
  .category-page--modern .category-pilot-stat-item span{margin-top:8px;font-size:13px}
  .category-page--modern .category-heading--pilot,.category-page--modern .category-pilot-section-heading{align-items:flex-start;flex-direction:column}
  .category-page--modern .category-pilot-path-card{padding:22px}
  .category-page--modern .category-pilot-mini-card{grid-template-columns:1fr}
  .category-page--modern .category-pilot-mini-card img{aspect-ratio:16/9;min-height:0}
}
.category-page--modern .category-heading--pilot .category-pilot-all-link{color:#07864e;font-weight:800;text-decoration:none;white-space:nowrap}
.category-page--modern .category-grid--pilot .category-guide,
.category-page--modern .category-grid--pilot .category-guide--featured,
.category-page--modern .category-grid--pilot .category-guide--latest,
.category-page--modern .category-grid--pilot .category-guide--support{grid-column:auto;min-width:0}
.category-page--modern .category-grid--pilot .category-guide-media{aspect-ratio:16/9}
.category-page--modern .category-grid--pilot .category-guide-copy{padding:20px}
.category-page--modern .category-grid--pilot .category-guide-copy h3{font-size:clamp(20px,1.65vw,27px);line-height:1.13}
.category-page--modern .category-grid--pilot .category-guide-copy p{font-size:14px;line-height:1.55}
@media(max-width:980px){.category-page--modern .category-grid--pilot{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.category-page--modern .category-grid--pilot{grid-template-columns:1fr}.category-page--modern .category-heading--pilot .category-pilot-all-link{white-space:normal}}
.category-page--modern .category-heading--pilot .category-pilot-count{display:none}

/* v7.84.3 — categoria Finanze di Coppia: rimozione overview e griglia 3 colonne piena */
.category-page--modern .category-pilot-overview{display:none!important}
.category-page--modern .category-guides--pilot{padding-top:62px}
.category-page--modern .category-heading--pilot{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}
.category-page--modern .category-heading--pilot h2{position:relative;margin:0;padding-left:18px;font-size:clamp(28px,3vw,38px);line-height:1.1;letter-spacing:-.04em}
.category-page--modern .category-heading--pilot h2::before{content:"";position:absolute;left:0;top:.14em;width:5px;height:.86em;border-radius:999px;background:#18d879}
.category-page--modern .category-grid--pilot{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.category-page--modern .category-grid--pilot .category-guide{width:100%;min-width:0}
.category-page--modern .category-grid--pilot .category-guide--featured{grid-column:auto}
.category-page--modern .category-grid--pilot .category-guide>a{display:flex;flex-direction:column;height:100%}
.category-page--modern .category-grid--pilot .category-guide-copy{display:flex;flex-direction:column;flex:1}
.category-page--modern .category-grid--pilot .category-guide-copy b{margin-top:auto;padding-top:20px}
@media(max-width:980px){.category-page--modern .category-grid--pilot{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.category-page--modern .category-heading--pilot{align-items:flex-start;flex-direction:column}.category-page--modern .category-grid--pilot{grid-template-columns:1fr}.category-page--modern .category-heading--pilot h2{font-size:30px}}


/* v7.84.5 — CTA coppia con PNG trasparente integrata nel gradiente */
.category-page--modern .category-cta--with-visual .category-shell{
  grid-template-columns:minmax(300px,380px) minmax(0,1fr) auto;
  gap:34px;
  padding:30px 34px;
  background:
    radial-gradient(circle at 16% 50%, rgba(129,187,139,.34) 0%, rgba(129,187,139,.12) 24%, rgba(129,187,139,0) 44%),
    linear-gradient(105deg,#0a4935 0%,#0d5a3f 40%,#063b2d 100%);
}
.category-page--modern .category-cta-visual{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  align-self:stretch;
  min-height:220px;
  overflow:visible;
  border-radius:0;
  background:transparent;
}
.category-page--modern .category-cta-visual img{
  display:block;
  width:min(100%,360px);
  height:auto;
  max-height:230px;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.28));
}
.category-page--modern .category-cta-copy{min-width:0}

@media(max-width:900px){
  .category-page--modern .category-cta--with-visual .category-shell{
    grid-template-columns:220px minmax(0,1fr);
    padding:26px 24px;
  }
  .category-page--modern .category-cta--with-visual .category-shell>a{
    grid-column:2;
    justify-self:start;
    margin-bottom:24px;
  }
}

@media(max-width:640px){
  .category-page--modern .category-pilot-steps li{
    grid-template-columns:48px 1fr;
    gap:14px;
    padding:20px 18px;
  }
  .category-page--modern .category-pilot-steps li>span{
    width:48px;
    height:48px;
    font-size:22px;
  }
  .category-page--modern .category-pilot-steps strong{
    font-size:19px;
    line-height:1.18;
  }
  .category-page--modern .category-pilot-steps small{
    margin-top:7px;
    font-size:15px;
    line-height:1.45;
  }
  .category-page--modern .category-pilot-more{display:none}
  .category-page--modern .category-cta--with-visual .category-shell{
    grid-template-columns:1fr;
    gap:12px;
    padding:22px 0 24px;
  }
  .category-page--modern .category-cta-visual{
    min-height:190px;
    padding:0 18px;
  }
  .category-page--modern .category-cta-visual img{
    width:min(100%,320px);
    max-height:190px;
  }
  .category-page--modern .category-cta-copy{
    padding:24px 22px 0;
  }
  .category-page--modern .category-cta--with-visual .category-shell>a{
    grid-column:auto;
    width:calc(100% - 44px);
    margin:20px 22px 0;
  }
}

/* v7.84.6 — rimozione definitiva vecchio sfondo CTA e cache bust asset */
.category-page--modern .category-cta--with-visual .category-cta-visual{
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
}
.category-page--modern .category-cta--with-visual .category-cta-visual::before,
.category-page--modern .category-cta--with-visual .category-cta-visual::after{
  content:none!important;
  display:none!important;
  background:none!important;
}
.category-page--modern .category-cta--with-visual .category-cta-visual img{
  background:transparent!important;
}


/* v7.84.7 — CTA coppia: visual più a sinistra e area testo più ampia */
@media (min-width:901px){
  .category-page--modern .category-cta--with-visual .category-shell{
    grid-template-columns:minmax(300px,340px) minmax(520px,1fr) auto;
    gap:24px;
    padding:30px 36px 30px 24px;
  }
  .category-page--modern .category-cta--with-visual .category-cta-visual{
    justify-content:flex-start;
  }
  .category-page--modern .category-cta--with-visual .category-cta-visual img{
    width:min(390px,116%);
    max-height:250px;
    transform:translateX(-22px);
  }
  .category-page--modern .category-cta--with-visual .category-cta-copy strong{
    max-width:760px;
    font-size:clamp(44px,4.35vw,66px);
    line-height:1.02;
  }
  .category-page--modern .category-cta--with-visual .category-cta-copy p{
    max-width:790px;
    font-size:clamp(22px,1.7vw,27px);
    line-height:1.5;
  }
}

/* v7.85.0 — griglia categorie moderna: 2 o 3 colonne secondo le guide reali */
.category-page--modern .category-grid--pilot{gap:28px}
.category-page--modern .category-grid--pilot.category-grid--count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.category-page--modern .category-grid--pilot.category-grid--count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:980px){
  .category-page--modern .category-grid--pilot.category-grid--count-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .category-page--modern .category-grid--pilot.category-grid--count-2,
  .category-page--modern .category-grid--pilot.category-grid--count-3{grid-template-columns:1fr}
}

/* v7.174 — categorie Guide: prima riga 3 card categoria, seconda riga 4 card stile Home */
.category-page--modern .category-grid--pilot{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:28px 20px;
}
.category-page--modern .category-grid--pilot > .category-guide{
  grid-column:span 4;
  min-width:0;
}
.category-page--modern .category-grid--pilot > .category-home-guide{
  grid-column:span 3;
  min-width:0;
  height:100%;
}
.category-page--modern .category-grid--pilot > article[hidden]{display:none!important}

/* Copia fedele delle card "Guide in primo piano" della Home Guide. */
.category-page--modern .category-home-guide .home-guide-card{
  display:flex;
  height:100%;
  min-width:0;
  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;
}
.category-page--modern .category-home-guide .home-guide-card-media{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  flex:0 0 auto;
  overflow:hidden;
}
.category-page--modern .category-home-guide .home-guide-card img{
  display:block;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-height:100%!important;
  object-fit:cover!important;
  object-position:center;
  transition:transform .26s ease;
}
.category-page--modern .category-home-guide .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);
}
.category-page--modern .category-home-guide .home-guide-category,
.category-page--modern .category-home-guide .home-guide-card h3,
.category-page--modern .category-home-guide .home-guide-card p,
.category-page--modern .category-home-guide .home-guide-action{margin-inline:18px}
.category-page--modern .category-home-guide .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;
}
.category-page--modern .category-home-guide .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;
}
.category-page--modern .category-home-guide .home-guide-card p{
  margin-top:0;
  margin-bottom:16px;
  color:#52675f;
  font-size:14px;
  line-height:1.55;
}
.category-page--modern .category-home-guide .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);
}
.category-page--modern .category-home-guide .home-guide-action span{transition:transform .18s ease}

.category-page--modern .category-guides-more-wrap{
  display:flex;
  justify-content:center;
  margin-top:30px;
}
.category-page--modern .category-guides-more-wrap[hidden]{display:none!important}
.category-page--modern .category-guides-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;
}
.category-page--modern .category-guides-more span{font-size:18px;line-height:1}

@media (hover:hover) and (pointer:fine){
  .category-page--modern .category-home-guide .home-guide-card:hover,
  .category-page--modern .category-home-guide .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;
  }
  .category-page--modern .category-home-guide .home-guide-card:hover img,
  .category-page--modern .category-home-guide .home-guide-card:focus-visible img{transform:scale(1.045)}
  .category-page--modern .category-home-guide .home-guide-card:hover h3,
  .category-page--modern .category-home-guide .home-guide-card:focus-visible h3{color:#07864e}
  .category-page--modern .category-home-guide .home-guide-card:hover .home-guide-action span,
  .category-page--modern .category-home-guide .home-guide-card:focus-visible .home-guide-action span{transform:translateX(4px)}
  .category-page--modern .category-guides-more:hover,
  .category-page--modern .category-guides-more:focus-visible{
    transform:translateY(-2px);
    box-shadow:5px 6px 0 #062d21;
    background:#ffe985;
    outline:none;
  }
}
@media(max-width:980px){
  .category-page--modern .category-grid--pilot > .category-guide,
  .category-page--modern .category-grid--pilot > .category-home-guide{grid-column:span 6}
}
@media(max-width:640px){
  .category-page--modern .category-grid--pilot > .category-guide,
  .category-page--modern .category-grid--pilot > .category-home-guide{grid-column:1/-1}
  .category-page--modern .category-home-guide .home-guide-card-media{aspect-ratio:16/10}
}
@media(prefers-reduced-motion:reduce){
  .category-page--modern .category-home-guide .home-guide-card,
  .category-page--modern .category-home-guide .home-guide-card img,
  .category-page--modern .category-home-guide .home-guide-card h3,
  .category-page--modern .category-home-guide .home-guide-action span,
  .category-page--modern .category-guides-more{transition:none}
}

/* v7.176 — Badge categoria card: stile Famyro uniforme */
.category-page--modern .category-grid--primary .category-guide-copy small,
.category-page--modern .category-grid--pilot .category-guide-copy small,
.category-page--modern .category-home-guide .home-guide-category,
.category-page--modern .category-pilot-mini-card small{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  gap:8px;
  color:#07864e;
  font-size:11px;
  font-weight:500;
  line-height:1.3;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.category-page--modern .category-grid--primary .category-guide-copy small::before,
.category-page--modern .category-grid--pilot .category-guide-copy small::before,
.category-page--modern .category-home-guide .home-guide-category::before,
.category-page--modern .category-pilot-mini-card small::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);
}
