/* palette
viola scuro #231651
lilla #E0D2FF
azzurro #63C3FF
rosso #AA4465
*/
/* STILI GENERALI */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Righteous", sans-serif;
    font-weight: 400 !important; 
    font-style: normal;
    color: #E0D2FF;
}
body{
    background-color: #231651;
}
p{
    font-family: "Merriweather Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
}
.color-text-light{
    color: #E0D2FF;
}
.color-text{
    color: #63C3FF !important;
}
.btn {
    padding: 1em 2em;
}
.bg-dark-custom {
    background-color: #231651;
}
.bg-light-custom {
    background-color: #E0D2FF;
}
.btn-dark-custom {
    border: 2px solid #63C3FF;
    color: #FFF;
    background-color: #E0D2FF;
}
.card {
    border-radius: 24px;
    padding: 20px;
    background: transparent;
}
.card-outline-blue {
    border: 2px solid #63C3FF;
}

.card-outline-purple {
    border: 2px solid #231651;
}
.step{
    background-color: #231651;
}
.badge-light {
    border-radius: 50px;
    font-size: 0.9rem;
    background-color: #ffffff;
    color: #231651;
    padding: 6px 12px;
    white-space: nowrap;
}
#img_skills {
    width: 90px;
}
span:hover{
    color:#63C3FF !important;
}

/* HERO HOME */

section.hero {
    position: relative;
    min-height: 520px;
    background-color: #231651;
    padding-top: 12vh !important;
}
#sottotitolo_hero{
    font-size: 1.5em;
    color: #AA4465;
}
.hero-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-emoji-wrapper {
  margin-bottom: -60px;
  position: relative;
  z-index: 3;
}

