/* =========================
   GRO - Observatory sections
   Palette:
   Orange #EA7600
   Black  #000000
   Shadow #00000029
========================= */

.gro-modal-open {
  overflow: hidden;
}

.gro-section {
  position: relative;
}

.gro-section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.gro-section-heading h2 {
  margin: 0;
  color: #EA7600;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
}

.gro-section-heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
}

/* =========================
   ABOUT + HOT TAKE DESKTOP
========================= */

.gro-about-hot-take-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.gro-about-hot-take-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 420px);
  gap: 56px;
  align-items: start;
}

.gro-about-hot-take-main,
.gro-hot-take-column {
  min-width: 0;
}

.gro-left-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 420px);
  gap: 56px;
  align-items: start;
}

.gro-left-column-main {
  min-width: 0;
}

/* =========================
   ABOUT GRO
========================= */

.gro-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}

.gro-about-documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-content: start;
}

.gro-doc-card {
  /* min-height: 88px; */
  padding: 18px 22px;
  border: 1px solid #EA7600;
  border-radius: 22px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #000000;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.gro-doc-card:hover {
  transform: translateY(-2px);
  background: rgba(234, 118, 0, 0.02);
}

.gro-doc-card.has-shadow-hover:hover {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.gro-doc-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #EA7600;
  font-size: 1.6rem;
}

.gro-doc-card__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.gro-doc-card__label {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.gro-video-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 206px;
  overflow: hidden;
  border: 2px solid #EA7600;
  border-radius: 24px;
  padding: 0;
  background: #000;
  cursor: pointer;
  align-self: start;
}

.gro-video-card__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.gro-video-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease, opacity .25s ease;
}

.gro-video-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,.06), rgba(0,0,0,.34));
  z-index: 1;
}

.gro-video-card:hover .gro-video-card__media img {
  transform: scale(1.04);
  opacity: 0.88;
}


.gro-video-card__play img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.gro-video-card__label {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

/* =========================
   COMMON SWIPER CARDS
========================= */

.gro-swiper-wrap {
  position: relative;
}

.gro-resource-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gro-resource-card__image {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(234, 118, 0, 0.06);
  aspect-ratio: 4 / 3;
}

.gro-resource-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.gro-resource-card:hover .gro-resource-card__image img {
  transform: none;
}

.gro-resource-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gro-resource-card__date {
  margin: 0;
  color: rgba(0,0,0,.75);
  font-size: .95rem;
  text-transform: uppercase;
}

.gro-resource-card__title {
  margin: 0;
  color: #000;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
}

.gro-resource-card__meta {
  margin: 0;
  color: #000;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}

.gro-resource-card__action {
  margin-top: 12px;
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  color: #EA7600;
  font-size: .95rem;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition: none;
}

.gro-resource-card__action > span:last-child {
  display: block;
  line-height: 0.5;
  margin: 0;
  padding: 0;
}

.gro-resource-card__action,
.gro-resource-card__action:hover,
.gro-resource-card__action:focus,
.gro-resource-card__action:active {
  color: #EA7600 !important;
  text-decoration: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.gro-resource-card__action:hover {
  transform: none;
}

.gro-resource-card__action-icon {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 1rem;
}

.gro-resource-card__action-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gro-slider-controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.gro-pagination {
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gro-pagination .swiper-pagination-bullet {
  margin: 0 !important;
  width: 7px;
  height: 7px;
  opacity: 1;
  background: rgba(0,0,0,.2);
}

.gro-pagination .swiper-pagination-bullet-active {
  background: #EA7600;
}

.gro-slider-next,
.gro-hot-take-next {
  width: 34px;
  height: 34px;
  border: 1px solid #EA7600;
  border-radius: 999px;
  background: transparent;
  color: #EA7600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.gro-slider-next:hover,
.gro-hot-take-next:hover {
  background: #EA7600;
  color: #fff;
  transform: translateX(2px);
}

/* =========================
   HOT TAKE
========================= */

.gro-hot-take-column {
  min-width: 0;
}

.gro-hot-take-box {
  border: 2px solid #EA7600;
  border-radius: 28px;
  padding: 18px 18px 20px;
  overflow: hidden;
  background-color: #F7F7F7;
}

.gro-hot-take-box .swiper {
  overflow: hidden;
}

.gro-hot-take-box .swiper-slide {
  height: auto !important;
}

.gro-hot-take-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0 18px;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid rgba(234, 118, 0, .7);
  min-height: 0;
}

.gro-hot-take-card__image {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1.45 / 1;
  background: rgba(234, 118, 0, 0.07);
}

.gro-hot-take-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gro-hot-take-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gro-hot-take-card__category,
.gro-hot-take-card__country,
.gro-hot-take-card__meta,
.gro-hot-take-card__preview {
  display: block;
}

.gro-hot-take-card__category {
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(0,0,0,.75);
}

.gro-hot-take-card__country {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  line-height: 1.15;
}

.gro-hot-take-card__meta {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.gro-hot-take-card__preview {
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(0,0,0,.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.gro-hot-take-controls {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.gro-hot-take-next {
  width: 34px;
  height: 34px;
  border: 1px solid #EA7600;
  border-radius: 999px;
  background: transparent;
  color: #EA7600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   VIDEO MODAL
========================= */

.gro-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.gro-video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gro-video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}

.gro-video-modal__dialog {
  position: relative;
  width: min(1100px, calc(100vw - 40px));
  margin: 5vh auto 0;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
}

.gro-video-modal__close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
}

.gro-video-modal__ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.gro-video-modal__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================
   DETAIL PAGE / HOT TAKE SINGLE
========================= */

.gro-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: #fff;
  background: transparent;
}

.gro-detail-hero__image {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
}

/* Overlay arancione SOLO a sinistra */
.gro-detail-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(rgba(252, 115, 51, 0.5), rgba(252, 115, 51, 0.5));
  z-index: 1;
}

.gro-detail-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  padding: 90px 32px;
}

.gro-detail-hero__title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
}

.gro-detail-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 72px 32px 100px;
}

.gro-detail-subtitle {
  margin: 0 0 18px;
  color: #EA7600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.18;
  font-weight: 700;
}

.gro-detail-text {
  color: #000;
  line-height: 1.8;
  font-size: 1.04rem;
}

.gro-detail-text > *:first-child {
  margin-top: 0;
}

.gro-detail-gallery {
  margin-top: 48px;
  display: grid;
  gap: 28px;
}

.gro-detail-gallery.cols-1 { grid-template-columns: 1fr; }
.gro-detail-gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gro-detail-gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gro-detail-gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gro-detail-gallery__item {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(234, 118, 0, .07);
}

.gro-detail-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s ease;
}

.gro-detail-gallery__item:hover img {
  transform: scale(1.025);
}

.gro-detail-buttons {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.gro-detail-btn {
  min-width: 268px;
  min-height: 68px;
  padding: 14px 26px;
  border: 1px solid #EA7600;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.gro-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
  background: rgba(234, 118, 0, .02);
}

.gro-detail-btn__icon {
  color: #EA7600;
  font-size: 1.45rem;
  display: inline-flex;
}

.gro-detail-btn__icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* =========================
   LIGHTBOX
========================= */

.gro-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.gro-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gro-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
}

.gro-lightbox__dialog {
  position: relative;
  width: min(1280px, calc(100vw - 24px));
  margin: 4vh auto;
  padding: 56px 60px;
}

.gro-lightbox__close,
.gro-lightbox__prev,
.gro-lightbox__next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.gro-lightbox__close {
  top: 0;
  right: 0;
  font-size: 2rem;
}

.gro-lightbox__prev,
.gro-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
}

