/*
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
============================================================ */
/* La base che davano alle intestazioni gli stili globali di WordPress (tolti in G-47):
   chi non ha valori propri resta com'era. */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    line-height: 1.15;
}

: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 */

/* AGGIUNTO: compensazione per admin bar */

/* 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;
}

/* ============================================================
   RIMOZIONE SPAZI BIANCHI DEL TEMA PARENT
============================================================ */
.csml-landing-template main,
.csml-landing-template #page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}