/* 
  Montifertili - Official Premium Style (Restored & Absolute Fix)
  This style is strictly mapped to the .mf- class hierarchy in index.html.
*/

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

@font-face {
    font-family: 'MadInk';
    src: url('assets/font/madink-2025-08-11-21-23-08-utc/MadInk.woff2') format('woff2'),
        url('assets/font/madink-2025-08-11-21-23-08-utc/MadInk.woff') format('woff'),
        url('assets/font/madink-2025-08-11-21-23-08-utc/MadInk.otf') format('opentype'),
        url('assets/font/madink-2025-08-11-21-23-08-utc/MadInk.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinefolk';
    src: url('assets/font/pinefolk-organic-sans-2024-11-13-22-43-51-utc/Pinefolk.woff2') format('woff2'),
        url('assets/font/pinefolk-organic-sans-2024-11-13-22-43-51-utc/Pinefolk.woff') format('woff'),
        url('assets/font/pinefolk-organic-sans-2024-11-13-22-43-51-utc/Pinefolk.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --mf-brand: #1a332a;
    --mf-brand-light: #2d5244;
    --mf-accent: #DDF35D; /* New Vibrant "Punchy" Yellow */
    --mf-coral: #F2885B;  /* Terracotta/coral – secondo accento per varietà cromatica */
    --mf-text: #1a332a;    /* Dark Green for Text */
    --mf-muted: #4a5c54;   /* Muted Green */
    --mf-light: #FCF9F2;   /* Creamy Background */
    --mf-white: #ffffff;
    --mf-border: #1a332a;  /* Thin dark borders */
    --mf-shadow: 0 10px 40px rgba(26, 51, 42, 0.08);
    --mf-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --mf-font-logo: 'MadInk', cursive;
    --mf-font-title: 'Pinefolk', sans-serif;
    --mf-font-body: 'Inter', system-ui, sans-serif;
    --mf-font-serif: 'EB Garamond', serif;
}

/* BASE RESET & OVERFLOW FIX */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* CUSTOM SELECTION */
::selection {
    background: var(--mf-accent);
    color: var(--mf-brand);
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--mf-light);
}

::-webkit-scrollbar-thumb {
    background: var(--mf-brand);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mf-accent);
}

body {
    font-family: var(--mf-font-body);
    color: var(--mf-brand);
    background-color: var(--mf-light);
    line-height: 1.6;
    letter-spacing: -0.01em;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--mf-font-title);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: lowercase; /* Optional: adds to that 'Graza' vibe */
}

p,
li,
.accordion-body,
.form-control,
.btn {
    line-height: 1.5;
}

/* PREMIUM GRAIN OVERLAY */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

h1,
h2,
h3,
h4,
h5,
h6,
.mf-title,
.mf-hero-title {
    font-family: var(--mf-font-title);
    font-weight: 400;
}

/* NAVBAR */
.mf-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(252, 249, 242, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(26, 51, 42, 0.10);
    z-index: 1050;
    padding: 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mf-nav.scrolled {
    background: rgba(252, 249, 242, 0.97);
    border-bottom-color: rgba(26, 51, 42, 0.15);
    box-shadow: 0 8px 24px rgba(26, 51, 42, 0.06);
}

.mf-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 56px;
    width: 100%;
}

.mf-nav-side {
    flex: 1 1 0;
}

.mf-nav-side:last-child {
    justify-content: flex-end;
}

body.mf-has-fixed-nav {
    padding-top: var(--mf-nav-offset, 56px);
}

.mf-logo {
    font-family: var(--mf-font-logo) !important;
    color: var(--mf-brand) !important;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: none;
    transition: var(--mf-transition);
}

.mf-nav-list,
.mf-nav-side {
    min-width: 0;
}

.mf-nav .nav-link {
    color: var(--mf-brand);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
}

.mf-nav .nav-link:hover {
    background: rgba(26, 51, 42, 0.06);
    color: var(--mf-brand);
}

.mf-nav .nav-link.active {
    background: transparent !important;
    color: var(--mf-brand) !important;
}

.mf-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.65rem;
    right: 0.65rem;
    height: 2px;
    background: var(--mf-brand);
    border-radius: 1px;
}

.mf-nav-mobile-cta.active {
    background: var(--mf-brand);
    color: var(--mf-light) !important;
}

.mf-nav-cta {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 0.45rem 1rem !important;
    border-radius: 8px !important;
    letter-spacing: 0.01em;
}

.mf-nav-mobile-cta {
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.mf-nav-mobile-cta:not(.active) {
    background: transparent;
}

@media (max-width: 991px) {
    .mf-nav-inner {
        min-height: 50px;
        gap: 0.5rem;
    }

    .mf-logo {
        font-size: 1.45rem;
    }
}

/* NAVBAR TOGGLER (Hamburger to X) */
.mf-nav-toggler {
    background: none;
    border: 1px solid rgba(26, 51, 42, 0.16);
    border-radius: 999px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 1100;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
}

.mf-nav-toggler span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--mf-brand);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-origin: center;
}

.mf-nav-toggler.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mf-nav-toggler.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mf-nav-toggler.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* FULLSCREEN NAV ANIMATION */
.mf-fullscreen-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 250, 245, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mf-fullscreen-nav.is-active {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.mf-fs-list {
    list-style: none;
    padding: 0;
    text-align: center;
    width: min(100%, 28rem);
    margin: 0 auto;
}

.mf-fs-item {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mf-fullscreen-nav.is-active .mf-fs-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for items */
.mf-fullscreen-nav.is-active .mf-fs-item:nth-child(1) {
    transition-delay: 0.1s;
}

.mf-fullscreen-nav.is-active .mf-fs-item:nth-child(2) {
    transition-delay: 0.2s;
}

.mf-fullscreen-nav.is-active .mf-fs-item:nth-child(3) {
    transition-delay: 0.3s;
}

.mf-fullscreen-nav.is-active .mf-fs-item:nth-child(4) {
    transition-delay: 0.4s;
}

.mf-fullscreen-nav.is-active .mf-fs-item:nth-child(5) {
    transition-delay: 0.5s;
}

.mf-fs-link {
    font-family: var(--mf-font-title);
    font-size: clamp(2.1rem, 8vw, 3rem);
    color: var(--mf-brand);
    text-decoration: none;
    transition: var(--mf-transition);
}

.mf-fs-link:hover,
.mf-fs-link.active {
    color: var(--mf-accent);
}

.mf-nav-toggler:focus-visible,
.mf-fs-link:focus-visible,
.navbar .nav-link:focus-visible,
.btn:focus-visible,
.mf-back-to-top:focus-visible {
    outline: 3px solid var(--mf-accent);
    outline-offset: 4px;
}

/* FOOTER */
.mf-footer {
    background-color: var(--mf-brand);
    color: rgba(255, 255, 255, 0.85);
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.mf-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--mf-accent), transparent);
}

