/* 
   Global Variables & Reset 
   Theme: Classic Legal, Ancient Study, Wood & Paper
*/
:root {
    /* Palette: Wood, Leather, Parchment, Shadow */
    --bg-dark: #120C09;
    /* Deep espresso/wood shadow */
    --bg-wood: #2C1E16;
    /* Dark mahogany */
    --bg-paper: #1a1614;
    /* Slightly lighter warm dark for cards */

    --text-primary: #E6DCC8;
    /* Parchment / Old Paper color */
    --text-secondary: #9C8C74;
    /* Muted warm grey/beige */

    --accent: #C19A6B;
    /* Antique Gold / Bronze */
    --accent-dark: #8B653E;
    /* Darker bronze for borders */

    --font-heading: 'Playfair Display', serif;
    /* Classic Serif */
    --font-body: 'Inter', sans-serif;
    /* Clean Sans for readability, or consider a Serif for body too? Keeping Inter for readability against texture */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --container-width: 1100px;
    --border-radius: 2px;
    /* Traditional, sharp corners */
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.eyebrow,
blockquote {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 
   Typography Utilities 
*/
.text-center {
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
    display: block;
    opacity: 0.9;
}

/* 
   Header 
*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    background: linear-gradient(to bottom, rgba(18, 12, 9, 0.95), rgba(18, 12, 9, 0.8));
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(193, 154, 107, 0.1);
}

.site-header.scrolled {
    padding: var(--spacing-sm) 0;
    background: rgba(18, 12, 9, 0.98);
    border-bottom: 1px solid rgba(193, 154, 107, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.main-nav a:hover {
    color: var(--accent);
}

.btn-nav {
    color: var(--text-primary) !important;
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: var(--accent);
    color: var(--bg-dark) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 1px;
    background-color: var(--accent);
}

/* 
   Hero Section 
*/
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero Background Image Integration */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg_office.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    /* Darken the image significantly */
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay for readability */
    background: linear-gradient(to bottom, rgba(18, 12, 9, 0.5) 0%, rgba(18, 12, 9, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-divider {
    width: 40px;
    height: 1px;
    background-color: var(--accent);
    margin-bottom: var(--spacing-md);
}

.hero-text {
    font-size: 1.25rem;
    color: #d1c7b7;
    /* Slightly brighter for hero readability */
    font-style: italic;
    font-family: var(--font-heading);
}

/* 
   Sections General 
*/
section {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(193, 154, 107, 0.05);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--accent);
    letter-spacing: 0.02em;
}

.section-dark {
    background-color: var(--bg-dark);
}

/* 
   Bio Section 
*/
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.col-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1.05rem;
    text-align: justify;
}

.col-text strong {
    color: var(--text-primary);
    font-weight: 400;
    border-bottom: 1px solid var(--accent-dark);
}

.visual-box {
    width: 100%;
    height: 500px;
    background-image: url('portrait.jpg');
    background-size: cover;
    background-position: top center;
    /* Focus on face */
    filter: grayscale(100%) contrast(1.1);
    /* Enhance B&W look to match theme */
    border: 1px solid rgba(193, 154, 107, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    opacity: 0.8;
}

/* 
   Quote Divider 
*/
.quote-divider {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--bg-wood);
    border-top: 1px solid var(--accent-dark);
    border-bottom: 1px solid var(--accent-dark);
}

.quote-divider blockquote {
    font-size: 1.75rem;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* 
   Services / Cosa Faccio 
*/
.section-light {
    background-color: var(--bg-paper);
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: transparent;
    padding: var(--spacing-md);
    border: 1px solid rgba(193, 154, 107, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    border-color: var(--accent);
    background: rgba(193, 154, 107, 0.05);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    font-weight: 400;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 
   Method / Come Lavoro 
*/
.method-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.method-intro .lead {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    border-left: 2px solid var(--accent);
    padding-left: var(--spacing-md);
}

.method-intro p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.method-list li {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(193, 154, 107, 0.1);
}

.method-list .marker {
    font-family: var(--font-heading);
    color: var(--accent);
    /* Number accent */
    font-size: 1.5rem;
    /* Larger numbers */
    margin-right: var(--spacing-md);
    min-width: 40px;
    font-style: italic;
}

.method-list .text {
    font-size: 1.1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 
   Press / Trionfi (Archivio Style) 
*/
.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
    max-width: 600px;
}

.press-archive {
    border-top: 1px solid var(--accent);
    /* Strong top border for the archive */
    padding-top: var(--spacing-md);
}

.press-item {
    border-bottom: 1px solid rgba(193, 154, 107, 0.1);
    padding: var(--spacing-md) 0;
    margin: 0;
    transition: background 0.3s;
}

.press-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.press-meta {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.press-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.press-title a {
    color: var(--text-primary);
}

.press-title a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.read-more {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: inline-block;
}

/* 
   Contact / Footer 
*/
.section-footer-contact {
    background-color: var(--bg-dark);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--accent-dark);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.detail-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.detail-item .value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.footer-note {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--accent);
    font-style: italic;
    color: var(--text-secondary);
}

footer {
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 
   Animations 
*/
.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.2, 1, 0.2, 1) forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeIn 1.2s cubic-bezier(0.2, 1, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1.2s cubic-bezier(0.2, 1, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
   Responsive 
*/
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-xl: 4rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .two-col,
    .method-layout {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

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

    .visual-box {
        height: 300px;
        margin-top: var(--spacing-md);
    }
}

/* Hero Logo (Small, Elegant, Circular) */
.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* Ensure it stands out but remains subtle */
    opacity: 0.9;
}

/* Added styles for Hero Emblem and Quotes */
.hero-emblem {
    width: 150px;
    /* Adjust size */
    height: auto;
    margin-bottom: var(--spacing-md);
    /* Filter to blend nicely with dark theme if the image has white background, 
       assuming user image is B&W or close to it. */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}


.bio-quote {
    margin-top: var(--spacing-md);
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent);
    border-left: 2px solid var(--accent);
    padding-left: var(--spacing-sm);
    font-size: 1.1em;
}

/* Green CTA Button */
.btn-cta {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 1rem 2rem;
    background-color: #1B4D3E;
    /* Deep Hunter Green/Emerald - Serious & Elegant */
    color: #e5e5e5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    border: none;
    border-radius: 2px;
    /* Rectangular as requested */
    transition: all 0.3s ease;
    border: 1px solid #2C5E4F;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: #23614F;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 77, 62, 0.4);
    color: white;
}

cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--accent);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
}

/* Floating Discrete CTA ("Colloquio Riservato") */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;

    background-color: var(--bg-dark);
    /* Dark discrete background */
    color: var(--accent);
    /* Gold text */
    border: 1px solid var(--accent);
    /* Gold border */

    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);

    opacity: 0;
    /* Hidden initially, shown via JS scroll */
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    /* Prevent clicks when hidden */
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 6px 25px rgba(193, 154, 107, 0.4);
}

/* Press Header Layout with Painting */
.press-header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.header-text {
    flex: 1;
}

.triumph-image {
    width: 280px;
    /* Slightly larger as requested */
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* Subtle shadow for depth */
    border-radius: 2px;
    /* Straight and frameless */
}

@media (max-width: 768px) {
    .press-header-layout {
        flex-direction: column;
        text-align: center;
    }
}