/**
 * Foglio di stile dedicato alle Schede Fotografo (Modelle Italia)
 * Brand Color: #e41315
 * Fonts: Belleza, Roboto, sans-serif
 */

.font-belleza {
    font-family: 'Belleza', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.mi-fotografo-wrapper {
    background-color: #f8f9fa;
    color: #2b2b2b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: 60px;
}

.mi-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.mi-breadcrumbs {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    font-size: 13px;
    color: #6c757d;
}

.mi-breadcrumbs a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
}

.mi-breadcrumbs a:hover {
    color: #e41315;
}

.mi-sep {
    margin: 0 8px;
    color: #adb5bd;
}

.mi-current {
    color: #212529;
    font-weight: 600;
}

/* Main Content & Cards */
.mi-main-content {
    padding-top: 30px;
}

.mi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .mi-card {
        padding: 40px;
    }
}

/* Alerts */
.mi-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
}

.mi-alert-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.mi-alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.mi-alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.mi-alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Header Profilo Professionista */
.mi-profile-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .mi-profile-header {
        flex-direction: row;
        align-items: flex-start;
    }
}

.mi-profile-image-col {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    flex-shrink: 0;
}

.mi-photo-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #f1f3f5;
}

.mi-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mi-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mi-badge-pro {
    background-color: #e41315;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(228, 19, 21, 0.4);
}

.mi-badge-amat {
    position: static;
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
}

.mi-quick-info {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 13px;
    color: #495057;
}

.mi-quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

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

.mi-profile-info-col {
    flex: 1;
}

.mi-badge-pretitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #e41315;
    font-weight: 700;
    margin-bottom: 6px;
}

.mi-title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    font-weight: 700;
}

@media (min-width: 768px) {
    .mi-title {
        font-size: 40px;
    }
}

/* Tabella Dati ACF */
.mi-data-table {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    background: #ffffff;
}

