/*
Theme Name: Toscocell
Theme URI: https://toscocell.com
Author: Francesco Verdiani
Author URI: https://toscocell.com
Description: A custom WordPress theme for Toscocell - modern, responsive and optimized for performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: toscocell
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, e-commerce

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ==========================================================================
   Typography
   ========================================================================== */

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

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; }

p {
    margin: 0 0 1.5rem 0;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #005177;
    text-decoration: none;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-area {
    width: 100%;
}

.full-width-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .has-sidebar .content-area {
        width: 70%;
        float: left;
        padding-right: 2rem;
    }
}

/* ==========================================================================
   Header - Styles are in css/header-megamenu.css
   ========================================================================== */

/* Basic header spacing preserved for compatibility */
.site-content {
    padding-top: 2rem;
}

/* ==========================================================================
   Content
   ========================================================================== */

article {
    margin-bottom: 3rem;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin: 0 0 0.5rem 0;
}

.entry-title a {
    color: #333;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

/* Featured Image */
.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
    padding: 1rem;
}

@media (min-width: 768px) {
    .sidebar {
        width: 30%;
        float: right;
    }
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-info {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.comment-content {
    margin-bottom: 1rem;
}

.reply {
    font-size: 0.875rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input[type="submit"],
button,
.button {
    background-color: #0073aa;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
button:hover,
.button:hover {
    background-color: #005177;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

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

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

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

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 0;
    z-index: 9999;
    padding: 1rem;
    background: #fff;
}
