/* OHT — stile ricostruito a partire da www.oht.art (palette, font, breakpoint identici) */

:root {
  --oht-red: #ff0d00;
  --oht-black: #000000;
  --oht-white: #ffffff;
  --oht-gray-dark: #333333;
  --oht-gray-text: #6f6969;
  --oht-gray-border: #babababa;
  --oht-orange: #eb5926;
  --oht-orange-hover: #d7391f;
  --oht-highlight: #ffbfb5;
  --oht-divider: rgba(0, 0, 0, .5);
  --oht-placeholder-bg: #efece4;
}

/* Dark mode: il rosso resta invariato, il resto si inverte */
[data-theme="dark"] {
  --oht-black: #ffffff;
  --oht-white: #000000;
  --oht-gray-dark: #cfcfcf;
  --oht-gray-text: #a8a8a8;
  --oht-gray-border: #4a4a4a;
  --oht-highlight: #4a1410;
  --oht-divider: rgba(255, 255, 255, .5);
  --oht-placeholder-bg: #2a2a2a;
}

body {
  transition: background-color .2s, color .2s;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--oht-black);
  background: var(--oht-white);
  font-size: 1.3vw;
  line-height: 1.5vw;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--oht-black);
  text-decoration: none;
}

a:hover {
  color: var(--oht-red);
}

strong,
b {
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  margin: 0 0 20px;
}

h1 {
  font-size: 45px;
}

h2 {
  font-size: 35px;
}

h3 {
  font-size: 25px;
}

h4 {
  font-size: 20px;
}

img {
  max-width: 100%;
  height: auto;
}

.oht-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

.bg-dot {
  background-image: radial-gradient(circle, var(--oht-gray-border) 1px, transparent 1.5px);
  background-size: 20px 20px;
}

/* ------------------------------------------------------------------ */
/* Nav — testata pagine interne, identica a quella della home         */
/* ------------------------------------------------------------------ */

.oht-hero-top.oht-page-top {
  position: static;
  padding-bottom: 20px;
}

.oht-home-nav li.current a {
  color: var(--oht-red);
}

/* ------------------------------------------------------------------ */
/* Hero home — mockup Artboard-01-HOMEPAGE                            */
/* ------------------------------------------------------------------ */

.oht-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: var(--oht-black);
}

.oht-hero-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: clamp(20px, 3vw, 50px) clamp(25px, 5vw, 80px) 0;
  box-sizing: border-box;
}

.oht-hero-top.oht-container {
  max-width: none;
}

.oht-home-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  list-style: none;
  margin: 0;
  padding: 0;
}

.oht-home-nav a {
  font-size: clamp(26px, 3vw, 50px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--oht-black);
  letter-spacing: -.01em;
}

.oht-home-nav a:hover {
  color: var(--oht-red);
}

.oht-lang-switch {
  text-align: right;
  font-size: 14px;
  padding: 30px 0 6px;
}

.oht-lang-switch a {
  color: var(--oht-black);
}

.oht-lang-switch a.active {
  color: var(--oht-red);
}

.oht-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  margin-left: 0;
  color: var(--oht-black);
  cursor: pointer;
  vertical-align: middle;
}

.oht-theme-toggle svg {
  width: 12px;
  height: 12px;
  margin-top: -2px;
}

.oht-theme-toggle .oht-theme-icon-sun {
  display: none;
}

[data-theme="dark"] .oht-theme-toggle .oht-theme-icon-moon {
  display: none;
}

[data-theme="dark"] .oht-theme-toggle .oht-theme-icon-sun {
  display: block;
}

.oht-hero-divider {
  border: 0;
  border-top: 1px solid var(--oht-divider);
  margin: 0;
}

.oht-hero-tagline {
  font-size: clamp(22px, 2.6vw, 42px);
  line-height: 1.3;
  font-weight: 600;
  margin: 20px 0 0;
  max-width: 1100px;
}

.oht-hero-tagline .brand {
  color: var(--oht-red);
}

.oht-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 2px solid var(--oht-red);
  color: var(--oht-red);
  background: none;
  padding: 10px 16px;
  margin: 0 0 40px 70px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(16px, 1.6vw, 26px);
  position: relative;
  z-index: 2;
  align-self: flex-start;
}

.oht-badge em {
  color: var(--oht-red);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
}

.oht-highlight {
  position: relative;
  aspect-ratio: var(--oht-highlight-ratio, 16 / 9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background-size: cover;
  background-position: center;
  background-color: var(--oht-black);
  margin: 20px 0;
  overflow: hidden;
}

.oht-highlight-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
}

.oht-embed-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.oht-embed-16x9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------------------------ */
/* Agenda / Press blocchi (home)                                      */
/* ------------------------------------------------------------------ */

.oht-block {
  position: relative;
  padding: 60px 25px;
}

.oht-block-title {
  color: var(--oht-black);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 34px);
  margin-bottom: 25px;
}

.oht-agenda-wrap {
  margin-left: auto;
  max-width: 850px;
  padding: 10px 20px 30px;
}

.oht-agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.4;
}

.oht-agenda-list li {
  padding: 0;
}

