/* ============================================================
   home-redesign.css — Restyle homepage much-life.com
   Layout editoriale "Life & Beauty". Classi prefissate hp-/site-
   per non collidere col BEM esistente di style.css.
   Caricato DOPO style.css/style-local.css (override sicuro).
   ============================================================ */

/* Smooth scroll per gli anchor (#temas, #artigos); offset per header sticky */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* Override Bootstrap: niente sottolineatura sui link in hover/focus */
a:focus, a:hover { text-decoration: none; outline: none; }

:root {
    --hp-teal: #2f6e63;
    --hp-teal-light: #6fb3a6;
    --hp-gold: #829d58;
    --hp-gold-light: #b0d07d;
    --hp-ink: #2f6e63;
    --hp-text: #6b665d;
    --hp-text-soft: #5a564e;
    --hp-bg: #fbfaf7;
    --hp-bg-alt: #f4f1ec;
    --hp-sez-text: #ffffff;
    --hp-card: #ffffff;
    --hp-border: #e7e2d8;
    --hp-footer-bg: #2a2722;
    --hp-footer-text: #b3afa6;
    --hp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --hp-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hp-radius: 14px;
    --hp-radius-img: 16px;
    --hp-radius-btn: 100px;
    --hp-shadow: 0 2px 10px rgba(0,0,0,.05);
    --hp-shadow-lg: 0 14px 34px rgba(0,0,0,.1);
    --hp-max: 1240px;
    --hp-mais-lidos: #6494ED;
}

.navbar { margin-bottom: 0 !important; }

/* ---- contenitore generico sezioni home ---- */
.hp-wrap { max-width: var(--hp-max); margin: 0 auto; padding: 0 24px; }
.hp-section { width: 100%; }
.hp-section--alt { background: var(--hp-bg-alt); }
.hp-section__head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.hp-eyebrow {
    display: inline-block; font-family: var(--hp-sans);
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--hp-gold); margin-bottom: 14px;
}
.hp-h2 {
    font-family: var(--hp-serif); font-weight: 600; color: var(--hp-ink);
    font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15;
    letter-spacing: -.5px; margin: 0;
}
.hp-lead { font-family: var(--hp-sans); font-size: 17px; color: var(--hp-text); line-height: 1.6; margin: 16px 0 0; }

/* =================== HERO =================== */
.hp-hero { background: var(--hp-sez-text); padding: 64px 0 76px; font-family: var(--hp-sans); }
.hp-hero__grid {
    max-width: var(--hp-max); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hp-hero__title {
    font-family: var(--hp-serif); font-weight: 600; color: var(--hp-ink);
    font-size: clamp(38px, 6vw, 60px); line-height: 1.08; letter-spacing: -1px; margin: 0 0 20px;
}
.hp-hero__text { font-size: 18px; color: var(--hp-text); line-height: 1.6; max-width: 460px; margin: 0 0 32px; }
.hp-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hp-hero__media { position: relative; }
@keyframes hp-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hp-fade-in { animation: hp-fade-in .6s ease both; }
.hp-fade-out { opacity: 0 !important; transition: opacity .35s ease; }
#hp-hero-rotator-img, #hp-hero-rotator-card { transition: opacity .35s ease; }
.hp-hero__img {
    width: 100%; height: 440px; object-fit: cover; border-radius: var(--hp-radius-img);
    display: block; background: linear-gradient(135deg,#d7e4d4,#c4d6c0);
}
.hp-featured {
    position: absolute; bottom: -22px; left: -22px; background: var(--hp-card);
    border-radius: 12px; padding: 18px 22px; box-shadow: var(--hp-shadow-lg);
    max-width: 250px; text-decoration: none; display: block;
}
.hp-featured__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hp-gold); margin-bottom: 6px; }
.hp-featured__title { font-family: var(--hp-serif); font-size: 17px; font-weight: 600; color: var(--hp-ink); line-height: 1.3; }

