/* ==========================================================================
   TheModernMamas — Redesign CSS
   Drop-in stylesheet for GeneratePress child theme.
   Implements the homepage + landing-page mockup
   (themodernmamas-mockup.html) — warm Lifestyle palette.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Design tokens (CSS custom properties)
   -------------------------------------------------------------------------- */
:root {
    --bg:         #faf6f1;
    --cream:      #f3ebe0;
    --sand:       #e8dcc9;
    --terracotta: #c96f4a;
    --terracotta-dark: #b85d3a;
    --sage:       #7a8b6b;
    --sage-dark:  #5a6b4d;
    --ink:        #2d2a26;
    --muted:      #6b655c;
    --rose:       #e8b4a0;
    --shadow:     0 1px 2px rgba(45, 42, 38, .04), 0 8px 24px rgba(45, 42, 38, .06);
    --radius:     14px;

    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Bridge GP custom-prop names so existing components keep working */
    --accent:    var(--terracotta);
    --contrast:  var(--ink);
    --contrast-2: var(--muted);
    --base:      var(--bg);
}

/* --------------------------------------------------------------------------
   2. Global GeneratePress overrides
   -------------------------------------------------------------------------- */
body,
button,
input,
select,
textarea {
    font-family: var(--font-sans);
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body {
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6,
.serif,
.entry-title,
.site-title,
.widget-title {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ink);
}

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover,
a:focus {
    color: var(--terracotta-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--rose);
    color: var(--ink);
}

/* GP buttons (.button, button, input[type=submit], etc) — aligned with .tmm-btn-primary */
.button,
button,
.wp-block-button__link,
input[type="submit"],
input[type="button"] {
    background-color: var(--terracotta);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 13px 24px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button:hover,
button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--terracotta-dark);
    color: #fff;
}

/* --------------------------------------------------------------------------
   3. WordPress block overrides — wp:heading, wp:paragraph, wp:list, wp:group
   -------------------------------------------------------------------------- */
.wp-block-heading,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-serif);
    color: var(--ink);
    line-height: 1.2;
    margin: 1.4em 0 .6em;
}

.entry-content h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.015em; }
.entry-content h2 { font-size: clamp(26px, 3vw, 36px); }
.entry-content h3 { font-size: clamp(20px, 2.2vw, 26px); }
.entry-content h4 { font-size: 18px; }

.entry-content p,
.wp-block-paragraph {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 1.2em;
}

.entry-content ul,
.entry-content ol,
.wp-block-list {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 1.4em;
    padding-left: 1.4em;
}

.entry-content ul li,
.entry-content ol li,
.wp-block-list li {
    margin-bottom: .4em;
}

.wp-block-group {
    background: transparent;
}

.wp-block-quote,
.entry-content blockquote {
    border-left: 3px solid var(--terracotta);
    background: var(--cream);
    padding: 14px 18px;
    margin: 1.6em 0;
    font-style: italic;
    color: var(--muted);
    border-radius: 0 8px 8px 0;
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.tmm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.tmm-section {
    padding: 72px 0;
    border-top: 1px solid var(--sand);
}

.tmm-section--tinted {
    background: var(--cream);
    border-top: 0;
}

.tmm-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}

.tmm-section-head h2 {
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.1;
}

.tmm-section-head h2 em {
    font-style: italic;
    color: var(--terracotta);
    font-weight: 500;
}

.tmm-section-head p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   5. Eyebrow / pills / trend tags
   -------------------------------------------------------------------------- */
.tmm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 20px;
}

.tmm-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.tmm-pill {
    display: inline-block;
    background: var(--rose);
    color: var(--ink);
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.tmm-trend-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff4ee;
    color: var(--terracotta);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   6. Buttons (BEM)
   -------------------------------------------------------------------------- */
.tmm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease, transform .15s ease, border-color .2s ease;
}

.tmm-btn-primary {
    background: var(--terracotta);
    color: #fff;
}

.tmm-btn-primary:hover,
.tmm-btn-primary:focus {
    background: var(--terracotta-dark);
    color: #fff;
}

.tmm-btn-ghost {
    padding: 14px 26px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.tmm-btn-ghost:hover,
.tmm-btn-ghost:focus {
    background: var(--ink);
    color: var(--bg);
}

/* --------------------------------------------------------------------------
   7. Top nav (sticky, blurred, dropdown)
   -------------------------------------------------------------------------- */
.tmm-top-nav {
    background: rgba(250, 246, 241, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sand);
    position: sticky;
    top: 0;
    z-index: 50;
}

.tmm-top-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.tmm-top-nav__logo {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -.02em;
    color: var(--ink);
    flex-shrink: 0;
}

.tmm-top-nav__logo span {
    color: var(--terracotta);
}

.tmm-top-nav__links {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0 auto;
    padding: 0;
}

.tmm-top-nav__links > li {
    position: relative;
}

.tmm-top-nav__links > li > a {
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    transition: color .15s ease, background-color .15s ease;
}

.tmm-top-nav__links > li > a:hover {
    color: var(--terracotta);
}

.tmm-top-nav__links > li.has-sub > a::after {
    content: "▾";
    font-size: 9px;
    opacity: .5;
    margin-left: 2px;
}

.tmm-top-nav__sub {
    position: absolute;
    top: 100%;
    left: -8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 60;
    border: 1px solid var(--sand);
}

.tmm-top-nav__links > li.has-sub:hover > .tmm-top-nav__sub,
.tmm-top-nav__links > li.has-sub:focus-within > .tmm-top-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tmm-top-nav__sub li a {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}

.tmm-top-nav__sub li a:hover {
    background: var(--cream);
    color: var(--terracotta);
}

.tmm-top-nav__sub li a small {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 2px;
}

.tmm-top-nav__cta {
    background: var(--ink);
    color: var(--bg);
    padding: 10px 20px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.tmm-top-nav__cta:hover,
.tmm-top-nav__cta:focus {
    background: var(--terracotta);
    color: #fff;
}

/* --------------------------------------------------------------------------
   8. Hero (homepage)
   -------------------------------------------------------------------------- */
.tmm-hero {
    padding: 72px 0 80px;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(232, 180, 160, .35), transparent 60%),
        radial-gradient(ellipse at 10% 80%, rgba(122, 139, 107, .15), transparent 55%),
        var(--bg);
}

.tmm-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.tmm-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 5.2vw, 68px);
    line-height: 1.05;
    margin: 0 0 24px;
    color: var(--ink);
}