.oht-agenda-list li a {
  padding: 0;
}

.oht-agenda-list .project {
  font-weight: 600;
}

.oht-agenda-list .type {
  color: var(--oht-red);
  font-weight: 600;
}

.oht-agenda-list .meta {
  color: var(--oht-black);
}

/* Social + Newsletter */

.oht-social-newsletter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 50px 25px;
  text-transform: uppercase;
  font-weight: 600;
}

.oht-social-col a {
  display: block;
  color: var(--oht-black);
}

.oht-social-col a:hover {
  color: var(--oht-red);
}

.oht-newsletter-col {
  text-align: right;
}

.oht-newsletter-col a {
  color: var(--oht-black);
}

.oht-newsletter-col a:hover {
  color: var(--oht-red);
}

/* Press — articoli in evidenza, 3 per riga */

.oht-press-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 25px 80px;
}

.oht-press-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.oht-press-feature-title {
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
}

.oht-press-feature-subtitle {
  font-weight: 400;
  margin-bottom: 20px;
}

.oht-press-frame {
  display: inline-block;
  padding: 40px;
  background-image: radial-gradient(circle, var(--oht-gray-border) 1px, transparent 1.5px);
  background-size: 20px 20px;
}

.oht-press-frame img {
  display: block;
  max-width: 100%;
  background: var(--oht-placeholder-bg);
}

.oht-press-feature a {
  color: var(--oht-black);
}

.oht-press-feature a:hover {
  color: var(--oht-red);
}

/* ------------------------------------------------------------------ */
/* Bottoni                                                             */
/* ------------------------------------------------------------------ */

.button,
button.oht-button,
a.oht-button {
  display: inline-block;
  background: var(--oht-orange);
  color: var(--oht-white);
  border: 0;
  padding: 12px 28px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
}

.button:hover,
button.oht-button:hover,
a.oht-button:hover {
  background: var(--oht-orange-hover);
  color: var(--oht-white);
}

/* ------------------------------------------------------------------ */
/* Work — listing                                                      */
/* ------------------------------------------------------------------ */

#work-page {
  max-width: none;
  margin: 0 auto;
  padding: 30px clamp(25px, 5vw, 80px) 60px;
}

.works-pretitle {
  color: var(--oht-red);
  font-size: 1.5vw;
  margin-bottom: 6px;
}

/* ------------------------------------------------------------------ */
/* Work — dettaglio                                                    */
/* ------------------------------------------------------------------ */

#work-page h2 {
  color: var(--oht-red);
  text-transform: lowercase;
  font-size: 25px;
  margin-bottom: 10px;
}

.oht-work-detail-title {
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 20px;
}

.oht-work-meta-block {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--oht-gray-border);
}

.oht-work-meta-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.oht-work-meta-value {
  font-size: 32px;
  margin: 0;
}

.oht-work-media-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
  padding: 25px;
}

.oht-work-media-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery scatter (porting fedele da oht.art, vedi js/scatter-gallery.js) */

.oht-scatter-gallery {
  position: relative;
  padding: 25px;
  margin: 40px 0;
}

.oht-custom-gallery {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.oht-custom-gallery img {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
}

/* ------------------------------------------------------------------ */
/* About page                                                          */
/* ------------------------------------------------------------------ */

#about-page {
  max-width: none;
  margin: 0 auto;
  padding: 30px clamp(25px, 5vw, 80px) 60px;
}

#about-page h2 {
  color: var(--oht-red);
  text-transform: lowercase;
  font-size: 25px;
  margin-bottom: 10px;
}

.oht-error-page {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.oht-error-page h1 {
  font-size: 80px;
  color: var(--oht-red);
}

.oht-error-subtitle {
  font-size: 22px;
  margin: 0 0 20px;
}

.oht-error-text {
  color: var(--oht-gray-text);
  margin: 0 0 20px;
}

.oht-about-intro h1 {
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 15px;
}

.oht-about-intro h1 strong {
  color: var(--oht-red);
  font-weight: 600;
}

.oht-about-readmore {
  margin: 0;
}

.oht-about-divider {
  border: 0;
  border-top: 1px solid var(--oht-black);
  margin: 30px 0;
}

.oht-about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.oht-about-col {
  flex: 1 1 320px;
}

.oht-col-wide {
  flex: 2 1 400px;
}

.oht-col-narrow {
  flex: 1 1 250px;
}

.oht-col-wide .oht-publications-list,
.oht-col-narrow .oht-awards-list {
  font-size: 18px;
}

.oht-about-block {
  margin-bottom: 30px;
}

.oht-about-block p {
  margin-top: 0;
  margin-bottom: 10px;
}

.oht-about-block:last-child {
  margin-bottom: 0;
}

.oht-about-names {
  list-style: none;
  margin: 0;
  padding: 0;
}

.oht-about-names li {
  padding: 2px 0;
}

.oht-about-names em {
  font-style: italic;
  color: var(--oht-black);
}

.oht-about-address {
  font-style: normal;
  margin: 0 0 10px;
}

.oht-about-social a {
  margin-right: 4px;
}

.oht-about-back {
  margin-top: 30px;
}

.oht-work-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0 0 150px;
}

