/*
Theme Name: csml-landing
Theme URI: https://metodo-horeca.csmlsolutions.it
Author: Cosimo Lippi
Author URI: https://www.csmlsolutions.it
Description: Child theme per Twenty Twenty-Four - Landing Page Metodo CSML Horeca
Template: twentytwentyfour
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csml-landing
*/

/* ============================================================
   CSS RESET & GLOBAL VARIABLES
============================================================ */
:root {
    --gold: #FFD700;
    --gold-dark: #FFC700;
    --blue: #00B4D8;
    --navy: #2C3E50;
    --anthracite: #3C3C4C;
    --white: #FFFFFF;
    --gray-light: #EEF0F2;
    --gray-text: #666666;
    --red: #D32F2F;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container: 1200px;
    --radius: 12px;
    --transition: 0.3s ease;
}

/* Stili base */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--navy);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 70px 0 0 0;  /* MODIFICATO: aggiunto padding-top = altezza header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* AGGIUNTO: mantieni il padding anche su mobile */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* Header sticky con admin bar */
.admin-bar #site-header {
    top: 32px;
}

/* AGGIUNTO: compensazione per admin bar */
.admin-bar body {
    padding-top: 102px; /* 70px + 32px */
}

@media screen and (max-width: 782px) {
    .admin-bar #site-header {
        top: 46px;
    }
    
    .admin-bar body {
        padding-top: 116px; /* 70px + 46px */
    }
}

/* Elementi di base */
img {
    max-width: 100%;
    display: block;
    height: auto;
    border: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    margin: 0;
}

/* ============================================================
   UTILITY CLASSES
============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* CTA BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 48px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
    min-width: 260px;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-primary:hover {
    background: var(--navy);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(44, 62, 80, 0.25);
}

.btn-primary:focus {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--blue);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 40px;
    border-radius: 6px;
    border: 2px solid var(--blue);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    justify-content: center;
    line-height: 1.2;
}

.btn-secondary:hover {
    background: var(--blue);
    color: var(--white);
}

.btn-secondary:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 22px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    line-height: 1.2;
}

.btn-small:hover {
    background: var(--navy);
    color: var(--gold);
}

.microcopy {
    font-size: 12px;
    color: var(--gray-text);
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
}

/* ============================================================
   HEADER STICKY - CORREZIONE LOGO
============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--white);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition), transform 0.35s ease;
}

#site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#site-header.hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.header-logo {
    height: 45px;
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: transparent;
}

.header-logo img,
.header-logo-img {
    height: 45px;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    border-radius: 0 !important;
    background: transparent;
}

.header-brand {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .header-brand {
        font-size: 15px;
    }
}

/* ... tutto il resto del file rimane identico ... */

/* ============================================================
   RIMOZIONE SPAZI BIANCHI DEL TEMA PARENT
============================================================ */
.csml-landing-template .site-main,
.csml-landing-template .entry-content,
.csml-landing-template main,
.csml-landing-template #page,
.csml-landing-template .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}