/*
Theme Name: Marco Milesi
Theme URI: https://marcomilesi.com
Author: Marco Milesi
Author URI: https://marcomilesi.com
Description: A modern, responsive WordPress theme for digital consultant portfolio
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marcomilesi
Domain Path: /languages
*/

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS & CUSTOM PROPERTIES
═══════════════════════════════════════════════════ */

:root {
    --bg: #fdfdfd;
    --surface: #ffffff;
    --surface-accent: #f8fafc;
    --text-main: #020617;
    --text-muted: #64748b;
    --header-height: 64px;
    --admin-bar-height: 0px;
    --header-offset: calc(var(--header-height) + var(--admin-bar-height));
    --content-width: 1200px;
    --page-gutter: clamp(16px, 4vw, 40px);
    
    --p-blue: #0284c7;
    --p-blue-dark: #075985;
    --p-yellow: #fde047;
    --p-indigo: #6366f1;
    
    --border: rgba(15, 23, 42, 0.08);
    
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE STYLES
═══════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    padding-top: var(--header-offset);
}

body.menu-open {
    overflow: hidden;
}

body.admin-bar {
    --admin-bar-height: 46px;
}

h1, h2, h3, h4, h5, h6,
.heading {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease-in-out;
}

a:hover {
    color: var(--p-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════ */

.wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}

.site-main {
    display: block;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    clip: auto;
    width: auto;
    height: auto;
    margin: 16px;
    padding: 12px 16px;
    background: var(--surface);
    color: var(--text-main);
    border-radius: var(--r-sm);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
    z-index: 2000;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 64px 0;
}

.sec {
    padding: 84px 0;
}

.sec-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--p-indigo);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sec-title {
    font-size: 28px;
    margin-bottom: 40px;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    right: 0;
    min-height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-nav {
    width: 100%;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: var(--header-height);
    gap: 12px;
    padding: 0 var(--page-gutter);
    position: relative;
}

.nav-brand {
    flex: 0 0 auto;
}

.nav-main {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--page-gutter);
    right: var(--page-gutter);
    display: none;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.12);
    z-index: 1001;
}

.site-header.menu-open .nav-main {
    display: block;
}

