/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Oregano:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cabin+Sketch:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ====================== */
/* COLOR PALETTE FOR WEB AGENCY */
/* ====================== */

:root {
    /* Primary Palette (Burgundy) */
    /* Usare per: pulsanti primari, elementi interattivi, intestazioni */
    --primary-100: #F5E8EB;
    --primary-100-rgba: rgba(245, 232, 235, 0.5);

    --primary-200: #EBD0D7;
    --primary-200-rgba: rgba(235, 208, 215, 0.5);

    --primary-300: #D6A2AF;
    --primary-300-rgba: rgba(214, 162, 175, 0.5);

    --primary-400: #C27386;
    --primary-400-rgba: rgba(194, 115, 134, 0.5);

    --primary-500: #991636;
    /* Colore base */
    --primary-500-rgba: rgba(153, 22, 54, 0.5);

    --primary-600: #7A122B;
    --primary-600-rgba: rgba(122, 18, 43, 0.5);

    --primary-700: #5C0D20;
    --primary-700-rgba: rgba(92, 13, 32, 0.5);

    --primary-800: #3D0916;
    --primary-800-rgba: rgba(61, 9, 22, 0.5);

    --primary-900: #1F040B;
    --primary-900-rgba: rgba(31, 4, 11, 0.5);


    /* Secondary Palette (Orange) */
    /* Usare per: pulsanti secondari, call-to-action, punti focali */
    --secondary-100: #FEF5EB;
    --secondary-100-rgba: rgba(254, 245, 235, 0.5);

    --secondary-200: #FDEAD7;
    --secondary-200-rgba: rgba(253, 234, 215, 0.5);

    --secondary-300: #FBD5B0;
    --secondary-300-rgba: rgba(251, 213, 176, 0.5);

    --secondary-400: #F8C188;
    --secondary-400-rgba: rgba(248, 193, 136, 0.5);

    --secondary-500: #F49739;
    /* Colore base */
    --secondary-500-rgba: rgba(244, 151, 57, 0.5);

    --secondary-600: #C3792E;
    --secondary-600-rgba: rgba(195, 121, 46, 0.5);

    --secondary-700: #925B22;
    --secondary-700-rgba: rgba(146, 91, 34, 0.5);

    --secondary-800: #623C17;
    --secondary-800-rgba: rgba(98, 60, 23, 0.5);

    --secondary-900: #311E0B;
    --secondary-900-rgba: rgba(49, 30, 11, 0.5);


    /* Neutral Palette (Grayscale) */
    /* 100-400: Sfondi, spazi bianchi, bordi leggeri */
    --neutral-100: #F9F9F9;
    --neutral-100-rgba: rgba(249, 249, 249, 0.5);

    --neutral-200: #E6E6E6;
    --neutral-200-rgba: rgba(230, 230, 230, 0.5);

    --neutral-300: #D1D1D1;
    --neutral-300-rgba: rgba(209, 209, 209, 0.5);

    --neutral-400: #B0B0B0;
    --neutral-400-rgba: rgba(176, 176, 176, 0.5);

    /* 500-700: Testo secondario, icone, elementi inattivi */
    --neutral-500: #737373;
    /* Colore base */
    --neutral-500-rgba: rgba(115, 115, 115, 0.5);

    --neutral-600: #5A5A5A;
    --neutral-600-rgba: rgba(90, 90, 90, 0.5);

    --neutral-700: #414141;
    --neutral-700-rgba: rgba(65, 65, 65, 0.5);

    /* 800-900: Testo primario, intestazioni, footer */
    --neutral-800: #2D2D2D;
    --neutral-800-rgba: rgba(45, 45, 45, 0.5);

    --neutral-900: #222323;
    /* Colore base */
    --neutral-900-rgba: rgba(34, 35, 35, 0.5);
}


/* ====================== */
/* UTILITY CLASSES */
/* ====================== */

/* Primary Color Utilities */
.primary-text-200 {
    color: var(--primary-200);
}

.primary-bg-500 {
    background-color: var(--primary-500);
}

.primary-text-500 {
    color: var(--primary-500);
}