.gro-lightbox__prev { left: 0; }
.gro-lightbox__next { right: 0; }

.gro-lightbox__image-wrap {
  text-align: center;
}

.gro-lightbox__image-wrap img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 18px;
}

/* RESET LINK STYLE GRO */
.gro-hot-take-card,
.gro-hot-take-card:hover,
.gro-hot-take-card:focus,
.gro-hot-take-card:active {
  color: #000 !important;
  text-decoration: none !important;
}

.gro-hot-take-card * {
  text-decoration: none !important;
  color: inherit !important;
}

.gro-doc-card,
.gro-doc-card:hover,
.gro-doc-card:focus,
.gro-doc-card:active {
  text-decoration: none !important;
  color: #000 !important;
}

.gro-sections-layout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: start;
}

.gro-sections-layout__main {
  min-width: 0;
}

.gro-sections-layout__aside {
  min-width: 0;
  align-self: start;
}

.gro-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 24px;
  align-items: start;
}

.gro-about-documents {
  min-width: 0;
}

.gro-hot-take-box {
  position: sticky;
  top: 24px;
}

/* =========================
   FIX HEADER OVERLAY
========================= */

.gro-detail-page {
  padding-top: 110px; /* desktop */
}

@media (max-width: 1023px) {
  .gro-detail-page {
    padding-top: 90px;
  }
}

@media (max-width: 767px) {
  .gro-detail-page {
    padding-top: 70px;
  }

  .gro-detail-hero::before {
    width: 100%;
    height: 50%;
  }
}

@media (max-width: 1023px) {
  .gro-sections-layout__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gro-about-grid {
    grid-template-columns: 1fr;
  }

  .gro-hot-take-box {
    position: static;
    top: auto;
  }
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1279px) {
  .gro-about-hot-take-layout,
  .gro-left-column-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 1023px) {
  .gro-section-heading h2 {
    font-size: 1.8rem;
  }

  .gro-about-grid {
    grid-template-columns: 1fr;
  }

  .gro-about-documents {
    grid-template-columns: 1fr 1fr;
  }

  .gro-video-card {
    min-height: 260px;
  }

  .gro-hot-take-box {
    padding: 14px;
  }
}