.mf-footer .mf-logo {
    color: #fdfbf7 !important;
    font-size: 2.5rem;
}

.mf-footer-title {
    font-family: var(--mf-font-title);
    color: var(--mf-accent);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.mf-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mf-footer-list li {
    margin-bottom: 0.8rem;
}

.mf-footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--mf-transition);
}

.mf-footer-list a:hover {
    color: var(--mf-accent);
    padding-left: 5px;
}

.fs-7 {
    font-size: 0.9rem;
}

.fs-8 {
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    transition: var(--mf-transition);
}

.btn-outline-light:hover {
    background: var(--mf-accent);
    border-color: var(--mf-accent);
    color: var(--mf-brand);
}

/* BUTTONS */
.btn-brand {
    background-color: var(--mf-brand);
    color: white !important;
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    border: none;
    transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-brand:hover {
    background-color: var(--mf-brand-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 51, 42, 0.16);
    color: white !important;
}

.btn-brand.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-outline-brand {
    border: 1.5px solid var(--mf-brand);
    color: var(--mf-brand);
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.22s ease;
    background: transparent;
}

.btn-outline-brand:hover {
    background: var(--mf-brand);
    color: white;
}

.btn-soft {
    background-color: rgba(26, 51, 42, 0.07);
    color: var(--mf-brand);
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.35rem;
}

.btn-accent {
    background-color: var(--mf-accent);
    color: var(--mf-brand) !important;
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-accent:hover {
    background-color: #cde840;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(221, 243, 93, 0.3);
}

/* HERO full-bleed: immagine di sfondo + sfumatura verde + contenuto centrato */
.mf-hero-new {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--mf-brand);
    border-bottom: 1.5px solid var(--mf-border);
}

.mf-hero-new__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.mf-hero-new__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(26, 51, 42, 0.45) 0%,
        rgba(26, 51, 42, 0.55) 45%,
        rgba(26, 51, 42, 0.88) 100%
    );
}

.mf-hero-new .mf-page-container {
    position: relative;
    z-index: 2;
}

.mf-hero-new__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 7rem 0;
    gap: 1.25rem;
}

.mf-eyebrow-light {
    color: var(--mf-light) !important;
    border-bottom-color: var(--mf-accent) !important;
}

.mf-hero-new__content p {
    color: rgba(252, 249, 242, 0.92);
    max-width: 560px;
}

.mf-hero-rating .mf-stars {
    color: var(--mf-accent);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.mf-hero-new .mf-hero-rating span:last-child {
    color: var(--mf-light);
}

.mf-hero-new .btn-brand {
    background-color: var(--mf-accent);
    color: var(--mf-brand) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.mf-hero-new .btn-brand:hover {
    background-color: var(--mf-light);
}

.mf-hero-new .mf-stamp-new {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
}

.mf-hero-title-new {
    font-size: clamp(2.6rem, 5.6vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    color: var(--mf-light);
    text-wrap: balance;
}

.mf-stamp-new {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--mf-accent);
    color: var(--mf-brand);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    line-height: 1;
    transform: rotate(-10deg);
    border: 1px solid var(--mf-brand);
    text-transform: lowercase;
    font-size: 1.2rem;
    z-index: 10;
}

/* Nell'hero homepage il badge va in alto a destra: in basso copre il viso nella foto */
.mf-hero-new .mf-stamp-new {
    top: 2rem;
    right: 2rem;
    bottom: auto;
}

@media (max-width: 767px) {
    .mf-hero-new .mf-stamp-new {
        top: 1rem;
        right: 1rem;
        bottom: auto;
    }
}

.mf-ribbon {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(26, 51, 42, 0.1);
    padding-top: 2.5rem;
}

.mf-ribbon span {
    font-weight: 800;
    color: var(--mf-brand);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mf-ribbon span::before {
    content: '✓';
    color: var(--mf-accent);
    font-size: 1.2rem;
}

.mf-trustbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.mf-stars {
    color: var(--mf-accent);
    font-size: 1.2rem;
}

/* UTILITIES */
.bg-brand {
    background-color: var(--mf-brand) !important;
}

.bg-brand-light {
    background-color: var(--mf-brand-light) !important;
}

.bg-accent {
    background-color: var(--mf-accent) !important;
}

/* AFFITTO CTA */
.mf-cta-bg {
    position: relative;
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    border-radius: 4rem;
    margin: 4rem 2rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .mf-cta-bg {
        margin: 2rem 1rem;
        border-radius: 2rem;
        padding: 5rem 1rem;
    }
}

.mf-cta-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 51, 42, 0.85), rgba(26, 51, 42, 0.6));
    z-index: 1;
}

.mf-cta-bg .container {
    position: relative;
    z-index: 2;
}

/* SECTIONS */
.mf-container-narrow {
    max-width: 1200px;
}

.mf-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.mf-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: var(--mf-brand);
    font-size: 0.68rem;
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 1.5px solid var(--mf-accent);
    padding-bottom: 0.3rem;
}

.mf-title {
    color: var(--mf-brand);
    font-weight: 400;
    line-height: 0.94;
    font-size: clamp(2.4rem, 4.6vw, 4.2rem);
    text-wrap: balance;
}

/* DTC GRID UTILITIES */
.mf-grid-row {
    display: flex;
    border-top: 1px solid var(--mf-border);
}

.mf-grid-col {
    flex: 1;
    border-right: 1px solid var(--mf-border);
    padding: 2rem;
}

.mf-grid-col:last-child {
    border-right: none;
}

.mf-bg-accent {
    background-color: var(--mf-accent) !important;
}

/* PRODUCTS - GRAZA STYLE REDESIGN */
/* REVIEWS */
.mf-card-review {
    background: white;
    border: 1px solid var(--mf-border);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-transform: lowercase;
}

.mf-card-review .mf-stars {
    color: var(--mf-brand);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* FOOTER */
.mf-footer {
    background-color: transparent;
    color: var(--mf-brand);
}

.mf-footer .mf-logo {
    color: var(--mf-light) !important;
    font-size: 2rem;
}

.mf-footer-title {
    font-family: var(--mf-font-title);
    color: var(--mf-brand);
    font-size: 1.5rem;
    text-transform: lowercase;
}

.mf-footer-list a {
    color: var(--mf-brand);
    text-transform: lowercase;
    font-weight: 600;
}

.mf-product-card {
    background: white;
    border-radius: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--mf-transition);
    border: 1px solid var(--mf-border);
    box-shadow: none;
}

.mf-product-card:hover {
    transform: none;
    background-color: var(--mf-accent);
}

.mf-product-card__visual {
    position: relative;
    background: white;
    border-bottom: 1px solid var(--mf-border);
    padding: 2rem;
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.mf-product-card__badge-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border: 1px solid var(--mf-border);
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mf-brand);
    background: var(--mf-accent);
    z-index: 2;
}

