:root{
    --success: #22c55e;
    --warning: #facc15;
    --error: #e00404;

    --text-main: #f8fafc;
	--text-muted: #cbd5e1;

	--blue-primary: #4f93e0;
	--blue-glow: rgba(79, 147, 224, 0.6);
	
    --body-background: #162436;
    --header-bg: rgba(22, 36, 54, 0.75);
    --card-bg: rgba(30, 50, 75, 0.55);
	--glass-border: rgba(255, 255, 255, 0.15)
}

/* =========================================
   HEADER & NAVIGAZIONE
========================================= */
.logo {
    flex-shrink: 0;
    margin-right: 20px;
}

.navbar {
	position: fixed;
    width: 100%;
    padding: 15px 5%;
	display: flex;
	justify-content: space-between;
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--glass-border);
	z-index: 1000;
}

.nav-menu { display: flex; gap: 30px; align-items: center; }

.nav-link{ color: var(--text-muted); font-size: 18px; }
.nav-link.is-active{ color: white; text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }

.nav-toggle { display: none; background: none;border: none; cursor: pointer; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #ffffff; margin: 5px 0; transition: 0.3s; }

/* =========================================
   PULSANTI DI LOGIN/LOGOUT
========================================= */
.logout-responsive {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
}
.logout-responsive .logout-icon { display: block; }
.logout-responsive .logout-text { display: none; }

/* aaa */
.header-section{
	padding-top: 140px;
	background-size: cover;
}

/* =========================================
   HERO
========================================= */
.hero-title{
	font-family: 'Exo 2', sans-serif;
	display: flex;
	justify-content: center;
	z-index: 5;
	letter-spacing: -1px;
	white-space: nowrap;
	word-break: normal;
	font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
	font-weight: 700;
	color: white;
	position: absolute;
	overflow: hidden;
	inset: auto 0 215px 10px;
	text-shadow: 2px 4px 15px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.6)
}
.hero-title .span{ color: var(--blue-primary); }

.hero-subtitle{
	font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.8);
	position: absolute;
	overflow: hidden;
	inset: auto 0 205px 10px;
	z-index: 5;
}

/* =========================================
   ARROW
========================================= */
.section-arrow{
	z-index: 3;
	padding: 200px 3%;
	position: relative;
}
.section-arrow.for-inner{ padding: 2px !important; }

.bottom-arrow{
	justify-content: center;
	align-items: flex-end;
	display: flex;
	position: absolute;
	inset: -37px 0 auto;
}

.shape-arrow{ width: 180px; }
.shape-arrow-bottom{ position: absolute; color: var(--text-muted); }

.line-diagonal-left,
.line-diagonal-right,
.line-vertical{
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
	stroke-dasharray: 20;
	stroke-dashoffset: 20;
	animation: draw 1.5s ease-in-out infinite;
}

@keyframes draw{
	0% { stroke-dashoffset:20; opacity:0 }
	25%,75%{ stroke-dashoffset:0; opacity:1 }
	to{ stroke-dashoffset:-20; opacity:0}
}

@media (max-width: 1250px) and (min-width: 1101px) {
    .navbar { padding: 15px 3%; }
    .logo img { height: 32px; }
    .nav-menu { gap: 12px; }
    .nav-menu a { font-size: 0.78rem; }
}

@media (max-width: 1100px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(22, 36, 54, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 5%;
        border-bottom: 1px solid var(--glass-border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }

	.nav-toggle { display: block; }
	.navbar.nav-open .nav-menu { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media screen and (min-width:992px){
	.nav-link{ font-size: 0.95rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s ease; }
	.nav-link:hover, .nav-link.is-active{ color: white; text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }
}

@media screen and (max-width:991px){
    .navbar { margin-top: 0; }
    .nav-menu{ padding-top: 60px; padding-bottom: 20px; background: rgba(18, 29, 41, 0.98); }
    .nav-link{ text-align: center; }

    .btn-primary.clicked-ani.nav-btn{ display: inline-block; margin-top: 20px; margin-left: 0; }

	.logout-responsive .logout-icon { display: none; }
    .logout-responsive .logout-text { display: inline; }

    .hero-title{ bottom: 35px; }
}

@media screen and (max-width:767px){
	.btn-primary.clicked-ani.nav-btn{ margin-left: 0; } 
}

@media screen and (max-width:480px){
    .nav-logo{ width: 147px; height: 52px; }
    .hero-title{ bottom: 66px; }

    .section-arrow{ margin-top: unset !important; padding-top: 0 !important; padding-bottom: 0 !important; }
    .shape-arrow-bottom.second{ width:22px }
}