@media (max-width: 767px) {
  .gro-section-heading {
    gap: 14px;
    margin-bottom: 22px;
  }

  .gro-section-heading h2 {
    font-size: 1.55rem;
  }

  .gro-about-documents {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gro-doc-card {
    min-height: 76px;
    border-radius: 18px;
    padding: 16px 18px;
    gap: 8px;
  }

  .gro-doc-card__label {
    font-size: 1rem;
  }

  .gro-video-card {
    min-height: 220px;
    border-radius: 18px;
  }

  .gro-video-card__play {
    width: 68px;
    height: 68px;
    font-size: 1.5rem;
  }

  .gro-resource-card__title {
    font-size: 1.12rem;
  }

  .gro-hot-take-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 0 18px;
  }

  .gro-hot-take-card__country {
    font-size: 1.12rem;
  }

  .gro-hot-take-card__preview {
    -webkit-line-clamp: 4;
  }

  .gro-slider-controls {
    margin-top: 18px;
  }

  .gro-video-modal__dialog {
    width: calc(100vw - 20px);
    margin-top: 12vh;
    border-radius: 24px;
  }

  .gro-video-modal__close {
    top: 8px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .gro-detail-hero {
    min-height: 240px;
    background: linear-gradient(180deg, #b67e45 0%, #b67e45 48%, #d9d9d9 48%, #d9d9d9 100%);
  }

  .gro-detail-hero__inner,
  .gro-detail-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gro-detail-hero__inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .gro-detail-content {
    padding-top: 46px;
    padding-bottom: 70px;
  }

  .gro-detail-gallery.cols-2,
  .gro-detail-gallery.cols-3,
  .gro-detail-gallery.cols-4 {
    grid-template-columns: 1fr;
  }

  .gro-detail-btn {
    width: 100%;
    min-width: 0;
  }

  .gro-lightbox__dialog {
    width: calc(100vw - 16px);
    padding: 52px 16px;
  }

  .gro-lightbox__prev,
  .gro-lightbox__next {
    font-size: 1.6rem;
  }
}


/* =========================
   GLOBAL BORDER RADIUS OVERRIDE
========================= */
.gro-doc-card,
.gro-video-card,
.gro-resource-card__image,
.gro-hot-take-box,
.gro-hot-take-card__image,
.gro-slider-next,
.gro-hot-take-next,
.gro-video-modal__dialog,
.gro-detail-gallery__item,
.gro-detail-btn,
.gro-lightbox__image-wrap img {
  border-radius: 1.5rem !important;
}


/* =========================
   ABOUT GRO – DESKTOP PROPORTIONS
========================= */
@media (min-width: 1024px) {
  .gro-sections-layout__grid {
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 48px;
  }

  .gro-about-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 360px);
    gap: 22px;
    align-items: start;
  }

  .gro-about-documents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
  }

  .gro-video-card {
    width: 100%;
    max-width: 360px;
    min-height: 206px;
    justify-self: end;
    align-self: start;
  }

  .gro-video-card__media,
  .gro-video-card__media img {
    width: 100%;
    height: 100%;
  }
}


/* =========================
   ABOUT GRO – VIDEO SMALLER LIKE MOCKUP
========================= */
@media (min-width: 1024px) {
  .gro-about-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 340px) !important;
  }

  .gro-video-card {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 16 / 9;
    min-height: auto !important;
    justify-self: end;
    align-self: start;
  }
}


/* =========================
   ABOUT GRO – VIDEO PROPORTIONS REFINED TO MATCH MOCKUP
========================= */
@media (min-width: 1024px) {
  .gro-about-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(240px, 300px) !important;
    gap: 18px !important;
    align-items: start;
  }

  .gro-about-documents {
    gap: 16px !important;
  }

  .gro-video-card {
    width: 100%;
    max-width: 300px !important;
    aspect-ratio: 16 / 9;
    min-height: 0 !important;
    height: auto !important;
    justify-self: end;
    align-self: start;
  }

  .gro-video-card__overlay {
    padding: 18px;
    gap: 10px;
  }

  .gro-video-card__label {
    font-size: 1rem;
  }
}


/* =========================
   ABOUT GRO – EXTRA NARROW VIDEO
========================= */
@media (min-width: 1024px) {
  .gro-about-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(220px, 260px) !important;
  }

  .gro-video-card {
    max-width: 260px !important;
  }
}

/* =========================
   HOT TAKE - show 3 items then slider
========================= */

.gro-hot-take-box {
  overflow: hidden;
}

.gro-hot-take-box .js-gro-swiper-vertical {
  overflow: hidden;
}

.gro-hot-take-box .swiper-wrapper {
  align-items: stretch;
}

.gro-hot-take-box .swiper-slide {
  height: auto !important;
}

@media (min-width: 1024px) {
  .gro-hot-take-box .js-gro-swiper-vertical {
    height: auto;
    transition: height .2s ease;
  }

  .gro-hot-take-controls {
    padding-top: 16px;
  }
}
