/*
Theme Name: Centro Pilates Roma
Theme URI: https://pilatesroma.it
Author: Marco Lattanzi Antinori
Author URI: https://pilatesroma.it
Description: Tema personalizzato per Centro Pilates Roma con sistema di prenotazioni integrato
Version: 1.0.1
Requires at least: 6.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: centro-pilates
Tags: pilates, wellness, booking, custom-header, custom-menu, featured-images, threaded-comments
*/

/* ============================
   RESET E BASE
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    background-color: #fff;
    color: #333;
}

/* ============================
   CRITICAL CSS HERO (LCP)
============================ */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
    background-color: #f5f5f5;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1dc91d;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    margin-top: 1rem;
}

/* ============================
   UTILITY WORDPRESS
============================ */
.alignleft {
    float: left;
    margin: 0 1.5em 1.5em 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ============================
   IMMAGINI E GALLERIA
============================ */
.wp-block-image img,
.wp-caption img {
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.gallery {
    margin: 0 -5px;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 5px;
}

.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.33%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }

/* ============================
   STICKY POSTS
============================ */
.sticky {
    border-left: 4px solid #1dc91d;
    padding-left: 1rem;
}

/* ============================
   COMMENTI
============================ */
.comment-list { list-style: none; padding: 0; }
.comment-body { margin-bottom: 2rem; padding: 1rem; background: #f8f9fa; border-radius: 8px; }
.comment-author { font-weight: 600; margin-bottom: 0.5rem; }
.comment-metadata { font-size: 0.875rem; color: #666; margin-bottom: 1rem; }
.reply { margin-top: 0.5rem; }
.comment-reply-link { font-size: 0.875rem; color: #1dc91d; text-decoration: none; }
.comment-reply-link:hover { text-decoration: underline; }

/* ============================
   PAGINAZIONE
============================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-numbers {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.page-numbers.current {
    background: #1dc91d;
    color: white;
}

.page-numbers:hover {
    background: #1dc91d;
    color: white;
}

/* ============================
   WIDGETS
============================ */
.widget { margin-bottom: 2rem; }
.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1dc91d;
}

.widget ul { list-style: none; padding: 0; }
.widget li { padding: 0.5rem 0; border-bottom: 1px solid #e0e0e0; }
.widget li:last-child { border-bottom: none; }
.widget a { color: #333; text-decoration: none; }
.widget a:hover { color: #1dc91d; }

/* ============================
   SEARCH FORM
============================ */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: #1dc91d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.search-form button:hover {
    background: #18a518;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .gallery-columns-2 .gallery-item,
    .gallery-columns-3 .gallery-item,
    .gallery-columns-4 .gallery-item {
        max-width: 100%;
    }

    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1rem; }
}
