

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

    background-color: #f8f9fc;
    color: #212529;

    padding-top: 110px;
}

.navbar {
    min-height: 72px;
    z-index: 1030;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
	min-height: 72px;
}

.navbar-brand {
	font-size: 1.25rem;
	color: #111827;
}

.navbar-brand:hover {
	color: #111827;
}

.nav-link {
    color: #6b7280;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #0d6efd;
    font-weight: 700;
}

/* Linea sotto la pagina attiva */
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 0;
    height: 2px;
    background: #0d6efd;
    border-radius: 5px;
}

/* =========================
   BRAND
   ========================= */
.brand-icon {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: white;
	background: linear-gradient(135deg, #0d6efd, #6f42c1);
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.brand-icon-dark {
	background: linear-gradient(135deg, #0d6efd, #6f42c1);
}

/* =========================
   BUTTONS
   ========================= */
.btn-primary {
	border: none;
	background: linear-gradient(135deg, #0d6efd, #6f42c1);
	box-shadow: 0 5px 15px rgba(13, 110, 253, 0.20);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #0b5ed7, #5a32a3);
	transform: translateY(-1px);
}

/* =========================
   FOOTER
   ========================= */

/*.footer {
    margin-top: 0px;
}*/
/*footer {
	background: linear-gradient(135deg, #087cff, #5b3dcc);
	color: white;
	padding: 40px 0;
}*/

footer {
	    background:
        radial-gradient(
            ellipse at 75% 10%,
            rgba(54, 61, 170, 0.35) 0%,
            rgba(30, 32, 90, 0.18) 25%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 20% 45%,
            rgba(35, 30, 110, 0.20),
            transparent 55%
        ),
        #03030d;
	color: white;
	padding: 40px 0;
}



.footer-links li {
	margin-bottom: 10px;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.60);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
	color: white;
	padding-left: 4px;
}

/* =========================
   SOCIAL
   ========================= */
.social-link {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	text-decoration: none;
	transition: all 0.2s ease;
}

.social-link:hover {
	color: white;
	background-color: #0d6efd;
	border-color: #0d6efd;
	transform: translateY(-2px);
}

.app-main {
	margin: 0;
	padding: 0;
	background: transparent;
}

.logo {
	width: 105px;
	height: auto;
	object-fit: contain;
}

/* =========================
   PORTFOLIO HERO
========================= */
.portfolio-hero {
	padding: 90px 0 70px;
	background: #f8f9ff;
}

.portfolio-label, .section-label {
	color: #4f46e5;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 2px;
}

.portfolio-hero h1 span {
	background: linear-gradient(135deg, #087cff, #5b3dcc);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* =========================
   PORTFOLIO
========================= */
.portfolio-section {
	padding: 80px 0;
	background: #ffffff;
}

/* =========================
   CARD
========================= */
.portfolio-card {
	height: 100%;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid #eeeeee;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
}

.portfolio-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* =========================
   IMMAGINI
========================= */
.portfolio-image {
    height: 250px;
    background: #f8f9fa;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.portfolio-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
	transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
	transform: scale(1.08);
}

/* =========================
   OVERLAY
========================= */
.portfolio-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(8, 124, 255, 0.75),
		rgba(91, 61, 204, 0.75));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.portfolio-overlay i {
	color: white;
	font-size: 42px;
}

.portfolio-card:hover .portfolio-overlay {
	opacity: 1;
}

/* =========================
   TESTO CARD
========================= */
.portfolio-content {
	padding: 28px;
}

.portfolio-category {
	color: #5b3dcc;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1.5px;
}

.portfolio-content h3 {
	margin-top: 8px;
	font-size: 1.35rem;
	font-weight: 700;
}

.portfolio-content p {
	color: #6c757d;
	line-height: 1.7;
	margin-top: 12px;
}

/* =========================
   CTA
========================= */
.portfolio-cta {
	padding: 80px 0;
	color: white;
	background: linear-gradient(135deg, #087cff, #5b3dcc);
}

.portfolio-cta p {
	opacity: 0.9;
}

.cta-icon {
	font-size: 42px;
}

/*home carousel*/

/* =========================
   HERO CAROUSEL
   ========================= */

.hero-carousel {
    overflow: hidden;
}

.hero-carousel .carousel-inner {
    overflow: hidden;
}

.hero-carousel .carousel-item {
    transition: opacity 1.4s ease-in-out !important;
}

/* Evita lo slide laterale di Bootstrap */
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev,
.hero-carousel .carousel-item.active {
    transform: none !important;
}

/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Effetto zoom delicato */
.carousel-item.active .hero {
    animation: heroZoom 6s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

/* =========================
   OVERLAY
   ========================= */

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.60),
            rgba(0, 0, 0, 0.25)
        );

    z-index: 1;
}

/* =========================
   CONTENUTO
   ========================= */

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}



/*.hero-carousel {
	width: 100%;
}

.hero {
	position: relative;
	height: 550px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-item {
	transition: transform 0.8s ease-in-out;
}*/

.btn-contatti {
	border: none;
	background: linear-gradient(135deg, #0d6efd, #6f42c1);
	box-shadow: 0 5px 15px rgba(13, 110, 253, 0.20);
	border-radius: 10px;
	
	/*background-color: #000;*/
	border: 3px solid #ff8000;
	color: #ffffff;
	width: 210px;
	height: 60px;
	/*border-radius: 0;*/
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-contatti i {
	font-size: 20px;
}

.btn-contatti:hover {
	background-color: #ffd700;
	color: #000;
	transform: translateY(-2px);
}

/* Numero di telefono */
.telefono {
	display: none;
	margin: 20px auto 0;
	width: fit-content;
	padding: 12px 25px;
	background-color: #000;
	border: 2px solid #ffd700;
	color: #ffd700;
	font-size: 20px;
	font-weight: bold;
}

/*step 1 - 4*/
/* ========================================
   COPYCOLOR - COMPLEXITY SECTION
======================================== */

.complexity-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(30, 79, 130, 0.20),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(86, 45, 140, 0.15),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #050816 0%,
            #090d18 50%,
            #03050a 100%
        );

    color: white;
}


/* ========================================
   BACKGROUND GRID
======================================== */

.complexity-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 65px 65px;

    pointer-events: none;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}


/* ========================================
   GLOW BACKGROUND
======================================== */

.complexity-section::after {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    left: -200px;
    top: -250px;

    border-radius: 50%;

    background: rgba(13, 110, 253, 0.18);

    filter: blur(130px);

    pointer-events: none;
}


/* ========================================
   CONTAINER
======================================== */

.complexity-container {
    position: relative;
    z-index: 2;

    padding: 90px 12.5% 110px;
}


/* ========================================
   TITLE
======================================== */

.complexity-title {
    margin: 0;

    font-family: "Playfair Display", serif;

    font-size: clamp(48px, 5vw, 78px);

    line-height: 0.90;

    font-weight: 500;

    letter-spacing: -3px;

    color: #ffffff;

    text-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4);
}