.primary-border-500 {
    border-color: var(--primary-500);
}

/* Secondary Color Utilities */
.secondary-text-200 {
    color: var(--secondary-200);
}

.secondary-text-300 {
    color: var(--secondary-300);
}

.secondary-text-400 {
    color: var(--secondary-400);
}

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

.secondary-text-500 {
    color: var(--secondary-500);
}

.secondary-border-500 {
    border-color: var(--secondary-500);
}

/* Neutral Color Utilities */
.neutral-text-200 {
    color: var(--neutral-200);
}

.neutral-bg-500 {
    background-color: var(--neutral-500);
}

.neutral-text-500 {
    color: var(--neutral-500);
}

.neutral-border-500 {
    border-color: var(--neutral-500);
}

.neutral-text-600 {
    color: var(--neutral-600);
}

.neutral-text-700 {
    color: var(--neutral-700);
}

.neutral-text-800 {
    color: var(--neutral-800);
}

.neutral-text-900 {
    color: var(--neutral-900);
}

.neutral-bg-600 {
    background-color: var(--neutral-600);
}

.neutral-bg-700 {
    background-color: var(--neutral-700);
}

.neutral-bg-800 {
    background-color: var(--neutral-800);
}

.neutral-bg-900 {
    background-color: var(--neutral-900);
}

/* Text Utilities */
.text-primary {
    color: var(--neutral-900);
}

/* Testo principale */
.text-secondary {
    color: var(--neutral-700);
}

/* Testo secondario */
.text-inactive {
    color: var(--neutral-500);
}

/* Elementi inattivi */

/* Background Utilities */
.bg-light {
    background-color: var(--neutral-100) !important;
}

/* Sfondi chiari */
.bg-dark {
    background-color: var(--neutral-900) !important;
}

/* Sfondi scuri */
.bg-gray {
    background-color: var(--neutral-700) !important;
}

/* Sfondi grigi */
.bg-gray-2 {
    background-color: var(--neutral-600) !important;
}

/* Sfondi grigi */
.bg-gray-3 {
    background-color: var(--neutral-500) !important;
}

/* Sfondi grigi */
.bg-gray-4 {
    background-color: var(--neutral-400) !important;
}

/* Sfondi grigi */
.bg-gray-5 {
    background-color: var(--neutral-300) !important;
}

/* Sfondi grigi */
.bg-gray-6 {
    background-color: var(--neutral-200) !important;
}

/* Sfondi grigi */
.bg-gray-7 {
    background-color: var(--neutral-100) !important;
}

/* Sfondi grigi */


/* Transparent Utilities */
.transparent-primary {
    background-color: var(--primary-500-rgba);
}

.transparent-secondary {
    background-color: var(--secondary-300-rgba);
}

/* ===================== */
/* COMPONENT COLOR THEME */
/* ===================== */



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



html {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;

    background-color: var(--neutral-200);
    color: var(--neutral-700);
}

/* Sections */
.section {
    padding: 4rem 1.5rem;
}

.section.bg-light,
.section.has-background-white-ter,
.section.has-background-light {
    background-color: var(--neutral-100);
    color: var(--neutral-900);
}

/* Hero */
.hero-black,
.hero.is-dark {
    background-color: var(--neutral-900);
    color: var(--neutral-100);
}

/* Boxes & cards */
.box,
.card {
    background-color: var(--neutral-100);
    color: var(--neutral-900);
    border-radius: 8px;
}

/* Buttons */
.button {
    text-decoration: none;
}

.button.is-primary {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
    color: #fff;
    font-weight: 700;
}

.button.is-primary:hover {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

.button.is-link,
.button.is-secondary,
.button.is-warning {
    background-color: var(--secondary-500);
    border-color: var(--secondary-500);
    color: #fff;
}

.button.is-link:hover,
.button.is-secondary:hover,
.button.is-warning:hover {
    background-color: var(--secondary-600);
    border-color: var(--secondary-600);
}

/* Typography links */
a {
    color: var(--secondary-500);
}

a:hover {
    color: var(--secondary-600);
}

/* Headings accent */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-500);
}