.site-header.menu-open .nav-toggle {
    background: var(--surface-accent);
    border-color: var(--p-blue);
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo-link img {
    width: auto;
    max-height: 42px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.logo span {
    color: var(--p-blue);
}

.nav-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    width: 18px;
    height: 2px;
    background: var(--text-main);
    border-radius: 99px;
    display: block;
    content: '';
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
    position: relative;
}

.nav-toggle span::before {
    position: absolute;
    top: -6px;
    left: 0;
}

.nav-toggle span::after {
    position: absolute;
    top: 6px;
    left: 0;
}

.site-header.menu-open .nav-toggle span {
    background: transparent;
}

.site-header.menu-open .nav-toggle span::before {
    transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a,
.nav-links .current_page_item > a,
.nav-links .current_page_parent > a {
    color: var(--p-blue);
}

.btn-hire {
    padding: 12px 16px;
    border: none;
    outline: none;
    border-radius: var(--r-sm);
    background: var(--p-blue);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-hire-mobile {
    margin-top: 14px;
}

.btn-hire-desktop {
    display: none;
    width: auto;
    margin-left: auto;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .btn-hire {
        display: inline-flex;
        width: auto;
        padding: 8px 16px;
        font-size: 12px;
    }
}

.btn-hire:hover {
    background: var(--p-blue-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.24);
}

.btn-hire:focus-visible {
    color: #fff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.btn-translate {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.btn-translate:hover {
    color: var(--p-blue);
    border-color: var(--p-blue);
}

.btn-translate-desktop {
    display: none !important;
}

.btn-translate-mobile {
    display: inline-flex;
    margin-left: 8px;
}

@media (min-width: 769px) {
    .btn-translate-desktop {
        display: inline-flex !important;
    }

    .btn-translate-mobile {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════ */

.hero {
    padding: 80px 0 64px;
}

.hero-content {
    display: grid;
    gap: 40px;
    align-items: flex-start;
}

.hero-highlight {
    color: var(--p-blue);
}

.hero-content:has(.hero-image) {
    grid-template-columns: 1.8fr 1fr;
}

.hero-content:not(:has(.hero-image)) {
    grid-template-columns: 1fr;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-image {
    position: sticky;
    top: calc(var(--header-offset) + 20px);
    width: 100%;
    max-width: 280px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.06);
}

.hero-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--p-yellow);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-h1 {
    font-size: clamp(30px, 8vw, 64px);
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 900px;
}

.hero-content {
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 24px;
}

.hero-excerpt {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.page-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-meta-item strong {
    font-weight: 700;
    color: var(--text-main);
}

.page-meta-item time {
    font-weight: 500;
}

.page-related {
    margin-top: 22px;
}

.yoast-breadcrumbs {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface-accent);
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}

.yoast-breadcrumbs > span {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.yoast-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 2px 0;
}

.yoast-breadcrumbs a:hover {
    color: var(--p-blue);
}

.yoast-breadcrumbs .breadcrumb_last {
    color: var(--text-main);
    font-weight: 700;
}

.page-related-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.page-related-chip {
    position: relative;
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-height: 170px;
    max-width: 420px;
    padding: 28px 52px 28px 24px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.03);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-related-chip:only-child {
    max-width: 520px;
}

.page-related-chip-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    padding-right: 18px;
}

.page-related-chip-excerpt {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.55;
    padding-right: 10px;
}

.page-related-chip-excerpt.is-auto {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-related-chip::after {
    content: '→';
    position: absolute;
    right: 20px;
    bottom: 22px;
    font-size: 18px;
    font-weight: 700;
    color: var(--p-blue);
    opacity: 0.85;
}

.page-related-chip:hover {
    border-color: var(--p-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.page-related-chip:hover .page-related-chip-title {
    color: #111827;
}

.page-related-chip:hover .page-related-chip-excerpt {
    color: #475569;
}

/* ═══════════════════════════════════════════════════
   POST
═══════════════════════════════════════════════════ */

.post-meta-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 13px;
}

.post-category {
    display: inline-block;
    background: var(--p-blue);
    color: #fff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    text-transform: uppercase;
}

.post-date {
    color: var(--text-muted);
    font-weight: 500;
}

.post-article {
    width: 100%;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    max-width: 900px;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 28px;
}

.post-content h3 {
    font-size: 22px;
}

.post-content h4 {
    font-size: 18px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    margin-left: 24px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--p-blue);
    background: var(--surface-accent);
    font-style: italic;
    color: var(--text-muted);
    border-radius: var(--r-sm);
}

.post-content a {
    color: var(--p-blue);
    font-weight: 600;
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--p-blue-dark);
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
    border-radius: var(--r-md);
}

.post-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.post-links a {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--p-blue);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.post-links a:hover {
    border-color: var(--p-blue);
    background: var(--surface-accent);
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-p {
    background: var(--p-blue);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-p:hover {
    background: var(--p-blue-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.24);
}

.btn-s {
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-s:hover {
    border-color: var(--p-blue);
    color: var(--p-blue);
}

/* ═══════════════════════════════════════════════════
   SERVICES CARDS
═══════════════════════════════════════════════════ */

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card-sm {
    padding: 28px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: #fff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-sm:hover {
    border-color: var(--p-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.card-sm i {
    font-size: 28px;
    color: var(--p-blue);
    margin-bottom: 20px;
    display: block;
}

.card-sm h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card-sm p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════ */

.about-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-numeral {
    font-size: 56px;
    font-weight: 800;
    color: var(--p-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.about-numeral-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.about-face-wrap {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--p-yellow);
    margin: 0;
}

.about-face {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-right p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-right p strong {
    color: var(--text-main);
    font-weight: 700;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 32px 0 20px;
}

.about-bottom-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
    align-items: stretch;
}

.about-left-stats {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.about-left-stats .stat-box {
    flex: 1;
    text-align: center;
}

.about-open-source-box {
    margin: 0;
    padding: 18px 20px;
    border-radius: var(--r-md);
    border: 1px solid rgba(2, 84, 199, 0.2);
    background: linear-gradient(135deg, rgba(2, 84, 199, 0.08), rgba(251, 193, 44, 0.1));
}

.about-open-source-box.is-sustainable {
    border-color: rgba(22, 163, 74, 0.4);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(134, 239, 172, 0.28));
}

.about-open-source-box.is-sustainable .about-open-source-title {
    color: #15803d;
}

.about-open-source-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--p-blue);
    margin-bottom: 8px;
}

.about-open-source-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #0f172a;
}

/* ═══════════════════════════════════════════════════
   STATISTICS
═══════════════════════════════════════════════════ */

.stats-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.stats-row-about {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
}

.stat-box {
    padding: 24px;
    background: var(--surface-accent);
    border-radius: var(--r-md);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--p-blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════ */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    font-size: 14px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════════ */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.blog-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.blog-head .sec-title {
    margin-bottom: 0;
}

.blog-head .btn-s {
    margin-left: auto;
    white-space: nowrap;
}

.blog-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: #fff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.blog-card:hover {
    border-color: var(--p-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.blog-card-static {
    pointer-events: none;
}

.blog-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-title-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    flex-grow: 1;
}

.blog-arrow {
    font-size: 18px;
    color: var(--p-blue);
    margin-top: 12px;
}

/* ═══════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

.contact-routes {
    display: grid;
    gap: 20px;
}

.contact-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: #fff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    border-color: var(--p-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.contact-card-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.contact-card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.contact-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--p-blue);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: var(--p-blue-dark);
}

.contact-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 12px;
}

.contact-card-actions a {
    margin-top: 0;
}

.contact-card-actions a + a {
    padding-left: 12px;
    border-left: 1px solid var(--border);
    margin-left: 4px;
}

.btn-whatsapp {
    color: #16a34a !important;
}

.btn-whatsapp:hover {
    color: #15803d !important;
}

.booking-modal .modal-content {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.2);
}

.booking-modal .modal-header {
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
}

.booking-modal .modal-title {
    font-weight: 700;
    color: var(--text-main);
}

.booking-modal .modal-body {
    padding: 0;
    min-height: min(78vh, 820px);
}

.booking-modal-frame {
    width: 100%;
    min-height: min(78vh, 820px);
    border: 0;
    display: block;
    background: #fff;
}

.booking-embed-frame {
    display: block;
    width: 100%;
    height: 1000px;
    border: 0;
    background: #fff;
}

.booking-page-hero {
    flex-shrink: 0;
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--border);
}

.booking-page-hero .hero-h1 {
    font-size: clamp(22px, 3vw, 36px);
    margin-bottom: 8px;
}

.booking-page-hero .hero-desc {
    font-size: 15px;
    margin-bottom: 0;
}

.booking-embed-frame {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    border: 0;
    display: block;
    background: #fff;
}

/* ═══════════════════════════════════════════════════
   ASIDE PAPER
═══════════════════════════════════════════════════ */

.aside-paper {
    padding: 32px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f7 100%);
    border-radius: var(--r-lg);
    border: 1px solid rgba(2, 6, 23, 0.05);
}

.aside-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.aside-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--p-yellow);
    overflow: hidden;
    flex-shrink: 0;
}

.aside-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aside-eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: var(--p-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.aside-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.aside-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.aside-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.aside-list li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.aside-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--p-blue);
    font-weight: 700;
}

.aside-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(2, 6, 23, 0.08);
}

.aside-meta-item span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--p-indigo);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.aside-meta-item {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   ITALIAN FLAG DIVIDER
═══════════════════════════════════════════════════ */

.footer-italy-band {
    height: 12px;
    background: linear-gradient(90deg,
        #009246 0%,
        #009246 33.33%,
        #fff 33.33%,
        #fff 66.66%,
        #ce2b37 66.66%,
        #ce2b37 100%);
    margin: 80px 0 0 0;
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */

.eng-footer {
    background: var(--surface-accent);
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.eng-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 30px;
}

.eng-badge i {
    font-size: 20px;
    color: var(--p-blue);
}

.eng-badge .details {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.albo-link {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.albo-link:hover {
    color: var(--p-blue);
}

.eng-badge .details strong {
    font-size: 13px;
    display: block;
}

.eng-badge .details span {
    font-size: 11px;
    color: var(--text-muted);
}

.ft-cta-text {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
}

.ft-cta-text a {
    color: var(--p-blue);
    border-bottom: 2px solid var(--p-yellow);
    transition: all 0.2s ease;
}

.ft-cta-text a:hover {
    border-color: var(--p-blue);
}

.ft-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.ft-nav h5 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.ft-list {
    list-style: none;
    padding: 0;
}

.ft-list li {
    margin-bottom: 10px;
    font-size: 14px;
}

.ft-list a {
    color: var(--text-main);
}

.ft-list a:hover {
    color: var(--p-blue);
}

.location-box {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.location-box i {
    color: var(--p-blue);
    margin-right: 10px;
}

.ft-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--text-muted);
    flex-direction: column;
}

.ft-bottom p {
    margin: 0;
    flex: 0 0 auto;
}

.socials {
    display: flex;
    gap: 16px;
    margin-left: 0;
}

.socials a {
    font-size: 18px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.socials a:hover {
    color: var(--p-blue);
}

.archive-section {
    padding-top: 72px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

@media (min-width: 783px) {
    body.admin-bar {
        --admin-bar-height: 32px;
    }
}

@media (max-width: 640px) {
    .page-related-chip {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    :root {
        --header-height: 72px;
    }

    .nav-inner {
        gap: 24px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-main {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        display: flex;
        flex: 1 1 auto;
        justify-content: flex-start;
        min-width: 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .nav-links {
        align-items: center;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        margin: 0 auto;
    }

    .btn-hire {
        display: inline-flex;
        align-items: center;
    }

    .btn-hire-mobile {
        display: none;
    }

    .btn-hire-desktop {
        display: inline-flex;
        padding: 8px 16px;
        font-size: 12px;
    }

    .hero {
        padding: 80px 0 64px;
    }

    .hero-h1 {
        font-size: clamp(40px, 5vw, 64px);
    }

    .hero-desc {
        font-size: 18px;
    }

    .grid-cards,
    .blog-grid,
    .gallery-grid,
    .stats-row,
    .aside-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row-about {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .about-bottom-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .footer-grid,
    .contact-grid,
    .about-section {
        gap: 40px;
    }

    .ft-bottom {
        flex-direction: row;
    }

    .socials {
        margin-left: auto;
    }
}

@media (min-width: 1025px) {
    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-section,
    .contact-grid {
        grid-template-columns: 0.72fr 1.28fr;
        gap: 48px;
    }

    .about-face-wrap {
        width: 220px;
        height: 220px;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-row-about {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-bottom-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-grid,
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 80px;
    }

    .ft-nav {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}