/* ========================================
   TIMELINE
======================================== */

.complexity-timeline {
    position: relative;

    margin-top: 100px;

    width: 100%;

    min-height: 570px;
}


/* ========================================
   ITEM
======================================== */

.complexity-item {
    position: absolute;

    display: flex;

    color: #fff;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}


.complexity-item:hover {
    transform: translateY(-8px);
}


/* ========================================
   STEP NUMBER
======================================== */

.step-number {
    position: absolute;

    left: -4px;
    top: 0;

    color: #6ea8fe;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;

    transition: color 0.3s ease;
}


.complexity-item:hover .step-number {
    color: #ffffff;
}


/* ========================================
   CONTENT
======================================== */

.step-content {
    position: relative;

    padding-left: 45px;

    width: 400px;

    transition: transform 0.3s ease;
}


.step-content h3 {
    margin: 0 0 18px;

    font-size: 22px;

    line-height: 1.3;

    font-weight: 600;

    color: #ffffff;
}


.step-content p {
    margin: 0;

    max-width: 370px;

    color: rgba(255, 255, 255, 0.60);

    font-size: 15px;

    line-height: 1.6;

    font-weight: 400;
}


/* ========================================
   CONNECTING LINES
======================================== */

.complexity-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 30px;

    width: 1px;
    height: 135px;

    background:
        linear-gradient(
            to bottom,
            rgba(77, 171, 247, 0.8),
            rgba(255, 255, 255, 0.12)
        );
}


/* Linea orizzontale */

.complexity-item::after {
    content: "";

    position: absolute;

    left: 0;
    top: 165px;

    width: 290px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(77, 171, 247, 0.7),
            rgba(255, 255, 255, 0.08)
        );
}


/* Punto luminoso */

.complexity-item .step-number::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    left: -3px;
    top: 27px;

    background: #4dabf7;

    box-shadow:
        0 0 0 5px rgba(77, 171, 247, 0.12),
        0 0 20px rgba(77, 171, 247, 0.8);
}


/* ========================================
   POSIZIONAMENTO
======================================== */

.item-1 {
    left: 0;
    top: 0;
}

.item-2 {
    left: 20%;
    top: 145px;
}

.item-3 {
    left: 38%;
    top: 290px;
}

.item-4 {
    left: 56%;
    top: 435px;
}


/* Ultimo elemento */

.item-4::before {
    display: none;
}


/* ========================================
   RIGHT LINE
======================================== */

.right-line {
    position: absolute;

    right: 1.2%;
    top: 52%;

    width: 2px;
    height: 105px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #4dabf7,
            transparent
        );

    box-shadow:
        0 0 20px rgba(77, 171, 247, 0.6);

    z-index: 3;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 991px) {

    .complexity-container {
        padding-left: 7%;
        padding-right: 7%;
    }

    .complexity-timeline {
        min-height: 700px;
    }

    .item-1 {
        left: 0;
    }

    .item-2 {
        left: 15%;
        top: 150px;
    }

    .item-3 {
        left: 30%;
        top: 300px;
    }

    .item-4 {
        left: 45%;
        top: 450px;
    }

    .step-content {
        width: 330px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .complexity-section {
        min-height: auto;
    }

    .complexity-container {
        padding: 70px 25px 80px;
    }

    .complexity-title {
        font-size: 50px;
        letter-spacing: -2px;
    }

    .complexity-timeline {
        margin-top: 70px;

        min-height: auto;

        display: flex;
        flex-direction: column;

        gap: 55px;
    }

    .complexity-item {
        position: relative;

        left: auto !important;
        top: auto !important;

        padding-left: 20px;

        min-height: 120px;
    }

    .step-number {
        left: 0;
        top: 0;
    }

    .step-content {
        padding-left: 35px;

        width: 100%;
    }

    .step-content h3 {
        font-size: 21px;

        margin-bottom: 14px;
    }

    .step-content p {
        font-size: 15px;

        max-width: 100%;

        line-height: 1.6;
    }

    .complexity-item::before {
        left: 4px;

        top: 28px;

        height: calc(100% + 55px);
    }

    .complexity-item::after {
        display: none;
    }

    .complexity-item .step-number::after {
        left: -3px;
    }

    .item-4::before {
        display: none;
    }

    .right-line {
        display: none;
    }
}

/*Home*/

.hero-title {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.75);
    margin: 0;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 34px;
    }
}


