/* ========================================= ITALICO Premium Redesign: Core CSS & Variables ========================================= */
:root {
    /* Colors - Authentic Italian Espresso Theme based on original */
    --color-bg: #030303; /* Ultimate dark background */
    --color-text: #F0F0F0;
    --color-text-muted: #A0A0A0;
    --color-accent: #E30012; /* Signature Italico Red */
    --color-accent-dark: #b3000e;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-oswald: 'Oswald', sans-serif;
    
    /* Spacing & Effects */
    --max-width: 1400px;
    --transition-slow: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: 0.3s ease;
}

/* ========================================= Reset & Base Styles ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--color-bg); }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    word-break: auto-phrase;
}
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }

/* ========================================= Header ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 1rem 0;
    transition: background-color var(--transition-fast);
}
.header:hover, .header.scrolled {
    background-color: rgba(3, 3, 3, 0.7);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(227, 0, 18, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 50px; width: auto; display: block; filter: drop-shadow(0px 0px 4px rgba(227, 0, 18, 0.3)); }
.global-nav ul { display: flex; gap: 3rem; }
.global-nav a { font-size: 0.85rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; position: relative; padding-bottom: 5px; }
.global-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 1px; background-color: var(--color-accent); transition: width var(--transition-fast); }
.global-nav a:hover::after, .global-nav a.active::after { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    border-radius: 2px;
    gap: 8px;
}
.btn-outline-accent { border: 1px solid rgba(255,255,255,0.4); color: #fff; position: relative; overflow: hidden; backdrop-filter: blur(5px); }
.btn-outline-accent::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s ease;
}
.btn-outline-accent:hover { border-color: var(--color-accent); color: #fff; box-shadow: 0 0 20px rgba(227, 0, 18, 0.4); }
.btn-outline-accent:hover::before { left: 100%; }

.btn-accent { background-color: var(--color-accent); color: #fff; border: 1px solid var(--color-accent); font-weight: 500; }
.btn-accent:hover { background-color: var(--color-accent-dark); box-shadow: 0 0 30px rgba(227, 0, 18, 0.3); }

/* Typography */
.serif { font-family: var(--font-serif); }
.oswald { font-family: var(--font-oswald); }
.accent-title { color: var(--color-accent); font-family: var(--font-oswald); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem; }

/* Hero Section */
.hero { height: 100vh; min-height: 700px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background-color: var(--color-bg); }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 2rem; }
.hero-title { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 300; line-height: 1.1; margin-bottom: 2rem; color: #fff; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--color-text-muted); font-weight: 300; letter-spacing: 0.2em; line-height: 1.8; }

/* Scrolling Mobile Settings */
@media (max-width: 768px) {
    .header { padding: 0.5rem 0; }
    .global-nav { display: none; }
    .hero-title { font-size: 3rem; }
}

/* Animations Helper */
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 1s var(--transition-slow) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
