/* RegimeMinimi.com — Home CSS Bundle */

/* === layout.css === */
/*
 * RegimeMinimi.com — Layout System V2
 */

/* ==================================================
   ARTICOLI
   ================================================== */

.single-post .site-inner {
    width:100%;
    max-width:960px;
    margin-left:auto;
    margin-right:auto;
    padding-left:30px;
    padding-right:30px;
    box-sizing:border-box;
}

.single-post .content,
.single-post.full-width-content .content {
    float:none;
    width:100%;
    max-width:none;
    margin-left:auto;
    margin-right:auto;
}

.single-post .entry,
.single-post .entry-content,
.single-post .entry-header,
.single-post .rm-cta,
.single-post .ez-toc-container {
    max-width:100%;
    box-sizing:border-box;
}


/* ==================================================
   ARCHIVI
   ================================================== */

.archive .site-inner,
.blog .site-inner,
.search .site-inner {
    width:100%;
    max-width:1280px;
    margin-left:auto;
    margin-right:auto;
}

.archive .content,
.blog .content,
.search .content {
    float:none;
    width:100%;
    max-width:1040px;
    margin-left:auto;
    margin-right:auto;
}

.archive .archive-description,
.blog .archive-description,
.search .archive-description {
    max-width:1040px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:40px;
}

.archive .entry,
.blog .entry,
.search .entry {
    width:100%;
    max-width:1040px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:88px;
}

.archive .entry-title,
.blog .entry-title,
.search .entry-title {
    max-width:900px;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width:640px) {

    .single-post .site-inner {
        padding-left:20px;
        padding-right:20px;
    }

    .archive .site-inner,
    .blog .site-inner,
    .search .site-inner {
        padding-left:20px;
        padding-right:20px;
    }

    .archive .content,
    .blog .content,
    .search .content,
    .archive .archive-description,
    .blog .archive-description,
    .search .archive-description,
    .archive .entry,
    .blog .entry,
    .search .entry {
        max-width:100%;
    }

    .archive .entry,
    .blog .entry,
    .search .entry {
        margin-bottom:56px;
    }
}

/* === branding.css === */
.site-header .site-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.site-header .site-title a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #111827;
  text-decoration: none;
}

.site-header .site-title a:hover,
.site-header .site-title a:focus {
  color: #111827;
  text-decoration: none;
}

.site-header .site-title a::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: url("../img/rm-monogram-concept2-header.png") center center / contain no-repeat;
}

.site-header .title-area {
  display: flex;
  align-items: center;
}