/* Utility backgrounds */
.primary-section {
    background-color: var(--primary-500);
    color: var(--neutral-100);
}

.secondary-section {
    background-color: var(--secondary-500);
    color: var(--neutral-900);
}


/* Animations */
.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

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

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

/* Hero Styles */
.hero.is-dark {
    background-color: #1a1a1a;
    color: #f5f5f5;
}


/* Typography */
h1,
h2 {
    font-family: 'Cabin Sketch', sans-serif;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: inherit;
}

h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: inherit;
}

/* Responsive Headings */
h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
}

h2 {
    font-size: clamp(1.65rem, 6vw, 2.8rem);
}

h3 {
    font-size: clamp(1.45rem, 5vw, 2.2rem);
}

h4 {
    font-size: clamp(1.25rem, 4vw, 1.8rem);
}

h5 {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.cit {
    margin-top: 25px;
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.15);
}

.giusto {
    text-align: justify;
    text-justify: inter-word;
    text-wrap: balance;

}


.bivio-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--neutral-50, #f5f5f5);
    padding: 2rem;
    border-radius: 8px;
}

.bivio-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.bivio-toggle .icon {
    transition: transform .3s ease;
}

.bivio-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height .4s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.bivio-column.active .bivio-content {
    max-height: 1200px;
}

.bivio-column.active .bivio-toggle .icon {
    transform: rotate(180deg);
}


.bivio-toggle-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    color: var(--primary-600);
    font-weight: 600;
    font-family: 'Cabin Sketch', sans-serif;
    line-height: 1;
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 0;
    padding-top: 0;
}

.bivio-toggle-title .icon {
    margin-left: auto;
}

.bivio-toggle-title:hover {
    color: var(--primary-700);
}

.bg-pattern-1 {
    background: radial-gradient(circle at top left, transparent 25%, #3D0916 25.5%, #3D0916 36%, transparent 37%, transparent 100%), radial-gradient(circle at bottom right, transparent 34%, #3D0916 34.5%, #3D0916 45.5%, transparent 46%, transparent 100%);
    background-size: 0.5em 0.5em;
    background-color: #5C0D20;
    opacity: 1
}

/* Fullscreen popup overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: #fff;
    color: #000;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    font-size: 1.1rem;
}

.popup-success .popup-box {
    border-top: 6px solid var(--primary-500);
}

.popup-error .popup-box {
    border-top: 6px solid #c0392b;
}

/* Equal-height columns utility */
.equal-height .column>.box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* === Custom bullet icon for lists === */
ul.trk-ul-li {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

ul.trk-ul-li li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
}

ul.trk-ul-li li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background: url('icons/trk-ul-li.svg') no-repeat center/contain;
}

/* Adjust line height for better readability on mobile */
@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.1;
    }
}


/* Animations */
.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

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

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

/* Gears background */
.gears-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.gear-shape {
    position: absolute;
    opacity: 0.6;
    transform-origin: center;
}

.hero-gears {
    background-color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23b40047' fill-opacity='0.4' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0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6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E");
}

/* Fireflies background */
.fireflies-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.firefly {
    position: absolute;
    background: rgba(255, 250, 240, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 8px 3px rgba(255, 255, 255, 0.7);
    animation: firefly-flicker 3s ease-in-out infinite alternate;
}

@keyframes firefly-flicker {
    0% {
        opacity: 0.4;
        box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.25);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px 4px rgba(255, 255, 255, 1);
    }

    100% {
        opacity: 0.4;
        box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.25);
    }
}