.mf-product-card__visual img {
    height: 80%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mf-product-card:hover .mf-product-card__visual img {
    transform: scale(1.08) translateY(-10px);
}

.mf-product-card__content {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.65rem;
}

.mf-product-card__title-serif {
    font-family: var(--mf-font-title);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    color: var(--mf-brand);
    margin-bottom: 0;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: lowercase;
}

.mf-product-card__price-row {
    margin-top: auto;
    padding-top: 0.25rem;
}

.mf-product-card__price-top {
    font-family: var(--mf-font-title);
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 700;
    color: var(--mf-coral);
}

.mf-product-card__tagline {
    font-size: 0.98rem;
    color: var(--mf-brand);
    margin-bottom: 0;
    line-height: 1.5;
    text-transform: lowercase;
}

/* Feature adjustments */
.mf-product-card--featured .mf-product-card__visual {
    background: #fdfbf7;
    border: 1px solid var(--mf-accent);
}

.mf-shop-note {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.mf-shop-note__item {
    font-weight: 600;
    color: var(--mf-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* MANIFESTO & REVIEWS */
.mf-card-manifesto {
    background: white;
    padding: 3rem 2rem;
    border-radius: 2.5rem;
    border: 1px solid var(--mf-border);
    position: relative;
    overflow: hidden;
}

.mf-card-manifesto::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--mf-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mf-card-manifesto:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* MODERN GALLERY REDESIGN - THE EDITORIAL STRIP */
.mf-gallery-container {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.swiper-gallery {
    padding: 4rem 0 10rem;
    overflow: visible;
}

.swiper-gallery .swiper-slide {
    width: auto;
    height: 70vh;
    min-height: 500px;
    margin-right: 60px;
    border-radius: 0.5rem;
    /* Sharper, more like a print */
    overflow: hidden;
    opacity: 0.3;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
    transform: scale(0.9);
    position: relative;
    background: #fff;
    padding: 15px;
    /* Frame padding */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.swiper-gallery .swiper-slide img {
    height: 100%;
    width: auto;
    object-fit: cover;
    filter: brightness(0.9) sepia(10%);
    /* Warm print tone */
    transition: all 1.2s ease;
    display: block;
}

.swiper-gallery .swiper-slide-active {
    opacity: 1;
    transform: scale(1.05) rotate(-1deg);
    /* Slight organic tilt */
    z-index: 10;
    box-shadow: 0 50px 100px rgba(26, 51, 42, 0.2);
}

.swiper-gallery .swiper-slide-active img {
    filter: brightness(1) sepia(0%);
}

/* Float Animation for organic feel */
.swiper-gallery .swiper-slide:nth-child(even) {
    animation: mf-float-soft 12s ease-in-out infinite;
}

.swiper-gallery .swiper-slide:nth-child(odd) {
    animation: mf-float-soft 15s ease-in-out infinite reverse;
}

@keyframes mf-float-soft {
    0% {
        transform: translateY(0) scale(0.9);
    }

    50% {
        transform: translateY(-25px) scale(0.92);
    }

    100% {
        transform: translateY(0) scale(0.9);
    }
}

.swiper-slide-active.swiper-slide {
    animation: none;
}

/* PROGRESS INDICATOR */
.mf-gallery-footer {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.mf-gallery-pagination {
    display: flex;
    gap: 15px;
    align-items: center;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(26, 51, 42, 0.2);
    opacity: 1;
    transition: all 0.6s ease;
}

.swiper-pagination-bullet-active {
    background: var(--mf-accent);
    transform: scale(3) !important;
}

/* Photo Rhythms - random feel */
.swiper-gallery .swiper-slide:nth-child(3n) {
    transform: scale(0.9) rotate(2deg);
}

.swiper-gallery .swiper-slide:nth-child(3n+1) {
    transform: scale(0.9) rotate(-1.5deg);
}

.swiper-gallery .swiper-slide:nth-child(3n+2) {
    transform: scale(0.9) rotate(1deg);
}

.swiper-gallery .swiper-slide-active {
    opacity: 1;
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

@media (max-width: 768px) {
    .swiper-gallery .swiper-slide {
        height: 45vh;
        margin-right: 20px;
        padding: 10px;
    }
}

@media (max-width: 992px) {
    .swiper-gallery {
        padding: 3rem 0;
    }

    .swiper-gallery .swiper-slide {
        width: 80vw;
        height: 300px;
    }
}

/* FLOATING ACTIONS */
.mf-floating-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: var(--mf-transition);
}

.mf-floating-wa:hover {
    transform: scale(1.1) rotate(5deg);
}

.mf-floating-wa__hint {
    position: absolute;
    right: 75px;
    background: white;
    color: var(--mf-brand);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.mf-floating-wa:hover .mf-floating-wa__hint {
    opacity: 1;
    transform: translateX(0);
}

/* TRUST BAR */
.mf-trust-bar {
    background: #fdfbf7;
    border-top: 1px solid var(--mf-border);
    border-bottom: 1px solid var(--mf-border);
    padding: 1rem 0;
}

.mf-trust-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--mf-brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mf-trust-item i {
    color: var(--mf-accent);
    font-size: 1.2rem;
}

/* STICKY CTA MOBILE */
.mf-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1rem;
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--mf-border);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.mf-sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 992px) {
    .mf-sticky-cta {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mf-trust-item {
        flex-direction: column;
        gap: 0.4rem;
        font-size: 0.7rem;
    }

    .mf-trust-item i {
        font-size: 1.5rem;
    }
}

/* PRIVACY & CHECKBOXES */
.mf-privacy {
    background: rgba(26, 51, 42, 0.03);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.mf-privacy .form-check-input:checked {
    background-color: var(--mf-brand);
    border-color: var(--mf-brand);
}

.mf-privacy .form-check-label {
    line-height: 1.3;
    cursor: pointer;
}


.mf-hero-trust {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.mf-form-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mf-brand);
    opacity: 0.8;
}

.fs-7 {
    font-size: 0.875rem;
}

.fs-8 {
    font-size: 0.75rem;
}

.mf-input:focus,
.mf-select:focus {
    border-color: var(--mf-brand) !important;
    box-shadow: 0 0 0 4px rgba(26, 51, 42, 0.05) !important;
}

/* STEPPER */
.mf-stepper {
    display: inline-flex;
    align-items: center;
    background: #f3f1eb;
    border-radius: 12px;
    padding: 4px;
    gap: 10px;
}

.mf-stepper__btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: white;
    color: var(--mf-brand);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mf-transition);
    cursor: pointer;
}

.mf-stepper__btn:hover {
    background: var(--mf-brand);
    color: white;
}

.mf-stepper__value {
    font-weight: 900;
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
}


/* PREMIUM FORMS & MODALS (FIXED) */
.mf-modal {
    border: none;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(26, 51, 42, 0.2);
    background: var(--mf-light);
}

.mf-modal__header {
    background: white;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--mf-border);
}

.mf-modal .modal-body {
    padding: 2.5rem;
}

.mf-form-section {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--mf-border);
    margin-bottom: 1.5rem;
}

.mf-form-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #f8f7f2;
    padding-bottom: 1rem;
}

.mf-form-section__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--mf-brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mf-form-section__hint {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mf-accent);
    background: rgba(212, 176, 90, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
}

.mf-input,
.mf-select {
    background-color: #f9f8f6;
    border: 1px solid #e8e6e1;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: var(--mf-brand);
    transition: var(--mf-transition);
}

.mf-input::placeholder {
    color: #a0a090;
    font-size: 0.85rem;
}

/* ADDON CARDS */
.mf-addon-card {
    border: 2px solid var(--mf-border);
    border-radius: 1.2rem;
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--mf-transition);
    background: white;
    height: 100%;
}

.mf-addon-card:hover {
    border-color: var(--mf-brand);
    transform: translateY(-2px);
}

.mf-addon-card.is-selected {
    background: #f1f4f2;
    border-color: var(--mf-brand);
    box-shadow: 0 8px 20px rgba(26, 51, 42, 0.08);
}

@media (max-width: 768px) {
    .mf-modal .modal-body {
        padding: 1.5rem 1rem;
    }

    .mf-modal__header {
        padding: 1.5rem;
    }

    .mf-form-section {
        padding: 1rem;
    }
}


.mf-addon-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.mf-addon-card__name {
    font-weight: 800;
    color: var(--mf-brand);
}

.mf-addon-card__tag {
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--mf-accent);
    color: var(--mf-brand);
    padding: 2px 8px;
    border-radius: 6px;
}

