@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Teko:wght@600&family=Bebas+Neue&display=swap');

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #c41e3a;
    --accent-color: #ffd700;
    --text-color: #1a1a1a;
    --light-bg: #f0e6d2; /* Beige/crema come nell'immagine */
    --white: #f0e6d2; /* Beige per sostituire il bianco */
    --grid-color: #e6dcc6; /* Colore per le griglie */
    --industrial-texture: repeating-linear-gradient(
        45deg,
        #e0d6c0 0px,
        #e0d6c0 2px,
        var(--light-bg) 2px,
        var(--light-bg) 10px
    );
    --grid-background: 
        linear-gradient(rgba(226, 214, 181, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 214, 181, 0.8) 1px, transparent 1px),
        linear-gradient(rgba(214, 199, 168, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214, 199, 168, 0.4) 1px, transparent 1px);
}

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

body {
    font-family: 'Special Elite', cursive;
    line-height: 1.8;
    color: var(--text-color);
    background: var(--light-bg);
    background-image: var(--grid-background);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-height: 80px;
}

/* Aggiungo un padding-top al main per compensare l'header */
main {
    padding-top: 80px; /* Altezza minima dell'header */
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
}

/* Aggiungo una media query per gestire l'header quando si espande */
@media (min-width: 1024px) {
    header {
        min-height: 80px;
        height: auto;
    }
    
    main {
        padding-top: 80px;
        transition: padding-top 0.3s ease;
    }
    
    /* Quando l'header si espande, il padding-top del main si adatta */
    header.expanded {
        min-height: 100px; /* Altezza massima dell'header espanso */
    }
    
    header.expanded + main {
        padding-top: 100px;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid var(--secondary-color);
    z-index: 1000;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    transform: skew(-5deg);
    position: relative;
    text-shadow: 3px 3px 0 var(--secondary-color);
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 80%;
    height: 2px;
    background: var(--accent-color);
}

.logo-text span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    margin-left: 2rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 5% 5%;
    background: var(--light-bg);
    background-image: var(--grid-background);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    position: relative;
    overflow: visible;
    transition: padding-top 0.3s ease;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    width: 100%;
    min-height: 450px;
    align-items: stretch;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

/* Rimuovere qualsiasi altra linea diagonale che potrebbe attraversare il grafico */
.hero::after {
    display: none;
}

.hero-content {
    flex: 1;
    max-width: 25%;
    padding: 3rem;
    background: linear-gradient(135deg, #ffd68f, #e29d43); /* Colore ocra più simile all'immagine di riferimento */
    position: relative;
    z-index: 2;
    margin-right: 2%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px #d00000;
    overflow: hidden;
}

/* Texture di carta stampata */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

/* Raggi stilizzati come nella propaganda sovietica */
.hero-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600%;
    height: 600%;
    background-image: 
        repeating-conic-gradient(
            from 0deg at center,
            rgba(255, 240, 195, 0.9) 0deg,
            rgba(255, 240, 195, 0.9) 4deg,
            rgba(240, 190, 120, 0.6) 4deg,
            rgba(240, 190, 120, 0.6) 8deg
        );
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
    animation: slow-rotate 360s linear infinite;
}

@keyframes slow-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Bordo diagonale in alto a destra */
.hero-content:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: #d00000;
    z-index: 1;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* Stile costruttivista per i testi */
.hero-content h1 {
    color: #000000;
    font-size: 1.8rem;
    line-height: 1.2;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
    text-align: center;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #d00000;
}

.hero-content p {
    color: #000000;
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    margin: 15px 0;
    border-left: 5px solid #d00000;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
    text-align: left;
}

/* Ripristinare il logo con stile costruttivista */
.hero-content .hero-logo-image {
    position: relative;
    z-index: 3;
    filter: none;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1.5rem;
    display: block;
    padding: 10px;
    background: #ffffff;
    border: 2px solid #d00000;
    transform: rotate(-2deg);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

/* Pulsante CTA in stile costruttivista */
.hero-content .cta-button {
    background: #d00000;
    color: #ffffff;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
    transform: skew(-5deg);
    padding: 1rem 1.5rem;
    border: none;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.hero-content .cta-button:hover {
    background: #000000;
    color: #ffffff;
    transform: skew(-5deg) translateY(-3px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

/* Elementi decorativi in stile costruttivista */
.hero-content .corner-accent {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 5px;
    background: #d00000;
    z-index: 3;
}

.hero-content .corner-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 80px;
    background: #d00000;
}

/* Nascondere elementi superflui */
.hero-content .hero-logo::before {
    display: none;
}

.hero-logo {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-logo-image {
    width: 200px;
    height: auto;
    filter: brightness(1.2) contrast(1.1);
    margin: 0 auto 2rem;
    transform: skew(2deg);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    padding: 20px;
    border-left: 3px solid var(--secondary-color);
    transform: skew(2deg);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--light-bg);
    border: none;
    font-family: 'Teko', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    transform: skew(2deg);
    position: relative;
    z-index: 2;
    box-shadow: 
        0 3px 5px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: #FFCC00;
    color: var(--primary-color);
}

.typewriter-note {
    flex: 3;
    max-width: 73%;
    background-color: var(--light-bg);
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Special Elite', cursive;
    color: var(--primary-color);
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
}

.typewriter-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.constructivist-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

.soviet-style-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.soviet-style-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 50%, var(--light-bg) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

@media (max-width: 768px) {
    .constructivist-icon {
        width: 52px;
        height: 52px;
    }
}

.typewriter-line {
    margin-bottom: 5px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding-left: 15px;
    font-family: 'Courier New', monospace;
}

.risk-image-container {
    cursor: pointer;
    position: relative;
    width: 100%;
    margin: 15px auto;
    transition: transform 0.3s ease;
    z-index: 20; /* Increased z-index */
}

.risk-image-container:hover {
    animation: trembleEffect 0.5s ease-in-out;
}

.risk-image {
    width: 100%;
    height: auto;
    border: 5px solid #e0d5c1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: sepia(40%) contrast(120%) brightness(90%);
    z-index: 25; /* Ensure image is above other elements */
    position: relative; /* Ensure z-index works properly */
}

.risk-image-container:before {
    content: "🔍";
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(224, 213, 193, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.risk-image-container:hover:before {
    opacity: 1;
}

.typewriter-content {
    margin: 15px 0;
    padding: 0 15px;
    text-align: justify;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.typewriter-content p {
    margin-bottom: 10px;
    position: relative;
    line-height: 1.4;
}

.chart-container {
    width: 100%;
    background: var(--light-bg);
    padding: 1.5rem;
    border: 1px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.chart-header {
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.8rem;
}

.chart-date {
    font-family: 'Special Elite', cursive;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.chart-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.chart-image {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid rgba(121, 85, 61, 0.5);
    margin-bottom: 1rem;
    filter: 
        sepia(50%) 
        contrast(110%) 
        brightness(95%) 
        saturate(90%) 
        hue-rotate(0deg);
    box-shadow: 
        0 0 15px rgba(0, 0, 0, 0.3), 
        0 0 5px rgba(121, 85, 61, 0.5);
    padding: 12px;
    background-color: #e6d8c0;
    position: relative;
    transform: rotate(-1deg);
    margin: 15px auto;
    max-width: 95%;
}

/* Texture dell'immagine aggiornata */
.chart-image-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(121, 85, 61, 0.1) 2px, rgba(121, 85, 61, 0.1) 4px);
    opacity: 0.9 !important;
    pointer-events: none;
    z-index: 6;
    mix-blend-mode: overlay !important;
}

/* Vignettatura dell'immagine aggiornata */
.chart-image-vignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, transparent 40%, rgba(121, 85, 61, 0.5) 100%);
    pointer-events: none;
    z-index: 7;
    mix-blend-mode: multiply !important;
    opacity: 0.9 !important;
}

/* Puntina in alto a sinistra con ombra proiettata */
.chart-image::before {
    display: none;
}

/* Puntina in alto a destra con ombra proiettata */
.chart-image::after {
    display: none;
}

/* Puntina in basso a sinistra con ombra proiettata */
.chart-container::before {
    display: none;
}

/* Puntina in basso a destra con ombra proiettata */
.chart-container::after {
    display: none;
}

/* Effetto riflesso delle puntine */
.chart-image .pin-reflection-tl,
.chart-image .pin-reflection-tr,
.chart-container .pin-reflection-bl,
.chart-container .pin-reflection-br {
    display: none;
}

.chart-caption {
    font-family: 'Special Elite', cursive;
    font-size: 0.8rem;
    color: var(--primary-color);
    border-left: 3px solid var(--secondary-color);
    padding-left: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.caption-title {
    font-weight: bold;
    color: var(--secondary-color);
}

.chart-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--primary-color);
}

.metric {
    text-align: center;
    padding: 0 1rem;
}

.metric-value {
    display: block;
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    display: block;
    font-family: 'Special Elite', cursive;
    font-size: 0.7rem;
    color: var(--secondary-color);
    text-transform: uppercase;
}

/* Nascondendo tutti gli elementi decorativi */
.chart-stamp, .chart-y-title, 
.chart-x-title, .chart-labels, .chart-y-labels, 
.chart-trend-line, .chart-trend-line-down {
    display: none;
}

/* About Section */
.about {
    padding: 5rem 5%;
    background: var(--primary-color);
    color: var(--light-bg); /* Utilizzare il beige come colore del testo sul nero */
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--secondary-color);
    transform: skew(-45deg) translateX(100%);
    z-index: 1;
}

.about h2 {
    text-align: left;
    margin-bottom: 3rem;
    font-size: 3.5rem;
    color: var(--light-bg);
    position: relative;
    z-index: 2;
}

.about h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--accent-color);
    margin-top: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.about-text {
    background: rgba(240, 230, 210, 0.05);
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
    transform: skew(-2deg);
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: none;
    filter: grayscale(100%) contrast(120%);
    clip-path: polygon(0 0, 100% 0, 95% 95%, 5% 100%);
    transform: skew(2deg);
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.about-description {
    transform: skew(2deg);
    margin-bottom: 2rem;
    color: var(--white);
}

.about-description p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--light-bg); /* Testo beige su sfondo scuro per la descrizione */
}

.highlight-text {
    font-size: 1.2rem !important;
    color: var(--accent-color);
    font-weight: bold;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

.trading-room-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    clip-path: polygon(0 0, 100% 0, 95% 95%, 5% 100%);
    transform: skew(2deg);
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
    text-align: center;
    transform: skew(-2deg);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: skew(-2deg) translateY(-10px);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Strategy Section */
.strategy {
    padding: 50px 5%;
    position: relative;
}

.strategy .typewriter-heading {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.strategy .constructivist-icon {
    width: 75px;
    height: 75px;
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strategy h2 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1;
    padding-left: 115px;
}

@media (max-width: 768px) {
    .strategy .constructivist-icon {
        width: 52px;
        height: 52px;
        left: 15px;
    }

    .strategy h2 {
        font-size: 2.5rem;
        padding-left: 82px;
    }
}

.strategy-banner {
    background: var(--primary-color);
    margin-bottom: 3rem;
    padding: 2rem;
    transform: skew(-2deg);
    position: relative;
    overflow: hidden;
}

.strategy-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: var(--secondary-color);
    transform: skew(-45deg) translateX(50%);
}

.strategy-banner::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 5px;
    background: var(--secondary-color);
    transform: skew(-45deg) translateX(20%);
    z-index: 3;
}

.banner-text {
    color: var(--light-bg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    transform: skew(2deg);
}

.banner-accent {
    display: block;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.strategy-grid::before {
    display: none;
}

.strategy-card {
    background: var(--white);
    border-left: 5px solid var(--secondary-color);
    overflow: hidden;
    transform: skew(-2deg);
    transition: all 0.3s ease;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.strategy-card:hover {
    transform: skew(-2deg) translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.strategy-card-header {
    background: var(--primary-color);
    padding: 1.5rem;
    color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform: skew(2deg);
}

.strategy-card-header i {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.strategy-card-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.strategy-card-content {
    padding: 1.5rem;
    transform: skew(2deg);
}

.strategy-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.strategy-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.check-mark {
    margin-right: 0.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.strategy-note {
    font-size: 0.9rem;
    font-style: italic;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin-top: 1rem;
}

.strategy-note-box {
    background: var(--primary-color);
    color: var(--light-bg);
    padding: 2rem;
    text-align: center;
    font-size: 1.2rem;
    transform: skew(-2deg);
    position: relative;
    overflow: visible;
}

.strategy-note-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(196, 30, 58, 0.1) 0px,
        rgba(196, 30, 58, 0.1) 10px,
        rgba(0, 0, 0, 0) 10px,
        rgba(0, 0, 0, 0) 20px
    );
}

.strategy-note-box::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    transform: skew(-5deg);
    z-index: 1;
}

.strategy-note-box p {
    transform: skew(2deg);
    position: relative;
    z-index: 2;
}

/* Risk Management Section */
.risk-management {
    padding: 50px 5%;
    position: relative;
}

.risk-management .typewriter-heading {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.risk-management .constructivist-icon {
    width: 75px;
    height: 75px;
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.risk-management h2 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1;
    padding-left: 115px;
}

@media (max-width: 768px) {
    .risk-management .constructivist-icon {
        width: 52px;
        height: 52px;
        left: 15px;
    }

    .risk-management h2 {
        font-size: 2.5rem;
        padding-left: 82px;
    }
}

.risk-management::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.risk-header {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.risk-banner {
    background: var(--secondary-color);
    padding: 1.5rem;
    text-align: center;
    transform: skew(-2deg);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.risk-banner i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0 1rem;
}

.risk-banner span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 2px;
}

.risk-intro {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    font-weight: bold;
    transform: skew(-1deg);
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.risk-card {
    background: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--secondary-color);
    transform: skew(-2deg);
    transition: all 0.3s ease;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.wider-card {
    grid-column: span 2;
}

.risk-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.risk-card:hover {
    transform: skew(-2deg) translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.risk-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transform: skew(2deg);
}

.risk-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transform: skew(2deg);
    position: relative;
}

.risk-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.risk-card p {
    color: var(--text-color);
    transform: skew(2deg);
    margin-bottom: 1.5rem;
}

.risk-accent {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-bg);
    padding: 0.5rem 1rem;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: skew(2deg);
    position: relative;
    z-index: 2;
}

.recovery-phases {
    list-style: none;
    margin: 1rem 0 1.5rem;
    transform: skew(2deg);
}

.recovery-phases li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.recovery-phases li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--secondary-color);
    transform: rotate(45deg);
}

.phase {
    font-weight: bold;
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.recovery-approach {
    background: var(--white);
    padding: 2.5rem;
    border-left: 5px solid var(--secondary-color);
    transform: skew(-2deg);
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recovery-approach h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    transform: skew(2deg);
    text-align: center;
    position: relative;
}

.recovery-approach h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    transform: skew(2deg);
}

.approach-item {
    display: flex;
    align-items: flex-start;
}

.approach-icon {
    margin-right: 1rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.annual-note {
    background: var(--primary-color);
    color: var(--light-bg);
    padding: 1.5rem;
    border-left: 5px solid var(--accent-color);
    display: flex;
    align-items: center;
    transform: skew(2deg);
}

.annual-note i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.annual-note p {
    font-size: 1.1rem;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background: var(--primary-color);
    color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(0, 0, 0, 0) 10px,
        rgba(0, 0, 0, 0) 20px
    );
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3.5rem;
    color: var(--light-bg);
    position: relative;
    z-index: 2;
}

.contact h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--accent-color);
    margin: 1rem auto 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(40, 40, 40, 0.8), rgba(30, 30, 30, 0.8));
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
    transform: skew(-2deg);
    position: relative;
    z-index: 2;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 45%, var(--secondary-color) 45%, var(--secondary-color) 55%),
        linear-gradient(-45deg, transparent 45%, var(--secondary-color) 45%, var(--secondary-color) 55%);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--light-bg);
    border: none;
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--light-bg);
    border: none;
    font-family: 'Teko', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    transform: skew(2deg);
    position: relative;
    z-index: 2;
    box-shadow: 
        0 3px 5px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button[type="submit"]:hover {
    background: #FFCC00;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--light-bg);
    padding: 3rem 5% 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-color);
}

