/* ===========================
   RESET BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #08090d;
  color: #eceef6;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #93d7ff;
  text-decoration: underline;
  text-decoration-color: rgba(147, 215, 255, 0.4);
}
a:hover {
  color: #c8ecff;
  text-decoration-color: rgba(200, 236, 255, 0.8);
}
a:visited {
  color: #b3d8ff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%); 
  white-space: nowrap;
  border: 0;
}

/* ===========================
   MENU PROFESSIONALE
   =========================== */
.main-menu {
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(15,15,15,0.85) 50%, rgba(0,0,0,0.85) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #0ff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
}

.menu-container {
  max-width: 1300px;
  margin: auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.9));
}

/* ===========================
   MENU LINKS
   =========================== */
.menu-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  position: relative;
  margin-left: auto;
}

.menu-links li a {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: #d6f4ff;
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Effetto sottolineatura animato */
.menu-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0ff, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

/* Hover */
.menu-links li a:hover {
  color: #fff;
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}
.menu-links li a:hover::after {
  transform: scaleX(1);
}

button:active,
a:active {
  transform: scale(0.97);
  filter: brightness(1.2);
}

.gtranslate_wrapper {
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
}

.gtranslate_wrapper select {
  background: rgba(0,0,0,0.6);
  color: #e8f8ff;
  border: 1px solid rgba(0,255,255,0.25);
  border-radius: 8px;
  padding: 6px 8px;
}

.menu-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.menu-search {
  position: relative;
  width: min(100%, 340px);
}

.menu-search__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-search__input {
  width: 100%;
  min-width: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #f3fcff;
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-search__input::placeholder {
  color: rgba(232, 248, 255, 0.72);
}

.menu-search__input:focus {
  border-color: rgba(96, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.18);
  background: rgba(4, 10, 14, 0.84);
}

.menu-search__submit {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.92), rgba(79, 248, 255, 0.88));
  color: #051417;
  border: 0;
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.menu-search__submit:hover {
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
  filter: brightness(1.05);
}

.menu-search__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(520px, calc(100vw - 2rem));
  max-height: min(70vh, 640px);
  overflow: auto;
  background: rgba(4, 9, 14, 0.96);
  border: 1px solid rgba(0, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.45);
  padding: 0.9rem;
  backdrop-filter: blur(14px);
  z-index: 1200;
}

.menu-search__panel[hidden] {
  display: none;
}

.menu-search__status {
  color: #d8fbff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.menu-search__results {
  display: grid;
  gap: 0.75rem;
}

.menu-search__site {
  background: rgba(7, 14, 19, 0.82);
  border: 1px solid rgba(0, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.8rem;
}

.menu-search__site--error {
  border-color: rgba(255, 146, 146, 0.35);
}

.menu-search__site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.menu-search__site-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f3fcff;
}

.menu-search__site-meta {
  font-size: 0.8rem;
  color: #91eaff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-search__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.menu-search__item-link {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
}

.menu-search__item-link:hover,
.menu-search__item-link:focus-visible {
  border-color: rgba(0, 255, 255, 0.38);
  background: rgba(0, 255, 255, 0.08);
}

.menu-search__item-type,
.menu-search__empty {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7deeff;
  margin-bottom: 0.35rem;
}

.menu-search__item-title {
  display: block;
  color: #f4fdff;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.menu-search__item-excerpt {
  display: block;
  color: #c9f4ff;
  font-size: 0.92rem;
  line-height: 1.5;
}

.menu-search__empty {
  margin-bottom: 0;
}

.menu-translate {
  position: relative;
}

.translate-toggle {
  background: rgba(0,0,0,0.35);
  color: #e8f8ff;
  border: 1px solid rgba(0,255,255,0.35);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.translate-toggle:hover {
  background: rgba(0,255,255,0.12);
  border-color: rgba(0,255,255,0.6);
}

.translate-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: rgba(0,0,0,0.9);
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 10px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  z-index: 999;
}

