@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;900&display=swap");:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}


:root {
  --blue-color: #003592; /* Primary color for the theme */
  --green-color: #009a3d; /* Secondary color for buttons and highlights */
}

/* Modern Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Red Hat Display", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-size: 16px;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Header Styles */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 1000;
  padding: 1.25rem 0;
  animation: fadeIn 0.8s ease-out;
  transition: all 0.3s ease;
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--blue-color);
  font-weight: 600;
}

.document-note a:hover {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-color);
  text-decoration: none;
}

.logo img {
  height: 3.125rem;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.numero-verde {
  height: 2.5rem;
  width: auto;
  transition: transform 0.3s ease;
}

.numero-verde:hover {
  transform: scale(1.05);
}

.cta-button {
  background-color: var(--green-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cta-button:hover {
  background-color: var(--green-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Hero Section */

.hero {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8rem; /* Same height as header */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0)
  );
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.hero-text {
  color: white;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeIn 1.2s ease-out 0.5s both;
}

.hero-text h1 {
  font-size: 4.0625rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-text p {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: white;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: calc(50% - 15px); /* 30px (larghezza mouse) / 2 */
  z-index: 3;
  cursor: pointer;
  animation: fadeIn 1.5s ease-out 1s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  width: 30px; /* Larghezza fissa uguale al mouse */
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--blue-color);
  border-radius: 25px;
  position: relative;
  animation: mouseFloat 2s infinite ease-in-out;
}

.mouse-wheel {
  width: 4px;
  height: 10px;
  background-color: var(--blue-color);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel 1.5s infinite;
}

.scroll-text {
  color: var(--blue-color);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes mouseFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Documents Section */

.documents {
  padding: 5rem 0;
  background-color: #ffffff;
}

.documents .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.documents h2 {
  text-align: left;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue-color);
  margin-bottom: 1.875rem;
  line-height: 1.2;
  animation: slideIn 0.8s ease-out;
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
}

.document-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease-out both;
  animation-delay: calc(var(--index) * 0.1s);
}

.document-row:nth-child(1) {
  --index: 1;
}

.document-row:nth-child(2) {
  --index: 2;
}

.document-row:nth-child(3) {
  --index: 3;
}

.document-row:nth-child(4) {
  --index: 4;
}

.document-row:nth-child(5) {
  --index: 5;
}

.document-row:hover {
  background-color: rgba(0, 0, 0, 0.02);
  transform: translateX(10px);
}

.document-info {
  flex: 1;
}

.document-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue-color);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.document-description {
  color: #718096;
  font-size: 1rem;
  line-height: 1.4;
}

/* .document-note styles moved below */

.document-note strong {
  font-weight: 600;
  color: #4a5568;
  font-size: 0.875rem;
}

.document-note br {
  display: block;
  margin: 0.25rem 0;
  content: "";
}

.document-download {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  padding: 0 1.25rem;
}

.document-size {
  color: #718096;
  font-size: 0.875rem;
  white-space: nowrap;
}

.pdf-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--blue-color);
  transition: transform 0.3s ease;
}

.document-row:hover .pdf-icon {
  transform: scale(1.2);
}

/* Documents Loading and Error States */

.loading-state,
.error-state {
  text-align: center;
  padding: 3rem 0;
  animation: fadeIn 0.5s ease-out;
}

.loading-state p,
.error-state p {
  margin-top: 1rem;
  color: #718096;
  font-size: 1.125rem;
}

.error-state svg {
  color: #e53e3e;
}

.retry-button {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  background-color: var(--green-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-button:hover {
  background-color: #007a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.no-documents {
  text-align: center;
  color: #718096;
  font-size: 1.125rem;
  padding: 2rem 0;
}

/* Document Note HTML Content */

.document-note {
  margin-top: 0.5rem;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4a5568;
}

.document-note strong {
  color: var(--blue-color);
  font-weight: 600;
}

.document-note a {
  color: var(--green-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.document-note a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Footer */

.footer {
  background: linear-gradient(to top, #c4cee8 0%, rgba(196, 206, 232, 0) 100%);
  color: #333;
  padding: 3.75rem 0;
  animation: fadeIn 1s ease-out;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
  font-size: 0.85rem;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--blue-color);
}

.footer-section p,
.footer-section a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a {
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
  color: var(--blue-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(44, 82, 130, 0.1);
  color: #718096;
  font-size: 0.875rem;
}

/* Mobile Responsive */

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.125rem;
  }

  .documents h2 {
    font-size: 2.5rem;
  }

  .document-title {
    font-size: 1.5rem;
  }

  .nav {
    padding: 0.75rem 0;
  }

  .logo img {
    height: 2.5rem;
  }

  .numero-verde {
    height: 1.875rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .documents h2 {
    font-size: 2rem;
  }

  .document-title {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .documents .container {
    padding: 0 1.25rem;
  }

  .header {
    padding: 0.9375rem 0;
  }
}
