/*
Theme Name: Studio Legale Martiniello
Theme URI: https://studiolegalemartiniello.com
Author: Studio Legale Martiniello
Author URI: https://studiolegalemartiniello.com
Description: Tema WordPress professionale per Studio Legale Martiniello - Design ispirato a Marine & Partners
Version: 3.1.11
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: martiniello
Tags: legal, lawyer, studio-legale, professional, business

Studio Legale Martiniello Theme, Copyright 2025
Studio Legale Martiniello Theme is distributed under the terms of the GNU GPL
*/

/*
===========================================
PALETTE COLORI - Marine & Partners Style
===========================================
Blu scuro primario: #1a4d3e
Grigio scuro titoli: #27323d
Grigio testo: #697277
Bianco: #ffffff
Oro accent Studio: #C9A227
*/

/* Single font system */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&display=swap');

/* Font numeri allineato al font unico */
.font-numeri,
.method-number,
.mogc-timeline-num,
.step-number { font-family: 'Raleway', sans-serif !important; font-weight: 700 !important; }

/*
===========================================
GLOBAL RESET & BASE STYLES
===========================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Skip link - accessibilità tastiera */
.skip-link.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 12px 20px;
    background: #1a4d3e;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.skip-link.screen-reader-text:focus {
    left: 0;
    outline: 2px solid #C9A227;
    outline-offset: 2px;
}

/* Focus visible - navigazione da tastiera */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C9A227;
    outline-offset: 2px;
}

:root {
    --space-section-y: clamp(64px, 8vw, 108px);
    --space-section-y-compact: clamp(52px, 6.5vw, 84px);
    --space-content-gap: clamp(20px, 3vw, 40px);
}

body {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 30px;
    color: #697277;
    background-color: #ffffff;
    overflow-x: hidden;
    font-weight: 300;
}

/* Force one coherent font across templates and inline blocks */
body, body * {
    font-family: 'Raleway', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #27323d;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
    margin-bottom: 20px;
    color: #697277;
    line-height: 30px;
    text-align: justify;
}

a {
    color: #1a4d3e;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #133029;
}

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

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
    line-height: 30px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 50px;
}

.section {
    padding: var(--space-section-y) 0;
}

.section-light {
    background-color: #f9f9f9;
}

.section-dark {
    background-color: #27323d;
    color: #ffffff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #ffffff;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

/*
===========================================
BUTTONS - Marine & Partners Style
===========================================
*/

.btn {
    display: inline-block;
    padding: 19px 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    border: 2px solid #1a4d3e;
    background-color: transparent;
    color: #1a4d3e;
    cursor: pointer;
    transition: all 0.35s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover,
.btn-primary:hover,
.btn-white:hover,
.btn-gold:hover {
    background-color: #ffffff;
    color: #1a4d3e;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #1a4d3e;
    color: #ffffff;
    border-color: #1a4d3e;
}

.btn-white {
    border-color: #ffffff;
    color: #ffffff;
}

.btn-gold {
    border-color: #C9A227;
    color: #C9A227;
}

/*
===========================================
HEADER & NAVIGATION - Marine & Partners Style
===========================================
*/

.site-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    max-height: 77.4px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
}

.site-logo img {
    height: 60px;
    width: auto;
    max-width: 272px;
    transition: opacity 0.3s ease;
}

.site-logo img:hover {
    opacity: 0.8;
}

.main-navigation {
    display: flex;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #27323d;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.main-navigation a:hover {
    color: #1a4d3e;
}

.main-navigation .current-menu-item > a {
    color: #1a4d3e;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #27323d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #1a4d3e;
}

/*
===========================================
HERO SECTION - Fullscreen Style
===========================================
*/

.hero-section {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.5;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/*
===========================================
CONTENT SECTIONS
===========================================
*/

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 28px;
    color: #27323d;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-title.light h2 {
    color: #ffffff;
}

.section-title p {
    font-size: 16px;
    color: #697277;
    max-width: 800px;
    margin: 0 auto;
    line-height: 30px;
}

.section-title.light p {
    color: rgba(255, 255, 255, 0.85);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.service-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    border-left-color: #1a4d3e;
    transform: translateX(5px);
}

.service-card h3 {
    color: #27323d;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.service-card h3:hover {
    color: #1a4d3e;
}

.service-card h4 {
    color: #1a4d3e;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: #697277;
    line-height: 30px;
    font-size: 16px;
    text-align: justify;
}

.service-card ul {
    color: #697277;
    line-height: 30px;
    margin-top: 15px;
}

.service-card ul li {
    margin-bottom: 8px;
}

/*
===========================================
FOOTER - Marine & Partners Style
===========================================
*/

.site-footer {
    background-color: #133029;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: #909aa3;
    font-size: 14px;
    line-height: 28px;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #C9A227;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #909aa3;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #C9A227;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #909aa3;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
    color: #909aa3;
}

.footer-bottom a {
    color: #909aa3;
}

.footer-bottom a:hover {
    color: #C9A227;
}

/*
===========================================
CONTACT FORM
===========================================
*/

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #27323d;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
    color: #27323d;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a4d3e;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: #697277;
    line-height: 24px;
    font-weight: 300;
}

