:root {
  --rosso: #ce3021;
  --grigio: #f7f7f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

body {
  color: #000;
  background-color: #fff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
}

.burger-btn {
  display: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

nav a {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--rosso);
}

.hero,
.hero-categorie,
.hero-articolo {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 80px 10%;
  overflow: hidden;
}

.hero {
  height: 95vh;
  min-height: 600px;
}

.hero-categorie {
  height: 95vh;
  min-height: 500px;
}

.hero-articolo {
  height: 40vh;
  min-height: 400px;
  padding: 40px 10%;
}

.sfondo-hero,
.sfondo-hero-categorie,
.sfondo-hero-articolo,
.sfondo-categorie,
.immagine-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.sfondo-hero,
.sfondo-hero-articolo {
  object-position: center;
}

.sfondo-hero-categorie {
  object-position: top center;
}

.sfondo-categorie {
  opacity: 1;
  z-index: 1;
}

.immagine-card {
  transition: transform 0.5s ease;
}

.contenuto-hero,
.contenuto-hero-categorie {
  position: relative;
  max-width: 40vw;
  z-index: 2;
}

.contenuto-hero p,
.contenuto-hero-categorie p {
  font-size: 1.5rem;
  color: #fff;
}

.contenuto-hero p {
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.contenuto-hero-categorie p {
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-logo {
  max-width: 350px;
  margin-bottom: 20px;
}

.hero-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
  width: 100%;
}

.contenuto-hero-categorie h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.categorie {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6.5vw;
  background-color: #fff;
  overflow: hidden;
}

.card-categorie {
  position: relative;
  z-index: 2;
  width: 17.5vw;
  height: 25vw;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-categorie:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.card-categorie:hover .immagine-card {
  transform: scale(1.05);
}

.card_chisiamo {
  width: 100%;
  max-width: 850px;
  margin: 60px auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.card-persona {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 13vw;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.testo-card-persona {
  position: relative;
  padding: 60px 25px 40px;
  color: #fff;
}

.testo-card-persona h4 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1px;
}

.card-persona:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.testo-card {
  position: relative;
  padding: 60px 25px 30px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    transparent 100%
  );
}

.testo-card h3 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.testo-card p {
  font-size: 1.1rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

.lista-argomenti {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 20px;
  background-color: var(--grigio);
}

.card-argomento {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 900px;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-argomento:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.immagine-argomento-container {
  width: 45%;
  min-height: 250px;
  overflow: hidden;
}

.immagine-argomento-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-argomento:hover .immagine-argomento-container img {
  transform: scale(1.05);
}

.testo-argomento {
  width: 55%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testo-argomento h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 15px;
}

.testo-argomento p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

.testo-argomento h5 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--rosso);
  margin-top: 50px;
  text-transform: uppercase;
}

.banner-lo-hobbit {
  width: 100%;
  height: 96.5vh;
  background-color: #000;
}

.banner-container {
  position: relative;
  width: 100%;
}

.immagine-banner {
  display: block;
  height: 96.5vh;
  width: 100%;
  object-fit: cover;
}

.banner-link {
  position: absolute;
  bottom: 30px;
  right: 50px;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: underline;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.2s ease;
  padding: 30px 0;
}

.banner-link:hover {
  color: #ccc;
}

.articoli-evidenza {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

.titolo-articoli {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 60px;
}

.griglia-articoli {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 60px;
  row-gap: 50px;
}

.card-articolo,
.card-leggi-anche {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.card-articolo:hover,
.card-leggi-anche:hover {
  transform: translateY(-5px);
}

.immagine-articolo-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.immagine-articolo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-articolo:hover .immagine-articolo {
  transform: scale(1.03);
}

.categoria-articolo {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: var(--rosso);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-articolo h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.card-articolo p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
}

.timeline-side {
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-right: 40px;
}

.timeline-year {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000;
  margin-right: 30px;
}

.timeline-separator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 100%;
}

.timeline-separator::before {
  content: "";
  position: absolute;
  top: -20px;
  bottom: -20px;
  width: 1px;
  background-color: #ccc;
}

.timeline-separator::after {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--rosso);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--grigio);
  z-index: 1;
}

.timeline-wrapper:first-child .timeline-separator::before {
  top: 50%;
}

.timeline-wrapper:last-child .timeline-separator::before {
  bottom: 50%;
}

footer {
  background-image: url("IMG/texture_footer.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #000;
  padding: 60px 10% 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.logo-footer img {
  width: 160px;
  height: auto;
}

.link-footer {
  display: flex;
  gap: 80px;
}

.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.links a,
.links p {
  color: #000;
  transition: opacity 0.2s ease;
}

.links a {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

.links p {
  font-size: 1rem;
  opacity: 1;
  font-weight: 600;
}

.links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-credits {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 20px;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

.hero-articolo-content {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
  z-index: 2;
}

.hero-articolo-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
  line-height: 1.1;
}

.dettagli-gioco {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  color: var(--rosso);
}

.dettaglio-item {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.dettaglio-item img {
  width: 60px;
  height: auto;
}

.contenuto-articolo {
  width: 100%;
  max-width: 850px;
  margin: 60px auto 50px;
  padding: 0 20px;
  font-size: 1.15rem;
  line-height: 2.4;
  color: #222;
}

.contenuto-articolo h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  margin: 50px 0 10px;
  line-height: 1.25;
}

.contenuto-articolo p {
  margin-bottom: 25px;
  line-height: 2;
}

.contenuto-articolo ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.contenuto-articolo li {
  margin-bottom: 15px;
  line-height: 1.6;
}

.contenuto-articolo img {
  width: 100%;
  margin: 50px 0 30px;
  border-radius: 6px;
}

.contenuto-articolo .img-carta-singola,
.img-carta-singola {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 40px auto 35px;
  display: block;
  border-radius: 12px;
}

.foto-stretta {
  height: 200px;
  object-fit: cover;
  object-position: 90% 10%;
}

.sezione-leggi-anche {
  max-width: 850px;
  margin: 80px auto;
  padding: 0 20px;
}

.titolo-leggi-anche {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #000;
}

.griglia-leggi-anche {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card-leggi-anche {
  cursor: pointer;
}

.card-leggi-anche img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card-leggi-anche h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.card-leggi-anche p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
}

@media (min-width: 726px) and (max-width: 1200px) {
  header {
    padding: 0 30px;
  }

  nav ul {
    gap: 25px;
  }

  .contenuto-hero,
  .contenuto-hero-categorie {
    max-width: 65%;
  }

  .contenuto-hero p,
  .contenuto-hero-categorie p {
    font-size: 1.2rem;
  }

  .contenuto-hero-categorie h1 {
    font-size: 2.8rem;
  }

  .hero-articolo-content h1 {
    font-size: 3.2rem;
  }

  .categorie {
    height: auto;
    padding: 70px 30px;
    gap: 25px;
  }

  .card-categorie {
    width: 100%;
    max-width: 300px;
    height: 400px;
  }

  .testo-card h3 {
    font-size: 1.4rem;
  }

  .testo-card p {
    font-size: 0.95rem;
  }

  .card-persona {
    height: 200px;
  }

  .banner-lo-hobbit,
  .immagine-banner {
    height: 70vh;
  }

  .banner-link {
    inset: 0;
    padding: 0;
    font-size: 0;
  }

  .griglia-articoli {
    column-gap: 30px;
    row-gap: 40px;
  }

  .immagine-articolo {
    height: 220px;
  }

  .timeline-wrapper {
    max-width: 640px;
  }

  .timeline-side {
    padding-right: 25px;
  }

  .timeline-year {
    font-size: 1.8rem;
    margin-right: 15px;
  }

  .link-footer {
    gap: 50px;
  }
}

@media (max-width: 726px) {
  header {
    height: 65px;
    padding: 0 20px;
  }

  .logo img {
    height: 32px;
  }

  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
  }

  .burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .menu-toggle:checked ~ .burger-btn span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--rosso);
  }

  .menu-toggle:checked ~ .burger-btn span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .burger-btn span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--rosso);
  }

  nav {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
    z-index: 999;
    padding: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav a {
    display: block;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  nav ul li:last-child a {
    border-bottom: none;
  }

  .menu-toggle:checked ~ nav {
    max-height: 240px;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .hero {
    height: auto;
    min-height: 380px;
    padding: 40px 20px;
    justify-content: center;
    align-items: center;
  }

  .contenuto-hero {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-logo {
    max-width: 250px;
    margin-bottom: 0;
  }

  .contenuto-hero p,
  .hero-divider {
    display: none;
  }

  .hero-categorie {
    height: auto;
    min-height: 280px;
    padding: 30px 20px;
    justify-content: center;
    align-items: center;
  }

  .contenuto-hero-categorie {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

  .contenuto-hero-categorie h1 {
    font-size: 2.2rem;
    margin: 0;
  }

  .contenuto-hero-categorie p {
    display: none;
  }

  .hero-articolo {
    height: auto;
    min-height: 200px;
    padding: 30px 20px;
    justify-content: center;
    align-items: center;
  }

  .hero-articolo-content {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-articolo-content h1 {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .categorie {
    height: auto;
    padding: 60px 20px;
    flex-direction: column;
    gap: 30px;
  }

  .card-categorie {
    width: 100%;
    max-width: 340px;
    height: 360px;
  }

  .testo-card h3 {
    font-size: 1.5rem;
  }

  .testo-card p {
    font-size: 1rem;
  }

  .banner-lo-hobbit,
  .immagine-banner {
    height: 300px;
  }

  .banner-link {
    inset: 0;
    padding: 0;
    font-size: 0;
  }

  .articoli-evidenza {
    padding: 60px 20px;
  }

  .titolo-articoli {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .griglia-articoli {
    grid-template-columns: 1fr;
    row-gap: 30px;
    max-width: 480px;
    margin: 0 auto;
  }

  .immagine-articolo {
    height: 200px;
  }

  .lista-argomenti {
    padding: 60px 20px;
    gap: 30px;
  }

  .card-argomento {
    flex-direction: column;
    max-width: 500px;
  }

  .immagine-argomento-container {
    width: 100%;
    height: 220px;
    min-height: auto;
  }

  .testo-argomento {
    width: 100%;
    padding: 30px 20px;
  }

  .testo-argomento h2 {
    font-size: 1.5rem;
  }

  .testo-argomento h5 {
    margin-top: 25px;
  }

  .timeline-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
  }

  .timeline-side {
    display: none;
  }

  .dettagli-gioco {
    gap: 20px;
    padding: 0 20px;
  }

  .dettaglio-item {
    font-size: 1.1rem;
  }

  .dettaglio-item img {
    width: 40px;
  }

  .contenuto-articolo {
    margin: 40px auto;
    font-size: 1rem;
    line-height: 1.8;
  }

  .contenuto-articolo h2 {
    font-size: 1.5rem;
    margin: 35px 0 10px;
  }

  .contenuto-articolo p {
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .contenuto-articolo img {
    margin: 30px 0 20px;
  }

  .contenuto-articolo .img-carta-singola,
  .img-carta-singola {
    max-width: 240px;
    margin: 30px auto 25px;
  }

  .sezione-leggi-anche {
    margin: 60px auto;
  }

  .griglia-leggi-anche {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 380px;
    margin: 0 auto;
  }

  .card-leggi-anche img {
    height: 180px;
  }

  .card_chisiamo {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 340px;
    margin: 40px auto;
  }

  .card-persona {
    height: 260px;
  }

  footer {
    padding: 50px 20px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 35px;
    text-align: center;
  }

  .link-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
}
