@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');

/* Hero Section */
.hero { position: relative; height: calc(var(--vh, 1vh) * 100); width: 100%; display: flex; align-items: center; overflow: hidden; background: #050505; }
.hero-img { position: absolute; bottom: 0; left: 0; height: 100%; width: auto; max-width: 55vw; object-fit: cover; object-position: top center; z-index: 1; pointer-events: none; }

/* CSS per Sfumatura Superiore */
.bgcool { position: relative; z-index: 1; }
.bgcool::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 10px; background: linear-gradient(to bottom, #050505 0%, rgba(5,5,5,0) 100%); z-index: 5; pointer-events: none; }
.bgcool .lavori_allieve_title, .bgcool .gallery { position: relative; z-index: 10; }

.bgwhite{ background-image: url("bgwhite.jpg"); background-size: cover; background-repeat: no-repeat; }

/* Overlay Desktop */
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; background: linear-gradient(90deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0) 30%, #050505 60%); }

.hero-content { position: relative; z-index: 10; margin-left: 50%; width: 50%; padding: 0 6vw 0 2vw; display: flex; flex-direction: column; gap: 20px; justify-content: center; height: calc(var(--vh, 1vh) * 100); }

/* Secondary Hero Section (INVERTED LAYOUT) */
.hero-secondary { position: relative; height: calc(var(--vh, 1vh) * 100); width: 100%; display: flex; align-items: center; overflow: hidden; background: #050505; }
.hero-secondary .hero-img-secondary { position: absolute; bottom: 0; right: 0; left: auto; height: 100%; width: auto; max-width: 55vw; object-fit: cover; object-position: top center; z-index: 1; pointer-events: none; }
.hero-secondary .overlay-secondary { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,0) 40%, rgba(5,5,5,0) 70%); }
.hero-secondary .hero-content-secondary { position: relative; z-index: 10; margin-left: 0; width: 50%; padding: 0 2vw 0 6vw; display: flex; flex-direction: column; gap: 20px; justify-content: center; height: calc(var(--vh, 1vh) * 100); align-items: flex-start; text-align: left; }
.hero-secondary .hero-content-secondary h1 { margin-right: auto; }

.image-blurred { filter: blur(10px); transform: translate3d(0, 0, 0); will-change: transform, filter; }

/* Cards Section */
.section { padding: 120px 6vw; background: #050505; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); padding: 30px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); }
.card h3 { margin-top: 0; color: #fff; font-size: 20px; }
.card p { margin: 0; color: rgba(255,255,255,0.75); line-height: 1.6; }
footer { text-align: center; padding: 40px; color: #555; font-size: 14px; }

/* Pulsanti Corsi Section */
.course-buttons-container { display: flex; flex-direction: column; gap: 24px; max-width: 100%; margin: 60px auto 0 auto; padding: 0 6vw; }
.course-button { display: flex; align-items: center; justify-content: space-between; padding: 30px 40px; border-radius: 12px; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); text-align: left; border: 1px solid transparent; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.3; color: black; letter-spacing: 0.8px; text-decoration: none; }

/* Hero CTA Section */
.glass-button { display: inline-block; padding: 15px 30px; border-radius: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background-color: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255,255,255,0.3); font-weight: 800; font-size: 18px; letter-spacing: 1px; line-height: 1.2; color: #fff; transition: all 0.3s ease; box-shadow: 0 8px 32px 0 rgba(0,0,0,0.3); text-decoration: none; }
.glass-button:hover { background-color: rgba(255, 184, 107, 0.3); border-color: #ffb86b; transform: translateY(-2px); box-shadow: 0 10px 30px 0 rgba(255,184,107,0.4); }

.hero-cta { position: relative; height: calc(var(--vh, 1vh) * 100); width: 100%; display: flex; align-items: center; overflow: hidden; background: #050505; }
.cta-image { position: absolute; bottom: 0; left: 0; height: 100%; width: auto; max-width: 55vw; object-fit: cover; object-position: top center; z-index: 1; pointer-events: none; }
.cta-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; background: linear-gradient(90deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0) 30%, #050505 60%); }
.cta-content { position: relative; z-index: 10; margin-left: 50%; width: 50%; padding: 0 6vw 0 2vw; display: flex; flex-direction: column; gap: 20px; justify-content: center; height: calc(var(--vh, 1vh) * 100); align-items: flex-start; text-align: left; }