.tmm-hero__title em {
    color: var(--terracotta);
    font-style: italic;
    font-weight: 500;
}

.tmm-hero__lead {
    font-family: var(--font-sans);
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 0 32px;
    line-height: 1.55;
}

.tmm-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tmm-hero__visual-wrap {
    position: relative;
}

.tmm-hero__visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f5d5c5 0%, #e8b4a0 50%, #d48f6f 100%) var(--cream);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.tmm-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmm-hero__badge {
    position: absolute;
    bottom: 24px;
    left: -20px;
    background: var(--bg);
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tmm-hero__badge-avatars {
    display: flex;
}

.tmm-hero__badge-avatars > * {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -8px;
    background: var(--cream);
}

.tmm-hero__badge-avatars > *:first-child { margin-left: 0; }

.tmm-hero__badge strong {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    display: block;
    color: var(--ink);
}

.tmm-hero__badge small {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Featured grid (1 large + 4 small)
   -------------------------------------------------------------------------- */
.tmm-featured-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
}

.tmm-featured-grid__sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    grid-column: 2 / span 2;
}

.tmm-post-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: transparent;
    transition: transform .2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tmm-post-card:hover {
    transform: translateY(-4px);
}

.tmm-post-card__img {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    background-color: var(--cream);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.tmm-post-card--large .tmm-post-card__img {
    aspect-ratio: 4 / 3.4;
}

.tmm-post-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmm-post-card__meta {
    padding: 16px 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tmm-post-card__meta .tag {
    color: var(--terracotta);
    font-weight: 600;
}

.tmm-post-card__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    padding: 10px 4px 8px;
    margin: 0;
    color: var(--ink);
}

.tmm-post-card--large .tmm-post-card__title {
    font-size: 30px;
}

.tmm-post-card__excerpt {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--muted);
    padding: 0 4px 4px;
    margin: 0;
}

/* --------------------------------------------------------------------------
   10. About section (sage green)
   -------------------------------------------------------------------------- */
.tmm-about {
    background: var(--sage);
    color: #fff;
    padding: 80px 0;
}

.tmm-about__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.tmm-about__photo {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    background-color: var(--cream);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.tmm-about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmm-about h2,
.tmm-about__title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.2vw, 42px);
    margin: 0 0 20px;
    color: #fff;
    line-height: 1.15;
}

.tmm-about p {
    color: rgba(255, 255, 255, .88);
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
}

.tmm-about .tmm-eyebrow {
    color: var(--rose);
}

.tmm-about .tmm-eyebrow::before {
    background: var(--rose);
}

.tmm-about .tmm-btn-primary {
    background: var(--bg);
    color: var(--ink);
}

.tmm-about .tmm-btn-primary:hover,
.tmm-about .tmm-btn-primary:focus {
    background: #fff;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   11. Newsletter card (with blur gradients)
   -------------------------------------------------------------------------- */
.tmm-newsletter {
    background: var(--bg);
    border-radius: 28px;
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tmm-newsletter::before,
.tmm-newsletter::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .5;
    pointer-events: none;
}

.tmm-newsletter::before {
    background: var(--rose);
    top: -60px;
    left: -60px;
}

.tmm-newsletter::after {
    background: #dde4d1;
    bottom: -60px;
    right: -60px;
}

.tmm-newsletter > * {
    position: relative;
    z-index: 1;
}

.tmm-newsletter__title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.4vw, 42px);
    margin: 0 0 12px;
    color: var(--ink);
    line-height: 1.15;
}

.tmm-newsletter__title em {
    font-style: italic;
    color: var(--terracotta);
    font-weight: 500;
}

.tmm-newsletter p {
    color: var(--muted);
    margin: 0 auto 28px;
    max-width: 480px;
    font-size: 16px;
}

.tmm-newsletter__badge {
    display: inline-block;
    background: var(--sage);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.tmm-newsletter__form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--sand);
    border-radius: 999px;
    padding: 5px;
}

.tmm-newsletter__form input[type="email"] {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 16px;
    font: inherit;
    outline: none;
    color: var(--ink);
}

.tmm-newsletter__form button {
    background: var(--terracotta);
    color: #fff;
    border: 0;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
}

