/* Stili per il carousel (Home/Index) */
.carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 12px 0 24px 0;
}

.viewport {
    overflow: hidden;
    width: 100%;
}

.track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* 3 visibili: ogni slide occupa 1/3 della viewport */
.slide {
    flex: 0 0 calc(100% / 3);
    box-sizing: border-box;
    padding: 0 8px;
}

.slide h3 {
    text-align: center;
    margin: 6px 0 8px 0;
}

.carousel img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.carousel img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav {
    margin: 10px;
    padding: 8px 14px;
    cursor: pointer;
    user-select: none;
}

.nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Stili per il form di creazione CV (Views/Cvcreate/Index.cshtml) */
#cvForm {
    max-width: 900px;
    margin: 0 auto 24px auto;
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

#cvForm .step {
    margin-bottom: 12px;
}

#cvForm input[type="text"],
#cvForm input[type="email"],
#cvForm textarea {
    width: calc(50% - 12px);
    display: inline-block;
    padding: 10px 12px;
    margin: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

#cvForm textarea { width: 100%; min-height: 100px; }

#cvForm button {
    background: linear-gradient(90deg,#4b6cb7,#182848);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

#cvForm button:hover { opacity: 0.95; }

/* Stili per la sezione di visualizzazione CV (VisualizzaCV) */
.cv-view {
    max-width: 900px;
    margin: 24px auto;
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(24,40,72,0.06);
    color: #1f2937; /* neutro scuro */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.cv-header {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.cv-avatar {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: linear-gradient(135deg,#4b6cb7,#182848);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    flex-shrink: 0;
}

.cv-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.cv-contact {
    margin-top: 6px;
    color: #475569;
    font-size: 14px;
}

.cv-profile {
    margin-top: 12px;
    color: #374151;
    line-height: 1.45;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    margin-top: 18px;
}

.cv-main {
    padding-right: 6px;
}

.cv-side {
    background: #fbfdff;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.cv-section {
    margin-bottom: 16px;
}

.cv-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #0f172a;
}

.cv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-list li {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eef2f7;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background: linear-gradient(90deg,#eef2ff,#e6f0ff);
    color: #0b3a8a;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(75,108,183,0.12);
}

.project-item {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #eef2f7;
}

.social-link a {
    color: #1b6ec2;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide { flex: 0 0 calc(100% / 1); }
    #cvForm input[type="text"], #cvForm input[type="email"] { width: calc(100% - 24px); }
}

@media (max-width: 900px) {
    .cv-grid { grid-template-columns: 1fr; }
    .cv-header { flex-direction: column; align-items: flex-start; }
    .cv-avatar { width: 72px; height: 72px; font-size: 22px; }
}
