/*
Theme Name: LiveGrado
Theme URI: https://livegrado.it
Description: Tema custom per LiveGrado - Portale turistico Grado con integrazione hotel e WuBook
Author: Roberto - LiveGrado
Author URI: https://livegrado.it
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: livegrado
Tags: tourism, hotel, booking, grado, responsive, mobile-first

LiveGrado - Tema WordPress custom per portale turistico con sistema prenotazioni hotel.
*/

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

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

:root {
    --rosso-livegrado: #F40009;
    --blu-livegrado: #0066CC;
    --nero: #000000;
    --grigio: #666666;
    --grigio-chiaro: #E5E5E5;
    --bianco: #FFFFFF;
    --max-width: 974px;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--nero);
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--blu-livegrado);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--rosso-livegrado);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.livegrado-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.livegrado-section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .livegrado-section {
        padding: 40px 0;
    }
    
    .livegrado-container {
        padding: 0 15px;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================
   BUTTONS
   ============================================ */

.btn-livegrado {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-livegrado-primary {
    background: var(--blu-livegrado);
    color: white;
}

.btn-livegrado-primary:hover {
    background: #0052A3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
    color: white;
}

.btn-livegrado-secondary {
    background: var(--rosso-livegrado);
    color: white;
}

.btn-livegrado-secondary:hover {
    background: #CC0007;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244,0,9,0.3);
    color: white;
}

.btn-livegrado-outline {
    background: transparent;
    border: 2px solid var(--blu-livegrado);
    color: var(--blu-livegrado);
}

.btn-livegrado-outline:hover {
    background: var(--blu-livegrado);
    color: white;
}

/* ============================================
   WORDPRESS CORE CLASSES
   ============================================ */

.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--grigio);
    margin-top: 0.5rem;
}

.sticky {}
.gallery-caption {}
.bypostauthor {}

/* ============================================
   SCREEN READER TEXT
   ============================================ */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

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

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
    display: none !important;
}

/* ============================================
   NOTA: Stili specifici header, footer, single hotel
   sono in assets/css/main.css per separazione logica
   ============================================ */