.tmm-newsletter__form button:hover {
    background: var(--terracotta-dark);
}

.tmm-newsletter__perks {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.tmm-newsletter__perks span::before {
    content: "✓ ";
    color: var(--sage);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   12. Trend cards (with rank badge)
   -------------------------------------------------------------------------- */
.tmm-trend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tmm-trend-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform .15s ease;
}

.tmm-trend-card:hover {
    transform: translateY(-3px);
}

.tmm-trend-card__img {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    background-color: var(--cream);
    background-size: cover;
    background-position: center;
}

.tmm-trend-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmm-trend-card__rank {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, .95);
    color: var(--terracotta);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tmm-trend-card__cat {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--terracotta);
    margin-bottom: 8px;
}

.tmm-trend-card__title {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--ink);
}

.tmm-trend-card__excerpt {
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   13. Recent cards
   -------------------------------------------------------------------------- */
.tmm-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

.tmm-recent-card {
    cursor: pointer;
    transition: transform .15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tmm-recent-card:hover {
    transform: translateY(-2px);
}

.tmm-recent-card__img {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    margin-bottom: 14px;
    background-color: var(--cream);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.tmm-recent-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmm-recent-card__meta {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmm-recent-card__meta .cat {
    color: var(--terracotta);
    font-weight: 700;
}

.tmm-recent-card__meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--sand);
}

.tmm-recent-card__title {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 6px;
    color: var(--ink);
}

.tmm-recent-card__excerpt {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   14. Landing page article elements
   -------------------------------------------------------------------------- */
.tmm-lp-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.tmm-lp-breadcrumb {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 32px 0 18px;
}

.tmm-lp-breadcrumb a {
    color: var(--terracotta);
}

.tmm-lp-h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -.015em;
    color: var(--ink);
}

.tmm-lp-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tmm-lp-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sand);
}

.tmm-lp-meta strong {
    color: var(--ink);
    font-weight: 600;
}

.tmm-lp-hero-img {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    margin-bottom: 32px;
    background-color: var(--cream);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.tmm-lp-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmm-lp-disclaimer {
    background: var(--cream);
    border-left: 3px solid var(--terracotta);
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-style: italic;
    color: var(--muted);
    border-radius: 0 8px 8px 0;
    margin-bottom: 28px;
}

.tmm-lp-intro p {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 18px;
    color: var(--ink);
}

.tmm-lp-intro p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 3.8em;
    float: left;
    line-height: .9;
    padding: 4px 10px 0 0;
    color: var(--terracotta);
    font-weight: 600;
}

.tmm-lp-h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    margin: 48px 0 20px;
    padding-top: 16px;
    border-top: 1px solid var(--sand);
    color: var(--ink);
}

.tmm-lp-h2 small {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   15. Product box (landing page) — image | body | price column
   -------------------------------------------------------------------------- */
.tmm-product-box {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 24px;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--shadow);
}

.tmm-product-box__badge {
    position: absolute;
    top: -10px;
    left: 24px;
    background: var(--terracotta);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    padding: 6px 14px;
    border-radius: 999px;
}

.tmm-product-box__badge--best    { background: var(--terracotta); }
.tmm-product-box__badge--deal    { background: var(--sage); }
.tmm-product-box__badge--comfort { background: #c9875f; }

.tmm-product-box__img {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background-color: var(--cream);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.tmm-product-box__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmm-product-box__body h3,
.tmm-product-box__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--ink);
}

.tmm-product-box__stars {
    color: #d4a24a;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1;
}

.tmm-product-box__stars span {
    color: var(--muted);
    font-size: 12px;
    margin-left: 4px;
}

.tmm-product-box__body p,
.tmm-product-box__desc {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.tmm-product-box__price-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.tmm-product-box__price {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}

.tmm-product-box__price s,
.tmm-product-box__price-old {
    display: block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    text-decoration: line-through;
    margin-top: 6px;
}

.tmm-product-box__buy {
    background: var(--terracotta);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease;
}

.tmm-product-box__buy:hover,
.tmm-product-box__buy:focus {
    background: var(--terracotta-dark);
    color: #fff;
}

.tmm-product-box__shipping {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--muted);
    text-align: right;
}

/* --------------------------------------------------------------------------
   16. Product pros / cons box (cream, sits below product-box)
   -------------------------------------------------------------------------- */
.tmm-product-pros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    padding: 16px 24px 20px;
    margin: -4px 0 24px;
    background: var(--cream);
    border-radius: 0 0 var(--radius) var(--radius);
    font-family: var(--font-sans);
    font-size: 13.5px;
    list-style: none;
}

.tmm-product-pros li {
    list-style: none;
    padding-left: 22px;
    position: relative;
    margin: 0;
}

.tmm-product-pros li.pro::before,
.tmm-product-pros .pro::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--sage);
    font-weight: 700;
}

.tmm-product-pros li.con::before,
.tmm-product-pros .con::before {
    content: "−";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--terracotta);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. FAQ accordion (HTML5 details/summary)
   -------------------------------------------------------------------------- */
.tmm-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.tmm-faq-item {
    background: var(--bg);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    overflow: hidden;
}

.tmm-faq-item summary {
    padding: 18px 22px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--ink);
}

.tmm-faq-item summary::-webkit-details-marker {
    display: none;
}