.footer-section p a {
    color: #ff9500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-top {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-content, .typewriter-note {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .wider-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.8rem 5%;
    }
    
    .logo-text {
        font-size: 28px;
        margin-bottom: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        margin-left: 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    h2 {
        font-size: 2.2rem !important;
        margin-bottom: 2rem;
    }
    
    .strategy-banner .banner-text {
        font-size: 2rem;
    }
    
    .risk-banner span {
        font-size: 1.5rem;
    }
    
    .broker-info {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-content, .typewriter-note {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 15px;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .typewriter-note, .chart-container {
        margin-bottom: 2rem;
    }
    
    .myfxbook-widget-container {
        padding: 10px 5px;
        margin: 15px 0 10px;
    }
    
    .widget-title {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .click-indication {
        font-size: 0.8em;
        padding: 4px;
    }
    
    .widget-content {
        transform: scale(0.9);
        transform-origin: center center;
    }
}

@media (max-width: 576px) {
    .nav-links {
        flex-wrap: wrap;
    }
    
    .nav-links a {
        margin: 0.5rem;
    }
    
    .strategy-grid,
    .risk-grid,
    .approach-grid,
    .parameters-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-content, .typewriter-note {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        margin-bottom: 20px;
    }
    
    .hero-logo-image {
        width: 180px;
        margin: 0 auto 1.5rem;
        display: block;
    }
    
    .typewriter-heading {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .typewriter-line {
        font-size: 0.75rem;
    }
    
    .typewriter-content {
        margin: 10px 0;
    }
    
    .typewriter-content p {
        margin-bottom: 10px;
        position: relative;
        line-height: 1.4;
    }
    
    .typewriter-stamp {
        position: absolute;
        bottom: 10px;
        right: 20px;
        transform: rotate(15deg);
        color: rgba(196, 30, 58, 0.6);
        border: 2px solid rgba(196, 30, 58, 0.6);
        border-radius: 10px;
        padding: 3px 15px;
        font-size: 0.8rem;
        font-weight: bold;
        letter-spacing: 2px;
        z-index: 3; /* Z-index inferiore rispetto al widget */
        pointer-events: none; /* Garantisce che i click passino attraverso */
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .chart-header {
        margin-bottom: 0.7rem;
    }
    
    .chart-title {
        font-size: 1.4rem;
    }
    
    .chart-caption {
        font-size: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-label {
        font-size: 0.65rem;
    }
    
    .myfxbook-widget-container {
        padding: 8px 3px;
        margin: 10px 0;
    }
    
    .widget-content {
        transform: scale(0.8);
        margin: 0 -10%;
        width: 120%;
    }
    
    .widget-title {
        font-size: 0.85em;
        margin-bottom: 5px;
    }
    
    .click-indication {
        font-size: 0.75em;
        padding: 3px;
    }
}

@media (max-width: 480px) {
    .myfxbook-widget-container {
        padding: 5px 2px;
    }
    
    .widget-content {
        transform: scale(0.7);
        margin: 0 -15%;
        width: 130%;
    }
    
    .widget-title {
        font-size: 0.8em;
    }
}

/* Aggiungo stili per il selettore di lingua */

.language-selector {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
    user-select: none;
    z-index: 1010;
}

.current-language {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    color: var(--light-bg);
    font-weight: bold;
}

.current-language:hover {
    background-color: rgba(196, 30, 58, 0.5);
    transform: skew(-3deg);
}

.current-language i {
    margin: 0 5px;
    color: var(--accent-color);
}

.current-language span {
    font-family: 'Teko', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    list-style: none;
    padding: 5px 0;
    margin: 5px 0 0;
    background-color: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--accent-color);
    z-index: 1020;
    transform: skew(-2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: skew(-2deg) translateY(0);
    display: block;
}

.language-dropdown li {
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    color: var(--light-bg);
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
}

.language-dropdown li:hover {
    background-color: rgba(196, 30, 58, 0.3);
    border-left: 3px solid var(--accent-color);
    color: var(--accent-color);
}

.language-dropdown li.active {
    background-color: rgba(196, 30, 58, 0.3);
    border-left: 3px solid var(--accent-color);
    font-weight: bold;
    color: var(--accent-color);
}

/* Style per la pagina di introduzione della strategia */
.strategy-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: justify;
    line-height: 1.6;
}

.strategy-intro p {
    margin-bottom: 20px;
}

/* Stili per la nuova sezione Copy Trading */
.copy-trading {
    padding: 5rem 5%;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
    background-image: var(--grid-background);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

.copy-trading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-bg.jpg') center/cover;
    opacity: 0.05;
    z-index: 1;
}

.copy-trading h2 {
    text-align: left;
    margin-bottom: 3rem;
    font-size: 3.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.copy-trading h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--secondary-color);
    margin-top: 1rem;
}

.copy-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.decorative-element {
    width: 120px;
    flex-shrink: 0;
    position: relative;
}

.decorative-element::before {
    content: '';
    position: absolute;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary-color);
    transform: skew(-15deg);
}

.decorative-element::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 5px;
    background: var(--accent-color);
}

.decorative-element.left::before {
    right: 20px;
}

.decorative-element.left::after {
    right: 30px;
}

.decorative-element.right::before {
    left: 20px;
}

.decorative-element.right::after {
    left: 30px;
}

.copy-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: justify;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 30px;
}

.copy-trading-logo {
    width: 150px;
    height: auto;
    flex-shrink: 0;
    border: 2px solid var(--secondary-color);
    padding: 10px;
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.copy-intro-text {
    flex: 1;
}

.copy-intro-text p {
    margin-bottom: 15px;
}

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

@media (max-width: 768px) {
    .copy-intro {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }

    .copy-trading-logo {
        width: 120px;
        margin-bottom: 20px;
    }

    .copy-intro-text {
        text-align: justify;
    }
}

@media (max-width: 1200px) {
    .decorative-element {
        display: none;
    }
}

.copy-intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 1;
}

.copy-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 80px;
    height: 5px;
    background: var(--secondary-color);
    z-index: 1;
}