@media (min-width: 992px) {
  .hero h1 { font-size: 5.4rem; }
}
@media (max-width: 992px) {
  .hero-emoji-wrapper { display: none; }
  .img_hero{ width: 40vh; }
}
@media (max-width: 991px) {
    .img_hero img {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .img_hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* ANIMAZIONE BOTTONE */
.fancy {
    --offset: 3px;
    background: rgba(224, 210, 255, 60%);
    border-radius: 50px;
    position: relative;
    display: inline-block;
    padding: 0.75rem 2rem;
    color: #231651;
    font-family: "Righteous", sans-serif;
    font-weight: 400;
    text-decoration: none !important;
    font-size: 1.6rem;
    overflow: hidden;
    isolation: isolate; /* crea uno stacking context pulito */
}

/* Testo sopra tutto */
.fancy span {
    position: relative;
    z-index: 2;
    color: inherit;
    text-decoration: none !important;
}

/* Conic gradient rotante (il "bordo" animato) */
.fancy::before {
    content: '';
    background:#231651
     linear-gradient(90deg, rgba(35, 22, 81, 0.62) 30%, rgba(99, 195, 255, 1) 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1;
    width: 100%;
    animation: rotate 2s linear infinite;
    z-index: 0;
}

/* Overlay interno che "copre" il gradient lasciando vedere solo il bordo */
.fancy::after {
    content: '';
    background: inherit;
    border-radius: inherit;
    position: absolute;
    inset: var(--offset);
    z-index: 1;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) scale(1.4) rotate(0turn); }
    to   { transform: translate(-50%, -50%) scale(1.4) rotate(1turn); }
}


/* LOGO */

.custom-logo {
    height: 88px;
    z-index: 1000
}

.custom-logo img {
    max-width: 100%;
    height: 60px;
    width: auto
}

@media(max-width:767.5px) {

    .custom-logo img {
        display: none;
    }
}

/* SECTION STEP HOME */
.titolo-step {
    font-size: 6rem !important;
    line-height: 1.1;
}
@media (max-width: 991.98px) {
    .titolo-step { font-size: 4rem; }
}

@media (max-width: 575.98px) {
    .titolo-step { font-size: 2.75rem; }
}
.intro-step {
    color: #63C3FF;        
    max-width: 700px;        
    font-size: 1rem;
}
.card-home {
    background: rgba(237, 229, 255, 0.067);
    border-radius: 1.5rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.card-home::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: #AA4465;
        background: linear-gradient(180deg, rgba(170, 68, 101, 1) 0%, rgba(99, 195, 255, 1) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.card-home .card-title {
    color: #63C3FF;      
    font-weight: bold;
}
.card-home .card-text {
    color: #AA4465;
}
.card-stars {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.card-stars img {
    max-width: 40px;
    height: auto;
}


/* ABOUT */

.about-bg-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 1;
    pointer-events: none;
    transform: rotateX(180deg);
}
.card-presentazione {
    border-color: #63C3FF !important;
}
@media (max-width: 800px) {
    .about-section {
        background-image: none !important;
    }
}
.about-content {
    position: relative;
    z-index: 2;
}

.titoloAboutHome {
    margin-bottom: 20px;
    color: #E0D2FF !important;
    font-size: 4rem;
    line-height: 1.1;
    font-family: "Righteous", sans-serif;
}
@media (max-width: 767.98px) {
    .titoloAboutHome {
        font-size: 2.5rem !important;
        margin-top: 20px;
    }
}
.about-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 540px;
}

.about-image-box {
    position: relative;
}

.about-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(35, 22, 81, 0.25);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.about-circle-top {
    width: 90px;
    height: 90px;
    top: 80px;
    right: -40px;
}


.about-circle-cta {
    width: 95px;
    height: 95px;
    right: -40px;
    bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #231651;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
}

@media (max-width: 767.98px) {
    .about-image-box {
        display: inline-block;
        padding-bottom: 55px;
    }

    .about-circle-top {
        width: 80px;
        height: 80px;
        top: auto;
        bottom: 30px;
        left: 20px;
    }


    .about-circle-cta {
        width: 80px;
        height: 80px;
        right: 20px;
        bottom: 30px;
        font-size: 10px;
    }
}
/* ==========================================================
   ABOUT — Section "Education & Skills"
   Palette: #231651 bg · #E0D2FF chiaro · #63C3FF accento
   ========================================================== */

.section-about-skills {
    background-color: #231651;
    background-image: var(--section-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #E0D2FF;
    padding: 80px 0;
}

/* Sotto i 768px lo sfondo decorativo sparisce */
@media (max-width: 800px) {
    .section-about-skills {
        background-image: none;
    }
}

/* ---------- Card generica ---------- */
.card-about {
    background-color: #231651;
    border: 1.5px solid #63C3FF;
    border-radius: 24px;
    padding: 2rem;
}

/* ---------- Titoli card principali ---------- */
.card-title-main {
    color: #E0D2FF;
    font-size: 42px;
    font-weight: 500;
    line-height: 50px;
    margin-bottom: 1rem;
    text-align: center;
}

.card-cv {
    text-align: center;
}

.card-cv .card-title-main {
    margin-bottom: 0.75rem;
}

/* ---------- Testo card ---------- */
.card-text {
    color: #ffffff;
    font-size: 1rem;          /* 16px */
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.card-cv .card-text {
    font-size: 1rem;     /* 15px */
    color:#63C3FF
}

.card-education .card-text {
    margin-bottom: 0;
}

/* ---------- Bottone CV ---------- */
.btn-cv {
    background: linear-gradient(135deg, #E0D2FF 0%, #C4B5FD 50%, #A78BFA 100%);
    color: #231651;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-family: 'Righteous', sans-serif;
    font-size: 1.125rem;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.btn-cv:hover,
.btn-cv:focus {
    transform: scale(1.05);
}

/* ---------- Immagine memoji ---------- */
.about-image-wrap {
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.about-image-wrap img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
}

/* ---------- Card Skills (Hard / Soft) ---------- */
.skills-title {
    color: #E0D2FF;
    font-size: 36px;        /* 24px */
    font-weight: 500;
    margin: 0;
    text-align: center;
}

@media (min-width: 992px) {
    .skills-title {
        text-align: left;
    }
}

.skills-icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

/* Label Soft Skills: pill outline cyan, testo light */
.skill-label {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #63C3FF;
    color: #E0D2FF;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

/* ==========================================================
   RESPONSIVE — sotto i 992px (lg)
   ========================================================== */
@media (max-width: 991.98px) {
    .section-about-skills {
        padding: 56px 0;
    }

    .card-about {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .card-title-main {
        font-size: 26px;   /* 20px */
    } 

    .card-text {
        font-size: 0.875rem;  /* 14px */
    }

    .skills-title {
        font-size: 26px;
    }

    .skills-icon {
        width: 55px;
        height: 55px;
    }

    .skill-label {
        font-size: 14px;
        padding: 0.35rem 0.85rem;
    }

    .btn-cv {
        font-size: 0.875rem;
        padding: 0.5rem 1.4rem;
    }
}

/*HOME MARQUEE*/
.section-marquee {
    background-color: #231651;
    padding: 60px 0;
    overflow: hidden;
}

.marquee-title {
    color: #E0D2FF;
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 2.5rem;
}


.marquee-wrap {
    width: 100%;
    overflow: hidden;
    /* Sfumatura ai lati: i loghi non spuntano bruscamente */
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* Modifica la gap esistente: la riduciamo perché ora c'è il separatore di mezzo */
.marquee-track {
    display: flex;
    gap: 2rem;                /* prima era 3.5rem */
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
    align-items: center;
}

/* Stile del simbolo separatore */
.marquee-sep {
    color: #AA4465;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.7;
    user-select: none;
}

@media (max-width: 767.98px) {
    .marquee-track { gap: 1.25rem; }
    .marquee-sep { font-size: 1.125rem; }
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.333%); }
}

.marquee-item img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.marquee-item:hover img {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .section-marquee { padding: 40px 0; }
    .marquee-title { font-size: 1.5rem; }
    .marquee-subtitle { font-size: 0.875rem; margin-bottom: 1.75rem; }
    .marquee-track { gap: 2.5rem; animation-duration: 18s; }
    .marquee-item img { height: 42px; }
}

/* HOME PROGETTI */
.titolo-progetti {
    font-size: 4em;
    background: #E0D2FF;
    background: linear-gradient(180deg, rgba(224, 210, 255, 1) 23%, rgba(99, 195, 255, 1) 77%);

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .titolo-progetti {
        font-size: 6em;
    }
}

@media (min-width: 992px) {
    .titolo-progetti {
        font-size: 8em;
    }
}
.bg-progetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;       
    opacity: 0.4;            
    pointer-events: none;   
    z-index: 0;
}

@media (max-width: 991.98px) {
    .bg-progetti {
        display: none;
    }
}

.progetti .container {
    position: relative;
    z-index: 1;
}

/* ===== Swiper progetti ===== */
.progetti-swiper {
    padding: 0 0 60px;
}

.progetti-swiper .swiper-slide {
    width: 70%;          /* slide centrale occupa il 70% */
    max-width: 700px;
}

.progetti-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

@media (max-width: 820px) {
    .progetti-swiper { padding: 0 0 48px; }
    .progetti-swiper .swiper-slide { width: 85%; }
}

/*HOME CONTATTI*/
.section-cta-finale {
    background-color: #231651;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Linee decorative coral sopra/sotto (commentale se non le vuoi) */
.section-cta-finale::before,
.section-cta-finale::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FB7185 50%, transparent);
    opacity: 0.5;
}
.section-cta-finale::before { top: 30px; }
.section-cta-finale::after  { bottom: 30px; }

.cta-title {
    color: #E0D2FF;
    font-size: 3rem;             /* 48px desktop */
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.cta-subtitle {
    color: #63C3FF;
    font-size: 1.125rem;
    line-height: 1.55;
    max-width: 540px;
    margin: 0 auto 2.5rem;
}

@media (max-width: 767.98px) {
    .section-cta-finale { padding: 64px 0; }
    .cta-title { font-size: 2rem; }
    .cta-subtitle { font-size: 1rem; margin-bottom: 2rem; }
}

/* NAV COLLAPSE */

#navbarContainer {
    width: 500px;
}

.navbar-collapse {
    background-color: #E0D2FF;
    font-family: "Righteous", sans-serif;
    color: #231651;
    border-radius: 50px;
    width: fit-content;
    padding: 8px 16px;
}

/* ==========================================================
   PROGETTI — Archive
   Palette: #231651 bg · #E0D2FF chiaro · #63C3FF accento
   ========================================================== */

.section-progetti {
    background-color: #231651;
    color: #E0D2FF;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* ---------- Titolo pagina ---------- */
.page-title-progetti {
    color: #E0D2FF;
    font-size: 4rem;             /* 64px desktop */
    font-weight: 800;
    text-align: center;
    margin: 0;
    line-height: 1.1;
}

/* ---------- Card progetto ---------- */
.card-progetto {
    background-color: rgba(99, 195, 255, 0.04);
    border: 2px solid #63C3FF;   /* bordo più spesso */
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card-progetto:hover {
    transform: translateY(-4px);
    border-color: #E0D2FF;
}

/* ---------- Immagine in evidenza ---------- */
.card-progetto-img-link {
    display: block;
    padding: 1rem 1rem 0;        /* respiro sopra e ai lati, niente sotto */
}

.card-progetto-img {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 6;       /* uniforma le proporzioni di tutte le anteprime */
    object-fit: cover;
    display: block;
    border-radius: 10px;         /* l'immagine ha i suoi angoli arrotondati */
    transition: transform 0.4s ease;
}

.card-progetto:hover .card-progetto-img {
    transform: scale(1.03);
}

/* ---------- Body card ---------- */
.card-progetto-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ---------- Titolo card ---------- */
.card-progetto-title {
    font-size: 1.75rem;          /* 28px desktop */
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.card-progetto-title a {
    color: #E0D2FF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-progetto-title a:hover,
.card-progetto-title a:focus {
    color: #63C3FF;
}

/* ---------- Testo card (altezza uniforme: 3 righe sempre) ---------- */
.card-progetto-text {
    color: #63C3FF;
    font-size: 0.95rem;          /* ~15px */
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;

    /* Massimo 3 righe visibili, "..." se eccede */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* Riserva sempre lo spazio di 3 righe anche se il testo è più corto */
    min-height: calc(1.55em * 3);
}

/* Reset dei <p> di the_content() per non rompere il line-clamp */
.card-progetto-text p {
    margin: 0;
    display: inline;
}


/* ---------- Bottone "Scopri di più" — stile fancy in versione card ---------- */
.btn-progetto {
    --offset: 2px;
    background: rgba(224, 210, 255, 0.6);
    border-radius: 999px;
    position: relative;
    display: inline-block;
    align-self: flex-start;
    padding: 0.6rem 1.7rem;
    color: #231651;
    font-weight: 600;
    font-size: 1.125rem;          /* prima era 0.95rem */
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s ease;
}
a.btn-progetto{
    position: relative;
    z-index: 2;
    color: inherit;
    text-decoration: none !important;
}

/* Conic gradient rotante (il "bordo" animato) */
.btn-progetto::before {
    content: '';
    background:#231651
     linear-gradient(90deg, rgba(35, 22, 81, 0.62) 30%, rgba(99, 195, 255, 1) 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1;
    width: 100%;
    animation: rotate 2s linear infinite;
    z-index: 0;
}

/* Overlay interno che "copre" il gradient lasciando vedere solo il bordo */
.btn-progetto::after {
    content: '';
    background: inherit;
    border-radius: inherit;
    position: absolute;
    inset: var(--offset);
    z-index: 1;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) scale(1.4) rotate(0turn); }
    to   { transform: translate(-50%, -50%) scale(1.4) rotate(1turn); }
}
/* ==========================================================
   RESPONSIVE — sotto i 768px
   ========================================================== */
@media (max-width: 767.98px) {
    .section-progetti {
        padding-top: 24px;
        padding-bottom: 56px;
    }

    .page-title-progetti {
        font-size: 2.5rem; 
        margin-top: 20px;     
    }

    .card-progetto-img-link {
        padding: 0.75rem 0.75rem 0;
    }

    .card-progetto-title {
        font-size: 1.25rem;      /* 20px mobile */
    }

    .card-progetto-text {
        font-size: 0.875rem;     /* 14px mobile */
    }

    .btn-progetto {
        font-size: 0.875rem;
        padding: 0.45rem 1.3rem;
    }
}

/* ==========================================================
   SINGOLO PROGETTO
   Palette: #231651 bg · #E0D2FF chiaro · #63C3FF accento · #FB7185 coral
   ========================================================== */

.single-progetto {
    background-color: #231651;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #E0D2FF;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ---------- Titolo principale del progetto ---------- */
.progetto-title {
    color: #E0D2FF;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 2rem;
    padding-top: 120px;
}


/* ---------- HERO: immagine + brief ---------- */
.progetto-hero {
    padding-bottom: 60px;
}

.progetto-img-main {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 6;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.card-brief {
    display: flex;
    flex-direction: column;
}

.card-brief-title {
    color: #E0D2FF;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.card-brief-text {
    color: #63C3FF;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.btn-visualizza {
    align-self: flex-start;
    background-color: #E0D2FF;
    color: #231651;
    border-radius: 999px;
    padding: 0.55rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-visualizza:hover {
    transform: translateY(-1px);
    background-color: #fff;
    color: #231651;
}

/* ---------- PROTOTIPO ---------- */
.progetto-prototipo {
    padding: 40px 0;
}

.prototipo-title {
    color: #E0D2FF;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 2rem;
}

.prototipo-img-wrap {
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    max-width: 400px;      /* ← nuova riga, regola a piacere */
    margin: 0 auto;
}

.prototipo-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.highlights-title {
    color: #E0D2FF;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-icon {
    color: #AA4465;
    font-size: 3rem;          /* prima era 1.25rem */
    line-height: 1;
    flex-shrink: 0;
}

.highlight-label {
    color: #E0D2FF;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.highlight-value {
    color: #63C3FF;
    font-size: 1rem;
    line-height: 1.5;
}
.highlights-panel{
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); 
    padding: 16px 16px;
}
@media (min-width: 992px) {
    .highlights-panel {
        padding-right: 0;
        margin-left: auto;        /* spinge il pannello verso destra */
        max-width: 320px;         /* compatta il testo, non occupa tutta la colonna */
    }
}

/* ---------- SINTESI ---------- */
.progetto-sintesi {
    padding: 60px 0 100px;
}

.sintesi-title {
    color: #E0D2FF;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 2rem;
}

.card-sintesi {
    background-color: rgba(99, 195, 255, 0.04);
    border: 2px solid #63C3FF;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
}

.card-sintesi-star {
    display: inline-block;
    color: #AA4465;
    font-size: 3rem;          /* prima era 2rem */
    margin-bottom: 1rem;
    line-height: 1;
}
.card-sintesi-title {
    color: #E0D2FF;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.card-sintesi-text {
    color: #63C3FF;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 879.98px) {
    .single-progetto {
        background-image: none !important;
    }
}

@media (max-width: 991.98px) {
    .progetto-title { font-size: 2.25rem; padding-top: 120px; }
    .prototipo-title, .sintesi-title { font-size: 1.5rem; }
    .card-brief, .highlights-panel, .card-sintesi { padding: 1.5rem; }
    .card-brief-title { font-size: 1.35rem; }
    .progetto-img-wrap { padding: 1rem; }
}

@media (max-width: 767.98px) {
    .progetto-hero { padding-bottom: 40px; }
    .progetto-sintesi { padding-bottom: 64px; }
}

/* ===================== PAGINA CONTATTI ===================== */
.page-contatti {
    background-color: #231651;
    color: #E0D2FF;
    padding: 80px 0 60px;
    min-height: 100vh;
}

/* HERO */
.section-hero-contatti { padding: 60px 0 40px; }
.hero-contatti-title {
    font-family: 'Righteous', sans-serif;
    font-size: 3rem;
    color: #E0D2FF;
    margin-bottom: 1rem;
}
.hero-contatti-intro {
    color: #63C3FF;
    font-size: 1.125rem;
    max-width: 700px;
}

/* FORM */
.section-form-contatti { padding: 60px 0; }
.form-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 2.5rem 2rem;
}
.form-wrap label {
    display: block;
    color: #E0D2FF;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.form-wrap .form-control {
    width: 100%;
    background: rgba(99, 195, 255, 0.08);
    border: 1px solid rgba(99, 195, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #E0D2FF;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.form-wrap .form-control:focus {
    outline: none;
    border-color: #63C3FF;
    background: rgba(99, 195, 255, 0.12);
    color: #fff;
}
.form-wrap select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2363C3FF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-wrap select.form-control option {
    background: #231651;
    color: #E0D2FF;
}
.form-wrap textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Bottone submit del form */
.btn-form-submit {
    background: linear-gradient(135deg, #E0D2FF 0%, #C4B5FD 50%, #A78BFA 100%);
    color: #231651;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-family: 'Righteous', sans-serif;
    font-size: 1.125rem;
    cursor: pointer;
    transition: transform 0.25s ease;
}
.btn-form-submit:hover {
    transform: scale(1.05);
}

/* Messaggi CF7 (errori e successo) */
.wpcf7-response-output {
    border-radius: 8px !important;
    padding: 0.85rem 1rem !important;
    margin-top: 1.5rem !important;
    color: #E0D2FF !important;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #63C3FF !important;
    background: rgba(99, 195, 255, 0.12) !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #FB7185 !important;
    background: rgba(251, 113, 133, 0.12) !important;
}
.wpcf7-not-valid-tip {
    color: #FB7185 !important;
    font-size: 0.85rem !important;
    margin-top: 0.3rem !important;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .hero-contatti-title { font-size: 2.25rem; }
    .card-cv-contatti, .card-gradient-contatti { padding: 2rem 1.5rem; }
    .form-wrap { padding: 1.5rem 1rem; }
}

/* ===========================
   FOOTER
   =========================== */

#footer {
    background: #231651;
    padding: 2em 5%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --- Riga superiore --- */
.footer-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
}

/* Logo + nome affiancati */
.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-titolo {
    color: #E0D2FF;
    font-size: 1rem;
    font-weight: 600;
}

/* Bottone email con icona */
.footer-email-btn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: #E0D2FF;
    text-decoration: none;
    border: 1.5px solid #E0D2FF;
    border-radius: 999px;
    padding: 0.45em 1.1em;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.footer-email-btn:hover {
    background: #E0D2FF;
    color: #231651;
}

.footer-email-btn svg {
    flex-shrink: 0;
}

/* --- Divisore --- */
.footer-hr {
    border: none;
    border-top: 1px solid rgba(224, 210, 255, 0.3);
    margin: 1.25em 0;
}

/* --- Riga inferiore --- */
.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1em;
}

.footer-rights {
    color: #E0D2FF;
    font-size: 0.8rem;
    opacity: 0.75;
}

/* ===========================
   MOBILE (max 600px)
   =========================== */
@media (max-width: 600px) {

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
    }

    .footer-email-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.4em;
    }
}