/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --bg-primary: #F7F2EB;       /* Warm ivory/cream background */
    --bg-secondary: #EFE7DE;     /* Slightly darker warm ivory for cards/accents */
    --bg-dark-accent: #19150C;   /* Dark marble/stone anthracite color */
    --text-primary: #1C1814;     /* Deep charcoal/black */
    --text-secondary: #5C554E;   /* Muted charcoal for paragraphs */
    --accent-gold: #A77C42;      /* Golden bronze accent */
    --accent-gold-light: #D5C0A5;/* Light gold */
    --accent-gold-dark: #7B5C30; /* Deep gold */
    --border-color: rgba(167, 124, 66, 0.15); /* Muted gold border */
    
    /* Fonts */
    --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    --font-sans: 'Inter', 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    /* Layout */
    --column-width: 145px;
    --max-content-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   GLOBAL RESET & STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    /* Soft radial gradient to simulate window lighting from the top-right */
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(254, 251, 246, 0.9) 0%, rgba(243, 234, 224, 0.9) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.012'/%3E%3C/svg%3E");
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Soft shadow overlay to simulate window light casting shadow */
@keyframes shadowMovement {
    0% { transform: translate(0, 0); opacity: 0.95; }
    50% { transform: translate(4px, 6px); opacity: 1; }
    100% { transform: translate(0, 0); opacity: 0.95; }
}

.shadow-overlay {
    position: fixed;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: linear-gradient(135deg, rgba(0,0,0,0) 60%, rgba(25, 21, 12, 0.04) 100%);
    pointer-events: none;
    z-index: 5;
    animation: shadowMovement 25s ease-in-out infinite;
}

/* ==========================================================================
   SIDEBAR COLUMNS
   ========================================================================== */
.column-frame {
    position: fixed;
    top: 0;
    width: var(--column-width);
    height: 100vh;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

.column-left {
    left: 0;
    border-right: 1px solid rgba(167, 124, 66, 0.06);
}

.column-right {
    right: 0;
    border-left: 1px solid rgba(167, 124, 66, 0.06);
}

.column-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.3;
}

/* Engraved column letters overlay */
.column-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 102;
    letter-spacing: 0.05em;
    opacity: 0.07;
    color: var(--accent-gold);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: var(--column-width);
    right: var(--column-width);
    height: var(--header-height);
    background-color: rgba(247, 242, 235, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(167, 124, 66, 0.08);
    z-index: 90;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--max-content-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
    border: 1px solid var(--accent-gold);
    padding: 0.2rem 0.6rem;
    transition: all 0.3s ease;
}

.logo a:hover {
    background-color: var(--bg-dark-accent);
    color: var(--bg-secondary);
}

.nav-menu {
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.12em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--bg-dark-accent);
    color: var(--bg-secondary);
    border: 1px solid var(--bg-dark-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-dark-accent);
    color: var(--accent-gold-light);
    border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark-accent);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn .arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.content-wrapper {
    margin-left: var(--column-width);
    margin-right: var(--column-width);
    padding-top: var(--header-height);
}

.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-container {
    max-width: 960px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.title-line {
    width: 60px;
    height: 1px;
    background-color: var(--accent-gold);
    margin: 1.5rem auto 0;
    position: relative;
}

.title-line::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-primary);
    padding: 0 0.5rem;
    color: var(--accent-gold);
    font-size: 0.6rem;
}

.light-accent-bg {
    background-color: var(--bg-secondary);
}

.dark-accent-bg {
    background-color: #383127; /* Lightened from #19150C for better text readability */
    color: var(--bg-primary);
}

.dark-accent-bg .section-title {
    color: var(--bg-primary);
}

.dark-accent-bg .section-tag {
    color: var(--accent-gold-light);
}

.dark-accent-bg .title-line::after {
    background-color: #383127; /* Matches the new lighter background */
    color: var(--accent-gold-light);
}

/* Readability overrides for the dark background section */
.dark-accent-bg .layout-text p {
    color: #FFFFFF !important; /* Force pure white for absolute readability */
}

.dark-accent-bg .lead-text {
    color: #F3E5D8 !important; /* Force bright warm cream-gold for high contrast */
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 3rem 4rem;
}

.hero-content {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title-prefix {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.2rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-separator {
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, var(--accent-gold), transparent);
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-separator::after {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    background-color: var(--accent-gold);
    transform: rotate(45deg);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-paragraph {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-image-container {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.05));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
}

/* ==========================================================================
   VALUES SECTION
   ========================================================================== */
.values-section {
    border-top: 1px solid var(--border-color);
    background-color: rgba(239, 231, 222, 0.3);
}

.values-grid {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--border-color);
}

.value-card {
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
    background-color: transparent;
}

.value-card:hover {
    background-color: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transform: translateY(-5px);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.value-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background-color: var(--accent-gold);
}

.value-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
}