.tmm-faq-item summary::after {
    content: "+";
    font-family: var(--font-sans);
    font-size: 22px;
    color: var(--terracotta);
    transition: transform .2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.tmm-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.tmm-faq-item[open] summary {
    border-bottom: 1px solid var(--sand);
}

.tmm-faq-item__answer,
.tmm-faq-item .answer {
    padding: 16px 22px 22px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.tmm-faq-item__answer strong,
.tmm-faq-item .answer strong {
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   18. Footer (dark ink)
   -------------------------------------------------------------------------- */
.tmm-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .7);
    padding: 56px 0 28px;
    margin-top: 24px;
}

.tmm-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.tmm-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    flex-wrap: wrap;
    gap: 20px;
}

.tmm-footer__logo {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 26px;
    color: #fff;
    text-decoration: none;
}

.tmm-footer__logo span {
    color: var(--rose);
}

.tmm-footer__socials {
    display: flex;
    gap: 10px;
}

.tmm-footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.tmm-footer__socials a:hover,
.tmm-footer__socials a:focus {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.tmm-footer__socials-label {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 8px;
    text-align: right;
}

.tmm-footer__disclaimer {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 24px;
}

.tmm-footer__legal {
    font-family: var(--font-sans);
    font-size: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, .55);
}

.tmm-footer__legal a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .15s ease;
}

.tmm-footer__legal a:hover,
.tmm-footer__legal a:focus {
    color: #fff;
}

/* --------------------------------------------------------------------------
   19. Override existing .tmm-product-card (image | body | price column)
   Existing markup uses: .tmm-product-card > .tmm-product-image, .tmm-product-info
                        ↳ .tmm-product-info > .tmm-product-name, .tmm-product-price, .tmm-product-button
   We re-style to match the new mockup .tmm-product-box.
   -------------------------------------------------------------------------- */
.tmm-product-card {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 24px;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 24px;
    margin: 36px 0;
    position: relative;
    box-shadow: var(--shadow);
    overflow: visible;
}

.tmm-product-card:hover {
    box-shadow: 0 1px 2px rgba(45, 42, 38, .04), 0 12px 32px rgba(45, 42, 38, .1);
}

.tmm-product-card .tmm-product-badge {
    position: absolute;
    top: -10px;
    left: 24px;
    background: var(--terracotta);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    line-height: 1.4;
}

.tmm-product-card .tmm-product-image {
    flex: none;
    max-width: none;
    width: 220px;
    aspect-ratio: 1 / 1;
    background: var(--cream);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tmm-product-card .tmm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: none;
    border-radius: 6px;
    mix-blend-mode: multiply;
}

.tmm-product-card .tmm-product-info {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    text-align: left;
    align-items: flex-start;
}

.tmm-product-card .tmm-product-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--ink);
}

.tmm-product-card .tmm-product-price {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 0;
    color: var(--muted);
}