/* ---- bottoni ---- */
.hp-btn {
    display: inline-block; padding: 15px 32px; border-radius: var(--hp-radius-btn);
    font-family: var(--hp-sans); font-size: 15px; font-weight: 600; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.hp-btn--primary { background: var(--hp-teal); color: #fff; }
.hp-btn--primary:hover { background: #275a51; transform: translateY(-2px); }
.hp-btn--ghost { background: transparent; color: var(--hp-ink); border: 1px solid #d4cfc3; }
.hp-btn--ghost:hover { border-color: var(--hp-ink); }

/* =================== ABOUT =================== */
.hp-about { background: var(--hp-bg); padding: 64px 0; }
.hp-about__inner { max-width: var(--hp-max); margin: 0 auto; padding: 0 24px; text-align: center; }
.hp-about__text { font-family: var(--hp-sans); font-size: 18px; color: var(--hp-text); line-height: 1.7; margin: 20px 0 0; }

/* =================== GRIGLIA CATEGORIE =================== */
.hp-categorie { padding: 72px 0 88px; }
.hp-cat-grid {
    max-width: var(--hp-max); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px;
}
.hp-cat-card {
    background: var(--hp-card); border-radius: var(--hp-radius); overflow: hidden;
    box-shadow: var(--hp-shadow); text-decoration: none; display: block;
    transition: transform .3s ease, box-shadow .3s ease;
}
.hp-cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,.11); }
.hp-cat-card__img {
    height: 180px; width: 100%; display: block;
    background: linear-gradient(135deg,#d7e4d4,#c0d4bb);
    background-size: cover; background-position: center;
}
.hp-cat-card__body { padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;}
.hp-cat-card__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hp-gold); }
.hp-cat-card__title { font-family: var(--hp-serif); font-size: 21px; font-weight: 600; color: var(--hp-ink); display: block; }
.hp-cat-card__desc { font-size: 13px; color: var(--hp-text); line-height: 1.5; display: block; }

/* colori tematici per categoria */
:root {
    --cat-bem-estar:       #a8c9a0;
    --cat-menu-receitas:   #d4aa82;
    --cat-conselhos-beleza:#d4a0b0;
    --cat-longevidade:     #8fb8c4;
    --cat-beauty-tech:     #a090c8;
    --cat-beleza-masculina:#8090a8;
    --cat-conselhos-saz:   #c8b870;
}

/* gradienti placeholder (quando non c'è immagine reale) */
.hp-cat-card__img--bem-estar-e-saude  { background: linear-gradient(135deg,#c4dcc0,var(--cat-bem-estar)); }
.hp-cat-card__img--menu-e-receitas    { background: linear-gradient(135deg,#e8cca8,var(--cat-menu-receitas)); }
.hp-cat-card__img--conselhos-e-beleza { background: linear-gradient(135deg,#e4bcc8,var(--cat-conselhos-beleza)); }
.hp-cat-card__img--longevidade        { background: linear-gradient(135deg,#b8d4dc,var(--cat-longevidade)); }
.hp-cat-card__img--beauty-tech        { background: linear-gradient(135deg,#c4b8e0,var(--cat-beauty-tech)); }
.hp-cat-card__img--beleza-masculina   { background: linear-gradient(135deg,#a8b8c8,var(--cat-beleza-masculina)); }
.hp-cat-card__img--conselhos-sazonais { background: linear-gradient(135deg,#dcd094,var(--cat-conselhos-saz)); }

/* border-bottom tematico sull'immagine */
.hp-cat-card__img--bem-estar-e-saude  { border-bottom: 5px solid var(--cat-bem-estar); }
.hp-cat-card__img--menu-e-receitas    { border-bottom: 5px solid var(--cat-menu-receitas); }
.hp-cat-card__img--conselhos-e-beleza { border-bottom: 5px solid var(--cat-conselhos-beleza); }
.hp-cat-card__img--longevidade        { border-bottom: 5px solid var(--cat-longevidade); }
.hp-cat-card__img--beauty-tech        { border-bottom: 5px solid var(--cat-beauty-tech); }
.hp-cat-card__img--beleza-masculina   { border-bottom: 5px solid var(--cat-beleza-masculina); }
.hp-cat-card__img--conselhos-sazonais { border-bottom: 5px solid var(--cat-conselhos-saz); }

/* titolo-header sezione con colore tematico */
.titolo-header { font-family: var(--hp-serif); font-size: 22px; font-weight: 600; color: var(--hp-ink); padding-bottom: 10px; margin-bottom: 24px; }
.bem-estar-e-saude  .titolo-header { border-bottom: 5px solid var(--cat-bem-estar); color: var(--cat-bem-estar); }
.menu-e-receitas    .titolo-header { border-bottom: 5px solid var(--cat-menu-receitas); color: var(--cat-menu-receitas); }
.conselhos-e-beleza .titolo-header { border-bottom: 5px solid var(--cat-conselhos-beleza); color: var(--cat-conselhos-beleza); }
.longevidade        .titolo-header { border-bottom: 5px solid var(--cat-longevidade); color: var(--cat-longevidade); }
.beauty-tech        .titolo-header { border-bottom: 5px solid var(--cat-beauty-tech); color: var(--cat-beauty-tech); }
.beleza-masculina   .titolo-header { border-bottom: 5px solid var(--cat-beleza-masculina); color: var(--cat-beleza-masculina); }
.conselhos-sazonais .titolo-header { border-bottom: 5px solid var(--cat-conselhos-saz); color: var(--cat-conselhos-saz); }

/* =================== OS MAIS RECENTES =================== */
.hp-latest { background: var(--hp-bg); padding: 80px 0; }
.hp-latest-grid {
    max-width: var(--hp-max); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px;
}

/* ---- striscia scorrevole "Os mais lidos" (solo titoli) ---- */
.hp-ticker {
    background: var(--hp-ink); color: #fff;
    display: flex; align-items: center; gap: 20px;
    padding: 16px 0; font-family: var(--hp-sans);
}

.hp-ticker__label {
    flex: 0 0 auto; margin-left: 24px; padding: 6px 16px;
    background: var(--hp-gold); color: #fff; border-radius: 100px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    white-space: nowrap;
}
.hp-ticker__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.hp-ticker__track {
    display: flex; align-items: center; gap: 14px; width: max-content;
    animation: hp-ticker-scroll 40s linear infinite;
}
.hp-ticker__viewport:hover .hp-ticker__track { animation-play-state: paused; }
@keyframes hp-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.hp-ticker__item {
    flex: 0 0 auto; color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 600; white-space: nowrap;
    border-bottom: 2px solid transparent; transition: border-color .15s ease;
}
.hp-ticker__item:hover { border-color: var(--hp-gold-light) !important; color: var(--hp-gold-light) !important; }
.hp-ticker__sep { color: rgba(255,255,255,.35); flex: 0 0 auto; }
.hp-ticker__sep:last-child { display: none; }
.hp-article-card {
    background: var(--hp-card); border-radius: var(--hp-radius); overflow: hidden;
    box-shadow: var(--hp-shadow); display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none; color: inherit;
}
.hp-article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
.hp-article-card__img { height: 200px; width: 100%; display: block; object-fit: cover; background: linear-gradient(135deg,#cfe0e2,#b6d0d3); }
.hp-article-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.hp-article-card__cat { font-size: 11px; color: var(--hp-gold); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.hp-article-card__title { font-family: var(--hp-serif); font-size: 21px; font-weight: 600; color: var(--hp-ink); margin: 12px 0; line-height: 1.25; text-transform: uppercase; }
.hp-article-card__preview {
  font-size: 15px; color: var(--hp-text); line-height: 1.6; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.hp-article-card__link { font-size: 14px; color: var(--hp-teal); text-decoration: none; font-weight: 600; margin-top: auto; }
.hp-article-card:hover .hp-article-card__link { text-decoration: underline; }

/* =================== HEADER BRAND OVERRIDE =================== */
.hp-brand {
    display: inline-flex; align-items: baseline; gap: 2px;
    font-family: var(--hp-serif); font-size: 26px; font-weight: 600;
    letter-spacing: -.5px; text-decoration: none; line-height: 1;
    height: unset;
}
.hp-brand__a { color: var(--hp-teal); }
.hp-brand__amp { color: var(--hp-gold); font-style: italic; padding: 0 3px; }
.hp-brand__b { color: #33302b; }
.hp-brand__logo { height: 34px; width: auto; display: block; max-height: 140px !important; }

/* =================== FOOTER RICCO =================== */
.site-footer { background: var(--hp-teal); color: #fff; padding: 56px 0 36px; font-family: var(--hp-sans); }
.site-footer__inner { max-width: var(--hp-max); margin: 0 auto; padding: 0 24px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.site-footer__brand { font-family: var(--hp-serif); font-size: 22px; font-weight: 600; margin-bottom: 14px; display: inline-flex; align-items: baseline; gap: 2px; }
.site-footer__brand .hp-brand__b { color: #fff; }
.site-footer__brand .hp-brand__a { color: var(--hp-teal-light); }
.site-footer__brand .hp-brand__amp { color: var(--hp-gold-light); }
.site-footer__desc { font-size: 14px; line-height: 1.6; color: var(--hp-footer-text); margin: 0; max-width: 280px; }
.site-footer__col-title { font-size: 13px; font-weight: 600; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--hp-gold-light); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__link { color: var(--hp-footer-text); text-decoration: none; font-size: 14px; }
.site-footer__link:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 13px; color: var(--hp-footer-text); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* =================== BADGE SEZIONE ARTICOLO =================== */
.art-sez-badge-wrap { max-width: var(--hp-max); margin: 0 auto; padding: 28px 24px 0; text-align: center; }
.art-sez-badge {
    display: inline;
    font-family: var(--hp-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;
    color: var(--hp-sez-text);
    letter-spacing: 0;
    padding: 50px 0;
    text-decoration: none;
    transition: opacity .15s;
}
.art-sez-badge:hover { opacity: .85; }
.art-sez-badge--bem-estar-e-saude  { background-color: var(--cat-bem-estar); }
.art-sez-badge--menu-e-receitas    { background-color: var(--cat-menu-receitas); }
.art-sez-badge--conselhos-e-beleza { background-color: var(--cat-conselhos-beleza); }
.art-sez-badge--longevidade        { background-color: var(--cat-longevidade); }
.art-sez-badge--beauty-tech        { background-color: var(--cat-beauty-tech); }
.art-sez-badge--beleza-masculina   { background-color: var(--cat-beleza-masculina); }
.art-sez-badge--conselhos-sazonais { background-color: var(--cat-conselhos-saz); }

/* =================== LOGIN =================== */
body.login-page { background: var(--hp-bg-alt); }

.lp-wrap { max-width: 480px; margin: 64px auto 80px; padding: 0 24px; }

.lp-card { background: var(--hp-card); border-radius: var(--hp-radius); box-shadow: var(--hp-shadow-lg); padding: 40px; margin-bottom: 24px; }
.lp-card__head { margin-bottom: 28px; }
.lp-title { font-family: var(--hp-serif); font-size: 28px; font-weight: 600; color: var(--hp-ink); margin: 8px 0 10px; }
.lp-subtitle { font-size: 15px; color: var(--hp-text); line-height: 1.6; margin: 0; }

.lp-msg { font-size: 14px; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.lp-msg--ok { background: #e6f4f1; color: var(--hp-teal); }
.lp-msg--err { background: #fdecea; color: #c0392b; }

.lp-form { display: flex; flex-direction: column; gap: 18px; }
.lp-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--hp-ink); }
.lp-input {
    padding: 13px 16px; border: 1px solid var(--hp-border); border-radius: 10px;
    font-size: 15px; font-family: var(--hp-sans); color: var(--hp-ink);
    background: var(--hp-bg); outline: none; transition: border-color .15s;
}
.lp-input:focus { border-color: var(--hp-teal); }
.lp-btn-submit { width: 100%; text-align: center; padding: 15px; margin-top: 4px; }

.lp-link-recover { display: block; margin-top: 16px; font-size: 13px; color: var(--hp-teal); text-decoration: none; cursor: pointer; }
.lp-link-recover:hover { text-decoration: underline; }

.lp-divider { border: none; border-top: 1px solid var(--hp-border); margin: 8px 0 24px; }
.lp-new-user { text-align: center; }
.lp-new-user__text { font-size: 14px; color: var(--hp-text); margin: 0 0 14px; }
.lp-btn-register { display: inline-block; }

/* =================== SEZIONE =================== */
body.sezione-page { background: var(--hp-bg-alt); font-family: var(--hp-sans); }

.sez-wrap { max-width: var(--hp-max); margin: 0 auto; padding: 0 24px 80px; }

/* --- topbar breadcrumb categoria (sopra l'header) --- */
.sez-topbar { background: var(--hp-bg); border-bottom: 1px solid var(--hp-border); }
.sez-topbar__inner {
    max-width: var(--hp-max); margin: 0 auto; padding: 11px 24px;
    font-family: var(--hp-sans); font-size: 13px;
    display: flex; align-items: center; gap: 9px;
}
.sez-topbar__brand { font-family: var(--hp-serif); font-weight: 600; font-size: 15px; text-decoration: none; }
.sez-topbar__brand .hp-brand__a { color: var(--hp-teal); }
.sez-topbar__brand .hp-brand__amp { color: var(--hp-gold); font-style: italic; padding: 0 1px; }
.sez-topbar__brand .hp-brand__b { color: var(--hp-ink); }
.sez-topbar__sep { color: #c4bfb4; flex: 0 0 auto; }
.sez-topbar__cat { color: var(--hp-text); }
.sez-topbar__cat--current {
    color: var(--hp-ink); overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; min-width: 0;
}

/* --- hero categoria: banda con gradiente tematico + testo editoriale --- */
.sez-hero {
    width: 100%; margin-bottom: 48px; 
    display: flex; align-items: flex-end;
    background-color: var(--hp-bg-alt);
    background-image:
        linear-gradient(180deg, rgba(30,27,22,0) 28%, rgba(30,27,22,.55) 100%),
        linear-gradient(122deg, var(--cat-current, var(--hp-teal)) 0%, rgba(244,241,236,.82) 72%);
}
.sez-hero__inner { max-width: var(--hp-max); width: 100%; margin: 0 auto; padding: 56px 24px 44px; }
.sez-hero__eyebrow {
    display: block; font-family: var(--hp-sans);
    font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
    color: rgba(255,255,255,.85); margin: 0 0 14px;
}
.sez-hero__title {
    font-family: var(--hp-serif); font-weight: 600; color: #fff;
    font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 0 0 16px;
}
.sez-hero__subtitle {
    font-family: var(--hp-sans); font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,.92); line-height: 1.5;  margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* colore tematico corrente della categoria (ereditato, usato dalla paginazione) */
.bem-estar-e-saude  { --cat-current: var(--cat-bem-estar); }
.menu-e-receitas    { --cat-current: var(--cat-menu-receitas); }
.conselhos-e-beleza { --cat-current: var(--cat-conselhos-beleza); }
.longevidade        { --cat-current: var(--cat-longevidade); }
.beauty-tech        { --cat-current: var(--cat-beauty-tech); }
.beleza-masculina   { --cat-current: var(--cat-beleza-masculina); }
.conselhos-sazonais { --cat-current: var(--cat-conselhos-saz); }

/* border-bottom tematico sull'immagine delle card articolo (colore categoria) */
.hp-article-card__img { border-bottom: 5px solid var(--cat-current, transparent); }

.sez-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 32px;
}

.sez-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.sez-pagination__item {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px;
    border-radius: 100px; border: 1px solid var(--hp-border);
    font-size: 14px; font-weight: 600; color: var(--hp-ink); text-decoration: none;
    background: var(--hp-card); transition: background .15s, color .15s;
}
.sez-pagination__item:hover { background: var(--cat-current, var(--hp-teal)); color: #fff; border-color: var(--cat-current, var(--hp-teal)); }
.sez-pagination__item--active { background: var(--cat-current, var(--hp-teal)); color: #fff; border-color: var(--cat-current, var(--hp-teal)); }
.sez-pagination__next { font-size: 20px; }

/* =================== ARTICOLO =================== */
body.articolo-page { background: var(--hp-bg-alt); font-family: var(--hp-sans); color: var(--hp-ink); }

.art-wrap { max-width: var(--hp-max); margin: 0 auto; padding: 0 24px 80px; }

.art-breadcrumb { padding: 28px 0 0; font-size: 13px; color: var(--hp-text); display: flex; align-items: center; gap: 8px; }
.art-breadcrumb a { color: var(--hp-text); text-decoration: none; }
.art-breadcrumb__sep { color: #c4bfb4; }
.art-breadcrumb__current { color: var(--hp-gold); font-weight: 600; }

.art-header { padding: 28px 0 32px; }
.art-title {
    font-family: var(--hp-serif); font-weight: 600; color: var(--hp-ink);
    font-size: clamp(36px, 5.5vw, 58px); line-height: 1.08; letter-spacing: -1px; margin: 0 0 24px;
}
.art-summary { font-size: 19px; color: var(--hp-text); line-height: 1.65; margin: 0 0 32px; }

.art-author { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.art-author__avatar {
    width: 46px; height: 46px; border-radius: 50%; background: var(--hp-teal);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--hp-sans); font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.art-author__name { font-size: 15px; font-weight: 600; color: var(--hp-ink); }
.art-author__meta { font-size: 13px; color: var(--hp-text); margin-top: 2px; }

.art-hero-img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    border-radius: var(--hp-radius-img); display: block; margin-bottom: 48px;
    background: var(--hp-border);
}

.art-body { font-size: 17px; line-height: 1.75; color: var(--hp-text); }
.art-body h2, .art-body .testo-grassetto {
    font-family: var(--hp-serif); font-size: 26px; font-weight: 600; color: var(--hp-ink);
    margin: 44px 0 18px; line-height: 1.2;
}
.art-body p { margin: 0 0 22px; }
.art-body img { width: 100%; border-radius: 12px; margin: 28px 0; display: block; }
/* immagine di copertina duplicata a inizio testo (CMS): nascosta, gia' mostrata da art-hero-img.
   ponytail: copre i due pattern CMS piu' comuni (img o p>img come primo figlio di .testo). */
.art-body > .testo > img:first-child,
.art-body > .testo > p:first-child > img:only-child:first-child { display: none; }
.art-body ul, .art-body ol { padding-left: 24px; margin: 0 0 22px; }
.art-body li { margin-bottom: 8px; }

/* override stili CMS dentro .testo */
.articolo-page .nocciolo { background: transparent !important; box-shadow: none !important; border: none !important; padding: 0 !important; }
.articolo-page #content.article-content { background: transparent; }
.articolo-page .container { max-width: none; padding: 0; }
.articolo-page .row { margin: 0; }
.articolo-page h1.titolo { display: none; } /* sostituito da art-title */

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
    .hp-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hp-hero__media { order: -1; }
    .hp-hero__img { height: 320px; }
    .hp-featured { left: 12px; bottom: 12px; }
}
@media (max-width: 600px) {
    .hp-wrap, .hp-hero__grid, .hp-cat-grid, .hp-latest-grid, .site-footer__inner { padding-left: 18px; padding-right: 18px; }
    .hp-hero { padding: 40px 0 56px; }
    .hp-categorie { padding: 48px 0 56px; }
    .hp-latest { padding: 52px 0; }
    .hp-cat-grid { grid-template-columns: 1fr; }
    .hp-btn { flex: 1; text-align: center; }
}

/* --- header sticky con logo che si rimpicciolisce allo scroll --- */
#header { position: sticky; top: 0; z-index: 1001; transition: box-shadow .25s ease; }
#header.hp-header--sticky { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.hp-brand__logo { transition: height .25s ease; }
#header.hp-header--sticky .hp-brand__logo { height: 80px; }
#header.hp-header--sticky .hp-header-top { padding: 8px 24px; }

/* --- nav categorie: full width e centrata (niente container/float Bootstrap) --- */
.navbar .container.full-content { width: 100%; max-width: none; }
.navbar-header { float: none; width: 100%; }
.navbar-collapse.hp-mobile-menu { float: none; }
.navbar-default .navbar-nav.centrale > li > a {
    font-family: var(--hp-serif);
    text-transform: uppercase;
    font-size: 17px;
    line-height: 20px;
}

/* --- Categoria attiva nel menu di navigazione ---
   La voce nav della sezione corrente riceve .selected (header.tpl: $sez.cartella==$sezione).
   Su pagine categoria il <body> porta la classe-cartella => --cat-current risolve al colore
   tematico; in home (canale-page, senza classe-cartella) nessuna voce e' .selected e il
   fallback e' il teal. */
.navbar-default .navbar-nav.centrale > li > a.selected {
    color: var(--cat-current, var(--hp-teal));
    font-weight: 600;
    position: relative;
}
.navbar-default .navbar-nav.centrale > li > a.selected::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    border-radius: 2px;
    background: var(--cat-current, var(--hp-teal));
}
/* hover coerente col colore della categoria corrente */
.navbar-default .navbar-nav.centrale > li > a:hover {
    color: var(--cat-current, var(--hp-teal));
}

/* --- dropdown "Temas" (categorie reali sotto la voce flat) --- */
.navbar-default .navbar-nav.centrale > li.has-sub { position: relative; }
.navbar-default .navbar-nav.centrale > li.has-sub > .sub-menu {
    position: absolute; top: 100%; left: 50%;
    min-width: 230px; margin: 0; padding: 8px 0; list-style: none;
    background: #fff; border: 1px solid var(--hp-border);
    border-radius: 12px; box-shadow: var(--hp-shadow-lg);
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
    transition: opacity .18s ease, transform .18s ease; z-index: 1000;
}
.navbar-default .navbar-nav.centrale > li.has-sub:hover > .sub-menu,
.navbar-default .navbar-nav.centrale > li.has-sub:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.navbar-default .navbar-nav.centrale > li.has-sub > .sub-menu > li { display: block; float: none; }
.navbar-default .navbar-nav.centrale > li.has-sub > .sub-menu > li > a {
    display: block; padding: 9px 20px; font-family: var(--hp-sans);
    font-size: 14px; line-height: 1.3; color: var(--hp-ink); white-space: nowrap;
}
.navbar-default .navbar-nav.centrale > li.has-sub > .sub-menu > li > a:hover {
    color: var(--hp-teal); background: var(--hp-bg-alt);
}

/* --- header a due righe: logo centrato sopra, nav categorie centrata sotto --- */
.hp-header-top {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 14px 24px; background: var(--hp-bg, #fff);
    border-bottom: 1px solid var(--hp-border);
}
.hp-header-top .hp-brand { margin: 0; padding: 0; justify-self: center; grid-column: 2; }
.hp-header-top__account { grid-column: 3; justify-self: end; }
.hp-account-link {
    font-family: var(--hp-sans); font-size: 13px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; color: var(--hp-ink);
    text-decoration: none; padding: 8px 16px; border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-btn); transition: all .15s ease;
}
.hp-account-link:hover { color: #fff; background: var(--hp-teal); border-color: var(--hp-teal); }

/* toggle hamburger mobile: nascosto su desktop */
.hp-mobile-toggle {
    grid-column: 1; justify-self: start;
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0; background: none; border: none; cursor: pointer;
}
.hp-mobile-toggle__bar { width: 24px; height: 2px; background: var(--hp-ink); border-radius: 2px; transition: all .2s ease; }

.navbar-nav.hp-nav-categorie {
    float: none !important; display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center;
}
.navbar-nav.hp-nav-categorie > li { float: none; }

/* =================== MENU MOBILE (overlay a tendina) =================== */
@media (max-width: 767px) {
    .hp-mobile-toggle { display: flex; }
    .hp-header-top { grid-template-columns: auto 1fr auto; }
    .hp-header-top .hp-brand { grid-column: 2; }
    .hp-header-top__account { grid-column: 3; }
    .hp-account-link { font-size: 11px; padding: 6px 12px; }

    .navbar-header { position: static; }
    .hp-mobile-menu.collapse:not(.in) { display: none; }
    .hp-mobile-menu {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--hp-card); border-top: 1px solid var(--hp-border);
        box-shadow: var(--hp-shadow-lg); z-index: 1000;
        max-height: calc(100vh - 70px); overflow-y: auto;
        padding: 8px 0 24px;
    }
    .navbar-nav.hp-nav-categorie {
        flex-direction: column; align-items: stretch; width: 100%;
    }
    .navbar-nav.hp-nav-categorie > li {
        width: 100%; border-bottom: 1px solid var(--hp-border);
    }
    .navbar-nav.hp-nav-categorie > li.last { border-bottom: none; }
    .navbar-nav.hp-nav-categorie > li > a {
        display: block; padding: 16px 28px; font-family: var(--hp-sans);
        font-size: 17px; font-weight: 600; color: var(--hp-ink);
    }
    .navbar-nav.hp-nav-categorie > li > a.selected {
        color: var(--cat-current, var(--hp-teal)); background: var(--hp-bg-alt);
    }
    .navbar-nav.hp-nav-categorie > li > a.selected::after { display: none; }
}

/* --- Galleria classica articolo (.box-classic-gallery) ---
   Markup CMS: h3 + Bootstrap carousel (indicators + item/img + controls).
   Bootstrap 3.3.7 (css/js) gia' caricato in head-html: qui solo lo skin. */
.box-classic-gallery {
    margin: 36px 0;
    padding: 24px;
    border-radius: var(--hp-radius);
}
.box-classic-gallery h3 {
    margin: 0 0 16px;
    font-family: var(--hp-serif);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    color: var(--cat-current, var(--hp-ink));
}
.box-classic-gallery .gallery-carousel {
    border-radius: var(--hp-radius-img, 12px);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
}
.box-classic-gallery .item img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}
.box-classic-gallery .carousel-control {
    width: 48px;
    background: none;
    text-shadow: none;
    opacity: 1;
}
.box-classic-gallery .carousel-control .glyphicon {
    top: 50%;
    margin-top: -18px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #555;
    font-size: 14px;
    box-shadow: var(--hp-shadow);
    transition: background .15s ease;
}
.box-classic-gallery .carousel-control:hover .glyphicon { background: #fff; color: var(--cat-current, var(--hp-teal)); }
.box-classic-gallery .carousel-indicators {
    bottom: 12px;
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
    display: flex;
    justify-content: center;
}
.box-classic-gallery .carousel-indicators li {
    border-color: rgba(255, 255, 255, .8);
    background: rgba(0, 0, 0, .2);
}
.box-classic-gallery .carousel-indicators .active {
    background: var(--cat-current, var(--hp-teal));
    border-color: var(--cat-current, var(--hp-teal));
}
.carousel-inner {
    background: #fff;
}
.carousel-inner > .item > img, .carousel-inner > .item > a > img {
    width: 70%;
    margin: auto;
    max-height: 500px !important;
}

/* ---- Sezione "Os mais lidos" in categoria ---- */
.sez-most-read { position: relative; z-index: 2; margin: -80px 0 60px; }

.sez-most-read .sez-most-read__title {color: var(--hp-mais-lidos);}
.sez-most-read__inner {
    max-width: var(--hp-max); margin: 0 auto; padding: 32px 24px;
    background: var(--hp-card); border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow-lg);
    border-bottom: 15px solid var(--hp-mais-lidos);
}
.sez-most-read__title {
    font-family: var(--hp-serif);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 600;
    color: var(--cat-current, var(--hp-teal));
    margin: 0 0 32px;
    text-align: center;
}
.sez-most-read .hp-article-card {
    background: transparent; box-shadow: none; border-radius: 0; overflow: visible;
}
.sez-most-read .hp-article-card:hover { transform: none; box-shadow: none; }
.sez-most-read .hp-article-card__img {
    border-radius: var(--hp-radius-img); border-bottom: none;
}
.sez-most-read .hp-article-card__body { padding: 20px 4px 0; }
.sez-most-read .hp-article-card__body:hover {box-shadow: none; }
.sez-most-read .hp-article-card:hover {
    transform: translateY(-5px);
}
.sez-most-read .hp-article-card__body:hover .hp-article-card__link {color: var(--hp-mais-lidos)};