/*
Theme Name: Leading Law
Theme URI: https://leadinglaw.it
Author: Studio Legale Associato Leading Law
Description: Tema custom per Leading Law — design editoriale ispirato a DDD Milano. Gloock + Manrope, palette blue/teal/gray.
Version: 3.2.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
License: Proprietario
Text Domain: leadinglaw
*/

/* ================================================================
   CSS CUSTOM PROPERTIES
   Tutte le variabili di design centralizzate qui.
   Modificare questi valori per aggiornare l'intera palette.
================================================================ */

:root {
    /* Colori principali */
    --ll-blue:       #2B5DA9;
    --ll-blue-dark:  #1f4a8c;
    --ll-gray:       #82858b;
    --ll-teal:       #3D7A6E;
    --ll-teal-light: rgba(61, 122, 110, 0.15);

    /* Sfondi */
    --ll-dark:       #0E1B2E;
    --ll-dark-mid:   #152338;
    --ll-white:      #FFFFFF;
    --ll-off-white:  #F5F4F0;

    /* Testi */
    --ll-text:       #1A1A1A;
    --ll-muted:      #6B6B6B;

    /* Tipografia */
    --ll-serif:      'Gloock', Georgia, 'Times New Roman', serif;
    --ll-sans:       'Manrope', system-ui, -apple-system, sans-serif;

    /* Spaziature */
    --ll-gutter:     48px;
    --ll-gutter-sm:  24px;
    --ll-section:    140px;
    --ll-section-sm: 80px;

    /* Bordi */
    --ll-border:     rgba(130, 133, 139, 0.15);
    --ll-border-mid: rgba(130, 133, 139, 0.25);

    /* Ombre */
    --ll-shadow:     0 4px 24px rgba(14, 27, 46, 0.08);
    --ll-shadow-lg:  0 12px 48px rgba(14, 27, 46, 0.14);

    /* Transizioni */
    --ll-ease:       0.22s ease;
    --ll-ease-slow:  0.45s ease;

    /* Nav height — più alto per non comprimere i testi */
    --ll-nav-h:      88px;
    --ll-nav-h-sm:   72px;

    /* Spaziature sezioni unificate */
    --ll-hero-pad-top: 120px;  /* padding-top hero (oltre nav) */
    --ll-hero-pad-bot: 96px;   /* padding-bottom hero */
    --ll-section-gap:  120px;  /* respiro tra sezioni standard */

    /* Border radius */
    --ll-radius:     2px;
}

/* ================================================================
   RESET & BASE
================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--ll-sans);
    background: var(--ll-white);
    color: var(--ll-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ================================================================
   TIPOGRAFIA BASE
================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ll-serif);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.75;
}

/* ================================================================
   UTILITIES
================================================================ */

.ll-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--ll-gutter);
}

.ll-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.ll-section-label {
    font-family: var(--ll-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ll-gray);
    margin-bottom: 16px;
}

.ll-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ll-blue);
    color: var(--ll-white);
    font-family: var(--ll-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--ll-radius);
    transition: background var(--ll-ease);
    cursor: pointer;
    border: none;
}

.ll-btn-primary:hover {
    background: var(--ll-blue-dark);
    color: var(--ll-white);
}

.ll-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ll-muted);
    font-family: var(--ll-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color var(--ll-ease);
    padding: 14px 0;
}

.ll-btn-ghost:hover {
    color: var(--ll-text);
}

.ll-section-link {
    font-family: var(--ll-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ll-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--ll-blue);
    transition: gap var(--ll-ease);
}

.ll-section-link:hover {
    gap: 14px;
    color: var(--ll-blue);
}