/* ==========================================================================
   DETAILS SECTIONS & GRID LAYOUTS
   ========================================================================== */
.layout-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 4rem;
    align-items: center;
}

.layout-grid.reverse {
    grid-template-columns: 0.88fr 1.12fr;
}

.lead-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.layout-text p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.layout-text p:last-child {
    margin-bottom: 0;
}

.layout-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Chi Sono - Special Quote Card */
.quote-card-alt {
    background-color: var(--bg-secondary);
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    max-width: 380px;
    box-shadow: 10px 10px 0px rgba(167, 124, 66, 0.05);
}

.gold-quote-mark {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: rgba(167, 124, 66, 0.15);
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.quote-card-alt p {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

/* Il mio approccio - Tree Frame */
.circular-tree-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    padding: 10px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.jung-quote {
    margin-top: 2.5rem;
    padding-left: 2rem;
    border-left: 2px solid var(--accent-gold);
}

.jung-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--bg-primary) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4;
}

.jung-quote cite {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold-light);
    display: block;
}

/* ==========================================================================
   A CHI MI RIVOLGO SECTION
   ========================================================================== */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.audience-card {
    background-color: var(--bg-secondary);
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.4s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(167, 124, 66, 0.05);
    background-color: #ffffff;
}

.card-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: rgba(167, 124, 66, 0.25);
    font-weight: 300;
}

.audience-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.audience-card p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.audience-footer-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    text-align: center;
    color: var(--text-primary);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   AMBITI DI INTERVENTO
   ========================================================================== */
.intervention-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.intervention-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.intervention-icon {
    color: var(--accent-gold);
    font-size: 1.2rem;
    line-height: 1.2;
}

.intervention-content h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.intervention-content p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.custom-note {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.custom-note p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent-gold);
}

/* ==========================================================================
   TIMELINE (Percorso Professionale)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 1px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 16px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    border: 2px solid var(--bg-primary);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--text-primary);
    transform: scale(1.3);
}

.timeline-content {
    background-color: var(--bg-secondary);
    padding: 2.2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.01);
}

.timeline-date {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.6rem;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.timeline-institution {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.timeline-content p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER & CONTACTS
   ========================================================================== */
.main-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 6rem 4rem 2rem;
}

.footer-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-symbol {
    font-family: var(--font-serif);
    font-size: 6rem;
    color: rgba(167, 124, 66, 0.12);
    line-height: 1;
    margin-bottom: -2rem;
}

.main-quote {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.quote-author {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
}

.footer-contact-block {
    background-color: var(--bg-secondary);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.mail-icon-wrapper {
    width: 64px;
    height: 64px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.mail-icon {
    width: 100%;
    height: 100%;
}

.contact-subtext {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 320px;
}

.contact-links {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(167, 124, 66, 0.1);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-link-item:hover {
    border-bottom-color: var(--accent-gold);
}

.contact-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.contact-value {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-contact {
    width: 100%;
    text-align: center;
}

.footer-bottom {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(167, 124, 66, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   ANIMATIONS (Scroll-triggered)
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Large screens: framing columns are fully visible */
@media (min-width: 1300px) {
    /* No adjustments needed, layouts are based on standard variable margins */
}

/* Medium screens (Laptops / Small Desktops) */
@media (max-width: 1299px) {
    :root {
        --column-width: 100px; /* Make columns narrower */
    }
    
    .hero-section {
        padding: 3rem 2rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
}

/* Tablets (landscape and portrait) */
@media (max-width: 1024px) {
    :root {
        --column-width: 0px; /* Hide the fixed columns completely */
    }
    
    .column-frame {
        display: none; /* Hide columns graphic */
    }
    
    .main-header {
        left: 0;
        right: 0;
    }
    
    .content-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-separator {
        margin: 0 auto 1.5rem;
        background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    }
    
    .hero-separator::after {
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
        top: 50%;
    }
    
    .hero-image-container {
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        border-left: none;
    }
    
    .value-card {
        border-left: 1px solid var(--border-color);
    }
    
    .layout-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }
    
    .layout-grid.reverse {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .quote-card-alt {
        max-width: 100%;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .intervention-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* Mobile Devices (Smartphones) */
@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2.5rem 1.5rem;
    }
    
    .value-card:last-child {
        border-bottom: none;
    }
    
    /* Navigation Hamburger Menu */
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
        z-index: 99;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    /* Mobile Hamburger Transform */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: 6px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .main-footer {
        padding: 4rem 1.5rem 2rem;
    }
    
    .main-quote {
        font-size: 1.7rem;
    }
    
    .footer-contact-block {
        padding: 2rem 1.5rem;
    }
}