.mf-addon-card__sub {
    font-size: 0.8rem;
    color: var(--mf-muted);
    margin-bottom: 1rem;
}

.mf-addon-card__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.4;
    transition: var(--mf-transition);
}

.mf-addon-card.is-selected .mf-addon-card__controls {
    opacity: 1;
}

.mf-addon-card__state {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mf-addon-card.is-selected .mf-addon-card__state {
    color: var(--mf-brand);
}

/* MISC MODAL */
.mf-mini {
    font-size: 0.8rem;
}

.mf-meta-line {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mf-brand);
    margin-top: 10px;
    background: #f1f4f2;
    padding: 8px 12px;
    border-radius: 8px;
    display: none;
}

.mf-meta-line:not(:empty) {
    display: block;
}

/* COOKIE BANNER PREMIUM */
.mf-cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    left: 2rem;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 40px 100px rgba(26, 51, 42, 0.15);
    border: 1px solid rgba(26, 51, 42, 0.05);
    z-index: 10000;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.mf-cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 768px) {
    .mf-cookie-banner {
        left: auto;
    }
}

.mf-cookie-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f4f2;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mf-brand);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--mf-transition);
}

.mf-cookie-close:hover {
    background: var(--mf-brand);
    color: white;
    transform: rotate(90deg);
}

.mf-cookie-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 176, 90, 0.15);
    color: var(--mf-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.mf-cookie-title {
    font-family: var(--mf-font-title);
    font-size: 1.25rem;
    color: var(--mf-brand);
    font-weight: 800;
}

.mf-cookie-text {
    font-size: 0.9rem;
    color: var(--mf-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mf-cookie-text .mf-link {
    color: var(--mf-brand);
    font-weight: 700;
    text-decoration: underline;
}

.mf-cookie-preferences {
    background: #fdfbf7;
    border-radius: 1.2rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--mf-border);
}

.mf-preference-item {
    padding: 0.8rem 0;
}

.mf-preference-item:not(:last-child) {
    border-bottom: 1px solid var(--mf-border);
}

.mf-cookie-actions .btn-outline-brand {
    border: 2px solid var(--mf-brand);
    color: var(--mf-brand);
    font-weight: 700;
    border-radius: 50px;
}

.mf-cookie-actions .btn-outline-brand:hover {
    background: var(--mf-brand);
    color: white;
}

/* PRIVACY TRIGGER */
.mf-privacy-trigger {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid var(--mf-border);
    border-radius: 50%;
    color: var(--mf-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 9999;
    transition: var(--mf-transition);
}

.mf-privacy-trigger:hover {
    transform: scale(1.1);
    color: var(--mf-accent);
    border-color: var(--mf-accent);
}

/* REVEAL SYSTEM */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: revealFallback 0.1s forwards 2.5s; /* Fallback if JS fails */
}

@keyframes revealFallback {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.reveal.fade-up {
    transform: translateY(40px);
}

.reveal.blur-in {
    filter: blur(15px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1s cubic-bezier(0.16, 1, 0.3, 1);
    animation: none; /* override fallback */
}

/* DELAYS */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* MOBILE FIXES & OVERFLOW PREVENTION */
@media (max-width: 991px) {

    html,
    body {
        max-width: 100vw;
        overflow-x: clip !important;
        /* Stricter than hidden */
        position: relative;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        /* Prevent accidental horizontal swipes from bubbling */
    }

    /* Prevent Bootstrap rows from causing horizontal scroll if container-fluid is missing */
    /* Better Bootstrap row handling on mobile */
    .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
        width: auto !important;
    }

    .row>[class*="col-"] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .row.g-4,
    .row.g-5 {
        --bs-gutter-x: 1rem;
    }

    .row.g-0 {
        --bs-gutter-x: 0;
    }

    .container,
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: visible;
        /* Allow negative margins of rows if needed, but body will clip */
    }

    .mf-hero {
        padding: 3rem 1rem 4rem !important;
        overflow: hidden;
    }

    .mf-section {
        padding: 4rem 0;
        /* Slightly reduced mobile padding */
        overflow: clip;
        /* Stricter than hidden to prevent any overflow */
    }

    .mf-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mf-ribbon {
        justify-content: flex-start;
    }

    /* Ensure no large image or element pushes out */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* MANIFESTO PAGE */
.mf-manifesto-hero {
    background-color: var(--mf-brand);
    color: white;
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.mf-manifesto-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 176, 90, 0.15) 0%, transparent 70%);
}

.mf-manifesto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.mf-manifesto-lead {
    max-width: 42rem;
}

.mf-manifesto-portrait {
    min-height: 60vh;
}

.mf-manifesto-stamp {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    width: 9rem;
    height: 9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--mf-accent);
    color: var(--mf-brand);
    border: 1px solid var(--mf-border);
    font-weight: 900;
    text-transform: lowercase;
    line-height: 0.95;
    text-align: center;
    transform: rotate(-11deg);
    z-index: 2;
}

.mf-manifesto-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
}