.form-checkbox label a {
    color: #1a4d3e;
}

/*
===========================================
BLOG
===========================================
*/

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card-content {
    padding: 30px;
    background-color: #ffffff;
    color: #697277;
}

.blog-card-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #27323d;
}

.blog-card-title a {
    color: #27323d !important;
}

.blog-card-title a:hover {
    color: #1a4d3e;
}

.blog-card-meta {
    font-size: 14px;
    color: #909aa3;
    margin-bottom: 15px;
}

.blog-card-meta a {
    color: #1a4d3e;
    font-weight: 600;
    text-decoration: none;
}

.blog-card-meta a:hover {
    color: #133029;
    text-decoration: underline;
}

.blog-card-excerpt {
    color: #697277 !important;
    line-height: 30px;
    text-align: justify;
}

.blog-card-excerpt p {
    color: #697277 !important;
}

.blog-card-link {
    display: inline-block;
    margin-top: 8px;
    color: #1a4d3e;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.blog-card-link:hover {
    color: #133029;
}

.blog-hero {
    min-height: 360px;
    background-image: linear-gradient(rgba(19, 48, 41, 0.7), rgba(19, 48, 41, 0.72)), url('assets/images/hero-homepage-new.jpg');
    background-position: center;
    background-size: cover;
}

.blog-hero .hero-description {
    max-width: 850px;
}

/* Singolo articolo: fascia titolo su sfondo chiaro (nessuna immagine obbligatoria, titolo sempre leggibile) */
.single-article-hero {
    background: linear-gradient(180deg, #f2f6f4 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(19, 48, 41, 0.08);
    padding: clamp(130px, 16vw, 170px) 0 clamp(28px, 4vw, 44px);
    text-align: center;
}

.single-article-hero-inner {
    max-width: 920px;
    margin: 0 auto;
}

.single-post-eyebrow {
    color: #C9A227;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.single-article-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.35rem, 3.8vw, 2.15rem);
    font-weight: 700;
    line-height: 1.35;
    color: #27323d;
    margin: 0 auto 18px;
    max-width: 56rem;
    text-shadow: none;
}

.single-post-meta-line {
    color: #697277;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
}

.single-post-meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C9A227;
    flex-shrink: 0;
}

.single-article-wrap {
    max-width: 980px;
}

.single-article-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(11, 30, 26, 0.08);
    overflow: hidden;
}

.single-article-cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.single-article-content {
    padding: clamp(28px, 4vw, 52px);
}

.single-article-content p,
.single-article-content li {
    font-size: 1.03rem;
    line-height: 1.9;
}