.tmm-product-card .tmm-product-button {
    background: var(--terracotta);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    align-self: stretch;
    box-shadow: none;
    text-decoration: none;
    white-space: nowrap;
    margin-top: 0;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.tmm-product-card .tmm-product-button:hover {
    background: var(--terracotta-dark);
    color: #fff;
    transform: none;
    box-shadow: 0 4px 12px rgba(201, 111, 74, .25);
}

.tmm-product-card .tmm-product-button::after {
    content: "→";
    font-size: 1em;
    transition: transform .2s ease;
}

.tmm-product-card .tmm-product-button:hover::after {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   20. Responsive — match mockup breakpoints (1000px, 900px, 700px)
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .tmm-trend-grid,
    .tmm-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tmm-featured-grid {
        grid-template-columns: 1fr;
    }

    .tmm-featured-grid__sub {
        grid-template-columns: 1fr 1fr;
        grid-column: auto;
    }
}

@media (max-width: 900px) {
    .tmm-hero {
        padding: 56px 0 64px;
    }

    .tmm-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tmm-trend-grid,
    .tmm-recent-grid {
        grid-template-columns: 1fr;
    }

    .tmm-top-nav__links {
        display: none;
    }

    .tmm-newsletter {
        padding: 48px 24px;
    }

    .tmm-about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tmm-section {
        padding: 56px 0;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
    }

    .tmm-product-box,
    .tmm-product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tmm-product-box__price-col {
        text-align: center;
        align-items: center;
        min-width: 0;
    }

    .tmm-product-box__shipping {
        text-align: center;
    }

    .tmm-product-pros {
        grid-template-columns: 1fr;
    }

    .tmm-product-card .tmm-product-image {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .tmm-product-card .tmm-product-info {
        text-align: center;
        align-items: center;
    }

    .tmm-product-card .tmm-product-button {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        align-self: stretch;
    }

    .tmm-featured-grid__sub {
        grid-template-columns: 1fr;
    }

    .tmm-hero__badge {
        left: 12px;
        bottom: 12px;
        padding: 12px 16px;
    }

    .tmm-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   AUDIT FIXES — appended 2026-05-03
   Address issues from visual audit vs mockup
   ============================================================ */

/* [BLOCKER 1] Hide GP mobile header — we use our own sticky tmm-top-nav */
@media (max-width: 1000px) {
    #mobile-header,
    .site-header.has-inline-mobile-toggle,
    .has-inline-mobile-toggle .mobile-menu-control-wrapper,
    .navigation-branding {
        display: none !important;
    }
    /* The tmm-top-nav becomes the only header */
    .tmm-top-nav {
        display: block;
    }
    .tmm-top-nav__inner {
        padding: 12px 16px;
    }
    .tmm-top-nav__logo {
        font-size: 22px;
    }
    /* Add a hamburger replacement: hide nav links + show CTA only */
    .tmm-top-nav__links {
        display: none;
    }
    /* Mobile: dropdowns become accordion below the header when toggled (no toggle yet — kept simple) */
}

/* [BLOCKER 2] Hero CTAs: enforce flex + gap + ghost button */
.tmm-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.tmm-hero__ctas .tmm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.tmm-hero__ctas .tmm-btn-primary {
    background: var(--terracotta);
    color: #fff;
}
.tmm-hero__ctas .tmm-btn-primary:hover {
    background: #b85d3a;
    color: #fff;
}
.tmm-hero__ctas .tmm-btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 12px 23px;
}
.tmm-hero__ctas .tmm-btn-ghost:hover {
    background: var(--ink);
    color: var(--bg);
}

/* [HIGH 4] Hero badge positioning + avatar contrast */
.tmm-hero__visual-wrap {
    position: relative;
}
.tmm-hero__badge {
    position: absolute;
    bottom: 24px;
    left: -20px;
    background: var(--bg);
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 240px;
}
.tmm-hero__badge-avatars {
    display: flex;
}
.tmm-hero__badge-avatars div {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -8px;
}
.tmm-hero__badge-avatars div:nth-child(1) { background: #d48f6f; margin-left: 0; }
.tmm-hero__badge-avatars div:nth-child(2) { background: var(--sage); }
.tmm-hero__badge-avatars div:nth-child(3) { background: var(--terracotta); }
.tmm-hero__badge strong {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    color: var(--ink);
}
.tmm-hero__badge small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
}

/* [HIGH 6] Drop cap on first paragraph of single posts */
.single-post .entry-content > p:first-of-type::first-letter,
.tmm-lp-content > p:first-of-type::first-letter,
.tmm-lp-intro > p:first-of-type::first-letter {
    font-family: 'Fraunces', serif;
    font-size: 3.8em;
    float: left;
    line-height: .9;
    padding: 4px 10px 0 0;
    color: var(--terracotta);
    font-weight: 600;
}

/* [HIGH 7] Affiliate disclaimer auto-styled */
.tmm-affiliate-disclaimer {
    background: var(--cream);
    border-left: 3px solid var(--terracotta);
    padding: 14px 18px;
    font-size: 13px;
    font-style: italic;
    color: var(--muted);
    border-radius: 0 8px 8px 0;
    margin: 24px 0 32px;
    line-height: 1.6;
}

/* [HIGH 9] H2 with small eyebrow (lp-h2 style) */
.tmm-lp-h2,
.entry-content h2.tmm-lp-h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 48px 0 20px;
    padding-top: 16px;
    border-top: 1px solid var(--sand);
    color: var(--ink);
}
.tmm-lp-h2 small,
.entry-content h2 small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 8px;
}

/* [HIGH 10] Newsletter perks — quiet inline */
.tmm-newsletter__perks {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.tmm-newsletter__perks span {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    color: var(--muted) !important;
    font-size: 13px;
    font-weight: 500;
}
.tmm-newsletter__perks span::before {
    content: "✓ ";
    color: var(--sage);
    font-weight: 700;
}

/* [MEDIUM 13] Empty category / archive state — better fallback */
.archive .no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--cream);
    border-radius: var(--radius);
    margin: 32px 0;
}
.archive .no-results .page-title,
.no-results .page-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
}

/* [MEDIUM 14] Product card shadow & badge overhang */
.tmm-product-box {
    box-shadow: 0 1px 2px rgba(45,42,38,.04), 0 8px 24px rgba(45,42,38,.06);
}
.tmm-product-box__badge {
    top: -10px !important;
}

/* [MEDIUM 15] FAQ accordion +/× — make sure native marker is hidden */
.tmm-faq-item summary::-webkit-details-marker,
details > summary::-webkit-details-marker,
details summary::marker {
    display: none;
    content: '';
}
.tmm-faq-item summary {
    list-style: none;
}

/* [MEDIUM 16] Italic terracotta accent on section heading "evidenza" */
.tmm-hp-section-head em,
.tmm-section h2 em,
.tmm-hero__title em {
    font-style: italic;
    color: var(--terracotta);
    font-weight: 500;
}

/* [LOW 19] Blog card border subtle (sand, not terracotta) */
.tmm-post-card,
.post-card {
    border-color: var(--sand) !important;
}

/* Empty page placeholder */
.tmm-empty-page {
    text-align: center;
    padding: 40px 20px 80px;
    color: var(--muted);
    font-style: italic;
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto;
}