@media (max-width: 959px) {
  .site-header .site-title {
    font-size: 18px;
  }

  .site-header .site-title a {
    gap: 12px;
  }

  .site-header .site-title a::before {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

/* Branding refinement V2 */
.site-header .site-title a {
    gap: 10px;
}

.site-header .site-title a::before {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

@media (max-width: 959px) {
    .site-header .site-title a {
        gap: 9px;
    }

    .site-header .site-title a::before {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

/* Header brand mark V3 — usa il segno favicon definitivo */
.site-header .site-title a::before {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    background-image: url("../img/rm-favicon-512.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

@media (max-width: 959px) {
    .site-header .site-title a::before {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

/* Brand mark refinement V4 */
.site-header .site-title a::before {
    width:36px;
    height:36px;
    flex:0 0 36px;
}

@media (max-width:959px) {
    .site-header .site-title a::before {
        width:32px;
        height:32px;
        flex-basis:32px;
    }
}


/* ==================================================
   HEADER BRAND MARK V5
   Badge RM minimale, coerente con la Home V2
   ================================================== */

.site-header .site-title a::before {
    content:"RM" !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:36px !important;
    height:36px !important;
    flex:0 0 36px !important;

    background:#0a3267 !important;
    background-image:none !important;

    border:1px solid #315887;
    border-radius:8px;

    color:#fff;
    font-family:var(--rm-font-sans);
    font-size:13px;
    font-weight:700;
    line-height:1;
    letter-spacing:-0.04em;
}

@media(max-width:959px) {
    .site-header .site-title a::before {
        width:32px !important;
        height:32px !important;
        flex-basis:32px !important;
        border-radius:7px;
        font-size:12px;
    }
}

/* === typography.css === */
/*
 * RegimeMinimi.com — Typography Design System V1
 */

@font-face {
    font-family: "Geist";
    src: url("../fonts/Geist-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --rm-font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --rm-text-size: 18px;
    --rm-text-line: 1.65;

    --rm-h1-size: clamp(40px, 4.3vw, 54px);
    --rm-h1-home-size: clamp(44px, 5.2vw, 60px);
    --rm-h2-size: clamp(32px, 3.5vw, 42px);
    --rm-h3-size: 26px;
    --rm-h4-size: 21px;

    --rm-heading-line: 1.12;
    --rm-heading-spacing: -0.025em;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
select,
textarea {
    font-family: var(--rm-font-sans);
}

body {
    font-size: var(--rm-text-size);
    line-height: var(--rm-text-line);
}

/* Headings globali */

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.site-description,
.entry-title,
.widget-title {
    font-family: var(--rm-font-sans);
}

h1,
h2,
h3,
h4 {
    line-height: var(--rm-heading-line);
    letter-spacing: var(--rm-heading-spacing);
}

h1,
.entry-title {
    font-size: var(--rm-h1-size);
    font-weight: 700;
}

h2 {
    font-size: var(--rm-h2-size);
    font-weight: 700;
}

h3,
.entry-content h3 {
    font-size: var(--rm-h3-size);
    font-weight: 650;
}

h4,
.entry-content h4 {
    font-size: var(--rm-h4-size);
    font-weight: 600;
}

/* Home: H1 più importante, senza diventare eccessivo */

body.home .hero-section h1,
body.home .entry-content > h1:first-child {
    font-size: var(--rm-h1-home-size);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

/* Corregge i vecchi override della Home mantenendo la nuova scala */

body.home .homepage-intro h2,
body.home .wp-block-heading.has-text-align-center {
    font-size: var(--rm-h2-size);
    font-weight: 700;
    line-height: var(--rm-heading-line);
    letter-spacing: var(--rm-heading-spacing);
}

/* Navigazione e controlli */

.site-header,
.nav-primary,
.menu,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link {
    font-family: var(--rm-font-sans);
}

.nav-primary,
.menu {
    font-size: 16px;
    font-weight: 600;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Testo */

p,
li {
    font-weight: 400;
}

strong,
b {
    font-weight: 700;
}

/* Mobile */

@media (max-width: 640px) {
    :root {
        --rm-text-size: 17px;
        --rm-h1-size: 38px;
        --rm-h1-home-size: 42px;
        --rm-h2-size: 31px;
        --rm-h3-size: 24px;
        --rm-h4-size: 20px;
    }

    body.home .hero-section h1 {
        font-size: var(--rm-h1-home-size);
    }
}

/* === colors.css === */
:root {
    --rm-color-text: #20262E;
    --rm-color-heading: #111318;
    --rm-color-muted: #667085;
    --rm-color-bg: #FFFFFF;
    --rm-color-surface: #F7F8FA;
    --rm-color-border: #E5E7EB;
    --rm-color-primary: #1859D9;
    --rm-color-primary-hover: #1248B7;
    --rm-color-accent: #C75B2C;
    --rm-color-accent-hover: #A84922;
}

body {
    background: var(--rm-color-bg);
    color: var(--rm-color-text);
}

h1,h2,h3,h4,h5,h6,
.entry-title,
.site-title,
.widget-title {
    color: var(--rm-color-heading);
}

.entry-meta,
.entry-footer,
.site-description,
.archive-description,
.wp-block-post-date {
    color: var(--rm-color-muted);
}

.entry-content a:not(.button):not(.wp-block-button__link):not(.rm-cta-button) {
    color: var(--rm-color-primary);
}

.entry-content a:not(.button):not(.wp-block-button__link):not(.rm-cta-button):hover {
    color: var(--rm-color-primary-hover);
}

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

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

.rm-cta-button {
    background:#B94F24;
    color: #fff !important;
}

.rm-cta-button:hover {
    background: var(--rm-color-accent-hover);
}

.rm-cta-inline,
.rm-cta-finale {
    background: var(--rm-color-surface);
    border-color: var(--rm-color-border);
}

body.home .hero-section h1,
body.home .homepage-intro h2,
body.home .wp-block-heading.has-text-align-center {
    color: var(--rm-color-heading);
}

body.home .hero-section p,
body.home .homepage-intro p {
    color: var(--rm-color-text);
}

body.home .hero-section a:first-of-type {
    background: var(--rm-color-accent) !important;
}

body.home .hero-section a:first-of-type:hover {
    background: var(--rm-color-accent-hover) !important;
}

body.home .hero-section a:last-of-type {
    background: var(--rm-color-primary) !important;
}

body.home .hero-section a:last-of-type:hover {
    background: var(--rm-color-primary-hover) !important;
}

hr {
    color: var(--rm-color-border);
}

table,
td,
th {
    border-color: var(--rm-color-border);
}

/* === header.css === */
/*
 * RegimeMinimi.com — Header V2
 */

.site-header {
    background:#fff;
    border-bottom:1px solid var(--rm-color-border);
    box-shadow:none;
    padding:0 28px;
}

.site-header > .wrap {
    max-width:1240px;
    margin:0 auto;
}

/* BRAND */

.title-area {
    padding:0;
}

.site-title {
    margin:0;
    font-size:22px;
    font-weight:700;
    line-height:1;
    letter-spacing:-0.04em;
}

.site-title a {
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--rm-color-heading);
    text-decoration:none;
}

.site-title a::before {
    content:"R";
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:8px;
    background:var(--rm-color-primary);
    color:#fff;
    font-size:17px;
    font-weight:700;
    letter-spacing:-0.03em;
}

/* DESKTOP */

@media only screen and (min-width:960px) {

    .site-header {
        position:sticky;
        top:0;
        z-index:9999;
    }

    .site-header > .wrap {
        min-height:72px;
        display:flex;
        align-items:center;
    }

    .title-area {
        float:none;
        flex:0 0 auto;
    }

    .nav-primary {
        float:none;
        clear:none;
        flex:1;
        width:auto;
        padding:0;
        margin-left:42px;
    }

    .nav-primary .genesis-nav-menu {
        display:flex;
        align-items:center;
        width:100%;
        gap:6px;
    }

    .nav-primary .genesis-nav-menu > .menu-item {
        float:none;
    }

    .nav-primary .genesis-nav-menu > .menu-item > a {
        padding:26px 11px;
        color:var(--rm-color-text);
        font-size:15px;
        font-weight:600;
        line-height:1;
        letter-spacing:-0.015em;
        text-decoration:none;
    }

    .nav-primary .genesis-nav-menu > .menu-item > a:hover,
    .nav-primary .genesis-nav-menu > .current-menu-item > a {
        color:var(--rm-color-primary);
    }
}

/* MOBILE */

@media only screen and (max-width:959px) {

    .site-header {
        padding:0 20px;
    }

    .site-header > .wrap {
        min-height:66px;
    }

    .title-area {
        float:left;
        padding:18px 0;
    }

    .site-title {
        font-size:20px;
    }

    .site-title a::before {
        width:28px;
        height:28px;
        border-radius:7px;
        font-size:16px;
    }

    .menu-toggle {
        float:right;
        margin:10px 0;
        padding:13px 0;
        color:var(--rm-color-heading);
        font-family:var(--rm-font-sans);
        font-size:15px;
        font-weight:600;
    }

    .nav-primary {
        clear:both;
    }

    .nav-primary .genesis-nav-menu {
        display:block;
        padding:6px 0 20px;
    }

    .nav-primary .genesis-nav-menu > .menu-item > a {
        padding:13px 0;
        color:var(--rm-color-text);
        font-size:16px;
        font-weight:600;
    }
}


/* ==================================================
   HEADER — ALLINEAMENTO VERTICALE LOGO / MENU
   ================================================== */

@media (min-width: 960px) {

    .site-header .wrap {
        display:flex;
        align-items:center;
    }

    .site-header .title-area {
        display:flex;
        align-items:center;
        float:none;
    }

    .site-header .site-title {
        display:flex;
        align-items:center;
        margin:0;
    }

    .site-header .site-title a {
        display:flex;
        align-items:center;
    }

    .site-header .nav-primary {
        display:flex;
        align-items:center;
        float:none;
    }

    .site-header .genesis-nav-menu {
        display:flex;
        align-items:center;
        margin:0;
    }

    .site-header .genesis-nav-menu > .menu-item {
        display:flex;
        align-items:center;
    }

    .site-header .genesis-nav-menu > .menu-item > a {
        display:flex;
        align-items:center;
    }
}


/* HEADER ALIGN V2 */
@media (min-width:960px) {
    .site-header .nav-primary {
        transform:translateY(-5px);
    }
}

/* ==================================================
   HEADER — FIX LAYOUT SHIFT GENESIS
   Genesis aggiunge .js al body e imposta padding-top:15px
   su .nav-primary dopo il primo rendering.
   ================================================== */

@media (min-width:960px) {
    body.js .site-header .nav-primary {
        padding-top:15px !important;
        padding-bottom:0 !important;
        box-sizing:border-box !important;
    }
}

/* === home-v2.css === */
/*
 * Regimeminimi.com — Home V2 Draft
 */

.page .rm-home-v2 {
    --rm-home-wide:1120px;
}

.page .rm-home-v2,
.page .rm-home-v2 * {
    box-sizing:border-box;
}

.page .rm-home-v2 {
    width:100%;
    max-width:var(--rm-home-wide);
    margin:0 auto;
}

.page .rm-home-v2 h1,
.page .rm-home-v2 h2,
.page .rm-home-v2 h3,
.page .rm-home-v2 p {
    margin-top:0;
}

.rm-home-eyebrow,
.rm-home-kicker {
    margin-bottom:14px !important;
    color:var(--rm-color-primary);
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.rm-home-hero {
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
    gap:70px;
    align-items:center;
    min-height:600px;
    padding:70px 0;
}

.rm-home-hero h1 {
    max-width:680px;
    margin-bottom:24px !important;
    font-size:clamp(52px,6.2vw,76px);
    line-height:.98;
    letter-spacing:-.055em;
}

.rm-home-lead {
    max-width:650px;
    margin-bottom:30px !important;
    color:#505968;
    font-size:20px;
    line-height:1.55;
}

.rm-home-actions {
    gap:12px;
}

.rm-home-actions .wp-block-button__link,
.rm-home-final .wp-block-button__link {
    padding:13px 20px;
    border-radius:8px;
    font-size:15px;
    font-weight:650;
}

.rm-home-product-panel {
    min-height:390px;
    padding:38px;
    border-radius:22px;
    background:#0a3267;
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
}

.rm-home-product-label {
    margin-bottom:auto;
    font-size:14px;
    opacity:.72;
}

.rm-home-product-panel strong {
    max-width:330px;
    font-size:45px;
    line-height:1;
    letter-spacing:-.045em;
}

.rm-home-product-lines {
    display:flex;
    gap:7px;
    margin-top:30px;
}

.rm-home-product-lines span {
    display:block;
    height:5px;
    border-radius:20px;
    background:#fff;
}

.rm-home-product-lines span:nth-child(1){width:46%}
.rm-home-product-lines span:nth-child(2){width:23%;opacity:.55}
.rm-home-product-lines span:nth-child(3){width:12%;opacity:.3}

.rm-home-trust {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    border-top:1px solid var(--rm-color-border);
    border-bottom:1px solid var(--rm-color-border);
}

.rm-home-trust p {
    margin:0 !important;
    padding:19px 16px;
    text-align:center;
    color:#4b5563;
    font-size:14px;
    font-weight:600;
}

.rm-home-section {
    padding:100px 0;
    border-bottom:1px solid var(--rm-color-border);
}

.rm-home-section-intro {
    max-width:760px;
    margin-bottom:50px;
}

.rm-home-section h2,
.rm-home-final h2 {
    max-width:760px;
    margin-bottom:18px !important;
    font-size:clamp(38px,4.5vw,54px);
    line-height:1.03;
    letter-spacing:-.045em;
}

.rm-home-section-intro > p:last-child {
    max-width:650px;
    color:var(--rm-color-muted);
    font-size:18px;
}

.rm-home-paths {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-top:1px solid var(--rm-color-border);
}

.rm-home-path {
    padding:34px 34px 34px 0;
    border-right:1px solid var(--rm-color-border);
}

.rm-home-path + .rm-home-path {
    padding-left:34px;
}

.rm-home-path:last-child {
    border-right:0;
}

.rm-home-path > span,
.rm-home-service-grid span {
    color:var(--rm-color-muted);
    font-size:13px;
    font-weight:650;
}

.rm-home-path h3 {
    margin:18px 0 13px !important;
    font-size:27px;
    line-height:1.12;
}

.rm-home-path p {
    min-height:76px;
    color:#596273;
    font-size:16px;
    line-height:1.55;
}

.rm-home-path a,
.rm-home-section-link a {
    color:var(--rm-color-primary);
    font-weight:650;
    text-decoration:none;
}

.rm-home-service {
    background:#f7f8fa;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    padding-left:max(30px,calc((100vw - 1120px)/2));
    padding-right:max(30px,calc((100vw - 1120px)/2));
}

.rm-home-service-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:0;
    border-top:1px solid #dfe3e8;
}

.rm-home-service-grid > div {
    padding:34px 40px 34px 0;
    border-bottom:1px solid #dfe3e8;
}

.rm-home-service-grid > div:nth-child(even) {
    padding-left:40px;
    border-left:1px solid #dfe3e8;
}

.rm-home-service-grid h3 {
    margin:12px 0 10px !important;
    font-size:25px;
}

.rm-home-service-grid p {
    max-width:450px;
    color:#596273;
    font-size:16px;
}

.rm-home-section-link {
    margin:32px 0 0 !important;
}

.rm-home-profession-links {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-top:1px solid var(--rm-color-border);
}

.rm-home-profession-links a {
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:22px 20px 22px 0;
    border-bottom:1px solid var(--rm-color-border);
    color:var(--rm-color-heading);
    font-size:18px;
    font-weight:650;
    text-decoration:none;
}

.rm-home-profession-links a:nth-child(3n+2),
.rm-home-profession-links a:nth-child(3n+3) {
    padding-left:20px;
}

.rm-home-profession-links a:hover {
    color:var(--rm-color-primary);
}

.rm-home-guides-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:0 50px;
    border-top:1px solid var(--rm-color-border);
}

.rm-home-guides-grid article {
    padding:32px 0;
    border-bottom:1px solid var(--rm-color-border);
}

.rm-home-guides-grid article > span {
    color:var(--rm-color-primary);
    font-size:13px;
    font-weight:650;
}

.rm-home-guides-grid h3 {
    margin:10px 0 10px !important;
    font-size:25px;
    line-height:1.15;
}

.rm-home-guides-grid h3 a {
    color:var(--rm-color-heading);
    text-decoration:none;
}

.rm-home-guides-grid h3 a:hover {
    color:var(--rm-color-primary);
}

.rm-home-guides-grid p {
    max-width:480px;
    color:#596273;
    font-size:15px;
    line-height:1.55;
}

.rm-home-how-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:45px;
}

.rm-home-how-grid strong {
    color:var(--rm-color-primary);
    font-size:14px;
}

.rm-home-how-grid h3 {
    margin:15px 0 10px !important;
    font-size:25px;
}

.rm-home-how-grid p {
    color:#596273;
    font-size:16px;
}

.rm-home-final {
    margin:100px 0 40px;
    padding:65px;
    border-radius:20px;
    background:#0a3267;
    color:#fff;
}

.rm-home-final .rm-home-kicker {
    color:#aac7ff;
}

.rm-home-final h2 {
    color:#fff;
}

.rm-home-final > p:not(.rm-home-kicker) {
    max-width:630px;
    margin-bottom:28px;
    color:#dce8fa;
    font-size:18px;
}

.rm-home-final .wp-block-button__link {
    background:#fff;
    color:#0a3267;
}

@media(max-width:850px) {

    .rm-home-hero {
        grid-template-columns:1fr;
        min-height:0;
        gap:45px;
    }

    .rm-home-hero-visual {
        max-width:600px;
    }

    .rm-home-paths,
    .rm-home-profession-links,
    .rm-home-how-grid {
        grid-template-columns:1fr;
    }

    .rm-home-path {
        padding:28px 0 !important;
        border-right:0;
        border-bottom:1px solid var(--rm-color-border);
    }

    .rm-home-path p {
        min-height:0;
    }

    .rm-home-service-grid,
    .rm-home-guides-grid {
        grid-template-columns:1fr;
    }

    .rm-home-service-grid > div,
    .rm-home-service-grid > div:nth-child(even) {
        padding:28px 0;
        border-left:0;
    }

    .rm-home-profession-links a,
    .rm-home-profession-links a:nth-child(3n+2),
    .rm-home-profession-links a:nth-child(3n+3) {
        padding:18px 0;
    }

    .rm-home-trust {
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:640px) {

    .rm-home-hero {
        padding:48px 0 58px;
    }

    .rm-home-hero h1 {
        font-size:48px;
    }

    .rm-home-lead {
        font-size:18px;
    }

    .rm-home-product-panel {
        min-height:300px;
        padding:28px;
    }

    .rm-home-product-panel strong {
        font-size:36px;
    }

    .rm-home-section {
        padding:70px 0;
    }

    .rm-home-section h2,
    .rm-home-final h2 {
        font-size:38px;
    }

    .rm-home-final {
        margin-top:70px;
        padding:38px 25px;
    }
}


/* ==================================================
   HOME V2 — PAGE LAYOUT FIX
   Solo bozza ID 21136
   ================================================== */

.rm-home-v2-page .site-inner {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

.rm-home-v2-page .content,
.rm-home-v2-page.full-width-content .content {
    float:none !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
}

.rm-home-v2-page .entry {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

.rm-home-v2-page .entry-header,
.rm-home-v2-page .entry-footer {
    display:none !important;
}

.rm-home-v2-page .entry-content {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 30px !important;
}

.rm-home-v2-page .rm-home-v2 {
    width:100%;
    max-width:1120px;
    margin-left:auto;
    margin-right:auto;
}

@media(max-width:640px) {
    .rm-home-v2-page .entry-content {
        padding-left:20px !important;
        padding-right:20px !important;
    }
}


/* ==================================================
   HOME V2 — HERO REFINEMENT
   ================================================== */

/* Hero leggermente più compatto */
.rm-home-v2-page .rm-home-hero {
    min-height:560px;
    padding-top:62px;
    padding-bottom:58px;
    gap:76px;
}


/* CTA HERO: due pulsanti realmente affiancati */
.rm-home-v2-page .rm-home-actions {
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:12px !important;
    margin:0 !important;
}

.rm-home-v2-page .rm-home-actions .wp-block-button {
    width:auto !important;
    margin:0 !important;
}

.rm-home-v2-page .rm-home-actions .wp-block-button__link {
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:12px 20px !important;
    border:1px solid var(--rm-color-primary);
    border-radius:8px !important;
    line-height:1;
    text-decoration:none !important;
}

/* Primario */
.rm-home-v2-page .rm-home-actions .wp-block-button:first-child .wp-block-button__link {
    background:var(--rm-color-primary) !important;
    color:#fff !important;
}

/* Secondario */
.rm-home-v2-page .rm-home-actions .wp-block-button.is-style-outline .wp-block-button__link {
    background:#fff !important;
    color:var(--rm-color-primary) !important;
}

.rm-home-v2-page .rm-home-actions .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background:#f4f7fc !important;
}


/* Visual destro più premium */
.rm-home-v2-page .rm-home-product-panel {
    position:relative;
    min-height:405px;
    padding:36px 38px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    background:
        radial-gradient(circle at 82% 18%, rgba(61,126,255,.26), transparent 32%),
        #0a3267;
}

.rm-home-v2-page .rm-home-product-panel::before {
    content:"RM";
    position:absolute;
    top:34px;
    right:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:10px;
    color:#fff;
    font-size:16px;
    font-weight:650;
    letter-spacing:-.04em;
}

.rm-home-v2-page .rm-home-product-label {
    position:relative;
    z-index:2;
    color:#b9cceb;
    font-size:13px;
    font-weight:550;
}

.rm-home-v2-page .rm-home-product-panel strong {
    position:relative;
    z-index:2;
    max-width:330px;
    font-size:46px;
    line-height:.98;
    letter-spacing:-.05em;
}

.rm-home-v2-page .rm-home-product-lines {
    position:relative;
    z-index:2;
}


/* Fascia trust */
.rm-home-v2-page .rm-home-trust p {
    padding-top:17px;
    padding-bottom:17px;
}


/* Avviciniamo la sezione successiva */
.rm-home-v2-page .rm-home-start {
    padding-top:72px;
}


/* MOBILE */
@media(max-width:850px) {

    .rm-home-v2-page .rm-home-hero {
        min-height:0;
        padding-top:50px;
        gap:42px;
    }

    .rm-home-v2-page .rm-home-start {
        padding-top:62px;
    }
}

@media(max-width:520px) {

    .rm-home-v2-page .rm-home-actions {
        flex-direction:column !important;
        align-items:stretch !important;
    }

    .rm-home-v2-page .rm-home-actions .wp-block-button,
    .rm-home-v2-page .rm-home-actions .wp-block-button__link {
        width:100% !important;
    }
}


/* ==================================================
   HOME V2 — SERVICE SECTION V2
   ================================================== */

.rm-home-v2-page .rm-home-service {
    padding-top:92px;
    padding-bottom:96px;
}

.rm-home-v2-page .rm-home-service .rm-home-section-intro {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);
    column-gap:80px;
    align-items:end;
    max-width:none;
    margin-bottom:58px;
}

.rm-home-v2-page .rm-home-service .rm-home-kicker {
    grid-column:1 / -1;
}

.rm-home-v2-page .rm-home-service .rm-home-section-intro h2 {
    margin-bottom:0 !important;
}

.rm-home-v2-page .rm-home-service .rm-home-section-intro > p:last-child {
    margin-bottom:4px !important;
    font-size:18px;
    line-height:1.6;
}


/* 4 funzioni principali */

.rm-home-v2-page .rm-home-service-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    border-top:1px solid #d9dee6;
}

.rm-home-v2-page .rm-home-service-grid > div {
    min-height:205px;
    padding:34px 45px 34px 0;
}

.rm-home-v2-page .rm-home-service-grid > div:nth-child(even) {
    padding-left:45px;
}

.rm-home-v2-page .rm-home-service-grid span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    margin-bottom:24px;
    border:1px solid #cfd6e2;
    border-radius:50%;
    color:var(--rm-color-primary);
    font-size:12px;
    font-weight:700;
}

.rm-home-v2-page .rm-home-service-grid h3 {
    margin:0 0 12px !important;
    font-size:27px;
    line-height:1.12;
    letter-spacing:-.025em;
}

.rm-home-v2-page .rm-home-service-grid p {
    max-width:440px;
    margin-bottom:0;
    color:#596273;
    font-size:16px;
    line-height:1.6;
}


/* Link finale */

.rm-home-v2-page .rm-home-service .rm-home-section-link {
    margin-top:38px !important;
}

.rm-home-v2-page .rm-home-service .rm-home-section-link a {
    display:inline-flex;
    align-items:center;
    font-size:16px;
}


/* Tablet / mobile */

@media(max-width:850px) {

    .rm-home-v2-page .rm-home-service .rm-home-section-intro {
        grid-template-columns:1fr;
        gap:18px;
    }

    .rm-home-v2-page .rm-home-service-grid {
        grid-template-columns:1fr;
    }

    .rm-home-v2-page .rm-home-service-grid > div,
    .rm-home-v2-page .rm-home-service-grid > div:nth-child(even) {
        min-height:0;
        padding:28px 0;
        border-left:0;
    }
}



/* ==================================================
   HOME V2 — ALLINEAMENTO "COSA DEVI FARE?"
   ================================================== */

@media(min-width:851px) {

    .rm-home-v2-page .rm-home-path {
        display:grid;
        grid-template-rows:
            24px
            minmax(68px,auto)
            minmax(92px,auto)
            auto;
        align-content:start;
    }

    .rm-home-v2-page .rm-home-path > span {
        align-self:start;
    }

    .rm-home-v2-page .rm-home-path h3 {
        margin:14px 0 12px !important;
        align-self:start;
    }

    .rm-home-v2-page .rm-home-path p {
        min-height:0;
        margin:0 !important;
        align-self:start;
    }

    .rm-home-v2-page .rm-home-path a {
        align-self:start;
        margin-top:14px;
    }
}


/* ==================================================
   HOME V2 — "COSA DEVI FARE?" ALIGN V2
   ================================================== */

@media(min-width:851px) {

    .rm-home-v2-page .rm-home-path {
        display:flex !important;
        flex-direction:column !important;
        align-items:flex-start !important;
    }

    .rm-home-v2-page .rm-home-path > span {
        display:block;
        height:28px;
        margin:0;
    }

    .rm-home-v2-page .rm-home-path h3 {
        display:flex;
        align-items:flex-start;
        min-height:72px;
        margin:10px 0 0 !important;
    }

    .rm-home-v2-page .rm-home-path p {
        min-height:88px !important;
        margin:0 !important;
    }

    .rm-home-v2-page .rm-home-path a {
        margin-top:14px !important;
    }
}


/* ==================================================
   HOME V2 — SERVICE CONTRAST V3
   ================================================== */

.rm-home-v2-page .rm-home-service {
    background:#f3f5f7;
}

/* Testo introduttivo */
.rm-home-v2-page .rm-home-service .rm-home-section-intro > p:last-child {
    color:#485466;
}

/* Divisori più leggibili */
.rm-home-v2-page .rm-home-service-grid {
    border-top-color:#cfd5dd;
}

.rm-home-v2-page .rm-home-service-grid > div {
    border-bottom-color:#cfd5dd;
}

.rm-home-v2-page .rm-home-service-grid > div:nth-child(even) {
    border-left-color:#cfd5dd;
}

/* Numeri */
.rm-home-v2-page .rm-home-service-grid span {
    border-color:#bfc8d4;
    background:#fff;
    color:#1459d9;
}

/* Descrizioni */
.rm-home-v2-page .rm-home-service-grid p {
    color:#465264;
}

/* Titoli ancora più netti */
.rm-home-v2-page .rm-home-service-grid h3 {
    color:#111318;
    font-weight:700;
}

/* CTA finale sezione */
.rm-home-v2-page .rm-home-service .rm-home-section-link a {
    color:#1459d9;
    font-weight:700;
}

/* HOME V2 — service bottom spacing */
.rm-home-v2-page .rm-home-service {
    padding-bottom:58px;
}


/* ==================================================
   HOME V2 — PROFESSIONI REFINEMENT
   ================================================== */

.rm-home-v2-page .rm-home-professions {
    padding-bottom:62px;
}

.rm-home-v2-page .rm-home-profession-links a:last-child {
    color:var(--rm-color-primary);
    font-weight:700;
}

.rm-home-v2-page .rm-home-profession-links a:last-child span {
    font-weight:700;
}

.rm-home-v2-page .rm-home-guides {
    padding-top:70px;
}

@media(max-width:640px) {
    .rm-home-v2-page .rm-home-professions {
        padding-bottom:52px;
    }

    .rm-home-v2-page .rm-home-guides {
        padding-top:58px;
    }
}


/* ==================================================
   HOME V2 — FINAL REFINEMENT
   ================================================== */


/* PROFESSIONI */

.rm-home-v2-page .rm-home-professions {
    padding-bottom:58px;
}

.rm-home-v2-page .rm-home-profession-links a:last-child {
    color:var(--rm-color-primary);
    font-weight:700;
}


/* GUIDE FISCALI */

.rm-home-v2-page .rm-home-guides {
    padding-top:64px;
    padding-bottom:72px;
}

.rm-home-v2-page .rm-home-guides .rm-home-section-intro {
    max-width:760px;
    margin-bottom:42px;
}

.rm-home-v2-page .rm-home-guides-grid {
    border-top:1px solid #d5dae1;
}

.rm-home-v2-page .rm-home-guides-grid article {
    min-height:185px;
    padding-top:30px;
    padding-bottom:30px;
    border-bottom-color:#d5dae1;
}

.rm-home-v2-page .rm-home-guides-grid article:nth-child(even) {
    border-left-color:#d5dae1;
}

.rm-home-v2-page .rm-home-guides-grid article > span {
    color:var(--rm-color-primary);
    font-size:12px;
    font-weight:700;
}

.rm-home-v2-page .rm-home-guides-grid h3 {
    font-size:25px;
    font-weight:700;
    line-height:1.15;
}

.rm-home-v2-page .rm-home-guides-grid h3 a {
    color:var(--rm-color-primary);
}

.rm-home-v2-page .rm-home-guides-grid h3 a:hover {
    color:var(--rm-color-primary-hover);
}

.rm-home-v2-page .rm-home-guides-grid p {
    color:#4d596b;
}

.rm-home-v2-page .rm-home-guides .rm-home-section-link {
    margin-top:32px !important;
}


/* COME FUNZIONA */

.rm-home-v2-page .rm-home-how {
    padding-top:76px;
    padding-bottom:74px;
}

.rm-home-v2-page .rm-home-how .rm-home-section-intro {
    margin-bottom:46px;
}

.rm-home-v2-page .rm-home-how-grid {
    border-top:1px solid #d5dae1;
}

.rm-home-v2-page .rm-home-how-grid > div {
    min-height:200px;
    padding-top:30px;
    padding-bottom:28px;
}

.rm-home-v2-page .rm-home-how-grid strong {
    color:var(--rm-color-primary);
    font-weight:700;
}

.rm-home-v2-page .rm-home-how-grid h3 {
    font-size:25px;
    font-weight:700;
}

.rm-home-v2-page .rm-home-how-grid p {
    color:#4d596b;
}


/* CTA FINALE */

.rm-home-v2-page .rm-home-final {
    margin-top:72px;
    margin-bottom:42px;
    padding:60px 64px;
}

.rm-home-v2-page .rm-home-final h2 {
    max-width:720px;
    margin-bottom:18px !important;
}

.rm-home-v2-page .rm-home-final > p:not(.rm-home-kicker) {
    max-width:650px;
    margin-bottom:26px;
}

.rm-home-v2-page .rm-home-final .wp-block-button__link {
    min-height:46px;
    padding:13px 22px;
}


/* MOBILE */

@media(max-width:640px) {

    .rm-home-v2-page .rm-home-professions {
        padding-bottom:48px;
    }

    .rm-home-v2-page .rm-home-guides {
        padding-top:54px;
        padding-bottom:58px;
    }

    .rm-home-v2-page .rm-home-how {
        padding-top:58px;
        padding-bottom:58px;
    }

    .rm-home-v2-page .rm-home-final {
        margin-top:56px;
        margin-bottom:30px;
        padding:38px 24px;
    }
}


/* ==================================================
   HOME V2 — IMMAGINI PROFESSIONI / GUIDE
   ================================================== */

.rm-home-v2-page .rm-home-professions,
.rm-home-v2-page .rm-home-guides {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(390px,.9fr);
    column-gap:64px;
    align-items:center;
}

.rm-home-v2-page .rm-home-professions .rm-home-section-intro,
.rm-home-v2-page .rm-home-guides .rm-home-section-intro {
    grid-column:1;
    margin-bottom:0;
}

.rm-home-v2-page .rm-home-professions-image,
.rm-home-v2-page .rm-home-guides-image {
    grid-column:2;
    grid-row:1;
    margin:0;
}

.rm-home-v2-page .rm-home-professions-image img,
.rm-home-v2-page .rm-home-guides-image img {
    display:block;
    width:100%;
    aspect-ratio:16 / 10;
    object-fit:cover;
    border-radius:16px;
}

.rm-home-v2-page .rm-home-profession-links,
.rm-home-v2-page .rm-home-guides-grid,
.rm-home-v2-page .rm-home-guides > .rm-home-section-link {
    grid-column:1 / -1;
}

.rm-home-v2-page .rm-home-profession-links,
.rm-home-v2-page .rm-home-guides-grid {
    margin-top:46px;
}

@media(max-width:850px) {

    .rm-home-v2-page .rm-home-professions,
    .rm-home-v2-page .rm-home-guides {
        grid-template-columns:1fr;
    }

    .rm-home-v2-page .rm-home-professions-image,
    .rm-home-v2-page .rm-home-guides-image {
        grid-column:1;
        grid-row:auto;
        margin-top:28px;
    }

    .rm-home-v2-page .rm-home-profession-links,
    .rm-home-v2-page .rm-home-guides-grid {
        grid-column:1;
        margin-top:34px;
    }
}


/* ==================================================
   HOME V2 — DESKTOP FINAL REFINEMENT
   ================================================== */

/* HUB professioni */
@media(min-width:851px) {

    .rm-home-v2-page .rm-home-profession-links a:last-child {
        background:#f3f6fc;
        padding-left:16px;
        padding-right:16px;
        border-radius:8px;
    }

    .rm-home-v2-page .rm-home-profession-links a:last-child:hover {
        background:#eaf0fb;
    }
}


/* Guide: stessa struttura verticale */

@media(min-width:851px) {

    .rm-home-v2-page .rm-home-guides-grid article {
        display:flex;
        flex-direction:column;
        min-height:190px;
    }

    .rm-home-v2-page .rm-home-guides-grid article > span {
        min-height:20px;
    }

    .rm-home-v2-page .rm-home-guides-grid h3 {
        min-height:58px;
        margin-bottom:12px !important;
    }

    .rm-home-v2-page .rm-home-guides-grid p {
        margin-top:auto;
    }
}


/* Come funziona */

.rm-home-v2-page .rm-home-how-grid h3 {
    color:#111318;
}

.rm-home-v2-page .rm-home-how-grid p {
    max-width:300px;
}

.rm-home-v2-page .rm-home-how-grid > div {
    position:relative;
}


/* CTA finale */

.rm-home-v2-page .rm-home-final {
    box-shadow:none;
}

.rm-home-v2-page .rm-home-final .rm-home-kicker {
    margin-bottom:18px !important;
}

.rm-home-v2-page .rm-home-final .wp-block-button__link {
    background:#0872dc !important;
    color:#fff !important;
    border:0 !important;
}

.rm-home-v2-page .rm-home-final .wp-block-button__link:hover {
    background:#075fb8 !important;
}


/* Riduciamo leggermente il vuoto prima del footer */

.rm-home-v2-page .rm-home-final {
    margin-bottom:28px;
}



/* ==================================================
   HOME V2 — SERVICE MOBILE WIDTH FIX
   ================================================== */

@media (max-width:640px) {

    .rm-home-v2-page .rm-home-service {
        width:auto !important;
        max-width:none !important;

        margin-left:-20px !important;
        margin-right:-20px !important;

        padding-left:20px !important;
        padding-right:20px !important;

        overflow:hidden;
    }

    .rm-home-v2-page .rm-home-service .rm-home-section-intro,
    .rm-home-v2-page .rm-home-service-grid,
    .rm-home-v2-page .rm-home-service .rm-home-section-link {
        width:100% !important;
        max-width:100% !important;
        margin-left:0 !important;
        margin-right:0 !important;
    }

    .rm-home-v2-page .rm-home-service-grid > div,
    .rm-home-v2-page .rm-home-service-grid > div:nth-child(even) {
        width:100% !important;
        padding-left:0 !important;
        padding-right:0 !important;
    }
}

@media (min-width:641px) and (max-width:850px) {

    .rm-home-v2-page .rm-home-service {
        margin-left:-30px !important;
        margin-right:-30px !important;
        padding-left:30px !important;
        padding-right:30px !important;
    }
}


/* ==================================================
   HOME V2 — SERVICE CARD LINKS
   ================================================== */

.rm-home-service-links {
    margin-top:18px;
}

.rm-home-service-links > a {
    color:#135fa7;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
}

.rm-home-service-links > a:hover {
    text-decoration:underline;
}

.rm-home-service-links > span {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:8px;
}

.rm-home-service-links > span a {
    color:#536273;
    font-size:12px;
    font-weight:650;
    text-decoration:none;
}

.rm-home-service-links > span a:hover {
    color:#135fa7;
}



/* ==================================================
   HOME V2 — SERVICE LINKS LAYOUT FIX
   ================================================== */

.rm-home-service-links {
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:9px !important;
    width:100% !important;
}

.rm-home-service-links > a {
    display:inline-flex !important;
    width:auto !important;
    position:static !important;
    margin:0 !important;
}

.rm-home-service-links > span {
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:14px !important;
    width:auto !important;
    margin:0 !important;
    position:static !important;
}

.rm-home-service-links > span a {
    display:inline-flex !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    position:static !important;
    line-height:1.4 !important;
}



/* ==================================================
   HOME V2 — EDITORIAL STREAMS
   ================================================== */

.rm-home-editorial-streams .rm-home-editorial-groups {
    grid-column:1 / -1;
    margin-top:8px;
}

.rm-home-editorial-group {
    padding:36px 0 38px;
    border-top:1px solid #d7dee7;
}

.rm-home-editorial-group:last-child {
    border-bottom:1px solid #d7dee7;
}

.rm-home-editorial-group-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    margin-bottom:22px;
}

.rm-home-editorial-group-head h3 {
    margin:0;
    color:#111827;
    font-size:26px;
    font-weight:750;
    line-height:1.15;
    letter-spacing:-.025em;
}

.rm-home-editorial-group-head > a {
    flex:0 0 auto;
    color:#135fa7;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
}

.rm-home-editorial-group-head > a:hover {
    text-decoration:underline;
}

.rm-home-editorial-links {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:50px;
}

.rm-home-editorial-item {
    margin:0;
    border-bottom:1px solid #e1e6ec;
}

.rm-home-editorial-item:nth-last-child(-n+2) {
    border-bottom:0;
}

.rm-home-editorial-item > a {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;

    min-height:62px;
    padding:17px 0;

    color:#172033;
    font-size:16px;
    font-weight:650;
    line-height:1.4;
    text-decoration:none;
}

.rm-home-editorial-item > a:hover {
    color:#135fa7;
}

.rm-home-editorial-item > a span {
    flex:0 0 auto;
    color:#135fa7;
    font-weight:700;
}


@media (max-width:780px) {

    .rm-home-editorial-group {
        padding:30px 0;
    }

    .rm-home-editorial-group-head {
        display:block;
        margin-bottom:16px;
    }

    .rm-home-editorial-group-head h3 {
        margin-bottom:9px;
        font-size:23px;
    }

    .rm-home-editorial-links {
        grid-template-columns:1fr;
    }

    .rm-home-editorial-item:nth-last-child(-n+2) {
        border-bottom:1px solid #e1e6ec;
    }

    .rm-home-editorial-item:last-child {
        border-bottom:0;
    }

    .rm-home-editorial-item > a {
        min-height:0;
        padding:15px 0;
    }

}


/* ==================================================
   HOME EDITORIAL — FINAL POLISH
   ================================================== */

/* evita la doppia riga alla fine della sezione */
.rm-home-editorial-group:last-child {
    border-bottom:0 !important;
}

/* link archivio più riconoscibili */
.rm-home-editorial-group-head > a {
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:7px 11px;
    border:1px solid rgba(19,95,167,.24);
    border-radius:8px;
    background:#f5f9fd;
    color:#135fa7 !important;
    font-size:13px;
    font-weight:700;
    text-decoration:none !important;
}

.rm-home-editorial-group-head > a:hover {
    border-color:#135fa7;
    background:#edf5fc;
}


/* ==================================================
   HOME V2 — REVIEWS
   ================================================== */

.rm-home-reviews {
    padding-top:68px;
    padding-bottom:68px;
}

.rm-home-reviews-head {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:30px;
    margin-bottom:28px;
}

.rm-home-reviews-head h2 {
    margin:0;
    font-size:38px;
    line-height:1.08;
    letter-spacing:-.035em;
}

.rm-home-reviews-all {
    flex:0 0 auto;
    color:#135fa7;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
}

.rm-home-reviews-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.rm-home-review-card {
    position:relative;
    padding:26px;
    border:1px solid rgba(16,61,115,.28);
    border-radius:18px;
    background:#fff;
}

.rm-home-review-quote {
    position:absolute;
    top:12px;
    right:20px;
    color:rgba(16,61,115,.10);
    font-family:Georgia,serif;
    font-size:64px;
    line-height:1;
}

.rm-home-review-card > p {
    position:relative;
    z-index:1;
    margin:0 0 22px;
    color:#536273;
    font-size:15px;
    line-height:1.65;
}

.rm-home-review-card footer {
    display:flex;
    flex-direction:column;
    gap:3px;
    padding-top:16px;
    border-top:1px solid #e3e8ef;
}

.rm-home-review-card footer strong {
    color:#172033;
    font-size:14px;
}

.rm-home-review-card footer span {
    color:#135fa7;
    font-size:12px;
    font-weight:650;
}

@media (max-width:780px) {

    .rm-home-reviews {
        padding-top:52px;
        padding-bottom:52px;
    }

    .rm-home-reviews-head {
        display:block;
    }

    .rm-home-reviews-head h2 {
        margin-bottom:12px;
        font-size:32px;
    }

    .rm-home-reviews-grid {
        grid-template-columns:1fr;
    }

}


/* ==================================================
   HOME REVIEWS — ARCHIVE LINK CONSISTENCY
   ================================================== */

.rm-home-reviews-all {
    display:inline-flex !important;
    align-items:center;
    gap:5px;
    padding:7px 11px;
    border:1px solid rgba(19,95,167,.24);
    border-radius:8px;
    background:#f5f9fd;
    color:#135fa7 !important;
    font-size:13px;
    font-weight:700;
    text-decoration:none !important;
}

.rm-home-reviews-all:hover {
    border-color:#135fa7;
    background:#edf5fc;
}

/* === layout-alignment.css === */
/*
 * RegimeMinimi.com
 * Griglia orizzontale globale
 *
 * Shell:   1180px
 * Gutter:    30px
 * Content: 1120px
 */

/* ==================================================
   PAGINE STANDARD
   Home/Prezzi V2 mantengono il proprio layout full-width.
   ================================================== */

body.page:not(.rm-home-v2-page) .site-inner {
    width:100% !important;
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:30px !important;
    padding-right:30px !important;
    box-sizing:border-box !important;
}

body.page:not(.rm-home-v2-page) .content,
body.page:not(.rm-home-v2-page).full-width-content .content,
body.page:not(.rm-home-v2-page) .entry {
    width:100% !important;
    max-width:1120px !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
}


/* ==================================================
   ARTICOLI
   H1 e struttura partono dalla griglia 1120.
   Testo: 960px, ma NON centrato: stessa linea sinistra.
   ================================================== */

body.single-post .site-inner {
    width:100% !important;
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:30px !important;
    padding-right:30px !important;
    box-sizing:border-box !important;
}

body.single-post .content,
body.single-post.full-width-content .content,
body.single-post .entry,
body.single-post .entry-header {
    width:100% !important;
    max-width:1120px !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
}

body.single-post .entry-content {
    width:100% !important;
    max-width:960px !important;
    margin-left:0 !important;
    margin-right:auto !important;
}


/* ==================================================
   ARCHIVI / CATEGORIE / BLOG / RICERCA
   ================================================== */

body.archive .site-inner,
body.blog .site-inner,
body.search .site-inner {
    width:100% !important;
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:30px !important;
    padding-right:30px !important;
    box-sizing:border-box !important;
}

body.archive .content,
body.blog .content,
body.search .content,
body.archive .archive-description,
body.blog .archive-description,
body.search .archive-description {
    width:100% !important;
    max-width:1120px !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
}


/* NEWS: elimina il vecchio restringimento a 1040px */

.rm-news-hub {
    width:100% !important;
    max-width:1120px !important;
    margin-left:0 !important;
    margin-right:0 !important;
}


/* GUIDE */

.category-guide-fiscali .content {
    width:100% !important;
    max-width:1120px !important;
    margin-left:0 !important;
    margin-right:0 !important;
}


/* PREZZI: mantiene struttura custom, ma la griglia interna è 1120 */

.rm-pricing-inner {
    width:100% !important;
    max-width:1120px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}


/* ==================================================
   TABLET / MOBILE
   ================================================== */

@media (max-width:959px) {

    body.page:not(.rm-home-v2-page) .site-inner,
    body.single-post .site-inner,
    body.archive .site-inner,
    body.blog .site-inner,
    body.search .site-inner {
        max-width:none !important;
        padding-left:20px !important;
        padding-right:20px !important;
    }

    body.single-post .entry-content {
        max-width:100% !important;
    }
}

/* PREZZI — hero allineata alla griglia globale */
.rm-pricing-hero,
.rm-pricing-hero .rm-pricing-inner {
    text-align:left !important;
}

.rm-pricing-hero h1,
.rm-pricing-hero p {
    margin-left:0 !important;
    margin-right:0 !important;
}


/* === RM TOP INTRO CONSISTENCY === */

/*
 * Ritmo verticale comune:
 * Home / Prezzi / Contatti / Guide / News
 */

/* 64px esatti dall'header all'inizio del blocco */
body.home.rm-home-v2-page .rm-home-hero {
    padding-top:64px !important;
}

body.page-id-503 .rm-pricing-hero {
    padding-top:64px !important;
}

body.page-id-2078 .site-inner,
body.category-guide-fiscali .site-inner,
body.category-news .site-inner {
    padding-top:64px !important;
}


/*
 * NEWS aveva in più:
 * .rm-news-heading { margin-top:30px; }
 * È la causa del maggiore distacco visibile nello screenshot.
 */
body.category-news .rm-news-heading {
    margin-top:0 !important;
}


/* Eyebrow blu: identica sulle 5 viste */
body.home .rm-home-hero-copy > :first-child:not(h1),
body.page-id-503 .rm-pricing-kicker,
body.page-id-2078 .rm-contact-intro > :first-child:not(h1),
body.category-guide-fiscali .archive-description > :first-child:not(h1),
body.category-news .rm-news-heading > :first-child:not(h1) {
    display:block !important;
    margin:0 0 18px 0 !important;

    color:var(--rm-color-primary) !important;

    font-family:var(--rm-font-sans) !important;
    font-size:13px !important;
    font-weight:700 !important;
    line-height:1.2 !important;

    letter-spacing:.08em !important;
    text-transform:uppercase !important;
}


/* Stesso ritmo eyebrow → titolo → descrizione */
body.home .rm-home-hero-copy h1,
body.page-id-503 .rm-pricing-hero h1,
body.page-id-2078 .rm-contact-intro h1,
body.category-guide-fiscali .archive-description h1,
body.category-news .rm-news-heading h1 {
    margin-top:0 !important;
    margin-bottom:20px !important;
}

body.home .rm-home-hero-copy h1 + p,
body.page-id-503 .rm-pricing-hero h1 + p,
body.page-id-2078 .rm-contact-intro h1 + p,
body.category-guide-fiscali .archive-description h1 + p,
body.category-news .rm-news-heading h1 + p {
    margin-top:0 !important;
}


/* Mobile: stesso principio, distanza ridotta */
@media (max-width:959px) {

    body.home.rm-home-v2-page .rm-home-hero {
        padding-top:44px !important;
    }

    body.page-id-503 .rm-pricing-hero {
        padding-top:44px !important;
    }

    body.page-id-2078 .site-inner,
    body.category-guide-fiscali .site-inner,
    body.category-news .site-inner {
        padding-top:44px !important;
    }
}

/* === /RM TOP INTRO CONSISTENCY === */

/* PREZZI — riduce leggermente lo spazio dopo l'introduzione */
body.page-id-503 .rm-pricing-hero {
    padding-bottom:52px !important;
}

/* ==================================================
   PREZZI — GUTTER MOBILE COERENTE CON IL SITO
   ================================================== */

@media (max-width:959px) {

    body.page-id-503 .rm-pricing-inner {
        width:100% !important;
        max-width:none !important;
        padding-left:20px !important;
        padding-right:20px !important;
        box-sizing:border-box !important;
    }

}


/* =========================================================
   RM PROFESSIONI HUB TOP ALIGNMENT
   ========================================================= */

.page-id-21847 .site-inner {
    padding-top: 0 !important;
}

.page-id-21847 .content,
.page-id-21847 .entry,
.page-id-21847 .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

