
:root {
  --bg: #f8f5f0;
  --paper: #fffdf9;
  --ink: #28231f;
  --muted: #766b62;
  --line: #ddd3c8;
  --accent: #9b765c;
  --dark: #201d1a;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
}
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(210px, 300px) 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 11px 4.5vw;
  border-bottom: 1px solid rgba(221, 211, 200, .85);
  background: rgba(255,253,249,.95);
  backdrop-filter: blur(14px);
}
.brand img { width: min(270px, 100%); }
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.75vw, 28px);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.site-header nav a {
  padding: 11px 0;
  border-bottom: 1px solid transparent;
}
.site-header nav a:hover,
.site-header nav a.active { border-color: var(--accent); }

.header-cta {
  padding: 13px 18px;
  color: #fff;
  background: var(--accent);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.journal-hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
:is(.journal-hero > img, .journal-hero > picture img) {
  position: absolute;
  inset: 0;
  height: 100%;
}
.hero-overlay,
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,19,17,.70), rgba(20,19,17,.16) 70%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(590px, 88%);
  margin-left: max(6vw, calc((100vw - var(--max)) / 2));
  color: #fff;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow.light { color: rgba(255,255,255,.86); }
h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.04;
}
h1 {
  max-width: 700px;
  margin: 0 0 22px;
  font-size: clamp(46px, 5.2vw, 78px);
  letter-spacing: -.03em;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 500px;
  font-size: 16px;
  color: rgba(255,255,255,.88);
}
.hero-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.65);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section {
  width: min(var(--max), calc(100% - 12vw));
  margin: 0 auto;
  padding: clamp(68px, 8vw, 110px) 0;
}

