/* ═══════════════════════════════════════════════════════════════
   PSICOMENTORE.ORG – style.css
   ═══════════════════════════════════════════════════════════════ */


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


/* ── Variables ──────────────────────────────────────────────── */
:root {
    --verde-delicato: #8B9D83;
    --verde-scuro:    #5A6B52;
    --blu-navy:       #2D3E50;
    --beige:          #F5F1E8;
    --bianco:         #FFFFFF;
    --grigio-chiaro:  #F8F8F8;
}


/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--blu-navy);
    background-color: var(--bianco);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--blu-navy);
}

h1 { font-size: 2rem;   font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.4rem; font-weight: 600; color: var(--verde-scuro); margin-top: 2rem; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; font-weight: 400; line-height: 1.8; }

a { color: var(--verde-scuro); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--blu-navy); text-decoration: underline; }


/* ── Hero / Header ──────────────────────────────────────────── */
header.hero,
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--verde-delicato) 0%, var(--verde-scuro) 100%);
    color: var(--bianco);
    text-align: center;
    padding: 60px 20px 40px;
}

.hero .logo         { width: 80px; height: 80px; margin-bottom: 20px; border-radius: 50%; }
.hero h1            { color: var(--bianco); margin-bottom: 10px; letter-spacing: 1px; }
.hero .motto        { font-style: italic; font-size: 1rem; margin-bottom: 5px; opacity: .95; }
.hero .tagline      { font-size: 1.1rem; margin-top: 15px; font-weight: 300; }


/* ── Language Switcher ──────────────────────────────────────── */
.lang-switch {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
}

.lang-switch a {
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.18);
}

.lang-switch a:hover                 { opacity: .85; text-decoration: none; }
.lang-switch a[aria-current="page"]  { outline: 2px solid rgba(166,255,154,.55); }


/* ── Mini Audio Player ──────────────────────────────────────── */
.mini-audio     { margin: 10px auto 0; width: min(520px, 92%); }
.mini-audio audio     { display: none; }
.mini-audio-ui  { width: 100%; height: auto; display: block; }


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.main-nav {
    background-color: var(--beige);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    position: relative;
    min-height: 52px;
}

/* ── Hamburger ──────────────────────────────────────────────── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blu-navy);
    margin: 5px 0;
    border-radius: 2px;
    transition: all .25s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav logo (home link, left side of bar) */
.nav-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 0;
    text-decoration: none;
    z-index: 5;
}

.nav-logo img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: block;
    border: 2px solid rgba(90, 107, 82, 0.35);
    transition: transform .2s, border-color .2s;
}

.nav-logo:hover img {
    transform: scale(1.08);
    border-color: var(--verde-scuro);
}