.broker-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.broker-logo {
    background: var(--white);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 5px solid var(--secondary-color);
    transform: skew(-2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.broker-logo img {
    max-width: 100%;
    height: auto;
    transform: skew(2deg);
}

.broker-description {
    background: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--secondary-color);
    transform: skew(-2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.broker-description-inner {
    transform: skew(2deg);
}

.broker-description h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.parameter-card {
    background: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--secondary-color);
    transform: skew(-2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.parameter-card:hover {
    transform: skew(-2deg) translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.parameter-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transform: skew(2deg);
}

.parameter-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transform: skew(2deg);
}

.parameter-card p {
    color: var(--text-color);
    transform: skew(2deg);
}

.affiliate-box {
    background: var(--primary-color);
    color: var(--light-bg);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    transform: skew(-2deg);
    border-left: 5px solid var(--accent-color);
}

.affiliate-box-inner {
    transform: skew(2deg);
}

.affiliate-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.subscription-cta {
    background: #D4B572;
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.subscription-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(0, 0, 0, 0.1) 0deg,
        rgba(0, 0, 0, 0.1) 10deg,
        transparent 10deg,
        transparent 20deg
    );
    animation: rotate 60s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.subscription-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, 
            transparent 0%, 
            rgba(212, 181, 114, 0.8) 100%
        );
    pointer-events: none;
    z-index: -1;
}

.subscription-cta-inner {
    transform: skew(2deg);
}

.subscription-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #d63031;
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    transform: skew(-5deg);
    letter-spacing: 3px;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    position: relative;
    display: inline-block;
}

