﻿/* ==========================================
   TIPOGRAFIA E VARIABILI GLOBALI
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f2b48;       /* Navy profondo per brand/header */
    --accent-color: #0066cc;        /* Blu tecnico per link e dettagli */
    --accent-hover: #004999;
    --text-color: #2b303a;          /* Antracite per lettura confortevole */
    --bg-light: #f4f6f9;            /* Sfondo grigio chiarissimo per le sezioni */
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

html {
    height: 100%;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    background-color: #f4f6f9;
    
    /* Sfondo topografico a isolinee ad adattamento continuo a tutto schermo */
    background-image: 
        /* Aloni di profondità sui toni del navy e blu tecnico */
        radial-gradient(ellipse at 15% 20%, rgba(15, 43, 72, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(0, 102, 204, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 40%, rgba(15, 43, 72, 0.06) 0%, transparent 65%),
        
        /* Livello 1: Onde topografiche fluide continue da margine a margine */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 800' preserveAspectRatio='none'%3E%3Cpath d='M-100,100 C200,320 500,40 1100,180' stroke='rgba(15,43,72,0.075)' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100,280 C350,120 650,420 1100,260' stroke='rgba(0,102,204,0.065)' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100,460 C250,680 750,380 1100,520' stroke='rgba(15,43,72,0.07)' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100,680 C400,500 800,750 1100,640' stroke='rgba(0,102,204,0.06)' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"),
        
        /* Livello 2: Onde sfalsate incrociate a tutto schermo per rotazione visiva */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1200' preserveAspectRatio='none'%3E%3Cpath d='M-100,180 C450,40 700,320 1100,140' stroke='rgba(0,102,204,0.06)' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100,420 C300,580 800,310 1100,480' stroke='rgba(15,43,72,0.07)' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100,720 C500,900 750,610 1100,790' stroke='rgba(15,43,72,0.065)' stroke-width='1.8' fill='none'/%3E%3Cpath d='M-100,980 C350,820 850,1120 1100,920' stroke='rgba(0,102,204,0.055)' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
    
    background-size: cover, cover, cover, 100% 100vh, 100% 160vh;
    background-position: center, center, center, center top, center top;
    background-attachment: fixed;
    
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



/* ==========================================
   HEADER E NAVIGAZIONE
   ========================================== */
header {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
}

header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

nav ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    padding-bottom: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffffff;
    border-bottom: 2px solid var(--accent-color);
}


/* ==========================================
   MAIN ED ELEMENTI STRUTTURALI
   ========================================== */
.container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    flex: 1 0 auto;
    padding-top: 48px;
    padding-bottom: 64px;
}

/* Schede per il contenuto (Card layout) */
section, .content-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    font-size: 1.65rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
    color: #4a5568;
}

p strong {
    color: var(--primary-color);
}


/* ==========================================
   TABELLA COLLABORAZIONI
   ========================================== */
.collaborazioni-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.collaborazioni-table th, 
.collaborazioni-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: middle;
}

.collaborazioni-table th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.collaborazioni-table tbody tr {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-color);
}

.collaborazioni-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.collaborazioni-table tbody tr:hover {
    background-color: #f1f5f9;
}

.collaborazioni-table td {
    border-bottom: 1px solid var(--border-color);
}

.collaborazioni-table tr:last-child td {
    border-bottom: none;
}

/* Loghi nella tabella */
.collaborazioni-table td:nth-child(1) {
    text-align: center;
    background-color: #ffffff;
}

.collaborazioni-table td img,
.logo-collaborazione {
    max-width: 140px !important;
    max-height: 55px !important;
    height: auto !important;
    width: auto !important;
    display: inline-block;
    filter: grayscale(20%);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.collaborazioni-table tr:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

img.logo-concettoweb {
    max-height: 45px !important;
}

/* Collegamenti ipertestuali */
a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}


/* ==========================================
   PIÈ DI PAGINA (FOOTER)
   ========================================== */
footer {
    background-color: var(--primary-color);
    color: #a0aec0;
    font-size: 0.875rem;
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

footer p {
    margin: 0;
    color: #cbd5e1;
}


/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        padding: 24px;
    }

    .collaborazioni-table th:nth-child(3),
    .collaborazioni-table td:nth-child(3) {
        display: none; /* Nasconde la terza colonna su mobile per leggibilità */
    }
}


/* ==========================================
   PORTFOLIO E SCHEDE PROGETTO
   ========================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.portfolio-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.08);
}

.portfolio-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 8px;
    margin-bottom: 12px;
}

.card-tag {
    display: inline-block;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
}

.card-details {
    margin-top: 16px;
    padding-left: 20px;
    color: #4a5568;
    font-size: 0.92rem;
}

.card-details li {
    margin-bottom: 6px;
}