/* Related posts slider — visual polish */
.tmm-related-posts {
    margin: 56px 0;
    padding-top: 32px;
    border-top: 1px solid var(--sand);
}
.tmm-related-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(22px, 2.4vw, 28px);
    margin-bottom: 24px;
    color: var(--ink);
}
.tmm-related-slider {
    position: relative;
}
.tmm-related-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 12px;
}
.tmm-related-track::-webkit-scrollbar { height: 6px; }
.tmm-related-track::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 3px; }
.tmm-related-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    background: var(--bg);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.tmm-related-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.tmm-related-thumb {
    aspect-ratio: 16/10;
    background: var(--cream);
    overflow: hidden;
}
.tmm-related-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.tmm-related-cat {
    display: inline-block;
    padding: 12px 16px 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: .12em;
}
.tmm-related-h3 {
    padding: 8px 16px 16px;
    font-family: 'Fraunces', serif;
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
}
/* Related posts arrows — clean, minimal, force-override WP/GP button defaults */
.tmm-related-arrow,
button.tmm-related-arrow,
html body .tmm-related-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #fff !important;
    color: var(--ink) !important;
    border: 1px solid var(--sand) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    border-radius: 50% !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(45, 42, 38, .08);
    z-index: 2;
    display: none;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0;
    line-height: 1;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}

.tmm-related-arrow::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.tmm-related-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.tmm-related-next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

.tmm-related-arrow:hover,
.tmm-related-arrow:focus {
    background: var(--terracotta) !important;
    color: #fff !important;
    border-color: var(--terracotta) !important;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(201, 111, 74, .25);
}

@media (min-width: 901px) {
    .tmm-related-arrow { display: inline-flex !important; }
    .tmm-related-prev { left: -22px; }
    .tmm-related-next { right: -22px; }
}

/* Mobile hamburger toggle */
.tmm-top-nav__toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.tmm-top-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform .15s, opacity .15s;
}
@media (max-width: 1000px) {
    .tmm-top-nav__toggle { display: flex; }
    .tmm-top-nav__cta { display: none; } /* Iscriviti hidden on mobile, accessible from menu */
    .tmm-top-nav.is-open .tmm-top-nav__links {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-top: 1px solid var(--sand);
        padding: 12px 0;
        margin: 0;
        list-style: none;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    .tmm-top-nav.is-open .tmm-top-nav__links > li {
        display: block;
        padding: 0;
    }
    .tmm-top-nav.is-open .tmm-top-nav__links > li > a {
        display: block;
        padding: 14px 24px;
        color: var(--ink);
        font-weight: 500;
    }
    .tmm-top-nav.is-open .tmm-top-nav__sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--cream);
        margin: 0;
        padding: 0;
        border-radius: 0;
        display: none;
    }
    .tmm-top-nav.is-open .tmm-top-nav__links > li.is-open > .tmm-top-nav__sub {
        display: block;
    }
    .tmm-top-nav.is-open .tmm-top-nav__sub li a {
        padding: 10px 36px;
        color: var(--ink);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   STEP 10 — Deep visual audit fixes (2026-05-03)
   ═══════════════════════════════════════════════════════════════════ */

/* Anchor jump: never let H2/H3 hide under sticky nav (TOC links etc.) */
.entry-content h2,
.entry-content h3,
.tmm-lp-content h2,
.tmm-lp-content h3,
[id] {
    scroll-margin-top: 100px;
}

/* ─── Product card: visible hover lift ──────────────────────────── */
.tmm-product-wrap {
    transition: box-shadow .25s ease, transform .25s ease;
}
.tmm-product-wrap:hover {
    box-shadow: 0 14px 36px -18px rgba(45,42,38,.32),
                0 4px 12px -4px rgba(45,42,38,.12);
    transform: translateY(-2px);
}

/* Buy button: visibly darker on hover */
a.tmm-product-box__buy,
.tmm-product-box__buy {
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
a.tmm-product-box__buy:hover,
.tmm-product-box__buy:hover {
    background: #a85a39 !important;
    box-shadow: 0 6px 18px -6px rgba(201,111,74,.55);
    transform: translateY(-1px);
}

/* About section "La mia storia" hover */
.tmm-about a.tmm-btn,
.tmm-about .tmm-btn {
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.tmm-about a.tmm-btn:hover,
.tmm-about .tmm-btn:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
    transform: translateY(-1px);
}

/* ─── Callouts: visible left border + tinted background ────────── */
.tmm-callout,
.wp-block-group.tmm-callout,
[class*="tmm-callout"] {
    background: var(--cream) !important;
    border-left: 4px solid var(--terracotta);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px !important;
    margin: 28px 0 !important;
    font-size: 15px;
    line-height: 1.65;
    box-shadow: 0 1px 3px rgba(45,42,38,.04);
}
.tmm-callout--tip,
.tmm-callout-tip {
    border-left-color: var(--sage);
    background: rgba(122,139,107,.07) !important;
}
.tmm-callout--warning,
.tmm-callout-warning {
    border-left-color: #d4a017;
    background: rgba(212,160,23,.07) !important;
}
.tmm-callout p:first-child,
.tmm-callout p:only-child {
    margin: 0 !important;
}
.tmm-callout strong:first-child {
    color: var(--ink);
    display: inline-block;
    margin-bottom: 4px;
}

/* ─── FAQ items: subtle chevron decoration + hover tint ────────── */
.tmm-faq-item {
    position: relative;
    transition: background .2s ease, border-color .2s ease;
}
.tmm-faq-item:hover {
    background: rgba(201,111,74,.03);
    border-color: var(--terracotta) !important;
}
.tmm-faq-question {
    position: relative;
    padding-right: 36px !important;
}
.tmm-faq-question::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--terracotta);
    border-bottom: 2px solid var(--terracotta);
    transform: translateY(-65%) rotate(45deg);
    opacity: .55;
}