.subscription-cta h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #000;
    transform: skew(5deg);
}

.subscription-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    transform: skew(-2deg);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    margin: 1rem 0;
}

.subscription-button:hover {
    background: #FFCC00;
    color: var(--primary-color);
    transform: skew(-2deg) translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .broker-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .copy-trading h2,
    .subscription-cta h3 {
        font-size: 2.5rem;
    }
}

/* Migliorare il contrasto dei testi su sfondo beige/crema */
.strategy-card p, .parameter-card p, .broker-description p, .broker-description li, .risk-card p, .recovery-phases li {
    color: var(--text-color);
}

/* Aggiornare il colore nei footer per maggiore coerenza */
.footer-section h4 {
    color: var(--white);
}

/* Assicurarsi che le card abbiano un aspetto coerente */
.about-description {
    color: var(--white);
}

/* Assicurarsi che il testo sia ben leggibile sui nuovi sfondi */
.hero p {
    color: var(--text-color);
}

/* Modificare il colore del form di contatto per essere coerente */
.contact-form {
    background: rgba(240, 230, 210, 0.05);
}

/* Assicurarsi che le navbar abbia contrasto sufficiente */
.nav-links a {
    color: var(--white);
}

/* Aggiungere elementi decorativi che richiamano l'immagine di riferimento */
.strategy-intro::before {
    content: '';
    position: absolute;
    right: 5%;
    top: 50%;
    width: 15px;
    height: 40px;
    background: var(--primary-color);
    transform: skew(-2deg) translateY(-50%);
    z-index: 1;
}

