/* ===============================
   PALETTE COLORI (variabili CSS)
   =============================== */
:root {
    --colore-sfondo: #d5b59c;
    --colore-primario: #7B1113;
    --colore-secondario: #954535;
    --colore-link: #eca090;
    --colore-accento: #943d3f;
    --colore-scuro: #5c4033;
    --colore-testo: #2c2c2c;
    --colore-testo-light: #555555;
    --colore-border: #e0d5c7;
}


/* ===============================
   FONT E RESET
   =============================== */
@import url("https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--colore-sfondo);
    font-family: "PT Serif", serif;
    color: var(--colore-testo);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===============================
   NAVBAR
   =============================== */
.navbar {
    background: var(--colore-primario);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.nav-title h2 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    list-style-type: none;
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--colore-link);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--colore-link);
}

/* ===============================
   BANNER / HERO SECTION
   =============================== */
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.intro-text {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.subtitle-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--colore-primario);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 6px 12px;
    background-color: rgba(123, 17, 19, 0.2);
    border-radius: 20px;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--colore-primario);
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--colore-primario);
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--colore-testo);
    margin-bottom: 35px;
}

.hero-btn {
    display: inline-block;
    background: var(--colore-accento);
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(173, 139, 115, 0.3);
    border: 2px solid transparent;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(173, 139, 115, 0.4);
    background: #6b2c2d;
}

.hero-btn:active {
    transform: translateY(1px);
}

/* ===============================
   IMMAGINE DEL POETA
   =============================== */
.poet-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.image-frame {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poet-image:hover .image-frame {
    transform: scale(1.08) translateY(-5px);
}

/* ===============================
   ANIMAZIONI
   =============================== */
.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   FOOTER
   =============================== */
.footer {
    background: var(--colore-primario);
    color: #ffffff;
    padding: 60px 40px 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-center {
    display: block;
    text-align: center;
}

.footer-left,
.footer-right {
    display: flex;
    justify-content: center;
}

.logo-link {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-link:hover {
    transform: scale(1.1) translateY(-5px);
}

.footer-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}


.footer-link {
    color: var(--colore-link);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--colore-link);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}



/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 1024px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .intro-text {
        max-width: 100%;
    }

    .title {
        font-size: 2.8rem;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
  }

  .footer-section {
    flex: 1 1 100%;
    width: 100%;
    min-width: unset;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
  }

  .footer-center {
    order: 2;
    max-width: 400px;
  }

  .footer-left {
    order: 1;
  }

  .footer-right {
    order: 3;
  }

  .footer-logo {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 640px) {
    .navbar {
        height: auto;
        padding: 15px 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .nav-menu {
        gap: 15px;
        font-size: 0.9rem;
    }

    .banner {
        padding: 40px 20px;
        min-height: auto;
    }

    .title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-section {
        min-width: 100%;
    }

    .footer-center {
        order: 2;
    }

    .footer-left {
        order: 1;
    }

    .footer-right {
        order: 3;
    }
}