/* Reset and Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex: 1; /* Allows hero to take up remaining space */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c, #1a1a1a);
    background-size: 400% 400%;
    animation: greyGradientAnimation 30s ease infinite;
    z-index: 0;
}

@keyframes greyGradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Content Styling */
.content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.content h1 {
    font-size: clamp(2rem, 6vw, 6rem); /* Responsive font size */
    font-weight: 800; /* Bolder font weight */
    letter-spacing: 0.2rem;
    margin-bottom: 5vh;
    animation: colorTransition 30s infinite;
    word-wrap: break-word;
}

@keyframes colorTransition {
    0% {
        color: #FFFFFF; /* White */
    }
    14% {
        color: #FFFF00; /* Bright Yellow */
    }
    28% {
        color: #00FFFF; /* Cyan */
    }
    42% {
        color: #FF00FF; /* Magenta */
    }
    56% {
        color: #00FF00; /* Bright Green */
    }
    70% {
        color: #FFA500; /* Orange */
    }
    84% {
        color: #FFD700; /* Gold */
    }
    100% {
        color: #FFFFFF; /* White */
    }
}

/* Loading Wheel */
.loading-wheel {
    width: 10vw;
    height: 10vw;
    max-width: 100px;
    max-height: 100px;
    border: 0.8vw solid rgba(0, 0, 0, 0.3);
    border-top: 0.8vw solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 3vh;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer Styling */
footer {
    background: rgba(0, 0, 0, 0.9); /* Darker and slightly transparent background */
    color: #e0e0e0; /* Light grey text color */
    text-align: center;
    font-size: 1rem;
    padding: 8px 20px; /* Reduced padding to decrease footer height */
    font-weight: 500; /* Bolder font weight */
    width: 100%;
    /* No margin-top needed as flexbox handles spacing */

  background:#1a1a1a;
  color:#cfcfcf;
  text-align:center;
  padding: 16px 12px;
}

footer p {
    margin: 0 auto;
    line-height: 1.5;
    max-width: 90%;
    word-wrap: break-word;
}

/* Responsive Adjustments */

/* For very small screens */
@media (max-width: 400px) {
    .content h1 {
        font-size: 2.5rem; /* Increase minimum font size */
        letter-spacing: 0.1rem;
        margin-bottom: 4vh;
    }
    .loading-wheel {
        width: 60px;
        height: 60px;
        border: 5px solid rgba(0, 0, 0, 0.3);
        border-top: 5px solid #000000;
    }
    footer {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

/* For small to medium screens */
@media (min-width: 401px) and (max-width: 768px) {
    .content h1 {
        font-size: 4rem; /* Adjust font size for medium screens */
        margin-bottom: 5vh;
    }
    .loading-wheel {
        width: 80px;
        height: 80px;
        border: 6px solid rgba(0, 0, 0, 0.3);
        border-top: 6px solid #000000;
    }
    footer {
        font-size: 1rem;
        padding: 8px 20px;
    }
}

/* For larger screens */
@media (min-width: 769px) {
    footer {
        padding: 10px 40px;
    }
}

/* Quote (trasparente, solo testo) */
.quote-container {
  position: relative;
  z-index: 1;
  margin-top: 4vh;
  max-width: min(1000px, 92vw);
  padding: 0;              /* nessun padding blocco */
  background: transparent; /* niente sfondo */
  border: none;            /* nessun bordo */
  border-radius: 0;        /* niente angoli */
  backdrop-filter: none;   /* niente blur */
}

.quote-title {
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 4px;
  /* colore ereditato (bianco dal hero); nessun box */

  display: none !important;
}

.quote-pron {
  font-weight: 300;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.4;
  opacity: 0.85;           /* solo testo, più leggero */
  margin-bottom: 8px;
}

.quote-container blockquote {
  margin: 0;
  color: inherit;          /* usa il colore del contesto */
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
}