.strategy-intro::after {
    content: '';
    position: absolute;
    right: 10%;
    top: 60%;
    width: 15px;
    height: 30px;
    background: var(--secondary-color);
    transform: skew(-2deg) translateY(-50%);
    z-index: 1;
}

/* Nascondere anche altre eventuali linee diagonali */
.diagonal-line {
    display: none;
}

.typewriter-note {
    background-color: var(--light-bg);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Special Elite', cursive;
    color: var(--primary-color);
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.typewriter-heading {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
    padding-bottom: 10px;
    font-weight: bold;
}

.typewriter-line {
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.typed-text {
    font-weight: bold;
    display: inline-block;
    min-width: 120px;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
    padding-bottom: 2px;
}

.typewriter-content {
    margin: 10px 0;
    text-align: justify;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.typewriter-content p {
    margin-bottom: 10px;
    position: relative;
    line-height: 1.4;
}

.typewriter-content p:nth-child(2n) {
    margin-left: 10px;
}

.typewriter-stamp {
    position: absolute;
    bottom: 10px;
    right: 20px;
    transform: rotate(15deg);
    color: rgba(196, 30, 58, 0.6);
    border: 2px solid rgba(196, 30, 58, 0.6);
    border-radius: 10px;
    padding: 3px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 3; /* Z-index inferiore rispetto al widget */
    pointer-events: none; /* Garantisce che i click passino attraverso */
}

/* Adding imperfections to mimic a typewriter */
.typewriter-content p::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 10px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Adjusting for different screens */
@media (max-width: 992px) {
    .typewriter-note {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .typewriter-heading {
        font-size: 1.3rem;
    }
    
    .typewriter-content {
        font-size: 0.9rem;
    }
}

.contact-form form {
    transform: skew(2deg);
}

.hero-content .cta-button {
    position: relative;
    z-index: 4;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-content .cta-button:hover {
    transform: skew(2deg) translateY(-3px);
    box-shadow: 
        0 6px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Sistemare le dimensioni per evitare scrolling orizzontale */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Stile per le puntine definite in HTML */
.image-pin {
    display: none;
}

/* Stile per le cornici angolari tipo raccoglitore */
.corner-holder {
    position: absolute;
    width: 10%;
    height: 10%;
    max-width: 70px;
    max-height: 70px;
    min-width: 30px;
    min-height: 30px;
    background: #201812; /* Marrone molto scuro, quasi nero */
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* Angolo in alto a sinistra */
.corner-holder.top-left {
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Angolo in alto a destra */
.corner-holder.top-right {
    top: 0;
    right: 0;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* Angolo in basso a sinistra */
.corner-holder.bottom-left {
    bottom: 0;
    left: 0;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

/* Angolo in basso a destra */
.corner-holder.bottom-right {
    bottom: 0;
    right: 0;
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

/* Rimuovere tutti gli stili precedenti per gli angolari che non servono più */
.corner-holder::before,
.corner-holder::after,
.corner-holder.top-left::before,
.corner-holder.top-left::after,
.corner-holder.top-right::before,
.corner-holder.top-right::after,
.corner-holder.bottom-left::before,
.corner-holder.bottom-left::after,
.corner-holder.bottom-right::before,
.corner-holder.bottom-right::after {
    display: none !important;
    content: none !important;
}

/* Layout a due colonne per typewriter-note */
.typewriter-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.typewriter-text {
    flex: 0 0 65%;
    padding-right: 20px;
}

.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.popup-image {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border: 5px solid #e0d5c1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    z-index: 10001;
}

.close-popup {
    position: absolute;
    top: -30px;
    right: -30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
}

/* Responsive per il layout a due colonne */
@media (max-width: 768px) {
    .typewriter-container {
        flex-direction: column;
    }
    
    .typewriter-text {
        flex: 1 0 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .risk-image-container {
        flex: 1 0 100%;
        max-width: 100%;
    }
}

.myfxbook-widget-container {
    margin: 20px 0 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px dashed rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    position: relative;
    z-index: 5;
    overflow-x: hidden;
    max-width: 100%;
}

.widget-title {
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-family: 'Special Elite', cursive;
    color: var(--secondary-color);
    border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
    padding-bottom: 5px;
}

.widget-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 6;
    max-width: 100%;
    width: 100%;
}

.widget-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.widget-item {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    max-width: calc(50% - 10px);
    position: relative;
}

.widget-item iframe,
.widget-item img {
    width: 100% !important;
    height: 300px !important;
    border: none;
    background: transparent;
    margin-bottom: 10px;
    max-width: 100%;
}

.click-indication {
    text-align: center;
    color: var(--secondary-color);
    font-weight: bold;
    padding: 6px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .widget-grid {
        flex-direction: column;
        gap: 15px;
    }

    .widget-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .widget-item iframe,
    .widget-item img {
        width: 100% !important;
        height: 250px !important;
    }

    .myfxbook-widget-container {
        padding: 10px;
        margin: 10px 0;
    }

    .widget-content {
        width: 100%;
        transform: none;
        margin: 0;
    }

    .click-indication {
        font-size: 14px;
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .widget-item iframe,
    .widget-item img {
        height: 200px !important;
    }

    .widget-content {
        transform: none;
        margin: 0;
        width: 100%;
    }

    .click-indication {
        font-size: 12px;
        padding: 6px;
    }
}

/* Ripristino degli stili originali per gli altri elementi */
.simulation-box {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #1a1a1a;
    border: 2px solid #d63031;
    position: relative;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.simulation-box h3 {
    color: #d63031;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
}

.simulation-box h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background-color: var(--accent-color);
}

.simulation-box p {
    color: #ffffff;
    margin: 1.5rem auto;
    max-width: 800px;
    line-height: 1.6;
}

.simulation-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.simulation-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0;
}

.simulation-feature i {
    color: #d63031;
}

.simulation-button {
    display: inline-block;
    background-color: #d63031;
    color: white;
    padding: 0.8rem 2rem;
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-transform: uppercase;
}

.simulation-button:hover {
    background-color: #FFCC00;
    transform: translateY(-3px);
}

.subscription-cta {
    background: var(--white);
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
    transform: skew(-2deg);
    border: none;
    box-shadow: none;
    margin-bottom: 2rem;
}

.subscription-cta-inner {
    transform: skew(2deg);
}

.subscription-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #d63031;
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    transform: skew(-5deg);
    letter-spacing: 3px;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    position: relative;
    display: inline-block;
}

.subscription-cta h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #000;
    transform: skew(5deg);
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #d63031;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    z-index: 2;
}

.step-number::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    width: 15px;
    height: 2px;
    background: #d63031;
    transform: translateY(-50%) skew(-15deg);
}

.step-number::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #d63031;
    transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 768px) {
    .step-number {
        left: -12px;
    }
    
    .step-number::after {
        width: 12px;
        left: 22px;
    }
    
    .step-number::before {
        left: 30px;
        width: 8px;
        height: 8px;
    }
}

.subscription-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    transform: skew(-2deg);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    margin: 1rem 0;
}

.subscription-button:hover {
    background: #FFCC00;
    color: var(--primary-color);
    transform: skew(-2deg) translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.leverage-note {
    text-align: center;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-style: italic;
    color: #ff9500;
}

.broker-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.broker-button {
    display: inline-block;
    background-color: #d63031;
    color: white;
    padding: 1rem 2rem;
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    transform: skew(-2deg);
}

.broker-button:hover {
    background-color: #FFCC00;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.broker-button.video-button {
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    transform: skew(-2deg);
}

.broker-button.video-button:hover {
    background-color: #333333;
    transform: skew(-2deg) translateY(-3px);
}

@media (max-width: 768px) {
    .simulation-box {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .simulation-box h3 {
        font-size: 1.8rem;
    }

    .simulation-box p {
        font-size: 0.9rem;
        margin: 1rem auto;
    }

    .broker-section {
        padding: 1.5rem;
    }

    .broker-section h3 {
        font-size: 1.8rem;
    }

    .broker-section p {
        font-size: 0.9rem;
        margin: 1rem 0;
    }

    .broker-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .broker-button {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .simulation-box {
        padding: 1rem;
    }

    .simulation-box h3 {
        font-size: 1.5rem;
    }

    .broker-section h3 {
        font-size: 1.5rem;
    }

    .broker-section {
        padding: 1rem;
    }

    .broker-button {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .simulation-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .simulation-feature {
        width: 100%;
        justify-content: center;
    }
}

.trading-report-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.constructivist-icon {
    width: 45px;
    height: 45px;
    position: relative;
    display: inline-block;
    opacity: 0.85;
    mix-blend-mode: multiply;
    filter: sepia(20%) contrast(85%) brightness(90%);
}

.constructivist-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .constructivist-icon {
        width: 35px;
        height: 35px;
    }
}

.strategy .typewriter-heading {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.strategy .constructivist-icon {
    width: 75px;
    height: 75px;
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strategy .soviet-style-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.strategy h2 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1;
    padding-left: 115px;
}

@media (max-width: 768px) {
    .strategy .constructivist-icon {
        width: 52px;
        height: 52px;
        left: 15px;
    }

    .strategy h2 {
        font-size: 2.5rem;
        padding-left: 82px;
    }
}

.risk-management .typewriter-heading {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.risk-management .constructivist-icon {
    width: 75px;
    height: 75px;
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.risk-management h2 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1;
    padding-left: 115px;
}

@media (max-width: 768px) {
    .risk-management .constructivist-icon {
        width: 52px;
        height: 52px;
        left: 15px;
    }

    .risk-management h2 {
        font-size: 2.5rem;
        padding-left: 82px;
    }
}

.contact {
    padding: 5rem 5%;
    background: var(--primary-color);
    color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.contact .typewriter-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    background: var(--dark-bg);
    padding: 20px;
    gap: 25px;
    z-index: 3;
}

.contact .constructivist-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact h2 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1;
    color: var(--light-bg);
    text-align: center;
}

.contact h2::after {
    display: none;
}

@media (max-width: 768px) {
    .contact .constructivist-icon {
        width: 52px;
        height: 52px;
    }

    .contact h2 {
        font-size: 2.5rem;
    }

    .contact .typewriter-heading {
        gap: 15px;
        padding: 15px;
    }
}

img[src*="prop-ico"] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
}

img[src*="prop-ico2"], img[src*="prop-ico3"], img[src*="prop-ico4"] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
}

img[src*="prop-ico.png"] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    mask-image: none;
    -webkit-mask-image: none;
}

.subscription-cta .cta-button {
    background: var(--accent-color);
    color: var(--dark-bg);
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: skew(-5deg);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.subscription-cta .cta-button:hover {
    background: var(--primary-color);
    color: var(--light-bg);
    border-color: var(--primary-color);
    transform: skew(-5deg) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.subscription-cta .subscription-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    transform: skew(-2deg);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    margin: 1rem 0;
}

.subscription-cta .subscription-button:hover {
    background: #FFCC00;
    color: var(--primary-color);
    transform: skew(-2deg) translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.step-number::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #d63031;
    transform: translateY(-50%) skew(-15deg);
}

.step-number::before {
    content: '';
    position: absolute;
    left: 65px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #d63031;
    transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 768px) {
    .step-number::after {
        width: 30px;
        left: 30px;
    }
    
    .step-number::before {
        left: 52px;
        width: 8px;
        height: 8px;
    }
}

.subscription-cta .constructivist-icon {
    width: 350px;
    height: 350px;
    margin: -20px auto -30px;
    display: block;
    position: relative;
    transform: translateX(80px);
}

.subscription-cta .constructivist-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
}

@media (max-width: 768px) {
    .subscription-cta .constructivist-icon {
        width: 250px;
        height: 250px;
        margin: -20px auto -30px;
        transform: translateX(60px);
    }
}

img[src*="prop-ico5.png"] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
}

.subscription-cta img[src*="prop-ico5.png"] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
}

@media (max-width: 768px) {
    .subscription-cta img[src*="prop-ico5.png"] {
        width: 250px;
        height: 250px;
    }
}

img[src*="prop-ico4.png"] {
    width: 130%;
    height: 130%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 85%);
}

/* Stile per il pulsante referral */
.referral-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 10;
    cursor: pointer;
}

.referral-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.referral-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.referral-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.referral-button:hover::before {
    left: 100%;
}

/* Assicuriamoci che il contenitore del pulsante abbia un z-index appropriato */
.affiliate-box-inner {
    position: relative;
    z-index: 5;
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    .referral-button {
        display: block;
        margin: 1rem 0;
        text-align: center;
    }
}

/* Contenitore del pulsante referral */
.referral-button-container {
    margin-top: 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Stile per il pulsante referral */
.referral-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 10;
    cursor: pointer;
}

/* Stile per il link Telegram nella sezione contatti */
.telegram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    color: #0088cc;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.telegram-link:hover {
    transform: scale(1.2);
    color: #00a2ff;
}

.telegram-link i {
    font-size: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Assicuriamoci che il contenitore del titolo contatti abbia un z-index appropriato */
.contact .typewriter-heading {
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    .telegram-link {
        margin-left: 0.3rem;
    }
    
    .telegram-link i {
        font-size: 1.3rem;
    }
}

/* Contenitore dell'icona Telegram */
#telegram-icon-container {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
    position: relative;
    z-index: 100;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Stile per il link Telegram nella sezione contatti */
#telegram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0088cc;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#telegram-link:hover {
    transform: scale(1.2);
    color: #00a2ff;
    background-color: rgba(0, 0, 0, 0.9);
}

#telegram-link i {
    font-size: 1.8rem;
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Stile per l'icona Telegram fissa */
.fixed-telegram-icon {
    position: absolute;
    display: inline-flex;
    margin-left: 10px;
    z-index: 9999;
    top: 50%;
    transform: translateY(-50%);
}

.telegram-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0088cc;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 15px;
    text-decoration: none;
    vertical-align: middle;
}

.telegram-icon-link:hover {
    background-color: #00a2ff;
}

.telegram-icon-link i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .telegram-icon-link {
        width: 35px;
        height: 35px;
        margin-left: 10px;
    }
    
    .telegram-icon-link i {
        font-size: 18px;
    }
}