.hero-fireflies {
    background-color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M81.28 88H68.413l19.298 19.298L81.28 88zm2.107 0h13.226L90 107.838 83.387 88zm15.334 0h12.866l-19.298 19.298L98.72 88zm-32.927-2.207L73.586 78h32.827l.5.5 7.294 7.293L115.414 87l-24.707 24.707-.707.707L64.586 87l1.207-1.207zm2.62.207L74 80.414 79.586 86H68.414zm16 0L90 80.414 95.586 86H84.414zm16 0L106 80.414 111.586 86h-11.172zm-8-6h11.173L98 85.586 92.414 80zM82 85.586L87.586 80H76.414L82 85.586zM17.414 0L.707 16.707 0 17.414V0h17.414zM4.28 0L0 12.838V0h4.28zm10.306 0L2.288 12.298 6.388 0h8.198zM180 17.414L162.586 0H180v17.414zM165.414 0l12.298 12.298L173.612 0h-8.198zM180 12.838L175.72 0H180v12.838zM0 163h16.413l.5.5 7.294 7.293L25.414 172l-8 8H0v-17zm0 10h6.613l-2.334 7H0v-7zm14.586 7l7-7H8.72l-2.333 7h8.2zM0 165.414L5.586 171H0v-5.586zM10.414 171L16 165.414 21.586 171H10.414zm-8-6h11.172L8 170.586 2.414 165zM180 163h-16.413l-7.794 7.793-1.207 1.207 8 8H180v-17zm-14.586 17l-7-7h12.865l2.333 7h-8.2zM180 173h-6.613l2.334 7H180v-7zm-21.586-2l5.586-5.586 5.586 5.586h-11.172zM180 165.414L174.414 171H180v-5.586zm-8 5.172l5.586-5.586h-11.172l5.586 5.586zM152.933 25.653l1.414 1.414-33.94 33.942-1.416-1.416 33.943-33.94zm1.414 127.28l-1.414 1.414-33.942-33.94 1.416-1.416 33.94 33.943zm-127.28 1.414l-1.414-1.414 33.94-33.942 1.416 1.416-33.943 33.94zm-1.414-127.28l1.414-1.414 33.942 33.94-1.416 1.416-33.94-33.943zM0 85c2.21 0 4 1.79 4 4s-1.79 4-4 4v-8zm180 0c-2.21 0-4 1.79-4 4s1.79 4 4 4v-8zM94 0c0 2.21-1.79 4-4 4s-4-1.79-4-4h8zm0 180c0-2.21-1.79-4-4-4s-4 1.79-4 4h8z' fill='%23b40047' fill-opacity='0.47' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.hero-triangles {
    background-color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6.172L6.172 0h5.656L0 11.828V6.172zm40 5.656L28.172 0h5.656L40 6.172v5.656zM6.172 12l12-12h3.656l12 12h-5.656L20 3.828 11.828 12H6.172zm12 0L20 10.172 21.828 12h-3.656z' fill='%23b40047' fill-opacity='0.3' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Triangles background */
.triangles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.triangle-shape {
    position: absolute;
    opacity: 0.7;
}

/* Hero Section */
.hero-black {
    position: relative;
    background: #000;
    /*radial-gradient(circle, #000000 25%, #121212 100%);*/
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    /* opacity: 0.5; */
    pointer-events: none;
}

.hero-bg .bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Hero Section */
.hero.is-dark {
    background-color: #230001;
    color: #f5f5f5;
}

.back-home-link {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: block;
    z-index: 1100;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.back-home-link.show {
    opacity: 1;
    transform: scale(1);
}


/* Bivio section gradient */
#bivio {
    position: relative;
    overflow: hidden;
}

#bivio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: linear-gradient(180deg, rgba(15, 0, 5, 1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Bivio Column */
.bivio-column {
    background-color: #fafafa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#game-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.cell {
    position: absolute;
    opacity: 0.5;
    will-change: transform;
    background-color: #888;
    /* Gray color */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(136, 136, 136, 0.5);
    filter: grayscale(100%) brightness(1.2);
}

.amoeba {
    position: absolute;
    opacity: 0.4;
    will-change: transform;
    transform: translate(-50%, -50%) scale(0.8);
    filter: grayscale(100%) brightness(1.1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
}

.curve {
    position: absolute;
    stroke-width: 1;
    transform: translate(-50%, -50%) scale(0.8);
    fill: none;
    will-change: transform;
    opacity: 0.3;
    stroke: #ccc;
    filter: grayscale(100%) brightness(1.2) drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
}


footer {
    padding: 1rem;
}

.shake-vertical {
    -webkit-animation: shake-vertical 12s cubic-bezier(.455, .03, .515, .955) infinite both;
    animation: shake-vertical 12s cubic-bezier(.455, .03, .515, .955) infinite both
}

@-webkit-keyframes shake-vertical {

    0%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }

    10%,
    30%,
    50%,
    70% {
        -webkit-transform: translateY(-2px);
        transform: translateY(-2px)
    }

    20%,
    40%,
    60% {
        -webkit-transform: translateY(2px);
        transform: translateY(2px)
    }

    80% {
        -webkit-transform: translateY(1px);
        transform: translateY(1px)
    }

    90% {
        -webkit-transform: translateY(-1px);
        transform: translateY(-1px)
    }
}

@keyframes shake-vertical {

    0%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }

    10%,
    30%,
    50%,
    70% {
        -webkit-transform: translateY(-2px);
        transform: translateY(-2px)
    }

    20%,
    40%,
    60% {
        -webkit-transform: translateY(2px);
        transform: translateY(2px)
    }

    80% {
        -webkit-transform: translateY(1px);
        transform: translateY(1px)
    }

    90% {
        -webkit-transform: translateY(-1px);
        transform: translateY(-1px)
    }
}

