/*
Theme Name: MY WP Theme
Theme URI: https://mywptheme.com
Author: MY WP Theme
Author URI: https://mywptheme.com
Description: Modern WordPress theme with AI-powered SEO, Page Builder, and complete customization
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: digitalimprint
Tags: business, custom-menu, custom-logo, featured-images, responsive, seo, page-builder, ai
*/

/* 
 * Questo file è richiesto da WordPress per riconoscere il tema.
 * Gli stili principali sono inclusi tramite Tailwind CSS nel header.php
 * e stili custom inline per mantenere la massima flessibilità.
 */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin-top: 0 !important;
    overflow-x: hidden !important;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

html,
body {
    max-width: none !important;
    /* Evita scroll orizzontale senza interferire con lo scroll verticale */
    overflow-x: hidden;
}
/* Rimosso overflow-y: hidden dal body per non bloccare lo scroll verticale */


/* WordPress Core Alignment */
.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;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* 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 !important;
    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: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Digital Imprint Custom Styles - Colori predefiniti blu elettrico */
:root {
    --primary-green: #2563eb; /* Blu elettrico */
    --green-dark: #1e40af;
    --green-darker: #1e3a8a;
    --green-light: #3b82f6;
    --black: #1a1a1a;
    --white: #ffffff;
    --border-gray: #e5e7eb;
    --text-gray: #64748b;
}

/* Scrollbar */
body {
    scrollbar-width: thin;
    scrollbar-color: var(--green-dark) rgba(195, 236, 75, 0.1);
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(195, 236, 75, 0.1);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-green), var(--green-dark));
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--green-dark), var(--green-darker));
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Site Main - Full Width */
.site-main {
    width: 100%;
    max-width: 100%;
}

/* Links */
a {
    color: var(--green-darker);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-green);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--green-dark) 100%);
    color: var(--black);
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(195, 236, 75, 0.4);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--black);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* WordPress Gallery */
.gallery {
    margin: auto;
}

.gallery-item {
    float: left;
    margin-top: 10px;
    text-align: center;
}

.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%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 0;
    z-index: 999999;
    background: var(--primary-green);
    color: var(--black);
    padding: 1rem;
}

/* Print Styles */
@media print {
    .header-wrapper,
    .mobile-menu,
    footer,
    .scroll-to-top {
        display: none;
    }
}

/* Contact Form 7 Custom Styles */
.wpcf7 {
    max-width: 100%;
}

.cf7-input,
.cf7-textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1a1a1a;
}

.cf7-input:focus,
.cf7-textarea:focus {
    outline: none;
    border-color: #c3ec4b;
    box-shadow: 0 0 0 3px rgba(195, 236, 75, 0.1);
}

.cf7-textarea {
    min-height: 150px;
    resize: vertical;
}

.cf7-submit {
    background: linear-gradient(135deg, #c3ec4b 0%, #8fb535 100%);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(195, 236, 75, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(195, 236, 75, 0.5);
}

.wpcf7-spinner {
    display: inline-block;
    margin-left: 1rem;
}

.wpcf7-not-valid-tip {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #ffebee;
    border: 2px solid #d32f2f;
    color: #d32f2f;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background: #f1f8e9;
    border: 2px solid #8fb535;
    color: #6a8728;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-weight: 600;
}

.wpcf7-response-output {
    margin: 1.5rem 0 !important;
    padding: 1rem 1.5rem !important;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .cf7-form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .cf7-submit {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .cf7-intro {
        padding: 1.5rem !important;
    }
}