.single-article-content h2,
.single-article-content h3,
.single-article-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.single-article-footer {
    border-top: 1px solid #e7ece9;
    padding: 20px clamp(28px, 4vw, 52px) 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.single-article-tax {
    margin: 0;
    font-size: 0.95rem;
}

.single-article-tax a {
    text-decoration: underline;
}

.single-article-nav {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.single-article-nav-item a {
    display: block;
    padding: 16px 18px;
    background: #f7faf8;
    border: 1px solid #e3ebe7;
    border-radius: 8px;
    color: #1a4d3e;
    font-weight: 600;
    min-height: 100%;
}

.single-article-nav-item.next {
    text-align: right;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    margin: 0 4px;
    border: 1px solid #d7dfda;
    border-radius: 4px;
    color: #1a4d3e;
    font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #1a4d3e;
    color: #ffffff;
    border-color: #1a4d3e;
}

/*
===========================================
SUB-PAGE ELEMENTS
===========================================
*/

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.step-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #1a4d3e;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #C9A227;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
}

/*
===========================================
RESPONSIVE
===========================================
*/

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .header-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 992px) {
    .pillars-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .pillars-grid > div {
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid #e8e8e8;
    }

    .pillars-grid > div:last-child {
        border-bottom: none;
    }

    .steps-connector {
        display: none !important;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section {
        padding: 60px 0;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 26px; }

    /* Override inline grid layouts for tablets */
    .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }

    /* Reduce inline section padding for tablets */
    .responsive-section {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    /* Override ALL inline grids with minmax for tablets */
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Hero text padding on tablet */
    div[style*="padding: 0 50px"] {
        padding: 0 30px !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        padding: 10px 0 !important;
        border-radius: 8px;
    }

    .main-navigation.active {
        display: block !important;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-navigation li {
        border-bottom: 1px solid #e8e8e8 !important;
    }

    .main-navigation li:last-child {
        border-bottom: none !important;
    }

    /* FORCE green text on ALL mobile menu links */
    .main-navigation a,
    .main-navigation .menu a,
    .main-navigation .menu > li > a,
    .main-navigation ul > li > a,
    .main-navigation li a,
    nav.main-navigation a,
    nav.main-navigation .menu > li > a {
        display: block !important;
        padding: 15px 20px !important;
        color: #1a4d3e !important;
        font-weight: 500 !important;
        font-size: 15px !important;
        text-decoration: none !important;
    }

    .main-navigation a:hover,
    .main-navigation a:active,
    nav.main-navigation a:hover {
        color: #133029 !important;
        background: #f8f9fa !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        min-height: 300px;
    }

    .single-post-meta-line {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .single-article-nav {
        grid-template-columns: 1fr;
    }

    .single-article-nav-item.next {
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Override ALL inline grid layouts for mobile */
    .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Override ALL inline grids with minmax for mobile */
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Override inline section padding for mobile */
    .responsive-section {
        padding: 60px 20px !important;
    }

    /* Hero text padding on mobile */
    div[style*="padding: 0 50px"] {
        padding: 0 20px !important;
    }

    div[style*="padding: 0 40px"] {
        padding: 0 20px !important;
    }

    /* Premium cards responsive */
    .premium-card {
        padding: 35px 25px !important;
    }

    /* Card padding on mobile */
    div[style*="padding: 40px 35px"] {
        padding: 30px 20px !important;
    }

    /* CTA bar above footer */
    .cta-bar {
        padding: 25px 20px !important;
    }

    .cta-bar-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    /* Method steps wrap nicely and CENTER on mobile */
    .method-steps-row {
        flex-direction: column !important;
        gap: 40px !important;
        align-items: center !important;
    }

    .method-step {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
    }

    .method-line {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }

    .btn {
        padding: 15px 25px;
        font-size: 14px;
    }

    .hero-content {
        padding: 30px 15px;
    }

    .service-card {
        padding: 25px 20px;
    }

    /* Override inline section padding for small phones */
    .responsive-section {
        padding: 40px 15px !important;
    }

    /* Hero text padding on small phones */
    div[style*="padding: 0 50px"],
    div[style*="padding: 0 40px"],
    div[style*="padding: 0 30px"] {
        padding: 0 15px !important;
    }

    /* Premium cards tighter on small screens */
    .premium-card {
        padding: 30px 20px !important;
    }

    .premium-card h3 {
        font-size: 1.3rem !important;
    }

    /* Card padding tighter */
    div[style*="padding: 40px 35px"],
    div[style*="padding: 40px"] {
        padding: 25px 18px !important;
    }

    /* WhatsApp button smaller on mobile */
    a[href*="wa.me"] {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        left: 20px !important;
    }

    a[href*="wa.me"] svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Button full width on small screens */
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Accordion adjustments */
    .accordion-header {
        padding: 20px 0 !important;
    }

    .accordion-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.2rem !important;
    }

    .accordion-title {
        font-size: 1rem !important;
        padding-right: 15px;
    }

    /* Hero section min-height reduce on small phone */
    .hero-section {
        min-height: 70vh !important;
        height: auto !important;
    }
    .hero-section h1 {
        white-space: normal;
    }

    /* Method step numbers smaller */
    .method-number {
        width: 65px !important;
        height: 65px !important;
        font-size: 1.5rem !important;
    }

    /* Keyword dots smaller spacing */
    span[style*="margin: 0 30px"] {
        margin: 0 15px !important;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .hero-description {
        line-height: 1.7;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cta-bar {
        padding: 24px 16px !important;
    }
}

/* Modernized header + reusable helpers */
.top-bar {
    background: #133029;
    padding: 8px 0;
    font-size: 13px;
    color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-bar a,
.top-bar a:visited,
.top-bar a:active {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.top-bar a:hover,
.top-bar a:focus-visible {
    color: #ffffff !important;
}

.top-bar.hidden {
    display: none;
}

.top-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar svg {
    width: 14px;
    height: 14px;
    fill: #C9A227;
    margin-right: 8px;
    vertical-align: middle;
}

.site-header {
    background: rgba(26, 77, 62, 0.7);
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: none;
    box-shadow: none;
}

.site-header.scrolled {
    position: fixed;
    top: 0;
    background: rgba(26, 77, 62, 0.92);
}

.site-logo img {
    max-height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.main-navigation .menu > li > a {
    color: #ffffff;
}

.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current_page_item > a {
    color: #ffffff;
}

.main-navigation .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #27323d;
    min-width: 280px;
    padding: 15px 0;
    list-style: none;
    margin: 0;
}

.main-navigation .has-dropdown:hover .dropdown-menu {
    display: block;
}

.main-navigation .dropdown-menu li a {
    color: #ffffff;
    padding: 12px 25px;
    display: block;
}

.front-hero-content,
.hero-content-wrap {
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
    max-width: min(1100px, 100vw);
    margin: 0 auto;
}

.front-hero-title {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.front-hero-keywords {
    width: 100%;
    justify-content: center;
}

.front-hero-keyword {
    white-space: nowrap;
}

.front-hero-subtitle {
    max-width: min(600px, 100%);
}

.card-pad {
    padding: 40px 35px;
}

.contact-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.contact-alert.success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.contact-alert.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.contact-alert.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.breadcrumbs {
    font-size: 14px;
    margin: 25px 0;
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: #697277;
}

.breadcrumb-bar {
    padding: 10px 20px;
    background: #f5f5f5;
    margin: 0;
}
.breadcrumb-bar .breadcrumbs {
    margin: 0;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .site-header {
        top: 30px;
    }

    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }

    .front-hero-content,
    .hero-content-wrap {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 110px;
    }

    .front-hero-title {
        font-size: clamp(1.9rem, 9.2vw, 2.8rem) !important;
        letter-spacing: 0.8px !important;
        line-height: 1.2 !important;
        margin-bottom: 24px !important;
    }

    .front-hero-keywords {
        row-gap: 10px;
        margin-bottom: 24px !important;
    }

    .front-hero-keyword {
        font-size: 0.92rem !important;
        letter-spacing: 1.6px !important;
    }

    .front-hero-dot {
        margin: 0 12px !important;
    }

    .front-hero-subtitle {
        font-size: 0.98rem !important;
        line-height: 1.65 !important;
    }

    .card-pad {
        padding: 30px 20px !important;
    }
}

@media (max-width: 480px) {
    .site-header {
        top: 27px;
    }

    .site-logo img {
        max-height: 40px;
    }

    .front-hero-content,
    .hero-content-wrap {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 104px;
    }

    .front-hero-title {
        font-size: clamp(1.62rem, 8.8vw, 2.2rem) !important;
        letter-spacing: 0.4px !important;
    }

    .front-hero-keywords {
        row-gap: 8px;
    }

    .front-hero-keyword {
        font-size: 0.82rem !important;
        letter-spacing: 1px !important;
    }

    .front-hero-dot {
        width: 5px !important;
        height: 5px !important;
        margin: 0 8px !important;
    }

    .card-pad {
        padding: 25px 18px !important;
    }
}

/* Global spacing harmonization for all page sections */
.responsive-section {
    padding-top: var(--space-section-y) !important;
    padding-bottom: var(--space-section-y) !important;
}

.section-title {
    margin-bottom: var(--space-content-gap);
}

.section-title h2,
.section-title h1 {
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-title p {
    margin-bottom: 0;
}

/* Premium visual rhythm without changing palette */
.service-card,
.blog-card,
.step-item {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-card:hover,
.blog-card:hover,
.step-item:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.site-header {
    backdrop-filter: blur(6px);
}

.site-footer {
    padding-top: 70px;
    padding-bottom: 34px;
}

.cta-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer refinement: cleaner hierarchy and consistency */
.footer-section h3 {
    color: #ffffff !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px;
}

.footer-content {
    gap: clamp(26px, 3vw, 42px);
    align-items: start;
}

.footer-bottom {
    margin-top: 8px;
}

/* Smartphone menu refinement */
body.menu-open {
    overflow: hidden;
}

.mobile-menu-backdrop {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.28);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 998;
    }

    .mobile-menu-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .main-navigation {
        position: fixed !important;
        top: 108px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        margin-top: 0 !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        border: 1px solid rgba(19, 48, 41, 0.08);
        box-shadow: 0 20px 40px rgba(9, 21, 19, 0.16) !important;
        max-height: calc(100vh - 126px);
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
        z-index: 999;
    }

    .main-navigation.active {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-navigation .menu > li > a,
    .main-navigation ul > li > a {
        padding: 16px 20px !important;
        font-size: 1.04rem !important;
    }

    .main-navigation .menu > li:last-child,
    .main-navigation ul > li:last-child {
        border-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .main-navigation {
        top: 102px !important;
        left: 10px !important;
        right: 10px !important;
        max-height: calc(100vh - 118px);
        border-radius: 12px !important;
    }
}

/* Final mobile tuning: reduce inner-page hero footprint */
@media (max-width: 768px) {
    .hero-section:not(.hero-home) {
        height: 38vh !important;
        min-height: 230px !important;
        max-height: 360px !important;
    }

    .hero-section:not(.hero-home) .hero-content,
    .hero-section:not(.hero-home) .hero-content-wrap {
        padding: 22px 20px !important;
    }

    .hero-section:not(.hero-home) .hero-title,
    .hero-section:not(.hero-home) h1 {
        font-size: clamp(1.7rem, 6.5vw, 2.2rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 480px) {
    .hero-section:not(.hero-home) {
        height: 34vh !important;
        min-height: 205px !important;
        max-height: 310px !important;
    }

    .hero-section:not(.hero-home) .hero-content,
    .hero-section:not(.hero-home) .hero-content-wrap {
        padding: 18px 15px !important;
    }

    .hero-section:not(.hero-home) .hero-title,
    .hero-section:not(.hero-home) h1 {
        font-size: clamp(1.45rem, 6.8vw, 1.95rem) !important;
        margin-bottom: 8px !important;
    }

    .single-article-footer {
        gap: 8px;
    }
}