/* ── Nav List ───────────────────────────────────────────────── */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.nav-list > li > a {
    display: block;
    color: var(--blu-navy);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background .25s, color .25s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-list > li > a:hover {
    background-color: var(--verde-delicato);
    color: var(--bianco);
    text-decoration: none;
}

.nav-list > li > a.disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

/* ── Dropdown ───────────────────────────────────────────────── */
.has-dropdown { position: relative; }

.has-dropdown > a::after { content: ' ▾'; font-size: .75em; }

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(90, 107, 82, 0.98);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(255,255,255,.16);
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open  .dropdown { display: block; }

.dropdown li a {
    display: block;
    padding: 12px 16px;
    color: #f6f7f5;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .2s;
    white-space: nowrap;
}

.dropdown li:last-child a   { border-bottom: none; border-radius: 0 0 8px 8px; }
.dropdown li a:hover        { background: rgba(255,255,255,.15); text-decoration: none; color: #f6f7f5; }
.dropdown li a.disabled     { opacity: .5; cursor: not-allowed; pointer-events: none; }


/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.section        { padding: 60px 20px; }
.section-light  { background-color: var(--bianco); }
.section-dark   { background-color: var(--beige); }

.section-contact {
    background: linear-gradient(135deg, var(--verde-delicato) 0%, var(--verde-scuro) 100%);
    color: var(--bianco);
}

.section-contact h2,
.section-contact p,
.section-contact a  { color: var(--bianco); }
.section-contact a:hover { opacity: .8; }


/* ── Content ────────────────────────────────────────────────── */
.content        { max-width: 800px; margin: 0 auto; }
.intro-image    { text-align: center; margin: 30px 0; }
.intro-image img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.principles ul,
.not-we ul      { list-style: none; padding-left: 0; }

.principles li,
.not-we li      { padding: 8px 0 8px 24px; position: relative; }

.principles li::before { content: "✓"; position: absolute; left: 0; color: var(--verde-scuro); font-weight: bold; }
.not-we li::before     { content: "✗"; position: absolute; left: 0; color: var(--verde-scuro); font-weight: bold; }

.uk-model,
.two-sides,
.not-we {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--grigio-chiaro);
    border-radius: 8px;
    border-left: 4px solid var(--verde-delicato);
}

.highlight { font-weight: 600; color: var(--verde-scuro); }


/* ── Phases ─────────────────────────────────────────────────── */
.phase {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(139,157,131,.3);
}
.phase:last-child { border-bottom: none; }
.phase h3        { color: var(--verde-scuro); margin-bottom: 20px; }

blockquote {
    font-style: italic;
    padding: 20px;
    margin: 20px 0;
    background-color: rgba(139,157,131,.1);
    border-left: 4px solid var(--verde-delicato);
    border-radius: 4px;
}
blockquote cite { display: block; margin-top: 10px; font-size: .9rem; font-style: normal; color: var(--verde-scuro); }


/* ── Two Columns ────────────────────────────────────────────── */
.two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}


/* ── Contact ────────────────────────────────────────────────── */
.contact-info           { text-align: center; font-size: 1.1rem; margin: 30px 0; }
.contact-name           { font-size: 1.4rem; font-weight: 600; margin-bottom: 20px; }
.contact-info .note     { font-size: .9rem; font-style: italic; opacity: .9; }
.contact-info p         { margin: 15px 0; }
.quote                  { text-align: center; font-style: italic; font-size: 1.2rem; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.3); }
.closing                { font-size: 1.1rem; text-align: center; margin: 30px 0; }


/* ── Footer ─────────────────────────────────────────────────── */
footer {
    background-color: var(--blu-navy);
    color: var(--bianco);
    text-align: center;
    padding: 30px 20px;
    font-size: .9rem;
}


/* ═══════════════════════════════════════════════════════════════
   DARK PAGE — music-medicines.html
   ═══════════════════════════════════════════════════════════════ */

.dark-page {
    background: var(--verde-scuro);
    color: #f6f7f5;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Nav inherits default beige style — no overrides needed */

/* Page header */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: .06em;
    margin: 0 0 12px;
    color: #f6f7f5;
}

.page-header .subtitle {
    font-style: italic;
    font-size: 1rem;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    font-family: 'DM Mono', monospace;
    font-size: .6rem;
    letter-spacing: .18em;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    text-transform: uppercase;
}
.back-link:hover { color: #f6f7f5; text-decoration: none; }

/* Ambassador section */
.amb-section { margin: 40px 0 60px; }

.amb-header {
    padding: 22px 24px 20px;
    background: rgba(255,220,120,.07);
    border: 1px solid rgba(255,220,120,.4);
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.amb-badge {
    font-family: 'DM Mono', monospace;
    font-size: .58rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,220,120,.8);
    border: 1px solid rgba(255,220,120,.4);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.amb-title-group    { flex: 1; }

.amb-artist-name {
    font-size: 1.7rem;
    font-weight: 300;
    letter-spacing: .06em;
    color: #f6f7f5;
    line-height: 1.1;
}

.amb-desc {
    font-style: italic;
    font-size: .88rem;
    color: rgba(255,255,255,.7);
    line-height: 1.55;
    margin-top: 4px;
}

/* Music card (table wrapper) */
.music-card {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,220,120,.4);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.20);
}

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

.music-card thead th {
    text-align: left;
    font-family: 'DM Mono', monospace;
    font-size: .57rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 12px 10px;
    background: rgba(255,220,120,.08);
    border-bottom: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.7);
    font-weight: 400;
}