.mi-data-row {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

@media (min-width: 576px) {
    .mi-data-row {
        flex-direction: row;
        align-items: center;
    }
}

.mi-data-row:last-child {
    border-bottom: none;
}

.mi-data-row:nth-child(odd) {
    background-color: #fafbfc;
}

.mi-label {
    width: 100%;
    max-width: 190px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.mi-value {
    color: #212529;
    flex: 1;
}

.mi-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

@media (min-width: 576px) {
    .mi-pills {
        margin-top: 0;
    }
}

.mi-pill {
    background: #e9ecef;
    color: #343a40;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Bottoni */
.mi-actions {
    margin-top: 24px;
}

.mi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.mi-btn-red {
    background-color: #e41315;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(228, 19, 21, 0.25);
}

.mi-btn-red:hover {
    background-color: #c70e10;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(228, 19, 21, 0.35);
}

.mi-btn-dark {
    background-color: #212529;
    color: #ffffff;
}

.mi-btn-dark:hover {
    background-color: #000000;
    color: #ffffff;
}

.mi-btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 10px;
}

.mi-guarantee-note {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

/* Sezioni di Contenuto */
.mi-content-section {
    border-top: 1px solid #e9ecef;
    padding-top: 35px;
    margin-top: 35px;
}

.mi-section-title {
    font-size: 26px;
    color: #1a1a1a;
    margin: 0 0 18px 0;
    font-weight: 700;
}

.mi-entry-content {
    color: #333333;
    font-size: 15px;
    line-height: 1.7;
}

.mi-entry-content p {
    margin-bottom: 20px;
}

/* Gutenberg Gallery styling override to look modern */
.mi-entry-content .wp-block-gallery {
    margin-top: 25px;
    margin-bottom: 30px;
    gap: 12px;
}

.mi-entry-content .wp-block-gallery .wp-block-image img {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, opacity 0.3s;
}

.mi-entry-content .wp-block-gallery .wp-block-image img:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* Modulo Contatto */
.mi-contact-box {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 30px;
    margin-top: 40px;
    scroll-margin-top: 40px;
}

.mi-contact-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 24px auto;
}

.mi-contact-title {
    font-size: 24px;
    color: #1a1a1a;
    margin: 6px 0;
    font-weight: 700;
}

.mi-contact-sub {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.mi-form {
    max-width: 650px;
    margin: 0 auto;
}

.mi-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 576px) {
    .mi-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mi-form-group {
    margin-bottom: 14px;
}

.mi-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.mi-form-group input,
.mi-form-group select,
.mi-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    color: #212529;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mi-form-group input:focus,
.mi-form-group select:focus,
.mi-form-group textarea:focus {
    outline: none;
    border-color: #e41315;
    box-shadow: 0 0 0 3px rgba(228, 19, 21, 0.15);
}

/* Stili Header Amatoriale */
.mi-amat-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

@media (min-width: 576px) {
    .mi-amat-header {
        flex-direction: row;
        align-items: flex-start;
    }
}

.mi-amat-photo {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    margin: 0 auto;
    flex-shrink: 0;
}

.mi-amat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mi-amat-info {
    flex: 1;
}

.mi-badge-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mi-amat-subtag {
    font-size: 12px;
    color: #868e96;
}

.mi-amat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0;
}

@media (min-width: 480px) {
    .mi-amat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mi-amat-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
}

.mi-amat-label {
    display: block;
    color: #868e96;
    font-size: 11px;
}

.mi-amat-val {
    color: #212529;
    font-weight: 600;
}

.mi-text-green {
    color: #2b8a3e;
}

.mi-text-bold {
    font-weight: 600;
    color: #212529;
}

/* ==========================================================================
   BADGE CERTIFICAZIONE FOTOGRAFO (Visto Verde / X Rossa)
   ========================================================================== */
.mi-cert-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    margin: 14px 0 20px 0;
    font-size: 13px;
    transition: transform 0.2s;
}

.mi-cert-verified {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.mi-cert-unverified {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.mi-cert-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    flex-shrink: 0;
}

.mi-cert-verified .mi-cert-icon {
    background-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
}

.mi-cert-unverified .mi-cert-icon {
    background-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.mi-cert-texts {
    display: flex;
    flex-direction: column;
}

.mi-cert-main {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
}

.mi-cert-sub {
    font-size: 11.5px;
    opacity: 0.85;
    margin-top: 2px;
}

/* Status compatto inline */
.mi-inline-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.mi-inline-verified {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.mi-inline-unverified {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Icona Certificazione su card carosello */
.mi-card-cert-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mi-card-cert-icon.cert-yes {
    background-color: #22c55e;
}

.mi-card-cert-icon.cert-no {
    background-color: #ef4444;
}

/* ==========================================================================
   CAROSELLO ALTRI FOTOGRAFI
   ========================================================================== */
.mi-related-section {
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
    margin-top: 45px;
}

.mi-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mi-carousel-nav-btns {
    display: flex;
    gap: 8px;
}

.mi-carousel-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ced4da;
    background: #ffffff;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.mi-carousel-nav:hover {
    background: #e41315;
    color: #ffffff;
    border-color: #e41315;
}

.mi-carousel-wrapper {
    position: relative;
}

.mi-carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.mi-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.mi-carousel-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

@media (max-width: 576px) {
    .mi-carousel-card {
        flex: 0 0 180px;
    }
}

.mi-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #e41315;
}

.mi-card-img-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #f1f3f5;
    overflow: hidden;
}

.mi-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.mi-carousel-card:hover .mi-card-img-wrap img {
    transform: scale(1.05);
}

.mi-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

.mi-card-badge-pro {
    background: #e41315;
    color: #ffffff;
}

.mi-card-badge-amat {
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
}

.mi-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mi-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.mi-card-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: 12px;
}

.mi-card-stars {
    color: #d97706;
    font-weight: 700;
    font-size: 11.5px;
    background: #fef3c7;
    padding: 1px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   SISTEMA DI VALUTAZIONE A STELLE (0-5)
   ========================================================================== */
.mi-meta-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.mi-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.mi-stars-icons {
    color: #f59e0b;
    font-size: 17px;
    letter-spacing: 1.5px;
    line-height: 1;
}

.mi-stars-score {
    color: #1a1a1a;
    font-size: 13.5px;
    font-weight: 800;
}

.mi-stars-label {
    color: #6c757d;
    font-size: 11.5px;
    font-weight: 500;
}

.mi-stars-none .mi-stars-icons {
    color: #ced4da;
}

.mi-rating-badge {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   LIGHTBOX PER GALLERIE IMMAGINI
   ========================================================================== */
.mi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.mi-lightbox.active {
    display: flex;
}

.mi-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(8px);
}

.mi-lb-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
}

.mi-lb-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mi-lb-image {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease-in-out;
}

.mi-lb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 90vw;
    margin-top: 12px;
    color: #f1f3f5;
    font-size: 13px;
}

.mi-lb-caption {
    font-weight: 500;
}

.mi-lb-counter {
    color: #adb5bd;
    font-variant-numeric: tabular-nums;
}

.mi-lb-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.mi-lb-btn:hover {
    background: #e41315;
    transform: scale(1.08);
}

.mi-lb-close {
    top: 20px;
    right: 20px;
    font-size: 28px;
    width: 44px;
    height: 44px;
}

.mi-lb-prev {
    left: 20px;
}

.mi-lb-next {
    right: 20px;
}

@media (max-width: 768px) {
    .mi-lb-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .mi-lb-prev {
        left: 8px;
    }
    .mi-lb-next {
        right: 8px;
    }
    .mi-lb-close {
        top: 10px;
        right: 10px;
    }
}

