/* Stili dedicati alla pagina Solutions Portfolio */


/* Riutilizza font e colori di base da main.css:
   - body, sfondo scuro, font Montserrat
   - header già definito in main.css e qui solo piccoli adattamenti se servono
*/

html,
body {
    height: auto;
    min-height: 100%;
}

body {
    background-color: #0c0c0c;
    color: #fff;
    font-family: "Montserrat", sans-serif;
}

.perspective {
    min-height: 100vh;
}


/* Layout principale della pagina portfolio (full-page sections, senza cards) */

.solutions-portfolio {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


/* Header del portfolio sempre visibile, leggermente sovrapposto */

.header--portfolio {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0 5%;
    background: linear-gradient(to bottom, rgba(12, 12, 12, 0.92), rgba(12, 12, 12, 0.65), transparent);
}


/* Contenitore destro dell'header (pulsante "What's next?" + burger) */

.header--right {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 5%;
}


/* Pulsante header "What's next?" nel portfolio */

.sp-header-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: radial-gradient(circle at 0% 0%, rgba(15, 51, 255, 0.35), rgba(0, 0, 0, 0.8));
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 rgba(79, 125, 255, 0.0);
    animation: sp-header-glow 2.2s ease-in-out infinite;
}

.sp-header-next.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.sp-header-next:hover {
    transform: translateY(-50%) translateY(-1px);
}

.sp-header-next-label,
.sp-header-next-arrow {
    display: inline-block;
}

.sp-header-next-arrow {
    font-size: 14px;
}

@keyframes sp-header-glow {
    0% {
        box-shadow: 0 0 0 rgba(79, 125, 255, 0.0);
    }
    50% {
        box-shadow: 0 0 18px rgba(79, 125, 255, 0.55);
    }
    100% {
        box-shadow: 0 0 0 rgba(79, 125, 255, 0.0);
    }
}

.sp-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 60px;
    /* spazio per header fisso */
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sp-section.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sp-section.is-prev,
.sp-section.is-next {
    opacity: 0;
}


/* Indicatori laterali: dots numerati + frecce */

.sp-nav {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
    /* i singoli elementi riattivano pointer-events */
}

.sp-arrow {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.sp-arrow:hover {
    opacity: 1;
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.7);
}

.sp-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.sp-dots {
    pointer-events: auto;
    list-style: none;
    margin: 8px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-dot {
    width: 32px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sp-dot span {
    pointer-events: none;
}


/* Dot speciale per la slide intro con icona home */

.sp-dot--home {
    padding: 0;
}

.sp-dot-icon-home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-dot-icon-home svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}


/* Dot speciale per la slide CTA con icona lampadina */

.sp-dot--idea {
    padding: 0;
}

.sp-dot-icon-idea {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-dot-icon-idea svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sp-dot:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    transform: translateX(-1px);
}

.sp-dot.is-active {
    opacity: 1;
    background: #0f33ff;
    border-color: #0f33ff;
    color: #fff;
}


/* Intro */

.sp-section--intro {
    text-align: center;
}

.sp-intro-content {
    max-width: 720px;
}

.sp-section--intro h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 16px;
}

.sp-section--intro p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}


/* Slide finale CTA "Creiamo il prossimo progetto" */

.sp-section--cta {
    text-align: center;
}

.sp-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
}

.sp-cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 60%);
}

.sp-cta-icon svg {
    width: 32px;
    height: 32px;
    fill: #ffd75a;
}

.sp-cta-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 16px;
}

.sp-cta-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 14px;
}

.sp-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #ffffff;
    background: #0f33ff;
}

.sp-cta-link:hover {
    background: #1f45ff;
}

.sp-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
}

.sp-scroll-icon {
    width: 18px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.sp-scroll-icon::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
    animation: sp-scroll 1.4s infinite ease-in-out;
}

@keyframes sp-scroll {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, 4px);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, 10px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 16px);
    }
}


/* Sezioni progetto full-page, senza cards */

.sp-project {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-project-media,
.sp-project-content {
    flex: 1;
}

.sp-project {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.sp-project-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-project-image {
    width: 100%;
    max-width: 520px;
    min-height: 260px;
    border-radius: 24px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* Immagine specifica per il progetto Rally dei Laghi */

.sp-project--rally .sp-project-image {
    background-image: url("../img/portfolio/rally.png");
}


/* Immagine specifica per il progetto Industria 4.0 (cobot) */

.sp-project--industry40 .sp-project-image {
    background-image: url("../img/portfolio/cobot.png");
}


/* Immagine specifica per il progetto oratorio.cloud */

.sp-project--oratorio .sp-project-image {
    background-image: url("../img/portfolio/oratorio.cloud.png");
}


/* Placeholder visivo in attesa delle foto reali */

.sp-project-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    background: radial-gradient(circle at top left, #1c37ff 0, #0c0c0c 55%), radial-gradient(circle at bottom right, #161616 0, #0c0c0c 60%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sp-project-content {
    max-width: 580px;
}

.sp-project-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
}

.sp-project-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.85);
}

.sp-project-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sp-project-keywords span {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

.sp-project-summary {
    margin: 0 0 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
}


/* Immagine specifica per il progetto fotovoltaico Pavia */

.sp-project--fotovoltaico .sp-project-image {
    background-image: url("../img/portfolio/fotovoltaico1.png");
}


/* Immagine specifica per il progetto infrastruttura IT */

.sp-project--infrastruttura .sp-project-image {
    background-image: url("../img/portfolio/compliance_carne.jpg");
}

.sp-project-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #4f7dff;
    /* blu elettrico più chiaro per maggiore leggibilità */
}

.sp-project-link:hover {
    text-decoration: underline;
    color: #7395ff;
}


/* Responsive */

@media (max-width: 960px) {
    .sp-section {
        padding-top: 90px;
    }
    .sp-section--intro h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .sp-nav {
        right: 16px;
    }
    .sp-section {
        flex-direction: column;
        align-items: stretch;
    }
    .sp-project {
        flex-direction: column;
    }
    .sp-project-media {
        margin-bottom: 24px;
    }
    .sp-project-content {
        max-width: 100%;
    }
    /* Testo leggermente più compatto in mobile per far entrare meglio i contenuti a schermo */
    .sp-project-content h2 {
        font-size: 20px;
    }
    .sp-project-content h3 {
        font-size: 16px;
        margin-bottom: 14px;
    }
    .sp-project-summary {
        font-size: 12px;
        line-height: 1.5;
        padding-right: 40px
    }
    .sp-project-keywords span {
        font-size: 11px;
        padding: 3px 8px;
    }
    .sp-cta-text h2 {
        font-size: 26px;
    }
    .sp-cta-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sp-section--intro h1 {
        font-size: 34px;
    }
    .sp-section--intro p {
        font-size: 16px;
    }
}

@media (max-width: 960px) {
    .sp-header-next {
        padding: 6px 14px;
        font-size: 11px;
    }
    .header--right {
        gap: 8px;
    }
}