/* ====================================
   PORFIRIO HOLDING - LANDING PAGE STYLES
   Sistema scalabile con margini Drake's style
   ==================================== */

/* P22 Underground Font */
@font-face {
    font-family: 'P22Underground';
    font-weight: 400;
    font-style: normal;
    src: url('../fonts/P22_Underground_Book.woff2') format('woff2');
}
@font-face {
    font-family: 'P22Underground';
    font-weight: 600;
    font-style: normal;
    src: url('../fonts/P22_Underground_DemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'P22Underground';
    font-weight: 700;
    font-style: normal;
    src: url('../fonts/P22_Underground_Heavy.woff2') format('woff2');
}

/* Adobe Caslon Font */
@font-face {
    font-family: 'AdobeCaslon';
    font-weight: 400;
    font-style: normal;
    src: url('../fonts/Adobe_Caslon_Pro_Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'AdobeCaslon';
    font-weight: 400;
    font-style: italic;
    src: url('../fonts/Adobe_Caslon_Pro_Italic.woff2') format('woff2');
}
@font-face {
    font-family: 'AdobeCaslon';
    font-weight: 600;
    font-style: normal;
    src: url('../fonts/Adobe_Caslon_Pro_Semibold.woff2') format('woff2');
}

/* ====================================
   CSS VARIABLES - DRAKE'S PALETTE
   ==================================== */
:root {
    /* Colors */
    --ink: hsl(25, 100%, 3%);
    --ivory: hsl(45, 50%, 99%);
    --fog: hsl(45, 35%, 94%);
    --soft-beige: hsl(45, 30%, 90%);
    --tobacco: hsl(25, 50%, 30%);
    --navy: hsl(210, 30%, 15%);
    --green: hsl(158, 80%, 40%);
    --red: hsl(8, 97%, 56%);
    --bordeaux: hsl(358, 65%, 40%);
    --dark-green: hsl(144, 43%, 18%);
    --camel: hsl(35, 45%, 65%);
    --stone: hsl(40, 8%, 61%);
    --muted: hsl(210, 12%, 35%);
    --burnished: hsl(35, 55%, 55%);
    --forest: hsl(150, 100%, 16%);

    /* Sistema scalabile - SAME AS MAGAZINE */
    --scale-multiplier: clamp(1, calc(100vw / 1512px), 3.0);
    --spacing-125: calc(1.25rem * var(--scale-multiplier));
    --spacing-200: calc(2rem * var(--scale-multiplier));
    --spacing-250: calc(2.5rem * var(--scale-multiplier));
    --max-width-1400: calc(1400px * var(--scale-multiplier));
}

/* ====================================
   BASE RESET & TYPOGRAPHY
   ==================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important; /* Drake's style - no rounded corners */
}

/* Avatar exceptions */
[class*="avatar"],
[class*="avatar"] *,
.venture-icon {
    border-radius: 9999px !important;
}

body {
    font-family: 'P22Underground', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--ivory);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'AdobeCaslon', Georgia, serif;
}

h4, h5, h6 {
    font-family: 'P22Underground', sans-serif;
    font-weight: 600;
}

/* ====================================
   BACKGROUND - SIMPLE GRADIENT
   ==================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ivory) 0%, var(--fog) 50%, var(--soft-beige) 100%);
    z-index: -1;
}

/* ====================================
   GLASSMORPHISM STYLES
   ==================================== */