.translate-dropdown.open {
  display: flex;
}

.translate-dropdown button {
  background: rgba(0,0,0,0.35);
  color: #eaf7ff;
  border: 1px solid rgba(0,255,255,0.25);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.translate-dropdown button:hover {
  background: rgba(0,255,255,0.14);
  border-color: rgba(0,255,255,0.6);
}

.section-translate-bar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0.25rem 0;
}

.section-translate-bar button {
  background: rgba(0,0,0,0.55);
  color: #e8f8ff;
  border: 1px solid rgba(0,255,255,0.35);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.section-translate-bar button:hover {
  background: rgba(0,255,255,0.12);
  border-color: rgba(0,255,255,0.6);
}

.reference-context-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(4, 18, 22, 0.68);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.reference-context-nav__label {
  color: rgba(224, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-context-nav__links {
  display: flex;
  flex: 1 1 420px;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.reference-context-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.24);
  background: rgba(0, 255, 255, 0.08);
  color: #e6ffff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.reference-context-nav__link:hover {
  background: rgba(0, 255, 255, 0.16);
  border-color: rgba(140, 255, 255, 0.48);
  transform: translateY(-1px);
}

.reference-context-nav__link[aria-current="page"] {
  background: rgba(0, 255, 255, 0.18);
  border-color: rgba(170, 255, 255, 0.52);
  color: #ffffff;
}

@media (max-width: 640px) {
  .reference-context-nav {
    padding: 0.9rem;
    gap: 0.75rem;
  }

  .reference-context-nav__links {
    flex-basis: 100%;
  }

  .reference-context-nav__link {
    width: 100%;
  }
}

/* Attivo */
.menu-links li a.active {
  color: #fff;
  text-shadow: 0 0 12px #0ff, 0 0 24px #0ff;
}

/* Focus tastiera – visibile su desktop e mobile */
.menu-links li a:focus {
  outline: 2px solid #0ff;
  outline-offset: 4px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0,255,255,0.7);
}

/* ===========================
   HAMBURGER
   =========================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}
.menu-toggle span {
  height: 3px;
  width: 100%;
  background: #0ff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animazione "X" */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 80vh;
  border-bottom: 2px solid rgba(79, 248, 255, 0.35);
  color: #f7fbff;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(20, 30, 45, 0.95), rgba(6, 7, 11, 0.9));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(79,248,255,0.4), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.1), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  z-index: 1;
  opacity: 0;
  padding: 0 1.5rem;
  animation: fadeInUp 2.2s ease-out forwards;
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 35px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin-bottom: 1rem;
  color: #4ff8ff;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  position: relative;
}

.hero-title::after {
  content: "";
  width: 72px;
  height: 2px;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, transparent, #4ff8ff, transparent);
  display: block;
}

