/* ============================================
   Francesco Moretti – Poesia
   Sito statico – solo HTML + CSS
   Ispirato a francescomorettimusic.com
   ============================================ */

:root {
    --background-color: #fef9e7; /* giallo pastello soft */
    --accent-color: #ff6d4d;     /* stesso accento caldo del sito musicale */
    --text-color: #1a1a1a;
    --link-color: #6a1b9a;       /* stesso viola */
    --footer-bg: #ffffff;
    --placeholder-bg: #f0e6c8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0 10%;
}

/* ---------- HEADER ---------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background-color: var(--background-color);
    position: relative;
}

.header__logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.header__artist-name {
    font-family: "Niconne", cursive;
    font-size: 36px;
    font-weight: normal;
    letter-spacing: 0.02em;
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-toggle {
    display: none;
}

.header__hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.header__nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.header__nav-link {
    font-family: "Niconne", cursive;
    font-size: 26px;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.2rem 0.4rem;
}

.header__nav-link:hover {
    text-decoration: underline;
}

/* Tendina per le Poesie */
.header__nav-item--dropdown {
    position: relative;
}

.header__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--background-color);
    list-style: none;
    padding: 0.6rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    z-index: 100;
}

.header__nav-item--dropdown:hover .header__dropdown,
.header__nav-item--dropdown:focus-within .header__dropdown {
    display: block;
}

.header__dropdown a {
    display: block;
    padding: 0.45rem 1.2rem;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
}

.header__dropdown a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* ---------- HERO ---------- */
.hero {
    margin: 1rem 0 2rem;
}

.hero__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}


/* ---------- SEZIONI GENERALI ---------- */
.section {
    margin: 3rem 0;
}

.headline {
    font-family: "Niconne", cursive;
    font-size: 36px;
    font-weight: normal;
    text-align: center;
    margin: 2rem 0 1.5rem;
}

.section-title {
    font-family: "Niconne", cursive;
    font-size: 34px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 0.8rem;
}

.section__lead {
    text-align: center;
    max-width: 36em;
    margin: 0 auto 2rem;
    font-size: 17px;
}

/* ---------- CHI SONO / INTRODUZIONE ---------- */
.intro {
    display: flex;
    gap: 2.5rem;
    margin: 2rem auto;
    justify-content: center;
    align-items: flex-start;
    max-width: 80em;
}

.intro__content {
    flex: 2;
    max-width: 40em;
}

.intro__text {
    margin: 0 1.5rem 1.2rem;
    text-align: left;
}

.intro__image {
    flex: 1;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    background-color: var(--placeholder-bg); 
    border-radius: 8px;
}

.content-link {
    color: var(--link-color);
    text-decoration: none;
    padding: 0.1rem 0.35rem;
}

.content-link:hover {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
}

/* ---------- SEZIONI POESIA ---------- */
.poetry {
    text-align: center;
    padding: 1.5rem 0;
}

.poetry__title {
    font-family: "Niconne", cursive;
    font-size: 30px;
    font-weight: normal;
    margin-bottom: 1.2rem;
}

/* Contenitore condiviso così immagine e testo hanno lo stesso bordo sinistro */
.poetry__image,
.poetry__body {
    width: 100%;
    max-width: 420px;          /* stessa larghezza dell'immagine */
    margin-left: auto;
    margin-right: auto;
}

.poetry__image {
    aspect-ratio: 4 / 3;
    background-color: var(--placeholder-bg);
    border-radius: 8px;
    margin-bottom: 1.8rem;
}

.poetry__body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.85;
    text-align: left;          /* ancora allineato a sinistra */
    padding: 0;                /* rimuove padding extra */
}

/* ---------- FOOTER ---------- */
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 1rem;
    background-color: var(--footer-bg);
    margin-top: 4rem;
    border-radius: 8px;
}

.footer__contact {
    text-align: center;
}

.footer__contact-title {
    font-family: "Niconne", cursive;
    font-size: 24px;
    margin-bottom: 0.4rem;
}

.footer__email {
    font-size: 16px;
    color: var(--link-color);
    text-decoration: none;
}

.footer__music-link {
    text-align: center;
}

.footer__music {
    font-family: "Niconne", cursive;
    font-size: 26px;
    color: var(--link-color);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1.5px solid var(--link-color);
    border-radius: 25px;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}

.footer__music:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Pulsante musica centrato tra introduzione e poesie */
.music-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

.footer__music--wide {
    padding: 0.35rem 1.6rem;
}

/* ---------- COPYRIGHT ---------- */
.copyright {
    margin: 1.5rem 0 2rem;
    text-align: center;
}

.copyright__line {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 1rem auto;
    width: 70%;
}

.copyright__text {
    font-size: 15px;
    color: var(--text-color);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    body {
        margin: 0 5%;
    }

    .intro {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0 1rem;
    }

    .header {
        flex-direction: row;
        align-items: center;
        padding: 0.8rem 0;
    }

    .header__artist-name {
        font-size: 28px;
    }


	 .header__logo-container {
    	   display: flex;
         align-items: center;
         gap: 1rem;
	 }

	  .header__logo {
         width: 100px;
         height: 100px;
         object-fit: cover;
	 }

    .header__hamburger {
        display: block;
    }

    .header__nav-list {
        display: none;
        flex-direction: column;
        gap: 0.8rem;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background-color: var(--background-color);
        padding: 1.2rem 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 200;
    }

    .header__nav-toggle:checked ~ .header__nav-list {
        display: flex;
    }

    /* Su mobile la tendina diventa una semplice lista nidificata – sempre aperta e visibile */
    .header__dropdown {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0.3rem 0 0.3rem 1rem;
        min-width: auto;
    }

    .hero__image{
        aspect-ratio: 1 / 1;
    }

    .intro {
        flex-direction: column;
        align-items: center;
        margin: 1.5rem 0;
    }

    .intro__content {
        max-width: 100%;
    }

    .intro__text {
        margin: 0 0 1rem;
        font-size: 15.5px;
    }

    .intro__image {
        max-width: 70%;
        width: 70%;
    }

    .headline {
        font-size: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .poetry__title {
        font-size: 26px;
    }

	.poetry__body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.85;
    max-width: 28em;
    text-align: left;
    margin: 0 auto;
    padding: 0 1rem;
	}

    .poetry__image-placeholder {
        max-width: 100%;
    }

    .footer {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .footer__music {
        font-size: 24px;
    }
}

@media (min-width: 769px) {
    .poetry__body {
        left: 2.5rem;      /* oppure 3rem / 4rem – prova quello che rende meglio */
        position: relative;
    }
}

@media (max-width: 480px) {
    .header__artist-name {
        font-size: 24px;
    }

    .poetry__body {
        font-size: 16.5px;
        line-height: 1.8;
    }
}