.trk-scroll-container {
    position: relative;
    margin: 0 auto;
    width: 48px;
    height: 48px;
}

.trk-scroll {
    position: absolute;
    width: 48px;
    height: 8px;
    opacity: 0;
    transform: scale3d(0.5, 0.5, 0.5);
    animation: trk-scroll-move 3s ease-out infinite;
}

.trk-scroll:first-child {
    animation: trk-scroll-move 3s ease-out 1s infinite;
}

.trk-scroll:nth-child(2) {
    animation: trk-scroll-move 3s ease-out 2s infinite;
}

.trk-scroll:before,
.trk-scroll:after {
    content: ' ';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background-color: var(--secondary-500);
}

.trk-scroll:before {
    left: 0;
    transform: skew(0deg, 30deg);
}

.trk-scroll:after {
    right: 0;
    width: 50%;
    transform: skew(0deg, -30deg);
}

@media screen and (max-width: 768px) {
    .section {
        min-height: 100vh;
    }

}

@keyframes trk-scroll-move {
    25% {
        opacity: 1;

    }

    33% {
        opacity: 1;
        transform: translateY(30px);
    }

    67% {
        opacity: 1;
        transform: translateY(40px);
    }

    100% {
        opacity: 0;
        transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
    }
}

@keyframes trk-scroll-pulse {
    to {
        opacity: 1;
    }
}

.tracking-in-contract {
    -webkit-animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) 700ms both;
    animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) 700ms both;
}

@-webkit-keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}

/* Standard keyframes (unprefixed) for tracking-in-contract */
@keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}

.text-focus-in {
    -webkit-animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) 1s both;
    animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) 1s both;
}

@-webkit-keyframes text-focus-in {
    0% {
        -webkit-filter: blur(12px);
        filter: blur(12px);
        opacity: 0;
    }

    100% {
        -webkit-filter: blur(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes text-focus-in {
    0% {
        -webkit-filter: blur(12px);
        filter: blur(12px);
        opacity: 0;
    }

    100% {
        -webkit-filter: blur(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

.heartbeat {
    -webkit-animation: heartbeat 1.5s ease-in-out 5s infinite both;
    animation: heartbeat 1.5s ease-in-out 5s infinite both
}

@-webkit-keyframes heartbeat {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: center center;
        transform-origin: center center;
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out
    }

    10% {
        -webkit-transform: scale(.91);
        transform: scale(.91);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in
    }

    17% {
        -webkit-transform: scale(.98);
        transform: scale(.98);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out
    }

    33% {
        -webkit-transform: scale(.87);
        transform: scale(.87);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in
    }

    45% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out
    }
}

@keyframes heartbeat {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: center center;
        transform-origin: center center;
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out
    }

    10% {
        -webkit-transform: scale(.91);
        transform: scale(.91);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in
    }

    17% {
        -webkit-transform: scale(.98);
        transform: scale(.98);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out
    }

    33% {
        -webkit-transform: scale(.87);
        transform: scale(.87);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in
    }

    45% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out
    }
}