/* Componenti delle schede prodotto TV Hotel. Caricare dopo Salient e WooCommerce. */

.woocommerce-Tabs-panel--description,
.tvh-romeo-card,
.tvh-archive-successor {
  --tvh-forest: #183b29;
  --tvh-green: #277833;
  --tvh-lime: #9ec645;
  --tvh-ink: #27312b;
  --tvh-muted: #46594b;
  --tvh-mist: #f5f8f4;
  --tvh-line: #dde6de;
}

.woocommerce-Tabs-panel--description code {
  display: inline !important;
  padding: 1px 6px;
  margin: 0;
  background: #eef3ee;
  border-radius: 4px;
  font-size: 0.9em;
  color: #183b29;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Tabelle tecniche importate (etichette di riga) e nuove tabelle con classe esplicita. */
.woocommerce-Tabs-panel--description :is(
  table.tvh-product-specs,
  table:has(> tbody > tr > th[scope="row"])
):not(.romeo-configurator *) {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  border: 1px solid var(--tvh-line);
  border-collapse: separate !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: var(--tvh-ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.woocommerce-Tabs-panel--description :is(
  table.tvh-product-specs,
  table:has(> tbody > tr > th[scope="row"])
):not(.romeo-configurator *) :is(th, td) {
  padding: 11px clamp(10px, 1.5vw, 18px) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tvh-line) !important;
  background: #fff;
  color: var(--tvh-ink);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.woocommerce-Tabs-panel--description :is(
  table.tvh-product-specs,
  table:has(> tbody > tr > th[scope="row"])
):not(.romeo-configurator *) th {
  background: var(--tvh-mist) !important;
  color: var(--tvh-forest) !important;
  font-weight: 700 !important;
}

.woocommerce-Tabs-panel--description :is(
  table.tvh-product-specs,
  table:has(> tbody > tr > th[scope="row"])
):not(.romeo-configurator *) tbody > tr:last-child > :is(th, td) {
  border-bottom: 0 !important;
}

/* Compatibilità con l’avviso archivio importato senza una classe. */
.woocommerce-Tabs-panel--description > :is(
  .tvh-product-callout,
  div[style*="border-left:4px"]:is([style*="#fff9ec"], [style*="#dce6dc"]):first-of-type
) {
  margin: 0 0 22px !important;
  padding: clamp(14px, 2vw, 22px) !important;
  border: 1px solid var(--tvh-line) !important;
  border-radius: 12px !important;
  background: var(--tvh-mist) !important;
  color: var(--tvh-ink) !important;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.woocommerce-Tabs-panel--description > :is(
  .tvh-product-callout,
  div[style*="border-left:4px"]:is([style*="#fff9ec"], [style*="#dce6dc"]):first-of-type
) > strong:first-child {
  color: var(--tvh-forest);
}

.woocommerce-Tabs-panel--description > :is(
  .tvh-product-callout,
  div[style*="border-left:4px"]:is([style*="#fff9ec"], [style*="#dce6dc"]):first-of-type
) a {
  color: #215e2a !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 0.18em;
}

/* Hech Romeo */
.tvh-romeo-card {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: stretch;
  box-sizing: border-box;
  max-width: 100%;
  margin: clamp(26px, 4vw, 48px) 0 20px;
  padding: clamp(18px, 3.2vw, 46px);
  border: 1px solid var(--tvh-forest);
  border-radius: clamp(16px, 2vw, 24px);
  background: var(--tvh-forest);
  color: #fff;
  font-family: inherit;
  overflow-wrap: anywhere;
}

.tvh-romeo-card .tvh-romeo-card__copy {
  align-self: center;
  min-width: 0;
}

.tvh-romeo-card :is(h3, p):is(.tvh-romeo-card__eyebrow, .tvh-romeo-card__title, .tvh-romeo-card__intro, .tvh-romeo-card__note),
.tvh-archive-successor :is(p, h3) {
  margin: 0 !important;
  padding: 0 !important;
}

.tvh-romeo-card .tvh-romeo-card__eyebrow,
.tvh-archive-successor .tvh-archive-successor__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.tvh-romeo-card .tvh-romeo-card__eyebrow {
  color: #c7e49b !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

.tvh-romeo-card h3.tvh-romeo-card__title {
  margin-top: 10px !important;
  color: #fff !important;
  font-size: clamp(25px, 3.05vw, 43px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.09;
  text-wrap: balance;
}

.tvh-romeo-card p.tvh-romeo-card__intro {
  margin-top: 14px !important;
  color: #ebf3eb !important;
  font-size: clamp(14px, 1.25vw, 16px) !important;
  line-height: 1.58 !important;
}

.tvh-romeo-card .tvh-romeo-card__intro strong {
  color: #fff !important;
}

.tvh-romeo-card ul.tvh-romeo-card__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tvh-romeo-card .tvh-romeo-card__benefits > li {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  margin: 0 !important;
  padding: 11px 10px !important;
  border: 1px solid #456651;
  border-radius: 10px;
  background: #244734;
  line-height: 1.4;
  list-style: none !important;
}

.tvh-romeo-card .tvh-romeo-card__benefits > li::before {
  content: none;
}

.tvh-romeo-card .tvh-romeo-card__benefits strong,
.tvh-romeo-card .tvh-romeo-card__benefits span {
  display: block;
}

.tvh-romeo-card .tvh-romeo-card__benefits strong {
  color: #f8fbf7 !important;
  font-size: 13px;
  font-weight: 700;
}

.tvh-romeo-card .tvh-romeo-card__benefits span {
  margin-top: 3px;
  color: #dceade;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.tvh-romeo-card .tvh-romeo-card__actions {
  margin-top: 22px;
}

.tvh-romeo-card a.tvh-romeo-card__cta,
.tvh-archive-successor a.tvh-archive-successor__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: normal;
}

.tvh-romeo-card a.tvh-romeo-card__cta {
  background: var(--tvh-lime) !important;
  color: #102b1c !important;
}

.tvh-romeo-card a.tvh-romeo-card__cta:hover,
.tvh-romeo-card a.tvh-romeo-card__cta:focus-visible {
  background: #c7e49b !important;
}

.tvh-romeo-card .tvh-romeo-card__cta > span,
.tvh-archive-successor .tvh-archive-successor__cta > span {
  flex: none;
  font-size: 1.2em !important;
  line-height: 1 !important;
}

.tvh-romeo-card a:focus-visible,
.tvh-archive-successor a:focus-visible {
  outline: 2px solid var(--tvh-forest) !important;
  outline-offset: 3px;
}

.tvh-romeo-card a:focus-visible {
  outline-color: #d4eca9 !important;
}

.tvh-romeo-card p.tvh-romeo-card__note {
  margin-top: 12px !important;
  color: #dceade !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.tvh-romeo-card figure.tvh-romeo-card__visual {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  margin: 0 !important;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid #d6e4d3;
  border-radius: clamp(12px, 1.6vw, 18px);
  background: radial-gradient(ellipse at 50% 42%, #fff 0%, var(--tvh-mist) 53%, #dfeadb 100%);
  color: var(--tvh-forest);
}

.tvh-romeo-card .tvh-romeo-card__visual img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.tvh-romeo-card .tvh-romeo-card__visual img[src*="/compo-romeo"] {
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.tvh-romeo-card .tvh-romeo-card__visual figcaption {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #cfdecc;
  color: #314d35;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .tvh-romeo-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .tvh-romeo-card ul.tvh-romeo-card__benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .tvh-romeo-card .tvh-romeo-card__benefits > li {
    padding: 9px 11px !important;
  }

  .tvh-romeo-card a.tvh-romeo-card__cta {
    width: 100%;
    justify-content: space-between;
  }
}

/* Sostituto in archivio, nel riepilogo prodotto WooCommerce. */
.tvh-archive-successor {
  container-type: inline-size;
  box-sizing: border-box;
  max-width: 100%;
  margin: 20px 0 24px;
  overflow: hidden;
  border: 1px solid var(--tvh-line);
  border-radius: 14px;
  background: var(--tvh-mist);
  color: var(--tvh-ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tvh-archive-successor .tvh-archive-successor__header {
  padding: 11px 16px;
  background: var(--tvh-forest);
  color: #fff;
}

.tvh-archive-successor p.tvh-archive-successor__eyebrow {
  color: #e5f2d4 !important;
}

.tvh-archive-successor .tvh-archive-successor__body {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-width: 0;
  padding: 15px 16px 16px;
}

.tvh-archive-successor .tvh-archive-successor__details {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tvh-archive-successor p.tvh-archive-successor__label {
  color: var(--tvh-muted);
  font-size: 13px;
}

.tvh-archive-successor h3.tvh-archive-successor__name {
  color: var(--tvh-forest) !important;
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 700;
  line-height: 1.24;
}

.tvh-archive-successor .tvh-archive-successor__price {
  color: var(--tvh-forest);
  font-size: 14px;
  font-weight: 700;
}

.tvh-archive-successor .tvh-archive-successor__price ins {
  text-decoration: none;
}

.tvh-archive-successor .tvh-archive-successor__price small,
.tvh-archive-successor .tvh-archive-successor__price del {
  color: var(--tvh-muted);
  font-size: 12px;
  font-weight: 400;
}

.tvh-archive-successor a.tvh-archive-successor__cta {
  background: var(--tvh-green) !important;
  color: #fff !important;
}

.tvh-archive-successor a.tvh-archive-successor__cta:hover,
.tvh-archive-successor a.tvh-archive-successor__cta:focus-visible {
  background: #205e2a !important;
}

.tvh-archive-successor a.tvh-archive-successor__series {
  color: #215e2a !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline !important;
  text-underline-offset: 0.18em;
}

@container (min-width: 520px) {
  .tvh-archive-successor .tvh-archive-successor__body {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 20px;
  }

  .tvh-archive-successor a.tvh-archive-successor__series {
    grid-column: 1 / -1;
  }
}