.glass-card {
    background: rgba(254, 254, 254, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    background: rgba(254, 254, 254, 0.8);
    box-shadow: 0 16px 56px 0 rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
    border: 1px solid rgba(20, 204, 133, 0.3);
}

.glass-header {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 3px solid var(--green);
}

.glass-badge {
    background: rgba(20, 204, 133, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 204, 133, 0.4);
    color: var(--dark-green);
    display: inline-block;
}

.glass-badge-soon {
    background: rgba(162, 150, 137, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(162, 150, 137, 0.4);
    color: var(--ink);
    display: inline-block;
}

.glass-button {
    background: rgba(20, 204, 133, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(20, 204, 133, 0.3);
    box-shadow: 0 4px 16px 0 rgba(20, 204, 133, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button:hover {
    background: rgba(20, 204, 133, 0.25);
    border: 1px solid rgba(20, 204, 133, 0.5);
    box-shadow: 0 6px 24px 0 rgba(20, 204, 133, 0.2);
}

/* ====================================
   HEADER - SCALABILE
   ==================================== */
header {
    padding: var(--spacing-125) var(--spacing-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width-1400);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: calc(50px * var(--scale-multiplier));
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.header-motto {
    font-family: 'AdobeCaslon', Georgia, serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: calc(0.875rem * var(--scale-multiplier));
    display: none;
}

@media (min-width: 768px) {
    .header-motto {
        display: block;
    }
}

/* ====================================
   HERO SECTION - SCALABILE
   ==================================== */
.hero {
    margin-top: calc(80px * var(--scale-multiplier));
    min-height: calc(100vh - 80px * var(--scale-multiplier));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(3rem * var(--scale-multiplier)) var(--spacing-125);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: calc(900px * var(--scale-multiplier));
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: calc(140px * var(--scale-multiplier));
    height: auto;
    margin-bottom: calc(2rem * var(--scale-multiplier));
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    animation: floating 3s ease-in-out infinite;
}

.hero h1 {
    font-size: calc(4rem * var(--scale-multiplier));
    font-weight: 600;
    color: var(--forest);
    margin-bottom: calc(1.5rem * var(--scale-multiplier));
    line-height: 1.2;
}

.tagline {
    font-family: 'AdobeCaslon', Georgia, serif;
    font-style: italic;
    font-size: calc(1.75rem * var(--scale-multiplier));
    color: var(--ink);
    margin-bottom: calc(2rem * var(--scale-multiplier));
}

.hero p {
    font-size: calc(1.125rem * var(--scale-multiplier));
    color: var(--muted);
    margin-bottom: calc(3rem * var(--scale-multiplier));
    max-width: calc(700px * var(--scale-multiplier));
    margin-left: auto;
    margin-right: auto;
}

/* ====================================
   VENTURES SECTION - SCALABILE
   ==================================== */
.ventures {
    padding: calc(5rem * var(--scale-multiplier)) var(--spacing-125);
    max-width: var(--max-width-1400);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ventures h2 {
    font-size: calc(3rem * var(--scale-multiplier));
    font-weight: 600;
    color: var(--forest);
    text-align: center;
    margin-bottom: calc(1rem * var(--scale-multiplier));
}

.ventures-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: calc(1.125rem * var(--scale-multiplier));
    margin-bottom: calc(4rem * var(--scale-multiplier));
    max-width: calc(600px * var(--scale-multiplier));
    margin-left: auto;
    margin-right: auto;
}

.venture-card {
    padding: calc(3rem * var(--scale-multiplier));
    margin-bottom: calc(2.5rem * var(--scale-multiplier));
    position: relative;
    overflow: hidden;
}

.venture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--dark-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.venture-card:hover::before {
    transform: scaleX(1);
}

.venture-header {
    display: flex;
    align-items: center;
    margin-bottom: calc(1.5rem * var(--scale-multiplier));
    gap: calc(1rem * var(--scale-multiplier));
}

.venture-icon {
    width: calc(70px * var(--scale-multiplier));
    height: calc(70px * var(--scale-multiplier));
    background: linear-gradient(135deg, rgba(20, 204, 133, 0.2), rgba(26, 61, 44, 0.15));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(2rem * var(--scale-multiplier));
    flex-shrink: 0;
    border: 1px solid rgba(20, 204, 133, 0.3);
}

.venture-card h3 {
    font-size: calc(2rem * var(--scale-multiplier));
    font-weight: 600;
    color: var(--ink);
}

.venture-card .status {
    display: inline-block;
    padding: calc(0.5rem * var(--scale-multiplier)) calc(1rem * var(--scale-multiplier));
    font-size: calc(0.75rem * var(--scale-multiplier));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: calc(1.5rem * var(--scale-multiplier));
}

.venture-card p {
    color: var(--muted);
    margin-bottom: calc(1.5rem * var(--scale-multiplier));
    line-height: 1.8;
    font-size: calc(1.05rem * var(--scale-multiplier));
}

.venture-link {
    display: inline-flex;
    align-items: center;
    gap: calc(0.5rem * var(--scale-multiplier));
    color: var(--dark-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-out;
    padding: calc(0.75rem * var(--scale-multiplier)) calc(1.5rem * var(--scale-multiplier));
}

.venture-link:hover {
    gap: calc(0.75rem * var(--scale-multiplier));
    transform: translateX(4px);
}

.venture-link svg {
    width: calc(16px * var(--scale-multiplier));
    height: calc(16px * var(--scale-multiplier));
}

/* ====================================
   FOOTER - SCALABILE
   ==================================== */
footer {
    background: rgba(26, 61, 44, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--ivory);
    padding: calc(3rem * var(--scale-multiplier)) var(--spacing-125) calc(2rem * var(--scale-multiplier));
    margin-top: calc(5rem * var(--scale-multiplier));
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--max-width-1400);
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    height: calc(60px * var(--scale-multiplier));
    margin-bottom: calc(1.5rem * var(--scale-multiplier));
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

footer p {
    color: hsl(40, 20%, 75%);
    font-size: calc(0.875rem * var(--scale-multiplier));
    margin-bottom: calc(0.5rem * var(--scale-multiplier));
}

.footer-motto {
    font-family: 'AdobeCaslon', Georgia, serif;
    font-style: italic;
    color: hsl(40, 20%, 85%);
    margin-top: calc(1.5rem * var(--scale-multiplier));
    font-size: calc(1rem * var(--scale-multiplier));
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    animation: scaleIn 0.8s ease-out;
}

.venture-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.venture-card:nth-child(1) { animation-delay: 0.1s; }
.venture-card:nth-child(2) { animation-delay: 0.2s; }
.venture-card:nth-child(3) { animation-delay: 0.3s; }

/* ====================================
   RESPONSIVE - MOBILE
   ==================================== */
@media (max-width: 767px) {
    /* Mobile SEMPRE fisso - non scala */
    :root {
        --scale-multiplier: 1;
        --spacing-125: 1.25rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .ventures h2 {
        font-size: 2rem;
    }

    .venture-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet - scala moderatamente */
    :root {
        --scale-multiplier: 1;
        --spacing-200: 2rem;
    }
}