/* ─── WPForms: brand-consistent styling ────────────────────────── */
.wpforms-container,
div.wpforms-container-full {
    max-width: 600px;
    margin: 0 auto !important;
}
.wpforms-container .wpforms-field-label,
.wpforms-container label.wpforms-field-label {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    font-size: 15px !important;
    margin-bottom: 8px !important;
}
.wpforms-container .wpforms-required-label {
    color: var(--terracotta) !important;
}
.wpforms-container input[type=text],
.wpforms-container input[type=email],
.wpforms-container input[type=url],
.wpforms-container textarea,
.wpforms-container select,
div.wpforms-container-full .wpforms-field-medium,
div.wpforms-container-full .wpforms-field-large,
div.wpforms-container-full input.wpforms-field-medium,
div.wpforms-container-full input.wpforms-field-large,
div.wpforms-container-full textarea.wpforms-field-medium,
div.wpforms-container-full textarea.wpforms-field-large {
    background: #fffaf2 !important;
    border: 1px solid rgba(45,42,38,.18) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 15px !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.wpforms-container input[type=text]:focus,
.wpforms-container input[type=email]:focus,
.wpforms-container input[type=url]:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
    border-color: var(--terracotta) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(201,111,74,.18) !important;
    outline: none !important;
}
.wpforms-container button[type=submit],
.wpforms-container .wpforms-submit,
div.wpforms-container-full button.wpforms-submit,
div.wpforms-container-full input[type=submit].wpforms-submit {
    background: var(--terracotta) !important;
    border: none !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 28px !important;
    cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(201,111,74,.4);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.wpforms-container button[type=submit]:hover,
.wpforms-container .wpforms-submit:hover,
div.wpforms-container-full button.wpforms-submit:hover,
div.wpforms-container-full input[type=submit].wpforms-submit:hover {
    background: #a85a39 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(201,111,74,.55);
}
.wpforms-container .wpforms-error,
.wpforms-container label.wpforms-error {
    color: #c0392b !important;
    font-size: 13px !important;
    margin-top: 6px !important;
}
.wpforms-container input.wpforms-error,
.wpforms-container textarea.wpforms-error {
    border-color: #c0392b !important;
}
.wpforms-confirmation-container-full {
    background: rgba(122,139,107,.1) !important;
    border-left: 4px solid var(--sage) !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 18px 22px !important;
    color: var(--ink) !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
}

/* ─── Branded search form (404 + widgets) ──────────────────────── */
.tmm-search-form {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 24px auto;
    background: #fffaf2;
    border: 1px solid rgba(45,42,38,.14);
    border-radius: 999px;
    padding: 6px 6px 6px 22px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tmm-search-form:focus-within {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(201,111,74,.15);
}
.tmm-search-form__input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 15px;
    color: var(--ink);
    padding: 8px 0 !important;
    box-shadow: none !important;
}
.tmm-search-form__input::placeholder {
    color: rgba(45,42,38,.45);
}
.tmm-search-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--terracotta) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    box-shadow: none !important;
}
.tmm-search-form__btn:hover {
    background: #a85a39 !important;
    transform: translateY(-1px);
}

/* ─── WP block search (used inside GP Element 404 + 911) ───────── */
.wp-block-search {
    max-width: 560px;
    margin: 24px 0;
}
.wp-block-search .wp-block-search__inside-wrapper {
    background: #fffaf2;
    border: 1px solid rgba(45,42,38,.14) !important;
    border-radius: 999px !important;
    padding: 6px 6px 6px 22px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wp-block-search .wp-block-search__inside-wrapper:focus-within {
    border-color: var(--terracotta) !important;
    box-shadow: 0 0 0 3px rgba(201,111,74,.15);
}
.wp-block-search .wp-block-search__input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 15px !important;
    color: var(--ink) !important;
    padding: 8px 0 !important;
    flex: 1;
}
.wp-block-search .wp-block-search__input::placeholder {
    color: rgba(45,42,38,.45);
}
.wp-block-search .wp-block-search__button {
    background: var(--terracotta) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 20px !important;
    margin-left: 6px !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    box-shadow: none !important;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wp-block-search .wp-block-search__button:hover {
    background: #a85a39 !important;
    transform: translateY(-1px);
}
.wp-block-search .wp-block-search__button.has-icon {
    padding: 10px 14px !important;
}
.wp-block-search .wp-block-search__button svg {
    fill: currentColor !important;
    width: 18px;
    height: 18px;
}

/* ─── 404 page polish ──────────────────────────────────────────── */
.error-404 {
    text-align: center;
    padding: 60px 20px 80px;
    max-width: 720px;
    margin: 0 auto;
}
.error-404 .page-title,
.error-404 h1 {
    font-family: var(--font-heading, 'Fraunces', serif);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 16px;
    text-align: center;
}
.error-404 .page-content,
.error-404 p {
    color: var(--muted, #6b655c);
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    margin: 0 auto 24px;
    max-width: 540px;
}
/* Hide WP block search wrapper inside 404 — we render our own form via filter */
.error-404 .wp-block-search,
.error-404 form.search-form { display: none; }
.error-404 .tmm-search-form { display: flex; }

/* ─── WP pagination on archives ────────────────────────────────── */
.nav-links,
.pagination,
.wp-pagenavi,
.page-numbers {
    font-family: var(--font-body, 'Inter', sans-serif);
}
.nav-links a,
.nav-links .page-numbers,
.pagination a,
.pagination .page-numbers,
.wp-pagenavi a,
.wp-pagenavi .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    margin: 0 4px;
    background: #fffaf2;
    color: var(--ink) !important;
    border: 1px solid rgba(45,42,38,.12);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-links a:hover,
.pagination a:hover,
.wp-pagenavi a:hover,
.page-numbers:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff !important;
}
.nav-links .current,
.pagination .current,
.page-numbers.current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff !important;
}
.nav-links .dots {
    background: transparent;
    border: none;
}