.mf-manifesto-ribbon span {
    border: 1px solid var(--mf-border);
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mf-eyebrow-dark {
    color: var(--mf-brand);
    border-bottom-color: var(--mf-brand);
}

.mf-manifesto-note {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--mf-border);
    padding: 1.5rem;
}

.mf-manifesto-principle {
    height: 100%;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.3);
}

.mf-manifesto-principle h3 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0;
    line-height: 0.95;
}

.mf-manifesto-index {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    color: var(--mf-muted);
}

.mf-manifesto-harvest {
    min-height: 28rem;
}

@media (min-width: 992px) {
    .mf-manifesto-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.mf-story-img {
    border-radius: 2rem;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
    width: 100%;
    transition: var(--mf-transition);
}

.mf-story-img:hover {
    transform: scale(1.02);
}

.mf-manuscript {
    background: #fdfaf0;
    background-image: url('https://www.transparenttextures.com/patterns/old-map.png');
    padding: 4rem 3rem;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 0 100px rgba(212, 176, 90, 0.05);
    font-family: var(--mf-font-serif);
    color: #4a4a4a;
    position: relative;
    line-height: 1.8;
}

.mf-manuscript::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 176, 90, 0.2);
    pointer-events: none;
}

.mf-manuscript p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.mf-manuscript .dropcap {
    float: left;
    font-family: var(--mf-font-title);
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 5px;
    color: var(--mf-brand);
}

.mf-story-quote {
    font-family: var(--mf-font-serif);
    font-style: italic;
    font-size: 2rem;
    color: var(--mf-accent);
    text-align: center;
    margin: 4rem 0;
    position: relative;
    padding: 0 2rem;
}

/* BOTANICAL DECORATIONS */
.mf-bg-leaf {
    position: absolute;
    width: 400px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 C60 30 90 40 90 70 C90 90 70 100 50 100 C30 100 10 90 10 70 C10 40 40 30 50 10' fill='%231a332a' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    animation: mf-leaf-drift 20s linear infinite;
}

