/* ============================================================
   LEMBO — Screen Layout
   ============================================================ */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--avorio);
  border-bottom: 1px solid var(--prugna-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo-img {
  height: 60px;
  width: auto;
}

.site-nav { display: flex; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: opacity 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--prugna);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-link:hover::after,
.nav-item--active .nav-link::after {
  transform: scaleX(1);
}

.nav-toggle { display: none; }

/* --- Footer --- */
.site-footer {
  background: var(--prugna);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.footer-claim { color: var(--avorio); opacity: 0.9; }
.footer-claim__sep { opacity: 0.5; }
.footer-arco { opacity: 0.4; }

/* --- Hero --- */
.section-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(242,161,135,0.12) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-claim {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 20px;
}

.hero-claim__sub {
  display: block;
  font-size: 0.72em;
}

.hero-desc {
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-form {
  justify-content: center;
}

.hero-arco {
  position: absolute;
  pointer-events: none;
}

.hero-arco--tr {
  top: -40px;
  right: -40px;
  opacity: 0.55;
}

.hero-arco--tr img {
  width: 340px;
  height: auto;
}

.hero-arco--bl {
  bottom: -50px;
  left: -50px;
  opacity: 0.38;
}

.hero-arco--bl img {
  width: 260px;
  height: auto;
}

/* --- Pillars --- */
.section-pillars {
  padding: 0;
  background: rgba(142, 31, 77, 0.04);
  border-top: 1px solid var(--prugna-light);
  border-bottom: 1px solid var(--prugna-light);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.pillar {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.pillar--soon { opacity: 0.7; }

.pillar-divider {
  background: var(--prugna-light);
  align-self: stretch;
}

.pillar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.pillar__brand-icon {
  height: 72px;
  width: auto;
  max-width: 128px;
}

.pillar__title { margin-bottom: 4px; }

.pillar__desc {
  flex: 1;
  max-width: 240px;
  font-size: 0.9375rem;
}

.pillar__cta { margin-top: 8px; }

/* --- Journal feed --- */
.section-journal { padding: var(--padding-section); }

.section-journal__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* --- Card post --- */
.card-post {
  padding: 32px;
  border: 1px solid var(--prugna-light);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.card-post:hover {
  border-color: var(--prugna);
  background: rgba(142, 31, 77, 0.03);
}

.card-post__tags { display: flex; gap: 8px; }

.card-post__tag {
  background: var(--albicocca-light);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.75rem;
}

.card-post__title {
  font-family: var(--font-titoli);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--prugna);
}

.card-post__link { transition: opacity 0.2s; }
.card-post__link:hover { opacity: 0.75; }
.card-post__link:focus-visible {
  outline: 2px solid var(--prugna);
  outline-offset: 2px;
  border-radius: 2px;
}

.card-post__excerpt {
  font-size: 0.9375rem;
  flex: 1;
}

.card-post__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.card-post__sep { opacity: 0.4; }

.card-post__arrow {
  margin-left: auto;
  font-size: 1.125rem;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.card-post:hover .card-post__arrow {
  opacity: 1;
  transform: translateX(4px);
}

.card-post__arrow:focus-visible {
  outline: 2px solid var(--prugna);
  outline-offset: 2px;
}

/* --- Sezione subscribe --- */
.section-subscribe {
  padding: 64px 0;
  background: var(--prugna-xlight);
}

.subscribe-block {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.subscribe-block__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.subscribe-block__desc { opacity: 0.85; }

.subscribe-form input[type="email"] {
  border: 1px solid var(--prugna-light);
  box-shadow: 0 1px 3px rgba(142, 31, 77, 0.08);
}

/* --- Pagina articolo (post.hbs) --- */
.post-layout { padding: 64px 0 80px; }

.post-header {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 0 40px;
  text-align: center;
}

.post-tag {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--albicocca-light);
  border-radius: 20px;
  padding: 4px 16px;
}

.post-title {
  font-family: var(--font-titoli);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--prugna);
  line-height: 1.15;
  margin-bottom: 20px;
}

.post-meta {
  font-size: 0.875rem;
  opacity: 0.65;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--prugna);
}

.post-content h2 {
  font-family: var(--font-titoli);
  font-size: 1.75rem;
  margin: 2em 0 0.75em;
}

.post-content h3 {
  font-family: var(--font-titoli);
  font-size: 1.35rem;
  margin: 1.5em 0 0.5em;
}

.post-content p { margin-bottom: 1.25em; }

.post-content blockquote {
  border-left: 3px solid var(--albicocca);
  padding: 12px 24px;
  margin: 2em 0;
  font-style: italic;
  opacity: 0.85;
}

.post-content a {
  color: var(--prugna);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Koenig editor — immagini wide e full width nei post */
.kg-width-wide {
  margin-left: calc(50% - 45vw);
  margin-right: calc(50% - 45vw);
  max-width: 90vw;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

/* --- Pagina statica (corsi, risorse) --- */
.page-soon {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  gap: 24px;
}

.page-soon__arco {
  width: 120px;
  height: 150px;
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  :root {
    --padding-section: 48px 24px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .pillar-divider {
    height: 1px;
    width: 100%;
  }

  .pillar { padding: 40px 24px; }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .l-container { padding: 0 24px; }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav-toggle__bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--prugna);
    transition: transform 0.2s, opacity 0.2s;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--avorio);
    border-bottom: 1px solid var(--prugna-light);
    padding: 16px 24px 24px;
  }

  .site-nav.is-open { display: flex; }

  .nav-list {
    flex-direction: column;
    gap: 16px;
  }

  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"] { min-width: unset; }
}
