/*
Theme Name: Digital Properties
Theme URI: http://www.digitalproperties.it/
Author: Digital Properties
Author URI: http://www.digitalproperties.it/
Description: Tema WordPress personalizzato per Digital Properties - Consulenza in digital marketing e servizi immobiliari
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: digital-properties
Tags: custom, business, digital-marketing, responsive, modern
*/

/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    scroll-behavior: smooth;
}

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

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.banner-regione{
	margin:auto;
	text-align:center;
	padding:30px 0;
}
.banner-regione h2{
	padding:30px 0;
	font-size: 30px;
    font-weight: 700;
}
.banner-regione a:hover h2,
.banner-regione a h2,
.banner-regione a,
.banner-regione a:hover{
	color:#000;
	text-decoration:none;
}
.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Servizi Section */
.servizi {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.servizio-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.servizio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.servizio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.servizio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.servizio-desc {
    color: var(--text-light);
    line-height: 1.7;
}

/* Chi Siamo Section */
.chi-siamo {
    padding: 80px 0;
    background: var(--bg-white);
}

.chi-siamo-content {
    max-width: 900px;
    margin: 0 auto;
}

.chi-siamo-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Contatti Section */
.contatti {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 14px 32px;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: var(--success-color);
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: var(--error-color);
    display: block;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll Animations */
.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-animate.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.title-animate {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.title-animate.element-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card-animate {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-animate.element-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.text-animate {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.text-animate.element-visible {
    opacity: 1;
    transform: translateX(0);
}

.form-animate {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.form-animate.element-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Effetto hover migliorato per le carte */
.servizio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
}

.servizio-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Animazione per il contenuto delle pagine */
.page-content-inner {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Styles */
.page-content {
    padding: 80px 0;
    background: var(--bg-white);
    min-height: 60vh;
}

.page-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}

.page-featured-image .featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.page-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-content-inner {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.page-content-inner h1,
.page-content-inner h2,
.page-content-inner h3,
.page-content-inner h4,
.page-content-inner h5,
.page-content-inner h6 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-content-inner h1 {
    font-size: 2rem;
}

.page-content-inner h2 {
    font-size: 1.75rem;
}

.page-content-inner h3 {
    font-size: 1.5rem;
}

.page-content-inner p {
    margin-bottom: 1.5rem;
}

.page-content-inner ul,
.page-content-inner ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content-inner li {
    margin-bottom: 0.5rem;
}

.page-content-inner a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content-inner a:hover {
    color: var(--primary-dark);
}

.page-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.page-content-inner blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.page-content-inner code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.page-content-inner pre {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.page-content-inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-content-inner table th,
.page-content-inner table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-content-inner table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.page-links a:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .servizi-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-content-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .servizi,
    .chi-siamo,
    .contatti {
        padding: 60px 0;
    }
    
    .page-content {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-content-inner {
        font-size: 1rem;
    }
}