.featured-article {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.featured-image img {
  aspect-ratio: 16 / 10;
  min-height: 430px;
}
.featured-article article { max-width: 560px; }
.featured-article h2 {
  margin: 0 0 22px;
  font-size: clamp(38px, 4vw, 57px);
}
.featured-article article > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}
.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.editorial-link span { font-size: 17px; }

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
}
.section-title span { height: 1px; background: var(--line); }
.section-title h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  border: 1px solid var(--line);
  background: var(--paper);
}
.article-card > picture {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.article-card > picture img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.card-copy { padding: 25px 26px 29px; }
.article-card h3 {
  margin: 0 0 12px;
  font-size: clamp(27px, 2.2vw, 34px);
}
.article-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

.topics { padding-top: 22px; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 13px;
}
.topic-card {
  position: relative;
  min-height: 126px;
  overflow: hidden;
}
.topic-card picture {
  position: absolute;
  inset: 0;
}
.topic-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: brightness(.48);
  transition: transform .4s ease, filter .4s ease;
}
.topic-card:hover img {
  transform: scale(1.045);
  filter: brightness(.36);
}
.topic-card span {
  position: absolute;
  inset: auto 10px 17px;
  z-index: 2;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .10em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.more-articles { padding-top: 30px; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.more-grid article > a > picture {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 18px;
}
.more-grid article > a > picture img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  margin-bottom: 0;
}
.more-grid article h3 {
  margin: 0;
  font-size: 26px;
}
.center { text-align: center; margin-top: 36px; }
.outline-button {
  display: inline-block;
  padding: 13px 44px;
  border: 1px solid var(--accent);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.journal-cta {
  position: relative;
  min-height: 245px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
:is(.journal-cta > img, .journal-cta > picture img) {
  position: absolute;
  inset: 0;
  height: 100%;
}
.cta-overlay {
  background: rgba(45,35,29,.53);
}
.cta-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.cta-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(35px, 4vw, 52px);
}
.cta-copy p { margin: 0 0 20px; }
.cta-copy a {
  display: inline-block;
  padding: 11px 38px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.site-footer {
  padding: clamp(58px, 7vw, 88px) 6vw 28px;
  color: rgba(255,250,244,.82);
  background: var(--dark);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.15fr .62fr .75fr .82fr 1.05fr;
  gap: clamp(28px, 3.7vw, 56px);
  align-items: start;
}
.footer-brand img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: invert(1);
  opacity: .92;
  margin-bottom: 24px;
}
.footer-brand p,
.footer-column p,
.footer-bottom p {
  margin: 0;
  color: rgba(255,250,244,.66);
  font-size: 13px;
  line-height: 1.7;
}
.footer-column h3 {
  margin: 0 0 18px;
  font-family: "Manrope", sans-serif;
  color: #c8a98f;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-column a,
.footer-column button {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  color: rgba(255,250,244,.84);
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.footer-column a:hover,
.footer-column button:hover {
  color: #fffaf4;
}
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-cta p { margin-bottom: 20px; }
.footer-button {
  display: inline-flex !important;
  width: max-content;
  align-items: center;
  gap: 15px;
  padding: 14px 18px !important;
  border: 1px solid #fffaf4 !important;
  background: #fffaf4 !important;
  color: #2b2420 !important;
  font-size: 8px !important;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.footer-button::after { content: "→"; font-size: 15px; }
.footer-whatsapp {
  display: block !important;
  width: max-content;
  margin-top: 4px !important;
  border-bottom: 1px solid currentColor !important;
  color: rgba(255,250,244,.9) !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,250,244,.14);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 230px 1fr;
  }
  .header-cta { display: none; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .site-header {
    display: flex;
    justify-content: space-between;
  }
  .brand img { width: 220px; }
  .menu-toggle { display: block; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 22px 6vw;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-header nav.open { display: flex; }
  .journal-hero { min-height: 620px; }
  .featured-article,
  .guide-grid,
  .more-grid {
    grid-template-columns: 1fr;
  }
  .featured-image img { min-height: 0; }
  .guide-grid { gap: 34px; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { min-height: 66px; padding-inline: 5vw; }
  .brand img { width: 190px; }
  .journal-hero {
    min-height: 560px;
    align-items: flex-end;
  }
  :is(.journal-hero > img, .journal-hero > picture img) { object-position: 58% center; }
  .hero-copy {
    width: 90%;
    margin: 0 auto 50px;
  }
  h1 { font-size: 45px; }
  .section { width: calc(100% - 10vw); padding: 66px 0; }
  .featured-article { gap: 30px; }
  .featured-article h2 { font-size: 39px; }
  .section-title { gap: 14px; }
  .section-title h2 { font-size: 15px; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* Hero aggiornata: immagine verticale B/N con Firenze, mantenuta sfocata e non deformata. */
:is(.journal-hero > img, .journal-hero > picture img) {
  object-position: 50% 42%;
  transform: scale(1.025);
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(20,19,17,.74), rgba(20,19,17,.28) 66%, rgba(20,19,17,.12));
}
.more-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) {
  .more-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   JOURNAL — VERSIONE A DEFINITIVA
   Hero fotografica full width e menu unificato con Portfolio.
   ========================================================= */
:root {
  --journal-header-height: 90px;
  --journal-night: #12110f;
  --journal-ivory: #fffaf4;
  --journal-taupe: #aa866c;
}

body.journal-page { padding: 0; }
body.menu-open { overflow: hidden; }

.site-header.journal-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  min-height: var(--journal-header-height);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: clamp(22px, 2.4vw, 42px);
  padding: 0 clamp(28px, 4vw, 68px);
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 10, 8, .48), rgba(8, 10, 8, 0));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: min-height .35s ease, background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

.site-header.journal-header.is-scrolled {
  min-height: 70px;
  background: rgba(18, 17, 15, .80);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

.brand-text {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  flex-direction: column;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
}
.brand-logo {
  display: inline-flex;
  width: min(280px, 100%);
  align-items: center;
}
.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: invert(1);
}
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand-subtitle {
  margin-top: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 6px;
  font-weight: 500;
  letter-spacing: .28em;
  text-align: center;
  text-transform: uppercase;
}

.site-header.journal-header .desktop-navigation {
  display: flex;
  position: static;
  align-items: center;
  justify-content: center;
  gap: clamp(17px, 1.75vw, 30px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.site-header.journal-header .desktop-navigation a {
  position: relative;
  padding: 12px 0;
  border: 0;
}
.site-header.journal-header .desktop-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transition: right .3s ease;
}
.site-header.journal-header .desktop-navigation a:hover::after,
.site-header.journal-header .desktop-navigation a.active::after { right: 0; }

.site-header.journal-header .header-cta {
  justify-self: end;
  padding: 15px 21px;
  color: #fff;
  background: rgba(170, 134, 108, .94);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .25s ease, transform .25s ease;
}
.site-header.journal-header .header-cta:hover {
  background: #b18a6f;
  transform: translateY(-1px);
}

.site-header.journal-header .menu-toggle { display: none; }
.mobile-menu { display: none; }

.journal-hero {
  position: relative;
  min-height: max(700px, 88svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--journal-header-height) + 42px) 0 70px;
  background: #10140f;
}
:is(.journal-hero > img, .journal-hero > picture img) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 51%;
  transform: none;
  filter: none;
}
.journal-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 8, .91) 0%, rgba(8, 13, 9, .78) 27%, rgba(8, 13, 9, .42) 49%, rgba(8, 13, 9, .12) 72%, rgba(8, 13, 9, .06) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .24) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .16) 100%);
}
.journal-hero .hero-copy {
  position: relative;
  z-index: 2;
  width: min(610px, 44vw);
  margin: 32px 0 0 clamp(42px, 4.5vw, 76px);
  color: #fff;
}
.journal-hero .eyebrow.light {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  color: #dfc6b2;
  font-size: 10px;
  letter-spacing: .25em;
}
.journal-hero .eyebrow.light::after {
  content: "";
  width: 76px;
  height: 1px;
  background: rgba(223, 198, 178, .72);
}
.journal-hero h1 {
  max-width: 610px;
  margin: 0 0 24px;
  font-size: clamp(54px, 5vw, 78px);
  line-height: .97;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.journal-hero .hero-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  line-height: 1.7;
}
.journal-hero .hero-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(223, 198, 178, .72);
  color: #ead7c7;
  font-size: 10px;
  letter-spacing: .20em;
  text-transform: uppercase;
}

