/* * style.css 
 * Foglio di stile personalizzato - Dott.ssa Giorgia Sacco 
 * Configurato per caricamento font 100% locale (GDPR compliant)
 */

/* =========================================
   1. IMPORTAZIONE FONT LOCALI
   ========================================= */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'), local('Inter-Regular'),
         url('fonts/inter-v20-latin-regular.woff2') format('woff2'); 
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Inter Bold'), local('Inter-Bold'),
         url('fonts/inter-v20-latin-700.woff2') format('woff2'); 
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'),
         url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2'); 
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Playfair Display Bold'), local('PlayfairDisplay-Bold'),
         url('fonts/playfair-display-v40-latin-700.woff2') format('woff2'); 
}

/* =========================================
   2. STILI GLOBALI (Tipografia)
   ========================================= */

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .nav-brand {
    font-family: 'Playfair Display', serif;
}

/* =========================================
   3. NAVIGAZIONE E COMPONENTI UI
   ========================================= */

.nav-link.active {
    color: #0d9488;
    border-bottom: 2px solid #0d9488;
}

.img-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; 
}

.img-service {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .img-service {
    transform: scale(1.05);
}

.img-container {
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   4. COMPONENTI CURRICULUM (bio.html)
   ========================================= */

.cv-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #0d9488;
    margin-bottom: 2rem;
}

.cv-dot {
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d9488;
}

/* =========================================
   5. PADDING MAIN CONTENT
   FIX: la media query era min-width: 100px (sempre vera),
   il valore 280px non veniva mai applicato.
   Ora: mobile = 72px, desktop (md+) = 96px
   ========================================= */

main {
    padding-top: var(--header-height, 72px);
}

/* Compensazione header fisso per anchor links */
[id] {
    scroll-margin-top: calc(var(--header-height, 72px) + 24px);
}