/* =========================================================
   RADIONOVELLI — SERVIZI E CONTATTI
   Variabili condivise · Bootstrap 3, 4 e 5
   ========================================================= */

.rn-services,
.rn-contacts-page,
.rn-brands-page {
    --rn-primary: #42b574;
    --rn-primary-dark: #31945d;
    --rn-secondary: #79ccf2;
    --rn-dark: #1d1d1f;
    --rn-text: #4c4c4c;
    --rn-muted: #767676;
    --rn-border: #e8e8e8;
    --rn-background: #f7f7f7;
    --rn-surface: #ffffff;
}

.rn-home-page {
    --rn-primary: #42b574;
    --rn-primary-dark: #31945d;
    --rn-secondary: #79ccf2;
    --rn-dark: #1d1d1f;
    --rn-text: #4c4c4c;
    --rn-muted: #767676;
    --rn-border: #e8e8e8;
    --rn-background: #f7f7f7;
    --rn-surface: #ffffff;
}

.rn-contacts-page {
    padding: 55px 0 80px;
    color: var(--rn-text);
}

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

.rn-contacts-page,
.rn-contacts-page * {
    box-sizing: border-box;
}

.rn-brands-page,
.rn-brands-page * {
    box-sizing: border-box;
}

/* Prima riga */

.rn-contact-top {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 70px;
}

.rn-contact-top > [class*="col-"] {
    display: flex;
}

.rn-contact-form-area,
.rn-company-info {
    width: 100%;
}

/* Mantiene il form esistente senza modificarne la struttura */

.rn-contact-form-area {
    padding-right: 25px;
}

/* Informazioni aziendali */

