/* The bands under the products on the homepage: publications, news and the offices (19 November 2026, Gianmarco
   Mazzocchi: "both publications and news are restricted in width", "ditch the grey backgrounds and try going for a
   cleaner, more sleek style", "the map in our presence should be full width and bigger and the cards of the offices
   can be on top of it, probably smaller").

   Publications and news: white bands; each row starts at the left edge of the text and runs to the right edge of the
   screen; no boxes and no grey behind the cards; the title of a card takes the sea colour under the pointer.
   Offices: the map takes the full width and most of the screen; six small office cards lie on its lower part, where
   the map leaves room (the script of the map reads --map-foot). */
:root { --hb-left: max(48px, calc((100vw - 1320px) / 2 + 48px)); }
@media (max-width: 760px) { :root { --hb-left: 24px; } }

/* ---- publications ---- */
#insights.pub-rounded-modern { background: #fff; }
#insights .bookrail { max-width: none; margin-left: 0; margin-right: 0; gap: clamp(22px, 2.2vw, 34px);
  padding: 10px var(--hb-left) 22px; scroll-padding: 0 var(--hb-left); }
#insights .book { flex: 0 0 clamp(200px, 18.5vw, 290px); }
/* 19 November 2026 (Gianmarco Mazzocchi: "add a slight animation, like a slight tilt or lift on the book covers"):
   under the pointer a cover rises a little and turns as a book taken from a shelf. The site rule that stops hover
   lifts (index, "html body :is(... .book:hover .cover ...)") is important, so these two values are important too. */
#insights .bookrail { padding-top: 22px; }
#insights .book .cover { box-shadow: 0 1px 2px rgba(2,24,37,.08), 0 10px 28px rgba(2,24,37,.10); transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s cubic-bezier(.2,.7,.2,1); will-change: transform; }
#insights .book:hover .cover, #insights .book:focus-visible .cover { transform: perspective(900px) translateY(-8px) rotateY(-5deg) rotateZ(-.5deg) !important;
  box-shadow: 0 2px 4px rgba(2,24,37,.10), 14px 22px 40px rgba(2,24,37,.18) !important; }
@media (prefers-reduced-motion: reduce) { #insights .book .cover { transition: none; } #insights .book:hover .cover, #insights .book:focus-visible .cover { transform: none !important; } }
#insights .book .tg { margin-top: 16px; font-size: 13px; }
#insights .book h3 { font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.32; transition: color .2s; }
#insights .book:hover h3, #insights .book:focus-visible h3 { color: var(--sea); }

/* ---- news ---- */
/* the row runs from edge to edge of the screen, as the row of publications: a card that scrolls out goes to the
   edge of the screen and is not cut at the margin of the text */
#home-news { background: #fff; }
#home-news .hn-scroll { gap: clamp(22px, 2.2vw, 34px); padding: 34px var(--hb-left) 10px; margin-inline: calc(-1 * var(--hb-left)); scroll-padding-left: var(--hb-left); }
/* 19 November 2026: eight items in place of four, and narrower cards, so four stand in view on a desktop screen */
#home-news .hn-card { flex: 0 0 clamp(250px, 21.5vw, 340px); background: none !important; border: 0 !important; border-radius: 0 !important; overflow: visible; box-shadow: none !important; }
#home-news .hn-card:hover { transform: none; box-shadow: none !important; }
#home-news .hn-cover { border-radius: 14px; overflow: hidden; background: #EDF2F6; }
#home-news .hn-meta { padding: 16px 2px 0; }
#home-news .hn-date { font-size: 13px; }
#home-news .hn-meta h3 { font-size: clamp(16.5px, 1.2vw, 18.5px); line-height: 1.3; transition: color .2s; }
#home-news .hn-card:hover h3, #home-news .hn-card:focus-visible h3 { color: var(--sea); }

/* ---- offices ---- */
/* 19 November 2026: larger office cards, three in a row on two rows (six small cards in one row before) */
#contact .mapbox { --map-foot: 300px; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
  height: clamp(600px, 82vh, 820px); border: 0 !important; border-radius: 0 !important; background: #F2F6F9 !important; }
#contact .mapbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#contact .mdot.is-hot .pin { transform: scale(1.6); }
#contact .city-cards { position: relative; z-index: 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-top: calc(-1 * var(--cards-up, 262px)); }
#contact .ccard { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px;
  border: 1px solid #DCE5EA !important; border-radius: 14px !important; background: #fff !important; box-shadow: 0 10px 30px rgba(2,24,37,.08); }
#contact .ccard:hover { border-color: rgba(33,99,147,.45) !important; }
#contact .ccard .cimg { width: 76px !important; height: 76px !important; border-radius: 10px; }
#contact .ccard .bd { padding: 0 !important; min-width: 0; }
#contact .ccard .ct { font-size: 18px !important; line-height: 1.2; font-weight: 650; color: var(--ink) !important; }
#contact .ccard .ad { margin-top: 5px !important; font-size: 14px !important; line-height: 1.4; color: #4C6372 !important; }
#contact .ccard .tel { display: block; margin-top: 5px !important; font-size: 14px !important; color: var(--sea) !important; }
#contact .ccard .hqtag { display: block; width: max-content; margin: 4px 0 0; }
@media (max-width: 1000px) {
  #contact .city-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); --cards-up: 372px; }
  #contact .mapbox { --map-foot: 410px; height: clamp(700px, 90vh, 860px); }
}
@media (max-width: 760px) {
  #contact .mapbox { --map-foot: 24px; height: 340px; }
  #contact .city-cards { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; --cards-up: 0px; }
}