.contact .typewriter-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .fixed-telegram-icon {
        position: relative;
        margin-left: 10px;
        transform: none;
    }
    
    .telegram-icon-link {
        width: 35px;
        height: 35px;
    }
    
    .telegram-icon-link i {
        font-size: 18px;
    }
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fixed-telegram-icon {
    display: flex;
    align-items: center;
}

.telegram-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0088cc;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 15px;
    text-decoration: none;
    vertical-align: middle;
}

.telegram-icon-link:hover {
    background-color: #00a2ff;
}

.telegram-icon-link i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .title-container {
        gap: 10px;
    }
    
    .telegram-icon-link {
        width: 35px;
        height: 35px;
    }
    
    .telegram-icon-link i {
        font-size: 18px;
    }
}

.heading-with-telegram {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.heading-with-telegram h2 {
    margin: 0;
    padding: 0;
}

.telegram-fixed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #0088cc;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 20px;
    position: relative;
    z-index: 9999;
}

.telegram-fixed:hover {
    background-color: #00a2ff;
}

.telegram-fixed i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .heading-with-telegram {
        gap: 10px;
    }
    
    .telegram-fixed {
        width: 35px;
        height: 35px;
    }
    
    .telegram-fixed i {
        font-size: 18px;
    }
}

/* Pulsante Telegram fluttuante */
.floating-telegram {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: auto;
    height: 35px;
    background-color: #0088cc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 12px 0 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 99999;
    white-space: nowrap;
}

.floating-telegram:hover {
    background-color: #00a2ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.floating-telegram i {
    font-size: 16px;
    margin-right: 5px;
}

.telegram-text {
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 768px) {
    .floating-telegram {
        height: 32px;
        right: 15px;
        bottom: 15px;
        padding: 0 10px 0 7px;
        font-size: 12px;
        border-radius: 16px;
    }

    .floating-telegram i {
        font-size: 14px;
        margin-right: 4px;
    }
}
  