.rn-company-info {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid var(--rn-border);
    border-top: 4px solid var(--rn-primary);
    border-radius: 4px;
    background: var(--rn-surface);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.rn-company-info::after {
    position: absolute;
    right: -65px;
    bottom: -65px;
    width: 180px;
    height: 180px;
    border: 24px solid rgba(66, 181, 116, 0.05);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.rn-contact-label {
    display: block;
    color: var(--rn-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-align: left;
    text-transform: uppercase;
}

.rn-company-info h2 {
    position: relative;
    z-index: 1;
    margin: 7px 0 14px;
    color: var(--rn-dark);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.rn-company-intro {
    position: relative;
    z-index: 1;
    margin: 0 0 25px;
    color: var(--rn-muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

/* Elenco informazioni */

.rn-info-list {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
    border-top: 1px solid var(--rn-border);
}

.rn-info-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--rn-border);
    font-size: 13px;
    line-height: 1.5;
}

.rn-info-title {
    flex: 0 0 42%;
    color: var(--rn-dark);
    font-weight: 700;
}

.rn-info-item > a,
.rn-info-item > span:last-child {
    flex: 1;
    color: var(--rn-text);
    text-align: right;
}

.rn-info-item a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.rn-info-item a:hover,
.rn-info-item a:focus {
    color: var(--rn-primary);
    text-decoration: none;
}

/* Dati societari */

.rn-company-data {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: 3px;
    background: var(--rn-background);
    text-align: left;
}

.rn-company-data h3 {
    margin: 0 0 10px;
    color: var(--rn-dark);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.rn-company-data p {
    margin: 0;
    color: var(--rn-text);
    font-size: 12px;
    line-height: 1.65;
    text-align: left;
}

/* Titolo sezione sedi */

.rn-locations-section {
    padding-top: 10px;
}

.rn-section-heading {
    max-width: 680px;
    margin: 0 auto 38px;
}

.rn-section-heading .rn-contact-label {
    text-align: center;
}

.rn-section-heading h2 {
    position: relative;
    margin: 7px 0 18px;
    padding-bottom: 18px;
    color: var(--rn-dark);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.rn-section-heading h2::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 58px;
    height: 2px;
    background: var(--rn-primary);
    content: "";
    transform: translateX(-50%);
}

.rn-section-heading p {
    margin: 0;
    color: var(--rn-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Marchi - layout condiviso */

.rn-brands-page {
    padding: 60px 0 80px;
    color: var(--rn-text);
}

.rn-brands-page-header {
    max-width: 780px;
    margin: 0 auto 42px;
}

.rn-brands-page-header .rn-eyebrow {
    display: block;
    color: var(--rn-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.rn-brands-page-header h1 {
    position: relative;
    margin: 8px 0 20px;
    padding-bottom: 20px;
    color: var(--rn-dark);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
}

.rn-brands-page-header h1::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 58px;
    height: 3px;
    background: var(--rn-primary);
    content: "";
    transform: translateX(-50%);
}

.rn-brands-page-intro {
    color: var(--rn-muted);
    font-size: 16px;
    line-height: 1.7;
}

.rn-brands-page-intro p {
    margin: 0;
}

.rn-brands-page-content {
    width: 100%;
    text-align: left;
}

.rn-brand-links-grid {
    display: flex;
    flex-wrap: wrap;
}

.rn-brand-links-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 20px;
}

.rn-brand-link-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid var(--rn-border);
    border-left: 3px solid var(--rn-primary);
    border-radius: 4px;
    background: var(--rn-surface);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.045);
    color: var(--rn-dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    transition:
            border-color 0.2s ease,
            color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.rn-brand-link-card::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--rn-primary);
    content: "";
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rn-brand-link-name {
    min-width: 0;
    padding-right: 18px;
}

.rn-brand-link-arrow {
    flex: 0 0 auto;
    color: var(--rn-primary);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.rn-brand-link-card:hover,
.rn-brand-link-card:focus {
    border-color: var(--rn-primary);
    color: var(--rn-primary);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.rn-brand-link-card:hover::before,
.rn-brand-link-card:focus::before {
    opacity: 1;
}

.rn-brand-link-card:hover .rn-brand-link-arrow,
.rn-brand-link-card:focus .rn-brand-link-arrow {
    transform: translateX(4px);
}

.rn-brand-link-card:focus-visible {
    outline: 3px solid rgba(66, 181, 116, 0.28);
    outline-offset: 3px;
}

.rn-brand-logo-card {
    display: flex;
    width: 100%;
    min-height: 190px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rn-border);
    border-radius: 4px;
    background: var(--rn-surface);
    color: var(--rn-dark);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.045);
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.rn-brand-logo-media {
    display: flex;
    min-height: 130px;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: var(--rn-surface);
}

.rn-brand-logo-media img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: 85px;
    object-fit: contain;
}

.rn-brand-logo-placeholder {
    display: flex;
    width: 100%;
    min-height: 85px;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 3px;
    background: var(--rn-background);
    color: var(--rn-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.rn-brand-logo-footer {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 14px 17px;
    border-top: 1px solid var(--rn-border);
    text-align: left;
}

.rn-brand-logo-name {
    min-width: 0;
    padding-right: 15px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.rn-brand-logo-arrow {
    flex: 0 0 auto;
    color: var(--rn-primary);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.rn-brand-logo-card:hover,
.rn-brand-logo-card:focus {
    border-color: var(--rn-primary);
    color: var(--rn-primary);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.rn-brand-logo-card:hover .rn-brand-logo-arrow,
.rn-brand-logo-card:focus .rn-brand-logo-arrow {
    transform: translateX(4px);
}

.rn-brand-logo-card:focus-visible {
    outline: 3px solid rgba(66, 181, 116, 0.28);
    outline-offset: 3px;
}

/* Homepage - Marchi e CTA Immobiliare */

.rn-home-brands {
    padding: 72px 0 36px;
    text-align: left;
}

.rn-home-section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
}

.rn-eyebrow {
    display: block;
    color: var(--rn-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.rn-home-section-heading .rn-eyebrow {
    text-align: center;
}

.rn-home-section-heading h2 {
    position: relative;
    margin: 7px 0 18px;
    padding-bottom: 18px;
    color: var(--rn-dark);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.rn-home-section-heading h2::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 58px;
    height: 2px;
    background: var(--rn-primary);
    content: "";
    transform: translateX(-50%);
}

.rn-home-section-heading p {
    margin: 0;
    color: var(--rn-muted);
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

.rn-brand-category-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.rn-brand-category-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.rn-brand-category-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--rn-border);
    border-top: 4px solid var(--rn-primary);
    border-radius: 4px;
    background: var(--rn-surface);
    box-shadow: 0 9px 30px rgba(0, 0, 0, 0.055);
    text-align: left;
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease;
}

.rn-brand-category-card:hover {
    border-color: rgba(66, 181, 116, 0.3);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.rn-brand-category-header {
    display: flex;
    align-items: flex-start;
    min-height: 72px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rn-border);
}

.rn-brand-category-number {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border: 1px solid rgba(66, 181, 116, 0.7);
    border-radius: 50%;
    color: var(--rn-primary);
    font-size: 14px;
    font-weight: 700;
}

.rn-brand-category-card h3 {
    margin: 0 0 14px;
    color: var(--rn-dark);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.rn-brand-category-card p {
    flex: 1;
    margin: 0;
    color: var(--rn-text);
    font-size: 14px;
    line-height: 1.75;
}

.rn-brand-category-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rn-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-transform: uppercase;
    transition:
            color 0.2s ease,
            transform 0.2s ease;
}

.rn-brand-category-link span {
    transition: transform 0.2s ease;
}

.rn-brand-category-link:hover,
.rn-brand-category-link:focus {
    color: var(--rn-primary-dark);
    text-decoration: none;
}

.rn-brand-category-link:hover span,
.rn-brand-category-link:focus span {
    transform: translateX(4px);
}

.rn-real-estate-cta {
    padding: 8px 0 82px;
}

.rn-real-estate-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: var(--rn-dark);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.rn-real-estate-cta-content {
    max-width: 760px;
}

.rn-real-estate-cta .rn-eyebrow {
    color: var(--rn-primary);
}

.rn-real-estate-cta h2 {
    margin: 7px 0 15px;
    color: var(--rn-surface);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.rn-real-estate-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.7;
}

.rn-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--rn-primary);
    border-radius: 2px;
    background: var(--rn-primary);
    color: var(--rn-surface) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
            background 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.rn-primary-button span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.rn-primary-button:hover,
.rn-primary-button:focus {
    border-color: var(--rn-primary-dark);
    background: var(--rn-primary-dark);
    color: var(--rn-surface);
    transform: translateY(-2px);
}

.rn-primary-button:hover span,
.rn-primary-button:focus span {
    transform: translateX(4px);
}

/* Griglia sedi */

.rn-location-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.rn-location-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.rn-location-card {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100%;
    grid-template-rows: auto auto 1fr auto;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--rn-border);
    border-radius: 4px;
    background: var(--rn-surface);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.055);
    text-align: left;
    transition:
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.25s ease;
}

.rn-location-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--rn-primary);
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.rn-location-card:hover {
    border-color: rgba(66, 181, 116, 0.35);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.rn-location-card:hover::before {
    transform: scaleX(1);
}

/* Heading card */

.rn-location-card-header {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    margin-bottom: 18px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--rn-border);
    text-align: left;
}

.rn-location-card-header > div {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.rn-location-number {
    display: flex;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-right: 14px;
    border: 1px solid rgba(66, 181, 116, 0.7);
    border-radius: 50%;
    color: var(--rn-primary);
    font-size: 12px;
    font-weight: 700;
}

.rn-location-card h3 {
    margin: 5px 0 0;
    color: var(--rn-dark);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

/* Indirizzo */

.rn-location-address {
    min-height: 0;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-left: 3px solid var(--rn-primary);
    background: var(--rn-background);
    color: var(--rn-text);
    font-size: 14px;
    font-style: normal;
    line-height: 1.65;
    text-align: left;
}

.rn-location-description {
    margin: 0 0 16px;
    color: var(--rn-muted);
    font-size: 13px;
    line-height: 1.65;
}

/* Dettagli card */

.rn-location-details {
    margin: 0;
    padding: 0;
    list-style: none;
    align-self: start;
}

.rn-location-details li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    min-height: 42px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rn-border);
    color: var(--rn-text);
    font-size: 13px;
    line-height: 1.5;
}

.rn-location-details li:first-child {
    border-top: 1px solid var(--rn-border);
}

.rn-location-details strong {
    flex: 0 0 34%;
    color: var(--rn-dark);
    font-weight: 700;
}

.rn-location-details li > span,
.rn-location-details li > a {
    flex: 1;
    color: var(--rn-text);
    text-align: right;
}

.rn-location-details a {
    text-decoration: none;
}

.rn-location-details a:hover,
.rn-location-details a:focus {
    color: var(--rn-primary);
    text-decoration: none;
}

/* Pulsante */

.rn-location-card-footer {
    align-self: end;
    margin-top: 24px;
    padding-top: 4px;
}

.rn-location-button {
    display: inline-block;
    padding: 10px 17px;
    border: 1px solid var(--rn-primary);
    border-radius: 2px;
    background: var(--rn-primary);
    color: var(--rn-surface) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
            background 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.rn-location-button span {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.rn-location-button:hover,
.rn-location-button:focus {
    border-color: var(--rn-primary-dark);
    background: var(--rn-primary-dark);
    color: var(--rn-surface);
    transform: translateY(-2px);
}

.rn-location-button:hover span,
.rn-location-button:focus span {
    transform: translateX(4px);
}

/* Tablet */

@media (max-width: 991px) {
    .rn-contact-form-area {
        padding-right: 0;
        padding-bottom: 30px;
    }

    .rn-contact-top > [class*="col-"] {
        display: block;
    }

    .rn-contact-top {
        margin-bottom: 55px;
    }

    .rn-company-info {
        padding: 28px;
    }

    .rn-brands-page {
        padding: 50px 0 65px;
    }

    .rn-brands-page-header h1 {
        font-size: 33px;
    }

    .rn-home-brands {
        padding-top: 60px;
    }

    .rn-home-section-heading {
        margin-bottom: 32px;
    }

    .rn-home-section-heading h2 {
        font-size: 29px;
    }

    .rn-brand-category-card {
        padding: 26px 22px;
    }

    .rn-real-estate-cta-inner {
        align-items: flex-start;
        padding: 28px 24px;
    }

    .rn-real-estate-cta h2 {
        font-size: 27px;
    }
}

/* Smartphone */

@media (max-width: 767px) {
    .rn-contacts-page {
        padding: 40px 0 55px;
    }

    .rn-contact-top {
        margin-bottom: 45px;
    }

    .rn-company-info,
    .rn-location-card {
        padding: 23px 20px;
    }

    .rn-company-info h2 {
        font-size: 23px;
    }

    .rn-section-heading {
        margin-bottom: 28px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .rn-section-heading h2 {
        font-size: 27px;
    }

    .rn-brands-page {
        padding: 42px 0 55px;
    }

    .rn-brands-page-header {
        margin-bottom: 30px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .rn-brands-page-header h1 {
        font-size: 29px;
    }

    .rn-brands-page-intro {
        font-size: 15px;
        line-height: 1.65;
    }

    .rn-brand-links-grid > [class*="col-"] {
        margin-bottom: 14px;
    }

    .rn-brand-link-card {
        min-height: 62px;
        padding: 15px 17px;
        font-size: 14px;
    }

    .rn-brand-link-card:hover {
        transform: none;
    }

    .rn-brand-logo-card {
        min-height: 170px;
    }

    .rn-brand-logo-media {
        min-height: 110px;
        padding: 18px;
    }

    .rn-brand-logo-media img {
        height: 72px;
    }

    .rn-brand-logo-footer {
        min-height: 52px;
        padding: 12px 15px;
    }

    .rn-brand-logo-name {
        font-size: 13px;
    }

    .rn-brand-logo-card:hover {
        transform: none;
    }

    .rn-home-brands {
        padding: 46px 0 22px;
    }

    .rn-home-section-heading {
        margin-bottom: 28px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .rn-home-section-heading h2 {
        font-size: 26px;
    }

    .rn-home-section-heading p {
        font-size: 14px;
        line-height: 1.65;
    }

    .rn-brand-category-grid > [class*="col-"] {
        margin-bottom: 20px;
    }

    .rn-brand-category-card,
    .rn-real-estate-cta-inner {
        padding: 24px 20px;
    }

    .rn-brand-category-header {
        min-height: 0;
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .rn-brand-category-number {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        margin-right: 13px;
        font-size: 12px;
    }

    .rn-brand-category-card h3 {
        margin-bottom: 12px;
        font-size: 19px;
    }

    .rn-brand-category-card p {
        font-size: 13px;
        line-height: 1.65;
    }

    .rn-brand-category-link:hover,
    .rn-brand-category-link:focus {
        transform: none;
    }

    .rn-brand-category-card:hover,
    .rn-primary-button:hover,
    .rn-primary-button:focus {
        transform: none;
    }

    .rn-real-estate-cta {
        padding-bottom: 58px;
    }

    .rn-real-estate-cta-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .rn-real-estate-cta h2 {
        font-size: 25px;
    }

    .rn-real-estate-cta p {
        font-size: 14px;
        line-height: 1.65;
    }

    .rn-primary-button {
        width: 100%;
    }

    .rn-location-card-header {
        min-height: 0;
    }

    .rn-location-card h3 {
        font-size: 18px;
    }

    .rn-info-item,
    .rn-location-details li {
        display: block;
    }

    .rn-info-title,
    .rn-location-details strong {
        display: block;
        margin-bottom: 4px;
    }

    .rn-info-item > a,
    .rn-info-item > span:last-child,
    .rn-location-details li > span,
    .rn-location-details li > a {
        display: block;
        text-align: left;
    }

    .rn-location-address {
        min-height: 0;
    }

    .rn-location-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rn-location-card,
    .rn-location-card::before,
    .rn-location-button,
    .rn-location-button span,
    .rn-brand-logo-card,
    .rn-brand-logo-card::before,
    .rn-brand-logo-arrow {
        transition: none;
    }
}

.rn-services,
.rn-services * {
    box-sizing: border-box;
}

/* Intestazione */
.rn-card-label {
    display: block;
    color: var(--rn-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.rn-services-header h1 {
    position: relative;
    color: var(--rn-dark);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

.rn-brand-category {
    height: auto;
}
.rn-services-header h1::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 65px;
    height: 3px;
    background: var(--rn-primary);
    content: "";
    transform: translateX(-50%);
}

.rn-services-header p {
    margin: 0;
    color: var(--rn-text);
    font-size: 17px;
    line-height: 1.75;
}

/* Griglia Bootstrap */

.rn-services-grid {
    display: flex;
    flex-wrap: wrap;
}

.rn-services-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

/* Card */

.rn-service-card,
.rn-contact-card {
    position: relative;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--rn-border);
    border-radius: 4px;
    background: var(--rn-surface);
    box-shadow: 0 9px 30px rgba(0, 0, 0, 0.055);
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease;
}

.rn-service-card {
    padding: 30px;
}

.rn-service-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--rn-primary);
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.rn-service-card:hover {
    border: 1px solid rgba(66, 181, 116, 0.3);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.rn-service-card:hover::before {
    transform: scaleX(1);
}

/* Titolo della card */

.rn-card-heading {
    display: flex;
    align-items: flex-start;
    min-height: 74px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--rn-border);
}

.rn-card-number {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border: 1px solid rgba(66, 181, 116, 0.7);
    border-radius: 50%;
    color: var(--rn-primary);
    font-size: 14px;
    font-weight: 700;
}

.rn-card-heading > div {
    min-width: 0;
}

.rn-card-heading h2 {
    margin: 5px 0 0;
    color: var(--rn-dark);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}


.rn-service-card .rn-card-heading {
    justify-content: flex-start;
    text-align: left !important;
}

.rn-service-card .rn-card-heading > div {
    flex: 1;
    text-align: left !important;
}

.rn-service-card .rn-card-label,
.rn-service-card .rn-card-heading h2 {
    width: 100%;
    text-align: left !important;
}

/* Sottotitoli delle categorie dei marchi */

.rn-service-card .rn-subheading {
    text-align: left !important;
}

/* Sottocategorie */

.rn-subheading {
    position: relative;
    margin: 25px 0 10px;
    padding-left: 13px;
    color: var(--rn-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.rn-subheading:first-of-type {
    margin-top: 0;
}

.rn-subheading::before {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: var(--rn-primary);
    content: "";
}

/* Elenco dei servizi */

.rn-service-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rn-service-links li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eeeeee;
}

.rn-service-links li:last-child {
    border-bottom: 0;
}

.rn-service-links a {
    position: relative;
    display: block;
    padding: 12px 28px 12px 0;
    color: var(--rn-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    transition:
            color 0.2s ease,
            padding-left 0.2s ease;
}

.rn-service-links a::after {
    position: absolute;
    top: 50%;
    right: 4px;
    color: #b7b7b7;
    content: "\2192";
    font-size: 16px;
    transform: translateY(-50%);
    transition:
            color 0.2s ease,
            right 0.2s ease;
}

.rn-service-links a:hover,
.rn-service-links a:focus {
    padding-left: 5px;
    color: var(--rn-primary);
    text-decoration: none;
    outline: none;
}

.rn-service-links a:hover::after,
.rn-service-links a:focus::after {
    right: 0;
    color: var(--rn-primary);
}

.rn-service-links-compact a {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
}

/* Card più corte */

.rn-service-card-small {
    min-height: 260px;
}

/* Call to action */

.rn-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    border-color: var(--rn-dark);
    background:
            linear-gradient(
                    135deg,
                    rgba(255, 255, 255, 0.03),
                    transparent 55%
            ),
            var(--rn-dark);
    color: var(--rn-surface);
}

.rn-contact-card::after {
    position: absolute;
    right: -55px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border: 25px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    content: "";
}

.rn-contact-card .rn-card-label {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.rn-contact-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    color: var(--rn-surface);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
}

.rn-contact-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.7;
}

.rn-contact-button {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    padding: 11px 22px;
    border: 1px solid var(--rn-primary);
    border-radius: 2px;
    background: var(--rn-primary);
    color: var(--rn-surface) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
            background 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.rn-contact-button span {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.rn-contact-button:hover,
.rn-contact-button:focus {
    border-color: var(--rn-primary-dark);
    background: var(--rn-primary-dark);
    color: var(--rn-surface);
    transform: translateY(-2px);
}

.rn-contact-button:hover span,
.rn-contact-button:focus span {
    transform: translateX(4px);
}

/* Accessibilità tastiera */

.rn-service-links a:focus-visible,
.rn-contact-button:focus-visible,
.rn-brand-category-link:focus-visible,
.rn-primary-button:focus-visible,
.rn-brand-link-card:focus-visible,
.rn-brand-logo-card:focus-visible {
    outline: 3px solid rgb(66 181 116 / 0.28);
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 991px) {
    .rn-services-header h1 {
        font-size: 34px;
    }

    .rn-service-card-small {
        min-height: 100%;
    }
}

/* Smartphone */

@media (max-width: 767px) {
    .rn-services-header h1 {
        margin-top: 8px;
        font-size: 29px;
    }

    .rn-services-header p {
        font-size: 15px;
        line-height: 1.65;
    }

    .rn-services-grid > [class*="col-"] {
        margin-bottom: 20px;
    }

    .rn-service-card,
    .rn-contact-card {
        padding: 24px 20px;
    }

    .rn-card-heading {
        min-height: 0;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .rn-card-number {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        margin-right: 13px;
        font-size: 12px;
    }

    .rn-card-heading h2 {
        font-size: 19px;
    }

    .rn-service-links a {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .rn-service-card:hover {
        transform: none;
    }
}

/* Riduzione delle animazioni */

@media (prefers-reduced-motion: reduce) {
    .rn-service-card,
    .rn-service-card::before,
    .rn-service-links a,
    .rn-service-links a::after,
    .rn-contact-button,
    .rn-contact-button span {
        transition: none;
    }
}