@media (max-width: 1240px) {
  .site-header.journal-header {
    grid-template-columns: minmax(190px, 1fr) auto;
  }
  .site-header.journal-header .header-cta { display: none; }
  .site-header.journal-header .desktop-navigation { justify-self: end; }
}

/* STEP 2 — leggibilità menu desktop, invariata la hero e l'impaginazione */
@media (min-width: 981px) {
  .site-header.journal-header .desktop-navigation {
    font-size: 10px;
    letter-spacing: .15em;
  }
  .site-header.journal-header .header-cta {
    font-size: 9px;
  }
}

@media (max-width: 980px) {
  .site-header.journal-header .desktop-navigation {
    gap: 15px;
    font-size: 9px;
  }
  .journal-hero .hero-copy { width: min(570px, 49vw); }
  .journal-hero h1 { font-size: clamp(49px, 6vw, 68px); }
}

@media (max-width: 860px) {
  :root { --journal-header-height: 68px; }

  .site-header.journal-header,
  .site-header.journal-header.is-scrolled {
    min-height: var(--journal-header-height);
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    background: linear-gradient(180deg, rgba(9, 12, 9, .54), rgba(9, 12, 9, 0));
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header.journal-header.is-scrolled {
    background: rgba(18, 17, 15, .84);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
  }
  .site-header.journal-header .brand-name { font-size: 16px; }
  .site-header.journal-header .brand-subtitle { margin-top: 6px; font-size: 5.5px; }
  .site-header.journal-header .desktop-navigation,
  .site-header.journal-header .header-cta { display: none !important; }
  .site-header.journal-header .menu-toggle {
    display: block;
    padding: 12px 0 12px 18px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: 500 8px/1 "Manrope", sans-serif;
    letter-spacing: .20em;
    text-transform: uppercase;
  }

  .mobile-menu {
    position: fixed;
    z-index: 1400;
    inset: 0;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 94px 24px 44px;
    overflow-y: auto;
    background: var(--journal-night);
    color: #fff;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform .65s cubic-bezier(.77, 0, .18, 1), visibility 0s linear .65s;
  }
  .mobile-menu.open {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .mobile-menu .mobile-brand {
    position: absolute;
    top: max(23px, env(safe-area-inset-top));
    left: 22px;
    color: #fff;
  }
  .mobile-menu .mobile-brand.brand-logo { width: min(250px, 64vw); }
  .mobile-menu .mobile-brand .brand-name { font-size: 18px; }
  .mobile-menu .mobile-brand .brand-subtitle { font-size: 5.5px; }
  .mobile-menu .close {
    position: absolute;
    top: max(25px, env(safe-area-inset-top));
    right: 22px;
    padding: 8px 0 8px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: 500 9px/1 "Manrope", sans-serif;
    letter-spacing: .20em;
    text-transform: uppercase;
  }
  .mobile-menu > a:not(.mobile-brand) {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(34px, 10vw, 46px);
    font-weight: 400;
    line-height: 1;
  }
  .mobile-menu > a:not(.mobile-brand):hover,
  .mobile-menu > a:not(.mobile-brand):focus-visible,
  .mobile-menu > a.active {
    color: #c9b9aa;
  }
  .mobile-menu > a.active { font-style: italic; }

  .journal-hero {
    min-height: 100svh;
    align-items: flex-end;
    padding: calc(var(--journal-header-height) + 80px) 0 64px;
  }
  :is(.journal-hero > img, .journal-hero > picture img) {
    object-position: 58% 50%;
  }
  .journal-hero .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 11, 8, .27) 0%, rgba(7, 11, 8, .12) 28%, rgba(7, 11, 8, .68) 70%, rgba(7, 11, 8, .92) 100%),
      linear-gradient(90deg, rgba(7, 11, 8, .46), rgba(7, 11, 8, .08));
  }
  .journal-hero .hero-copy {
    width: 90%;
    margin: 0 auto;
  }
  .journal-hero .eyebrow.light { margin-bottom: 18px; }
  .journal-hero h1 {
    max-width: 620px;
    margin-bottom: 18px;
    font-size: clamp(44px, 11.5vw, 62px);
  }
  .journal-hero .hero-copy > p:not(.eyebrow) {
    max-width: 560px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .site-header.journal-header .brand-name { font-size: 14px; letter-spacing: .14em; }
  .site-header.journal-header .brand-subtitle { letter-spacing: .22em; }
  .journal-hero { min-height: 92svh; }
  :is(.journal-hero > img, .journal-hero > picture img) { object-position: 61% 50%; }
  .journal-hero h1 { font-size: clamp(40px, 11.6vw, 51px); }
  .journal-hero .hero-copy > p:not(.eyebrow) { line-height: 1.58; }
  .mobile-menu { gap: 14px; }
}