@keyframes mf-leaf-drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(20px, 10px) rotate(5deg);
    }

    66% {
        transform: translate(-10px, 20px) rotate(-3deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.leaf-top-right {
    top: -100px;
    right: -50px;
    transform: rotate(45deg);
}

.leaf-bottom-left {
    bottom: -100px;
    left: -50px;
    transform: rotate(-135deg);
}

/* IMPROVED SHADOWS */
.shadow-premium {
    box-shadow: 0 50px 100px -20px rgba(26, 51, 42, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.15);
}

.mf-story-quote::before {
    top: -2rem;
    left: 0;
}

/* FLOATING UTILITY */
.mf-floating {
    animation: mf-float-simple 4s ease-in-out infinite;
}

@keyframes mf-float-simple {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* BACK TO TOP */
.mf-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--mf-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--mf-transition);
    z-index: 1040;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mf-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mf-back-to-top:hover {
    background: var(--mf-accent);
    color: var(--mf-brand);
    transform: translateY(-5px);
}

/* 3D TILT EFFECT */
.mf-tilt-wrap {
    perspective: 1000px;
}

.mf-tilt-card {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

/* BLUR REVEAL ENHANCEMENT */
.blur-in {
    filter: blur(20px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-in.active {
    filter: blur(0);
    opacity: 1;
}

.mf-story-quote::after {
    bottom: -4rem;
    right: 0;
}

.mf-parallax-section {
    min-height: 60vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    padding: 8rem 0;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .mf-parallax-section {
        background-attachment: scroll;
        min-height: 40vh;
        overflow: hidden;
    }

    .mf-story-img {
        transform: rotate(0deg) !important;
    }
}

/* PREMIUM NAV ENHANCEMENTS */
.mf-nav-list .nav-link {
    font-weight: 700;
    color: var(--mf-brand);
    position: relative;
    padding: 0.5rem 1rem;
    transition: var(--mf-transition);
}

.mf-nav-list .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--mf-accent);
    transform: scaleX(0);
    transition: var(--mf-transition);
    transform-origin: right;
}

.mf-nav-list .nav-link:hover::after,
.mf-nav-list .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mf-nav-list .nav-link.active {
    color: var(--mf-accent) !important;
}

/* MOBILE FIXES FOR CONVERSION */
@media (max-width: 768px) {
    .mf-product-card__visual {
        aspect-ratio: 1 / 1.1;
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }

    .mf-product-card__tagline {
        min-height: auto;
        margin-bottom: 1.5rem;
        font-size: 0.8rem;
    }

    .mf-product-card__title-serif {
        font-size: 1.5rem;
        min-height: auto;
    }

    .mf-product-card__content {
        padding: 0 0.25rem;
    }
}

/* LUXURY FORM INPUTS */
.mf-input {
    background: #fdfaf5 !important;
    border: none !important;
    border-bottom: 1px solid var(--mf-border) !important;
    border-radius: 0 !important;
    padding: 1rem 0 !important;
    font-size: 1.1rem !important;
    transition: var(--mf-transition) !important;
}

.mf-input:focus {
    box-shadow: none !important;
    border-bottom-color: var(--mf-accent) !important;
    background: transparent !important;
}

/* REVEAL ENHANCEMENTS */
.reveal.scale-in {
    opacity: 0;
    transform: scale(0.95);
}

.reveal.scale-in.active {
    opacity: 1;
    transform: scale(1);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sm {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.bi-whatsapp {
    color: #25d366;
}

/* CONTACT PAGE ENHANCEMENTS */
.mf-icon-box {
    transition: var(--mf-transition);
    border: 1px solid var(--mf-border);
}

.mf-icon-box:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--mf-accent);
}

.mf-card-review p,
.mf-manifesto-lead,
.mf-manifesto-note p,
.accordion-button,
.accordion-body {
    text-wrap: pretty;
}

@media (max-width: 991px) {
    .mf-hero-title-new {
        font-size: clamp(2.7rem, 11vw, 4.8rem);
    }

    .mf-title {
        font-size: clamp(2.1rem, 8vw, 3.5rem);
    }

    .mf-stamp-new,
    .mf-manifesto-stamp {
        width: 6.5rem;
        height: 6.5rem;
        font-size: 0.9rem;
        right: 1rem;
        bottom: 1rem;
    }

    .mf-manifesto-portrait,
    .mf-manifesto-harvest {
        min-height: 22rem;
    }

    .mf-card-review {
        padding: 1.75rem 1.5rem;
    }

    .mf-product-card__visual {
        padding: 1.5rem;
        aspect-ratio: 1 / 0.92;
    }

    .mf-product-card__content {
        padding: 1.25rem;
    }

    .mf-product-card__tagline {
        font-size: 0.95rem;
    }

    .accordion-button {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }

    .accordion-body {
        font-size: 1rem !important;
    }

    .mf-floating-wa {
        width: 54px;
        height: 54px;
        right: 1rem;
        bottom: 1rem;
        font-size: 1.55rem;
    }

    .mf-back-to-top {
        width: 46px;
        height: 46px;
        right: 1rem;
        bottom: 5rem;
    }
}

@media (max-width: 991.98px) {
    [class*="col-lg-"].border-end {
        border-right: none !important;
        border-bottom: 1px solid var(--mf-border) !important;
    }
}

@media (max-width: 767.98px) {
    [class*="col-md-"].border-end {
        border-right: none !important;
        border-bottom: 1px solid var(--mf-border) !important;
    }
}

@media (max-width: 767px) {
    .mf-nav {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }

    .mf-hero-new .col-lg-7,
    .mf-hero-new .col-lg-5,
    #shop .col-lg-4,
    #shop .col-lg-8,
    #faq .col-md-4,
    #faq .col-md-8,
    .mf-footer .col-lg-6,
    .mf-footer .col-6 {
        border-right: none !important;
    }

    .mf-hero-new .col-lg-7 {
        min-height: auto !important;
        padding-top: 2.5rem !important;
        padding-bottom: 2rem !important;
    }

    .mf-hero-new .fs-4,
    .mf-bg-accent .fs-4,
    .mf-manifesto-lead {
        font-size: 1.1rem !important;
        line-height: 1.45;
    }

    .mf-title {
        line-height: 0.98;
    }

    .mf-eyebrow {
        letter-spacing: 0.18em;
        font-size: 0.68rem;
    }

    .mf-product-card__visual {
        padding: 1.25rem 1rem;
        aspect-ratio: 1 / 1;
    }

    .mf-product-card__price-top {
        font-size: 1.3rem;
    }

    .mf-product-card__title-serif {
        font-size: 1.85rem;
    }

    .mf-product-card__tagline,
    .mf-card-review p,
    .accordion-body,
    .mf-manifesto-note p,
    .mf-manifesto-principle p {
        font-size: 0.95rem !important;
        line-height: 1.55;
    }

    .mf-manifesto-ribbon {
        gap: 0.6rem;
        padding-top: 1.25rem;
    }

    .mf-manifesto-ribbon span {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        padding: 0.7rem 0.85rem;
    }

    .mf-manifesto-principle {
        padding: 1.75rem 1.25rem;
    }

    .mf-cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 1.25rem;
    }

    .mf-footer {
        padding: 3.5rem 0 5.5rem;
    }
}

@media (max-width: 575px) {
    .container,
    .container-fluid {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .mf-logo {
        font-size: 1.85rem;
    }

    .mf-hero-title-new {
        font-size: 2.55rem;
        line-height: 0.94;
    }

    .mf-title {
        font-size: 1.9rem;
    }

    .mf-stamp-new,
    .mf-manifesto-stamp {
        width: 5.4rem;
        height: 5.4rem;
        font-size: 0.74rem;
    }

    .mf-product-card__badge-top {
        max-width: calc(100% - 6.5rem);
        font-size: 0.62rem;
        padding: 0.2rem 0.55rem;
    }

    .mf-product-card__price-top {
        font-size: 1rem;
    }

    .mf-product-card__title-serif {
        font-size: 1.65rem;
    }

    .btn-brand,
    .btn-outline-brand,
    .btn-accent {
        padding: 0.85rem 1rem;
        font-size: 0.98rem !important;
    }
}

.mf-icon-box i {
    transition: var(--mf-transition);
}

.mf-icon-box:hover i {
    color: var(--mf-accent) !important;
}

.mf-mini {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   TICKER ANIMATO
   ============================================================ */
.mf-ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.mf-ticker-track {
    display: flex;
    width: max-content;
    gap: 3rem;
    align-items: center;
    animation: mf-ticker-run 30s linear infinite;
    will-change: transform;
}

.mf-ticker-track span {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-block;
}

@keyframes mf-ticker-run {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mf-ticker-wrap:hover .mf-ticker-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .mf-ticker-track {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .mf-ticker-track span:nth-child(n+7) {
        display: none;
    }
}

/* ============================================================
   MIGLIORIE MOBILE & DESKTOP
   ============================================================ */

/* ============================================================
   FIX: Bootstrap row.g-0 margin bug (overflow laterale)
   ============================================================ */
.row.g-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ripristina padding corretto nelle colonne con p-4 dentro g-0 */
.row.g-0 > .p-4 {
    padding: 1.5rem !important;
}

.row.g-0 > .p-md-5 {
    /* gestito dal breakpoint Bootstrap, non sovrascrivere */
}

/* --- MOBILE (< 768px) --- */
@media (max-width: 767px) {

    /* Titoli sezione più piccoli su mobile */
    .mf-title {
        font-size: clamp(1.9rem, 9vw, 2.8rem) !important;
        line-height: 0.96 !important;
    }

    /* Hero title più compatto */
    .mf-hero-title-new {
        font-size: clamp(2.6rem, 12vw, 3.8rem) !important;
        line-height: 0.9 !important;
    }

    /* Hero image: non altissima su mobile */
    .mf-hero-new .col-lg-5 img {
        min-height: 38vh !important;
        max-height: 55vw;
    }

    /* Stamp più piccolo su mobile */
    .mf-stamp-new {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
        bottom: 1rem;
        right: 1rem;
    }

    /* Testo intro sezione meno grande */
    section p.fs-4,
    .col-lg-4 > p.fs-4,
    .col-lg-6 > p.fs-4 {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }

    section p.fs-5 {
        font-size: 1rem !important;
    }

    /* Ticker font più piccolo su mobile */
    .mf-ticker-track {
        font-size: 0.95rem !important;
        gap: 2rem;
    }

    /* Review card font */
    .mf-card-review p.fs-5 {
        font-size: 1rem !important;
    }

    /* Product card titolo */
    .mf-product-card__title-serif {
        font-size: 1.6rem !important;
    }

    /* Sezione "perché noi": immagine compatta */
    section .col-lg-5.p-0 img,
    section .col-lg-6 img.object-fit-cover {
        max-height: 260px;
    }

    /* Footer: rimuovi padding eccessivo */
    .mf-footer {
        padding-top: 3rem !important;
    }

    /* Stat counter */
    .col-6.py-4 .fs-1 {
        font-size: 2rem !important;
    }

    /* Floating WA: più piccolo su mobile */
    .mf-floating-wa {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 5rem; /* sopra lo sticky CTA */
    }

    /* Fingerprint privacy trigger */
    .mf-privacy-trigger {
        bottom: 5rem;
    }

    /* Hero CTA full-width su mobile */
    .mf-hero-new .btn-brand {
        width: 100%;
        text-align: center;
    }
}

/* --- TABLET (768px – 991px) --- */
@media (min-width: 768px) and (max-width: 991px) {
    .mf-title {
        font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    }

    .mf-hero-title-new {
        font-size: clamp(3rem, 7vw, 5rem) !important;
    }

    .mf-hero-new .col-lg-5 img {
        min-height: 40vh !important;
    }
}

/* --- DESKTOP (≥ 992px) --- */
@media (min-width: 992px) {
    /* Hero: allinea meglio il contenuto verticalmente */
    .mf-hero-new .row {
        min-height: 88vh;
    }

    /* Sezioni con immagine laterale: altezza minima consistente */
    .mf-hero-new .col-lg-5 {
        min-height: 80vh;
    }
}

/* ============================================================
   MIGLIORIE GRAFICHE
   ============================================================ */

/* Linea accentuata sotto l'ultima feature della lista */
.mf-feature-list > div:last-child {
    border-bottom: 1px solid var(--mf-border) !important;
}

/* Stamp hero: aggiunge una leggera rotazione animata */
.mf-stamp-new {
    animation: mf-stamp-spin 12s linear infinite;
}

@keyframes mf-stamp-spin {
    from { transform: rotate(-10deg); }
    to   { transform: rotate(350deg); }
}

/* Scorrevole accent sulla nav CTA (shop) */
.mf-nav-cta {
    position: relative;
    overflow: hidden;
}

.mf-nav-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--mf-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: inherit;
    z-index: -1;
}

.mf-nav-cta:hover::after {
    transform: scaleX(1);
}

.mf-nav-cta:hover {
    color: var(--mf-brand) !important;
    background-color: var(--mf-accent) !important;
}

/* Card review: bordo accent al hover */
.mf-card-review {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mf-card-review:hover {
    border-color: var(--mf-accent);
    box-shadow: 4px 4px 0 var(--mf-accent);
}


/* Hero: leggero gradiente verticale sul lato testo per dare profondità */
.mf-hero-new .row .col-lg-7 {
    background: linear-gradient(
        135deg,
        var(--mf-light) 0%,
        color-mix(in srgb, var(--mf-light) 85%, var(--mf-accent) 15%) 100%
    );
}

/* Fallback per browser che non supportano color-mix */
@supports not (background: color-mix(in srgb, white 50%, black 50%)) {
    .mf-hero-new .row .col-lg-7 {
        background: var(--mf-light);
    }
}

/* Floating WA: effetto rimbalzo all'entrata */
.mf-floating-wa {
    animation: mf-wa-bounce 2.5s ease infinite;
}

@keyframes mf-wa-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.mf-floating-wa:hover {
    animation: none;
    transform: scale(1.12) rotate(5deg);
}

/* ==============================================================================
   LAYOUT BOXED — container centrale + sezioni racchiuse (no full-bleed)
   ============================================================================== */
.mf-page-container {
    max-width: 1340px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    .mf-page-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Sezione full-bleed: il colore riempie tutta la larghezza dello schermo,
   solo il contenuto interno (.mf-page-container) resta leggibile e centrato */
.mf-section {
    border-bottom: 1.5px solid var(--mf-border);
}

.mf-section:last-of-type {
    border-bottom: none;
}

/* Variante coral: secondo blocco colore per dare ritmo e varietà cromatica */
.mf-bg-coral {
    background-color: var(--mf-coral) !important;
}

/* Variante "band scura": blocco verde brand pieno con testo/bordi invertiti.
   Usata per rompere la monotonia cromatica (sezione recensioni, footer). */
.mf-band-dark {
    background-color: var(--mf-brand) !important;
    color: var(--mf-light);
}

.mf-band-dark .mf-title,
.mf-band-dark h1,
.mf-band-dark h2,
.mf-band-dark h3,
.mf-band-dark .mf-logo {
    color: var(--mf-light) !important;
}

.mf-band-dark .mf-eyebrow {
    color: var(--mf-accent) !important;
    border-bottom-color: var(--mf-accent) !important;
}

.mf-band-dark .border-dark,
.mf-band-dark.border-dark {
    border-color: rgba(252, 249, 242, 0.18) !important;
}

.mf-band-dark .text-dark {
    color: var(--mf-light) !important;
}

.mf-band-dark .fw-medium,
.mf-band-dark p {
    color: rgba(252, 249, 242, 0.85);
}

.mf-band-dark .mf-card-review,
.mf-band-dark .bg-white {
    background: var(--mf-light) !important;
    color: var(--mf-brand);
}

.mf-band-dark .mf-card-review p,
.mf-band-dark .mf-card-review .fw-bold {
    color: var(--mf-brand) !important;
}

/* Bottone brand: su sfondo scuro userebbe lo stesso verde, quindi diventa accent */
.mf-band-dark .btn-brand {
    background-color: var(--mf-accent);
    color: var(--mf-brand) !important;
}

.mf-band-dark .btn-brand:hover {
    background-color: var(--mf-light);
}

/* ============================================================
   BLOG – card, articolo, sidebar
   ============================================================ */

/* Pill categorie nel listing */
.mf-blog-cat-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mf-brand);
    border: 1.5px solid var(--mf-border);
    border-radius: 5px;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mf-blog-cat-pill.active,
.mf-blog-cat-pill:hover {
    background: var(--mf-brand);
    color: var(--mf-light);
    border-color: var(--mf-brand);
}

/* Card blog */
.mf-blog-card {
    border: 1.5px solid var(--mf-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--mf-transition);
    background: white;
    color: var(--mf-brand);
}

.mf-blog-card:hover {
    box-shadow: 0 20px 60px rgba(26, 51, 42, 0.10);
    transform: translateY(-4px);
}

.mf-blog-card__img {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-bottom: 1.5px solid var(--mf-border);
}

.mf-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.mf-blog-card:hover .mf-blog-card__img img {
    transform: scale(1.05);
}

.mf-blog-card__body {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mf-blog-card__cat {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mf-brand);
    background: var(--mf-accent);
    padding: 0.18rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.mf-blog-card__title {
    font-family: var(--mf-font-title);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--mf-brand);
    text-transform: lowercase;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.mf-blog-card__excerpt {
    font-size: 0.96rem;
    color: var(--mf-muted);
    line-height: 1.65;
    flex: 1;
    text-transform: lowercase;
}

.mf-blog-card__footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 51, 42, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mf-blog-card__meta {
    font-size: 0.78rem;
    color: var(--mf-muted);
    font-weight: 600;
    text-transform: lowercase;
}

.mf-blog-card__arrow {
    color: var(--mf-brand);
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.mf-blog-card:hover .mf-blog-card__arrow {
    transform: translateX(6px);
}

/* Prima card: orizzontale su desktop */
@media (min-width: 768px) {
    .mf-blog-card.flex-md-row .mf-blog-card__img {
        aspect-ratio: unset;
        width: min(50%, 520px);
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1.5px solid var(--mf-border);
    }

    .mf-blog-card.flex-md-row .mf-blog-card__title {
        font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    }
}

/* Corpo articolo */
.mf-article-body {
    color: var(--mf-text);
}

.mf-article-body p {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
    text-transform: lowercase;
}

.mf-article-body h2 {
    font-family: var(--mf-font-title);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--mf-brand);
    text-transform: lowercase;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.mf-article-body h3 {
    font-family: var(--mf-font-title);
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    color: var(--mf-brand);
    text-transform: lowercase;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.mf-article-body ul,
.mf-article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.75rem;
}

.mf-article-body li {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    text-transform: lowercase;
}

/* Pull quote */
.mf-pull-quote {
    border-left: 4px solid var(--mf-accent);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: rgba(221, 243, 93, 0.12);
}

.mf-pull-quote p {
    font-family: var(--mf-font-title);
    font-size: clamp(1.3rem, 2.2vw, 1.8rem) !important;
    line-height: 1.25 !important;
    color: var(--mf-brand) !important;
    margin-bottom: 0 !important;
    font-style: normal;
    text-transform: lowercase;
}

/* Sidebar link */
.mf-blog-sidebar-link {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(26, 51, 42, 0.1);
    transition: var(--mf-transition);
}

.mf-blog-sidebar-link:hover {
    opacity: 0.7;
    transform: translateX(3px);
}

/* ============================================================
   SEZIONE COLORI EXTRA
   ============================================================ */
.mf-bg-coral {
    background-color: var(--mf-coral) !important;
}

/* Utility spaziatura verticale extra */
.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* ============================================================
   SISTEMA GLOBALE – correzioni UX/UI livello successivo
   ============================================================ */

/* Hero pages interne: altezza minima e centratura verticale */
.mf-section.mf-band-dark > .mf-page-container,
.mf-section.mf-bg-coral > .mf-page-container,
.mf-section.mf-bg-accent > .mf-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header.mf-section.mf-band-dark {
    min-height: clamp(340px, 42vh, 520px);
    display: flex;
    align-items: center;
}

/* Hero inner wrapper: padding coerente su tutte le hero interne */
.mf-hero-inner {
    padding-top: 5rem;
    padding-bottom: 5rem;
    width: 100%;
}
@media (min-width: 768px) {
    .mf-hero-inner {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }
}

/* Sezioni con sfondo colorato: padding verticale uniforme */
.mf-section {
    border-bottom: 1.5px solid var(--mf-border);
}

/* Migliora la leggibilità dei titoli nelle hero con sfondo */
.mf-hero-title-new {
    text-wrap: balance;
}

/* Stamp rotante: più piccolo e più raffinato */
.mf-stamp-new {
    width: 120px;
    height: 120px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    font-family: var(--mf-font-title);
}

/* Hover sui link footer: senza padding-left shift */
.mf-footer-list a:hover {
    padding-left: 0;
    opacity: 0.75;
}

/* Back-to-top button */
.mf-back-to-top {
    border-radius: 8px !important;
}

/* Consistenza border-radius badge articoli */
.mf-blog-card__footer {
    font-size: 0.78rem;
}

/* Pull quote: più compatta */
.mf-pull-quote {
    border-left: 3px solid var(--mf-accent);
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
}

/* Form contatti: titolo più proporzionato */
.mf-form-title {
    font-family: var(--mf-font-title);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--mf-brand);
    text-transform: lowercase;
}

/* CTA sections: padding verticale standardizzato */
.mf-section .mf-cta-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
@media (min-width: 768px) {
    .mf-section .mf-cta-inner {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Nav mobile toggler: border-radius raffinato */
.mf-nav-toggler {
    border-radius: 8px;
}

/* Input fields: stato focus più pulito */
.form-control:focus {
    border-color: var(--mf-brand) !important;
    box-shadow: 0 0 0 3px rgba(26, 51, 42, 0.08) !important;
    outline: none;
}

/* Assicura che i btn con classi px-* di Bootstrap non perdano border-radius */
.btn-brand[class*="px-"],
.btn-brand[class*="py-"] {
    border-radius: 12px;
}

/* Responsive: hero stamp più piccolo su mobile */
@media (max-width: 767px) {
    .mf-stamp-new {
        width: 90px;
        height: 90px;
        font-size: 0.75rem;
    }
    header.mf-section.mf-band-dark {
        min-height: clamp(260px, 38vh, 380px);
    }
}

/* Hero title su sfondi chiari (coral, accent): sovrascrive il colore bianco */
header.mf-section:not(.mf-band-dark) .mf-hero-title-new {
    color: var(--mf-brand);
}

/* Hero title in hero con immagine: mantieni bianco */
.mf-hero-new .mf-hero-title-new {
    color: var(--mf-light);
}

/* Badge categoria su sfondi chiari: contrasto invertito */
header.mf-section.mf-bg-accent .mf-blog-card__cat,
header.mf-section.mf-bg-coral .mf-blog-card__cat {
    background: var(--mf-brand);
    color: var(--mf-light);
}

/* Eyebrow su sfondo lime (accent): underline scuro, non invisibile */
.mf-bg-accent .mf-eyebrow:not(.mf-eyebrow-light) {
    border-bottom-color: rgba(26, 51, 42, 0.35);
}

/* Eyebrow .mf-band-dark: usa testo chiaro (cream) con underline accent */
.mf-band-dark .mf-eyebrow {
    color: var(--mf-light) !important;
    border-bottom-color: var(--mf-accent) !important;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.mf-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding-left: 0.75rem;
    border-left: 1.5px solid rgba(26, 51, 42, 0.15);
}

.mf-lang-switch a {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(26, 51, 42, 0.45);
    text-decoration: none;
    padding: 0.25rem 0.35rem;
    border-radius: 5px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mf-lang-switch a:hover {
    color: var(--mf-brand);
    background: rgba(26, 51, 42, 0.06);
}

.mf-lang-switch a.active {
    color: var(--mf-brand);
    background: rgba(221, 243, 93, 0.55);
}

/* Switcher nel menu mobile fullscreen */
.mf-lang-switch--mobile {
    border-left: none;
    padding-left: 0;
    gap: 0.5rem;
}

.mf-lang-switch--mobile a {
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    border: 1.5px solid rgba(26, 51, 42, 0.25);
    color: rgba(26, 51, 42, 0.55);
}

.mf-lang-switch--mobile a.active {
    color: var(--mf-brand);
    background: var(--mf-accent);
    border-color: var(--mf-accent);
}

/* Switcher nel footer (sfondo scuro) */
.mf-lang-switch--footer {
    border-left-color: rgba(252, 249, 242, 0.2);
}

.mf-lang-switch--footer a {
    color: rgba(252, 249, 242, 0.5);
}

.mf-lang-switch--footer a:hover {
    color: var(--mf-light);
    background: rgba(252, 249, 242, 0.08);
}

.mf-lang-switch--footer a.active {
    color: var(--mf-brand);
    background: var(--mf-accent);
}