.hero p {
  font-size: 1.1rem;
  color: #cdd4f4;
  max-width: 720px;
  margin: 0 auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #04121c;
  background: linear-gradient(120deg, #4ff8ff, #7df6c6);
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 14px 30px rgba(79,248,255,0.35);
  margin-top: 1.5rem;
}

.cta-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(120deg, #7df6c6, #d2ff9a);
  box-shadow: 0 18px 40px rgba(79,248,255,0.45);
}

/* ===========================
   HOME PANELS
   =========================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: transparent;
  position: relative;
  isolation: isolate;
}

.main-content--soft-bg {
  overflow: hidden;
  background-color: #08090d;
}

.main-content--soft-bg::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: 0;
  pointer-events: none;
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px);
  transform: scale(1.02);
}

.main-content--soft-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 13, 0.14), rgba(8, 9, 13, 0.52)),
    radial-gradient(circle at center, rgba(8, 9, 13, 0), rgba(8, 9, 13, 0.36));
}

.main-content--soft-bg > * {
  position: relative;
  z-index: 1;
}

.panel {
  background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(6,20,28,0.85));
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 25px 45px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 1.4rem;
  border: 1px solid rgba(255,255,255,0.02);
  pointer-events: none;
}

.reading-panel h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #0ff;
  margin-bottom: 1rem;
}

.panel-section {
  margin-top: 2rem;
}

.state-panel {
  text-align: center;
  border-style: dashed;
}

.state-panel.state-development {
  border-color: rgba(255, 196, 0, 0.6);
  color: #ffc400;
}

.state-panel.state-construction {
  border-color: rgba(255, 86, 86, 0.7);
  color: #ff5656;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #061a22;
  border: 1px solid rgba(0, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #c8f7ff;
}

.breadcrumb li::after {
  content: "/";
  color: rgba(255,255,255,0.4);
}

.breadcrumb li:last-child::after {
  content: none;
}

.breadcrumb a,
.breadcrumb a:visited,
.breadcrumb a:active,
.breadcrumb a:focus {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  border-color: rgba(159,255,204,0.5);
}

.slider-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.slider-btn {
  background: linear-gradient(135deg, rgba(0,255,255,0.12), rgba(0,255,255,0.28));
  border: 1px solid rgba(0,255,255,0.4);
  color: #e8f8ff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.slider-btn:hover {
  transform: scale(1.08);
  border-color: rgba(0,255,255,0.7);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}

.slider-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0;
}

.slider-container::-webkit-scrollbar {
  height: 6px;
}

.slider-container::-webkit-scrollbar-thumb {
  background: rgba(0,255,255,0.4);
  border-radius: 3px;
}

.slider-empty {
  width: 100%;
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 1rem;
}

.slider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.slider-wrapper .slider-btn {
  position: static;
  transform: none;
}

.og-image-container {
  margin: 1rem 0 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0,255,255,0.25);
  width: 100%;
  aspect-ratio: 16 / 9;
}

.og-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contenuto-articolo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: #c6d8e2;
  font-size: 0.95rem;
}

.meta-info strong {
  color: #eaf6ff;
}

.meta-info-top {
  justify-content: flex-end;
  text-align: right;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(120deg, rgba(0, 255, 255, 0.05), rgba(0, 170, 214, 0.12));
  border: 1px solid rgba(0,255,255,0.12);
  border-radius: 0.75rem;
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
}

.riferimenti-wrapper {
  padding: 1.25rem;
  margin-top: 0.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(4,20,32,0.82));
  border: 1px solid rgba(0,255,255,0.18);
  box-shadow: 0 18px 32px rgba(0,0,0,0.35);
}

.riferimenti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}

.riferimenti-block {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(0,255,255,0.2);
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.riferimenti-block h3 {
  margin: 0;
  color: #7de7ff;
  letter-spacing: 0.01em;
}

.riferimenti-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: #dceef5;
}

.riferimenti-list li a {
  color: #0ff;
}


.riferimenti-list--books {
  gap: 1.15rem;
}

.biblio-entry {
  display: grid;
  gap: 0.9rem;
  padding: 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(9, 16, 26, 0.9), rgba(5, 10, 18, 0.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 20px rgba(0,0,0,0.18);
}

.biblio-entry__fields {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.biblio-entry__row {
  display: grid;
  gap: 0.38rem;
}

.biblio-entry__row + .biblio-entry__row {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.biblio-entry__row dt {
  margin: 0;
  color: #7de7ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.biblio-entry__row dd {
  margin: 0;
  color: #f4fbff;
  line-height: 1.6;
}

.biblio-entry__row dd strong {
  color: #ffffff;
}

.riferimenti-dl {
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.riferimenti-dl dt {
  font-weight: 700;
  color: #e8f7ff;
}

.riferimenti-dl dd {
  margin: 0 0 0.6rem;
  color: #cfe4f4;
}

.share-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.share-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: none;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.share-icon.facebook { background: #3b5998; }
.share-icon.x { background: #1d1d1d; }
.share-icon.linkedin { background: #0077b5; }
.share-icon.whatsapp { background: #25D366; color: #000; }
.share-icon.telegram { background: #0088cc; }
.share-icon.email { background: #7f7f7f; }
.share-icon.reddit { background: #FF5700; }
.share-icon.copy { background: #3a3a3a; }

.articolo-casuale h2 {
  color: #0ff;
  margin-bottom: 0.5rem;
}

.articolo-casuale h3 a {
  color: #fff;
  text-decoration: none;
}

.articolo-casuale h3 a:hover {
  text-decoration: underline;
}

.empty-article,
.slider-empty {
  font-style: italic;
  color: #b7c8ca;
}

@media (max-width: 640px) {
  .panel {
    padding: 1rem;
  }

  .slider-wrapper {
    width: 100%;
    min-width: 0;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 0.35rem;
  }

  .slider-container {
    width: 100%;
    min-width: 0;
    gap: 0.75rem;
  }

  .slider-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .articoli-box {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 160px;
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .slider-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ===========================
   SEZIONE ARTICOLI
   =========================== */
.articoli-home {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.articoli-home h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #0ff;
  text-transform: uppercase;
  border-left: 4px solid #0ff;
  padding-left: 0.8rem;
}

/* Scroll orizzontale */
.articoli-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1.2rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.articoli-scroll::-webkit-scrollbar {
  height: 8px;
}
.articoli-scroll::-webkit-scrollbar-thumb {
  background: #0ff;
  border-radius: 4px;
}
.articoli-scroll::-webkit-scrollbar-track {
  background: #111;
}

.articoli-box {
  position: relative;
  flex: 0 0 300px;
  border-radius: 10px;
  background: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 220px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  }

.articoli-box__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.articoli-box h2,
.articoli-box p {
  position: relative;
  z-index: 1;
}

.articoli-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}
.articoli-box h2 {
  margin: 0 0 8px 0;
  color: #f5f5f5;
  font-size: 1.1rem;
  font-family: "Inter", "Segoe UI", sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.articoli-box p {
  margin: 0;
  color: #e5e5e5;
  font-size: 0.95rem;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.articolo-bg {
  background-size: cover;
  background-position: center;
  min-height: 200px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 2px solid #0ff;
}

.articolo-bg h3 {
  color: #0ff;
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.articolo-bg p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===========================
  Headline
   =========================== */

.headline-section {
  position: relative;
  background: #000;
  color: #e0e0e0;
  text-align: center;
  padding: 2.5rem 2rem; /* 👈 altezza bilanciata */
  border-top: 2px solid #0ff;
  border-bottom: 2px solid #0ff;
}

.headline-section h2 {
  font-family: "Cinzel", serif;
  color: #0ff;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.headline-section p {
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #bbb;
}


/* ===========================
   PARALLAX
   =========================== */
.parallax-section {
  position: relative;
  /* background: url('../images/parallax-bg.png') center/cover no-repeat fixed; */
  border-top: 2px solid #0ff;
  border-bottom: 2px solid #0ff;
  overflow: hidden;
  padding: 4rem 2rem; /* spazio interno sufficiente */
  text-align: center;
}

.parallax-overlay {
  position: absolute;
  inset: 0;

  z-index: 0;
}

/* Animazione ingresso da destra a sinistra */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.parallax-content {
  position: relative;
  z-index: 1;
  color: #f0f0f0;
  max-width: 800px;
  margin: auto;
  opacity: 0;
  animation: fadeInRight 1.8s ease-out forwards;
  animation-delay: 0.4s;
}

.parallax-content h2 {
  font-family: "Cinzel", serif;
  font-size: 2.2rem;
  color: #0ff;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.parallax-content p {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.6;
}





/* ===========================
   ARTICOLI
   =========================== */
.articoli-home {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.articoli-home h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #0ff;
  text-transform: uppercase;
  border-left: 4px solid #0ff;
  padding-left: 0.8rem;
  text-align: left;
}

/* Placeholder "Sito in costruzione" */
.articoli-placeholder {
  background: linear-gradient(135deg, #000, #111, #0a0a0a);
  border: 2px solid #0ff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  transition: all 0.3s ease;
}

.articoli-placeholder:hover {
  box-shadow: 0 0 25px rgba(0,255,255,0.4);
  transform: translateY(-3px);
}

.articoli-placeholder h3 {
  font-size: 1.8rem;
  color: #0ff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.articoli-placeholder p {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Animazione d’apparizione */
@keyframes fadeInSoft {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.articoli-placeholder {
  opacity: 0;
  animation: fadeInSoft 2s ease-out forwards;
  animation-delay: 0.5s;
}

/* Pulsanti laterali (sezione articoli legacy) */
.articoli-home .slider-btn {
  background: rgba(0,0,0,0.6);
  color: #0ff;
  border: 1px solid #0ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.articoli-home .slider-btn:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 15px rgba(0,255,255,0.8);
}

.articoli-home .slider-btn.left {
  left: -20px;
}

.articoli-home .slider-btn.right {
  right: -20px;
}

/* ===========================
   BAnner
   =========================== */

 .banner-full {
  position: relative;
  width: 100%;
  height: 60vh; /* più imponente */
  /* background: url('../images/banner-bg.png') center/cover no-repeat; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 2px solid #0ff;
  border-bottom: 2px solid #0ff;
  box-shadow: inset 0 0 40px rgba(0,255,255,0.15);
}

/* Luce mobile per effetto “mistico” */
.banner-full::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(0,255,255,0.2) 50%, transparent 70%);
  animation: bannerLight 8s linear infinite;
  z-index: 1;
}

/* Overlay scuro uniforme */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
}

/* Contenuto testuale */
.banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  animation: fadeInText 1.8s ease-out forwards;
}

.banner-content h2 {
  font-family: "Cinzel", serif;
  font-size: 2.5rem;
  color: #0ff;
  text-shadow:
    0 0 10px rgba(0,255,255,0.6),
    0 0 30px rgba(0,255,255,0.3);
  letter-spacing: 0.1rem;
  line-height: 1.4;
}

/* 🔥 Animazioni */
@keyframes fadeInText {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bannerLight {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #000;
  border-top: 2px solid #0ff;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  box-shadow: 0 -4px 12px rgba(0, 255, 255, 0.15);
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links li a {
  color: #0ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links li a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(0,255,255,0.7);
}

/* ===========================
   LAZY BACKGROUND SUPPORT
   =========================== */

/* Elementi che usano data-bg */
[data-bg] {
  background-color: #000; /* placeholder */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.6s ease-in-out, opacity 0.6s ease-in-out;
  opacity: 0; /* inizia invisibile per transizione */
}

/* Quando l'immagine è stata caricata */
[data-bg].bg-loaded {
  opacity: 1;
  background-color: transparent;
}

@media (max-width: 900px) {
  [data-bg].parallax-section {
    background-attachment: scroll; /* evita glitch su iPhone */
  }
}

/* Variante parallax per il lazyload */
[data-bg].parallax-section {
  background-attachment: fixed;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===========================
  SUBSCRIBE
   =========================== */

.subscribe-section {
  text-align: center;
  background: linear-gradient(135deg, #000, #111, #0a0a0a);
  padding: 3rem 2rem;
  border-top: 2px solid #0ff;
  border-bottom: 2px solid #0ff;
}

.subscribe-section h3 {
  color: #0ff;
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.subscribe-section p {
  color: #ccc;
  margin-bottom: 1.5rem;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.subscribe-form input {
  padding: 0.6rem 1rem;
  border: 1px solid #0ff;
  background: #111;
  color: #fff;
  border-radius: 4px;
  width: 70%;
}

.subscribe-form button {
  padding: 0.6rem 1.2rem;
  background: #0ff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-form button:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 10px rgba(0,255,255,0.8);
}

/* ===========================
   COOKIES
   =========================== */
   .cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  color: #0ff;
  text-align: center;
  padding: 1rem 1.5rem;
  border-top: 2px solid #0ff;
  box-shadow: 0 -4px 20px rgba(0, 255, 255, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 2000;
  flex-wrap: wrap;
}

.cookie-buttons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.cookie-btn {
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background-color: #0ff;
  color: #000;
}

.cookie-btn.decline {
  background-color: #222;
  color: #0ff;
  border: 1px solid #0ff;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}
/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .menu-container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }
  .menu-links {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    background: rgba(0,0,0,0.95);
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    padding: 1rem;
    border-left: 2px solid #0ff;
    border-bottom: 2px solid #0ff;
    margin-left: 0;
  }



  .menu-links.active {
    display: flex;
    animation: slideIn 0.3s ease;
  }

  .menu-tools {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .menu-search {
    flex: 1 1 auto;
    width: auto;
  }

  .menu-search__panel {
    left: 0;
    right: 0;
    width: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .articolo-singolo {
    padding: 1.5rem;
  }
}

/* Animazione apertura menu */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #0ff;
  padding: 8px 16px;
  z-index: 2000;
  text-decoration: none;
  border: 2px solid #0ff;
  border-radius: 4px;
  font-weight: bold;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
  left: 10px;
  outline: 3px solid #0ff;
  box-shadow: 0 0 12px #0ff;
}



:focus-visible {
  outline-offset: 3px;
  transition: outline 0.1s ease;
}



[data-bg] {
  background-color: #000; /* fallback */
  background-size: cover;
  background-position: center;
  transition: background-image 0s, opacity 1.2s ease-in-out;
  opacity: 0;
}

[data-bg].bg-loaded {
  opacity: 1;
}

/* ===========================
   SCROLL PROGRESS BAR – Safari fix
   =========================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0ff, #00ffaa);
  box-shadow: 0 0 10px rgba(0,255,255,0.6);
  z-index: 3000;
  transition: width 0.1s linear;
  pointer-events: none;
  opacity: 1; /* lascia 1 per il test, poi rimetti 0 */
  -webkit-transform: translateZ(0); /* forza rendering su GPU */
  will-change: width;
}

/* ===========================
   BACK TO TOP – cross-browser
   =========================== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0ff;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,255,255,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
  z-index: 2000;
  opacity: 0;            /* 👈 invisibile ma non hidden */
  transform: translateY(120px); /* 👈 scende fuori dallo schermo */
}

/* visibile */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* interazioni */
#back-to-top:hover {
  box-shadow: 0 0 15px rgba(0,255,255,0.8);
  transform: translateY(-3px);
}

#back-to-top:focus {
  outline: 3px solid #0ff;
  outline-offset: 3px;
  box-shadow: 0 0 20px rgba(0,255,255,1);
}

/* ===========================
   ACCESSIBILITÀ: RIDUZIONE ANIMAZIONI
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .parallax-content,
  .banner-content,
  .articoli-placeholder {
    opacity: 1 !important;
    transform: none !important;
  }

  .menu-links li a,
.cta-btn {
  transition: none !important;
}

}

@media (forced-colors: active) {
  * {
    outline-color: ButtonText !important;
    border-color: ButtonText !important;
  }
}

a, button {
  -webkit-tap-highlight-color: transparent;
}
.contact-section {
  background: linear-gradient(160deg, rgba(12,14,18,0.95), rgba(7,10,16,0.95));
  border: 1px solid rgba(79,248,255,0.25);
  border-radius: 1.8rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  box-shadow: 0 30px 55px rgba(0,0,0,0.5);
}

.contact-section .container {
  display: grid;
  gap: 2rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info a {
  color: #7de7ff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-section h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #4ff8ff;
  margin-bottom: 0.5rem;
}

.contact-section h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: #bde9ff;
  margin-bottom: 0.4rem;
}

.contact-section p,
.contact-section label {
  color: #cfd6ff;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(79,248,255,0.3);
  background: rgba(0,0,0,0.45);
  color: #f6fbff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(120deg, #4ff8ff, #7df6c6);
  color: #04121c;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(79,248,255,0.35);
}

.contact-success {
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: rgba(64, 255, 190, 0.12);
  border: 1px solid rgba(64,255,190,0.35);
  color: #9efbdc;
}

.contact-errors {
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 99, 132, 0.08);
  border: 1px solid rgba(255,99,132,0.35);
  color: #ffced9;
  list-style: disc;
  margin-left: 1.5rem;
}

.symbolic-note {
  text-align: center;
  font-style: italic;
  color: #c9d4ff;
}

.symbolic-note .signature {
  display: block;
  margin-top: 0.4rem;
  color: #9adbf6;
}

.symbolic-note::before {
  content: "✦";
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #4ff8ff;
}

.symbolic-note::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4ff8ff, transparent);
  margin: 0.7rem auto 0;
}

/* Ad slots (non invasivi) */
.ad-panel {
  margin: 1.2rem 0 1.6rem;
  padding: 0.8rem;
  background: rgba(0,0,0,0.28);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
}
.ad-slot {
  position: relative;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 0.6rem;
  background: radial-gradient(circle at 20% 20%, rgba(0,255,255,0.04), rgba(0,0,0,0.15));
  border-radius: 10px;
}
.ad-label {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9adbf6;
  background: rgba(0,0,0,0.45);
  padding: 4px 8px;
  border-radius: 8px;
}
.ad-placeholder {
  text-align: center;
  color: #d7e7f4;
  font-size: 0.95rem;
  max-width: 320px;
}
.ad-placeholder.ad-active {
  color: #eaf7ff;
}

@media (max-width: 640px) {
  .hero-content {
    padding: 0 1rem;
  }
  .cta-btn {
    width: 100%;
  }
  .contact-section {
    padding: 2rem 1.5rem;
  }
.contact-form .btn {
  width: 100%;
  text-align: center;
}
}

/* Latest articles grid (home) */
.home-latest-title {
  font-size: 2em;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.latest-card {
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(79,248,255,0.08), transparent 50%),
              linear-gradient(135deg, rgba(6,12,20,0.94), rgba(10,18,30,0.9));
  border: 1px solid rgba(147,215,255,0.2);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 18px 32px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.latest-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(147,215,255,0.18);
  position: relative;
}
.latest-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.45) 100%);
}
.latest-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.latest-body h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}
.latest-body h2 a {
  color: #eaf7ff;
  text-decoration: none;
}
.latest-body h2 a:hover {
  text-shadow: 0 0 10px rgba(0,255,255,0.7);
  color: #b2f1ff;
}
.latest-body h2 a:visited {
  color: #d4eaff;
}
.latest-body p {
  color: #dceef5;
  line-height: 1.6;
}
.latest-body .cta-btn {
  align-self: flex-start;
  margin-top: auto;
  background: linear-gradient(120deg, #1c7fe0, #39d6ff);
  color: #04121c;
  border: 0;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(57, 214, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.latest-body .cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(57, 214, 255, 0.38);
  filter: brightness(1.02);
}
.latest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(0,0,0,0.45);
  border-color: rgba(147,215,255,0.35);
}

/* Rotazione alchemica v2: transizione morbida tra i quattro elementi. */
body,
.main-menu,
.site-footer,
.headline-section,
.parallax-section,
.banner-full,
.articoli-placeholder,
.cookie-banner,
.menu-links li a,
.hero-title,
.headline-section h2,
.parallax-content h2,
.banner-content h2 {
  transition:
    background-color 0.8s ease,
    color 0.8s ease,
    border-color 0.8s ease,
    box-shadow 0.8s ease,
    text-shadow 0.8s ease;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .main-menu,
  .site-footer,
  .headline-section,
  .parallax-section,
  .banner-full,
  .articoli-placeholder,
  .cookie-banner,
  .menu-links li a,
  .hero-title,
  .headline-section h2,
  .parallax-content h2,
  .banner-content h2 {
    transition: none;
  }
}