.oht-work-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px 400px;
  align-items: center;
  gap: 20px;
  padding: 20px 0 0;
  border-top: 1px solid var(--oht-black);
}

.oht-work-list li:first-child {
  border-top: 0;
}

.oht-work-year {
  font-size: 22px;
  font-weight: 400;
}

.oht-work-title a {
  font-weight: 600;
}

.oht-work-title em {
  display: block;
  font-style: italic;
  font-weight: 300;
}

.oht-work-author {
  font-size: 22px;
}

.oht-work-thumb {
  display: block;
  align-self: flex-end;
}

.oht-work-thumb img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.oht-work-thumb-placeholder {
  width: 100%;
  height: 80px;
}

#testo-hidden-works {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 2s, opacity 3s;
}

#testo-hidden-works.open {
  height: auto;
  opacity: 1;
}

#readmore {
  color: var(--oht-red);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

.highlight {
  background: var(--oht-highlight);
}

.oht-awards-list,
.oht-publications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.oht-awards-list li,
.oht-publications-list li {
  padding: 0 0 5px;
}

.oht-awards-list li:last-child,
.oht-publications-list li:last-child {
  padding-bottom: 0;
}

.oht-awards-list .year {
  color: var(--oht-red);
  font-weight: 600;
  margin-right: 4px;
}

.oht-awards-list .meta {
  margin-top: 0;
  margin-bottom: 0;
}

.oht-file-download {
  text-decoration: underline;
}

.oht-richtext-red-spans u {
  color: var(--oht-red);
  text-decoration: none;
}

.oht-content-text a {
  text-decoration: underline;
}

.oht-awards-list .meta p {
  margin-top: 0;
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Footer minimale + cookiebar                                        */
/* ------------------------------------------------------------------ */

.oht-footer-bar {
  text-align: center;
  padding: 20px 25px 40px;
  font-size: 13px;
  color: var(--oht-gray-text);
}

.oht-footer-bar a {
  color: var(--oht-gray-text);
  text-decoration: underline;
}

#cookies-manager-list-of-choices-made {
  text-align: center;
  padding: 10px 0;
}

.oht-gdpr-bar {
  background: var(--oht-black);
  padding: 0px 26px 5px;
  text-align: center;
}

.oht-gdpr-choices {
  margin: 0 0 10px;
  color: var(--oht-white);
}

.oht-gdpr-choices a {
  color: var(--oht-white);
  text-decoration: underline;
}

/* icona "approved" iniettata dal cookie-manager remoto: la rendo bianca e più piccola */
.oht-gdpr-choices img[src*="approved.svg"] {
  width: 10px;
  height: 10px;
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .oht-gdpr-choices img[src*="approved.svg"] {
  filter: brightness(0);
}

[data-theme="dark"] .oht-deltacommerce-logo img {
  filter: invert(1);
}

.oht-deltacommerce-logo {
  display: inline-block;
}

.oht-deltacommerce-logo img {
  display: block;
  width: 60px;
  height: 20px;
}

/* ------------------------------------------------------------------ */
/* Breakpoint (identici al sito live: 1024 / 950 / 758 / 524)          */
/* ------------------------------------------------------------------ */

@media screen and (max-width: 1024px) {
  .oht-container {
    max-width: 950px;
  }
}

@media screen and (max-width: 950px) {
  .oht-container {
    max-width: 758px;
  }

  h2 {
    font-size: 25px;
  }

  .oht-press-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 758px) {
  body {
    font-size: 15px;
    line-height: 19px;
  }

  .oht-container {
    max-width: 524px;
  }

  .oht-press-row {
    grid-template-columns: 1fr;
  }

  .works-pretitle {
    font-size: 18px;
  }

  #about-page {
    padding: 20px 20px 40px;
  }

  .oht-about-row {
    flex-direction: column;
    gap: 30px;
  }

  .oht-work-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 30px;
    margin-bottom: 20px;
  }

  /* Da desktop year/author (22px) restano vicini alla dimensione del titolo perché il
     body scala con 1.3vw; da mobile il body passa a una dimensione fissa più piccola
     (15px). Titolo opera e artista devono risaltare (anche più dell'anno), quindi li
     ingrandiamo e teniamo l'anno più piccolo. */
  .oht-work-year {
    font-size: 14px;
  }

  .oht-work-title {
    font-size: 20px;
  }

  .oht-work-author {
    font-size: 18px;
  }

  .oht-work-thumb img,
  .oht-work-thumb-placeholder {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .oht-hero {
    min-height: 70vh;
  }

  .oht-home-nav a {
    font-size: 7vw;
  }

  .oht-badge {
    margin-left: 25px;
  }

  .oht-social-newsletter {
    flex-direction: column;
  }

  .oht-newsletter-col {
    text-align: left;
  }

  .oht-agenda-wrap {
    margin-left: 0;
    max-width: 100%;
    padding: 10px 0 20px;
  }
}

@media screen and (max-width: 524px) {
  .oht-container {
    max-width: 292px;
  }
}