.music-card tbody td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(255,255,255,.16);
    vertical-align: top;
    font-size: .92rem;
    color: #f6f7f5;
}

.music-card tbody tr:last-child td       { border-bottom: none; }
.music-card tbody tr:hover td            { background: rgba(0,0,0,.07); }
.music-card tbody tr td:first-child      { border-left: 2px solid rgba(255,220,120,.5); }

.track-name { font-weight: 500; }
.genre-txt  { color: rgba(255,255,255,.7); font-size: .82rem; }
.note-txt   { color: rgba(255,255,255,.7); font-size: .82rem; font-style: italic; }
.anno-txt   { font-family: 'DM Mono', monospace; font-size: .68rem; color: rgba(255,255,255,.7); }

/* Stream icons */
.icons {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.iconlink {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: #f6f7f5;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.iconlink:hover             { background: rgba(255,255,255,.22); transform: translateY(-1px); text-decoration: none; color: #f6f7f5; }
.iconlink svg               { width: 14px; height: 14px; fill: currentColor; }
.iconlink.ph                { border-style: dashed; opacity: .45; cursor: default; pointer-events: none; }
.iconlink.yt                { border-color: rgba(255,80,80,.5); }
.iconlink.yt:hover          { background: rgba(255,80,80,.25); }

/* Mobile song cards */
.mobile-cards { display: block; padding: 0; }

.song-card {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.16);
    background: rgba(255,220,120,.03);
}
.song-card:last-child { border-bottom: none; }

.song-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.song-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: .82rem;
    color: rgba(255,255,255,.7);
}
.song-meta span { background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 10px; }

.song-note   { font-size: .85rem; font-style: italic; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.song-icons  { display: flex; gap: 8px; flex-wrap: wrap; }
.song-icons .iconlink     { width: 36px; height: 36px; }
.song-icons .iconlink svg { width: 18px; height: 18px; }

/* Dark page footer */
.dark-page footer {
    background: transparent;
    margin-top: 60px;
    padding: 24px 0;
    font-family: 'DM Mono', monospace;
    font-size: .58rem;
    letter-spacing: .12em;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,.16);
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Desktop enhancements */
@media (min-width: 768px) {
    h1                      { font-size: 2.5rem; }
    h2                      { font-size: 2.2rem; }
    .hero                   { padding: 80px 20px 60px; }
    .hero .logo             { width: 100px; height: 100px; }
    .section                { padding: 80px 20px; }
    .nav-list > li > a      { padding: 10px 16px; }
    .two-columns            { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .container { padding: 0 40px; }
}

/* Mobile */
@media (max-width: 767px) {

    /* Show hamburger */
    .hamburger { display: block; }

    .main-nav .container {
        justify-content: flex-start;
        padding: 12px 20px;
    }

    /* Collapse nav list */
    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        border-top: 1px solid rgba(0,0,0,.10);
        margin-top: 8px;
    }
    .nav-list.open { display: flex; }

    .nav-list > li > a {
        padding: 12px 20px;
        border-radius: 0;
        width: 100%;
    }

    /* Mobile dropdown: static + indented */
    .has-dropdown:hover .dropdown { display: none; }   /* disable CSS hover */
    .has-dropdown.open  .dropdown { display: block; }  /* JS click opens it */

    .dropdown {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: rgba(90, 107, 82, .12);
    }

    .dropdown li a {
        padding: 10px 20px 10px 32px;
        color: var(--blu-navy);
        border-bottom: 1px solid rgba(0,0,0,.06);
    }
    .dropdown li a:hover  { background: rgba(90, 107, 82, .15); color: var(--verde-scuro); }

    /* Music medicines page adjustments */
    .page-header h1     { font-size: 1.6rem; }
    .amb-header         { padding: 16px; }
    .amb-artist-name    { font-size: 1.3rem; }
    .desktop-only       { display: none !important; }
    .mobile-only        { display: block !important; }
}

@media (min-width: 768px) {
    .mobile-only { display: none !important; }
}


/* ── Print ──────────────────────────────────────────────────── */
@media print {
    .main-nav,
    .lang-switch { display: none; }
    .section     { page-break-inside: avoid; }
}