/* ─── Mobile menu: backdrop + full overlay ─────────────────────── */
@media (max-width: 1000px) {
    .tmm-top-nav.is-open::before {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(45,42,38,.45);
        z-index: -1;
        animation: tmmFadeIn .2s ease;
    }
    .tmm-top-nav.is-open .tmm-top-nav__links {
        background: #fffaf2;
        box-shadow: 0 8px 24px -10px rgba(45,42,38,.18);
        border-bottom: 1px solid rgba(45,42,38,.06);
    }
}
@keyframes tmmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Page hero (Articoli + similar landing pages) ─────────────── */
.tmm-page-hero {
    text-align: center;
    padding: 60px 20px 30px;
    max-width: 760px;
    margin: 0 auto;
}
.tmm-page-hero .tmm-eyebrow {
    color: var(--terracotta);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}
.tmm-page-hero h1 {
    font-family: var(--font-heading, 'Fraunces', serif);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 16px;
}
.tmm-page-hero__lede {
    color: var(--muted, #6b655c);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

/* ─── Search results page title ────────────────────────────────── */
.search .page-header,
.search-results .page-header {
    padding: 40px 20px 16px;
    text-align: left;
}
.search .page-header .page-title,
.search-results .page-header .page-title {
    font-family: var(--font-heading, 'Fraunces', serif);
    font-size: clamp(28px, 4vw, 40px);
    color: var(--ink);
    margin: 0;
}

/* ─── Category archive: subtle breathing room + description ────── */
.archive .page-header,
.category .page-header {
    padding: 40px 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.archive .archive-description,
.category .archive-description {
    color: var(--muted, #6b655c);
    font-size: 17px;
    line-height: 1.6;
    margin: 12px 0 0;
    max-width: 720px;
}

/* ─── Footer "Seguici su" alignment polish ────────────────────── */
.tmm-footer__socials-label {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════
   STEP 13 — Real logo integration (2026-05-26)
   ═══════════════════════════════════════════════════════════════════ */

/* Nav: emblem logo only (no wordmark), enlarged */
.tmm-top-nav__inner { padding-top: 12px; padding-bottom: 12px; }
.tmm-top-nav__logo--img {
    padding: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.tmm-top-nav__logo--img img {
    height: 80px;
    width: auto;
    display: block;
}

/* Footer: light (cream) emblem on the dark footer */
.tmm-footer__logo--img { line-height: 0; display: inline-flex; }
.tmm-footer__logo--img img {
    height: 82px;
    width: auto;
    display: block;
}

/* About section: logo emblem centered in the cream photo frame (no portrait yet) */
.tmm-about__logo-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13%;
    box-sizing: border-box;
}
.tmm-about__photo .tmm-about__logo-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 1000px) {
    .tmm-top-nav__logo--img img { height: 58px; }
    .tmm-top-nav__inner { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 600px) {
    .tmm-footer__logo--img img { height: 68px; }
}

/* ──────────────────────────────────────────────────────────────────
   Yoast FAQ block → match TMM page-builder FAQ design
   Yoast outputs: .schema-faq > .schema-faq-section >
                  strong.schema-faq-question + p.schema-faq-answer
   We style it to mirror the builder's .tmm-faq cards (cream card, sand
   border, terracotta hover + chevron, serif question, muted answer).
   ────────────────────────────────────────────────────────────────── */
.entry-content .schema-faq,
.entry-content .wp-block-yoast-faq-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.entry-content .schema-faq .schema-faq-section {
    background: var(--bg);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: background .2s ease, border-color .2s ease;
}

.entry-content .schema-faq .schema-faq-section:hover {
    background: rgba(201, 111, 74, .03);
    border-color: var(--terracotta);
}

.entry-content .schema-faq .schema-faq-question {
    display: block;
    position: relative;
    margin: 0;
    padding: 18px 48px 12px 22px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.entry-content .schema-faq .schema-faq-question::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 25px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--terracotta);
    border-bottom: 2px solid var(--terracotta);
    transform: rotate(45deg);
    opacity: .55;
}

.entry-content .schema-faq .schema-faq-answer {
    margin: 0;
    padding: 0 22px 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.entry-content .schema-faq .schema-faq-answer strong {
    color: var(--ink);
}

@media (max-width: 600px) {
    .entry-content .schema-faq .schema-faq-question {
        padding: 16px 42px 10px 18px;
        font-size: 17px;
    }
    .entry-content .schema-faq .schema-faq-question::after {
        right: 18px;
        top: 22px;
    }
    .entry-content .schema-faq .schema-faq-answer {
        padding: 0 18px 18px;
    }
}