@media (max-width: 860px) and (max-height: 620px) {
  .mobile-menu {
    justify-content: flex-start;
    gap: 10px;
    padding-top: max(82px, calc(66px + env(safe-area-inset-top)));
  }
  .mobile-menu > a:not(.mobile-brand) { font-size: clamp(27px, 7vw, 35px); }
  .journal-hero { min-height: 680px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.journal-header,
  .mobile-menu { transition: none !important; }
}

/* Responsive image wrappers */
picture{display:contents}

/* Articolo in evidenza: proporzioni controllate su desktop e mobile. */
.featured-image {
  aspect-ratio: 16 / 10;
  max-height: 620px;
  overflow: hidden;
}
.featured-image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 820px) {
  .featured-image {
    width: 100%;
    max-height: none;
  }
}

/* Archivio guide completo: una card editoriale in evidenza e griglia scalabile. */
.guide-library { padding-top: 34px; }
.article-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
}
.article-card--wide > picture {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}
.article-card--wide > picture img {
  height: 100%;
  object-position: center;
}
.article-card--wide .card-copy { align-self: center; }

@media (max-width: 1100px) and (min-width: 821px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card--wide { grid-column: span 2; }
}

@media (max-width: 820px) {
  .article-card--wide {
    grid-column: auto;
    display: block;
  }
  .article-card--wide > picture {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}
