/*
Theme Name: Masserie Pirrone
Theme URI: https://www.masseriepirrone.it
Description: Tema WordPress personalizzato per Masserie Pirrone - Vini Artigianali della Lucania
Version: 1.0.0
Author: Sviluppo Web
Author URI: https://www.masseriepirrone.it
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masserie-pirrone
Tags: one-column, two-columns, three-columns, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #fef9e7;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tailwind-like utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Font families */
.font-heading {
    font-family: 'Playfair Display', serif;
}

.font-body {
    font-family: 'Lato', sans-serif;
}

/* Colors */
.text-primary {
    color: #ee7d00;
}

.text-secondary {
    color: #364f24;
}

.text-accent {
    color: #f7f3e9;
}

.text-dark {
    color: #1a1a1a;
}

.text-light {
    color: #f8f8f8;
}

.text-gray-light {
    color: #e5e5e5;
}

.text-gray-medium {
    color: #666666;
}

.bg-primary {
    background-color: #ee7d00;
}

.bg-secondary {
    background-color: #364f24;
}

.bg-accent {
    background-color: #f7f3e9;
}

.bg-cream {
    background-color: #fef9e7;
}

.bg-light {
    background-color: #f8f8f8;
}

.bg-sand {
    background-color: #f4e8d1;
}

.bg-burgundy {
    background-color: #722f37;
}

/* Navigation */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.5s ease;
    padding: 1rem 0;
}

.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.nav-transparent {
    background-color: transparent;
}

.nav-logo {
    height: 2.5rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ee7d00;
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ee7d00;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-subtitle {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 3rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto 2rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: #ee7d00;
    color: white;
}

.btn-primary:hover {
    background-color: #dc6f00;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #364f24;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .btn-group {
        flex-direction: row;
    }
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
    color: #364f24;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* Cards */
.card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-rounded {
    border-radius: 1rem;
    overflow: hidden;
}

.image-hover {
    overflow: hidden;
}

.image-hover img {
    transition: transform 0.6s ease;
}

.image-hover:hover img {
    transform: scale(1.1);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:col-span-2 {
        grid-column: span 2;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideLeft {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll animations */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Footer */
.footer {
    background-color: #364f24;
    color: white;
    padding: 2rem 0;
}

.footer-logo {
    height: 2.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* WordPress specific styles */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Playfair Display', serif;
    margin: 2rem 0 1rem;
    color: #364f24;
}

.entry-content h1 {
    font-size: 2.5rem;
}

.entry-content h2 {
    font-size: 2rem;
}

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

/* Accessibility */
.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;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .mobile-menu {
        position: fixed;
        inset: 0;
        background-color: white;
        z-index: 50;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-link {
        font-size: 1.5rem;
        color: #4a5568;
        text-decoration: none;
        margin: 0.5rem 0;
        transition: color 0.3s ease;
    }

    .mobile-menu-link:hover {
        color: #ee7d00;
    }
}