/* REI TV - Stile condiviso del sito
   File comune da collegare a tutte le pagine HTML.
   Le regole specifiche dei singoli contenuti possono restare nei rispettivi HTML.
*/

:root {
  --text: #f7f7f8;
  --muted: #d1d3d8;
  --red: #f04444;
  --accent: #f04444;
  --accent-dark: #c92732;
  --panel: rgba(27, 27, 27, .94);
  --border: rgba(255, 255, 255, .14);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    /*linear-gradient(135deg, rgba(0, 0, 0, .82), rgba(15, 15, 15, .94)),*/
	linear-gradient(135deg, rgba(0, 0, 0, .15), rgba(15, 15, 15, .30)),
    url("../images/sfondo-studio-tv.png") center / cover fixed;
  font: 16px/1.6 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(5%, calc((100% - 1100px) / 2));
  background: rgba(10, 10, 10, .9);
  border-bottom: 2px solid var(--red);
}

/* Dimensione del logo mantenuta come nella pagina di riferimento */
.logo img {
  display: block;
  width: min(180px, 42vw);
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

nav a,
footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease;
}

nav a:hover,
nav a:focus,
footer a:hover {
  color: var(--red);
}

nav a[aria-current="page"] {
  color: var(--red);
}

main {
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
  padding-bottom: 64px;
}

.hero {
  padding: 64px 0 38px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.eyebrow {
  color: var(--red);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

footer {
  padding: 22px 16px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid #333;
  background: rgba(10, 10, 10, 54%);
}

/* Elementi comuni per pannelli e schede, se presenti nelle pagine */
.panel,
.card {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (max-width: 650px) {
  body {
    background-attachment: scroll;
  }

  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 48px 0 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* HOME - DUE RIQUADRI */

.home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 10px auto 35px;
}

.home-card {
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 68, 68, .55);
}

.card-image-link {
  display: block;
  overflow: hidden;
}

.home-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .3s ease;
}

.home-card:hover .home-card-image {
  transform: scale(1.025);
}

.home-card-content {
  padding: 22px;
}

.home-card-content h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: var(--text);
}

.home-card-content p {
  min-height: 52px;
  margin: 0 0 20px;
  color: var(--muted);
}

/* PULSANTI HOME */

.home-button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 7px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}

.home-button:hover {
  color: #fff;
  background: var(--accent);
}

/* ARCHIVIO TG */

.home-archive {
  margin: 0 auto 35px;
  padding: 28px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.home-archive h2 {
  margin: 0 0 10px;
}

.home-archive p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* FOOTER */

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

/* HOME - MOBILE */

@media (max-width: 650px) {
  .home-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-card-content {
    padding: 18px;
  }

  .home-archive {
    padding: 22px 16px;
  }

  footer .footer-links {
    flex-wrap: wrap;
  }
}
.hero h1 {
  white-space: nowrap;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
}

@media (max-width: 650px) {
  .hero h1 {
    white-space: normal;
  }
}

/* PAGINA CONTATTI */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-grid .card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid #373737;
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.contact-grid .card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.contact-grid .card p {
  margin: 0;
  color: var(--muted);
}

.contact-grid .card p strong {
  color: var(--text);
}

.contact-grid .card p a {
  color: var(--text);
  text-underline-offset: 3px;
}

.contact-grid .card p a:hover,
.contact-grid .card p a:focus {
  color: var(--red);
}

.contact-grid .address {
  grid-column: 1 / -1;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 145px;
  padding: 11px 15px;
  color: var(--text);
  background: #303030;
  border: 1px solid #444;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.social a:hover,
.social a:focus {
  color: var(--text);
  background: #414141;
  transform: translateY(-2px);
}

.social svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.youtube-icon {
  color: #ff3030;
}

.facebook-icon {
  color: #1877f2;
}

.instagram-icon {
  color: #e4405f;
}

/* VERSIONE MOBILE */

@media (max-width: 650px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid .address {
    grid-column: auto;
  }

  .social a {
    flex: 1 1 145px;
  }
}

/* LOGO REI TV */

.logo img {
  width: 180px;
  height: 84px;
  object-fit: contain;
}

@media (max-width: 650px) {
  .logo img {
    width: 125px;
    height: 58px;
  }
}

/* =================================
   PAGINA LE NOSTRE PRODUZIONI
================================= */

.productions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 10px 0 50px;
}

.production-card {
  overflow: hidden;
  background: rgba(27, 27, 27, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .35);
  transition: transform .25s ease, border-color .25s ease;
}

.production-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
}

.production-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #222;
}

.production-content {
  padding: 22px;
  text-align: center;
}

.production-content h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.35rem;
}

.production-content p {
  min-height: 48px;
  margin: 0 0 20px;
  color: var(--muted);
}

.production-content a {
  display: inline-block;
  padding: 11px 22px;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s ease;
}

.production-content a:hover {
  background: var(--accent-dark);
}

@media (max-width: 650px) {
  .productions-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .production-content {
    padding: 18px;
  }
}
/*/// piu chiaro ////*
/* PALETTE PIÙ CHIARA */
:root {
  --text: #ffffff;
  --muted: #e0e0e0;
  --red: #ff5a5f;
  --accent: #ff5a5f;
  --accent-dark: #e33b42;
  --panel: rgba(48, 48, 48, .96);
  --border: rgba(255, 255, 255, .24);
}

/* Più visibile l'immagine di sfondo */
body {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .38), rgba(15, 15, 15, .58)),
    url("../images/sfondo-studio-tv.png") center / cover fixed;
}

/* Menu leggermente più chiaro */
header {
  background: rgba(28, 28, 28, 54%);
}

/* Schede e pannelli */
.panel,
.card,
.home-card,
.home-archive,
.production-card {
  background-color: rgba(48, 48, 48, .96);
  border-color: rgba(255, 255, 255, .22);
}

/* Testi secondari più leggibili */
.hero p,
.home-card-content p,
.home-archive p,
.contact-grid .card p,
.production-content p {
  color: #e0e0e0;
}

/* Pulsanti e link social */
.home-button,
.production-content a {
  background: #e33b42;
}

.home-button:hover,
.production-content a:hover {
  background: #ff5a5f;
}

.social a,
.videos a,
.button {
  background-color: #414141;
  border-color: rgba(255, 255, 255, .25);
}
