/*
Theme Name: Infinite Bonta Panetteria
Theme URI: https://infinitebonta.it
Author: Web Developer
Author URI: https://infinitebonta.it
Description: Tema WordPress personalizzato per Infinite Bonta - Panetteria Artigianale ad Aversa. Include pannello admin per gestire tutti i contenuti.
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: infinite-bonta
*/

/* ========================================
   INFINITE BONTA - PANETTERIA THEME
   ======================================== */

/* CSS Variables - Palette Colori */
:root {
  --color-primary: #B87333;
  --color-primary-dark: #9A5F2A;
  --color-primary-light: #D4915A;
  --color-background: #FAF7F2;
  --color-background-alt: #F5F0E8;
  --color-text: #2D2416;
  --color-text-muted: #6B5D4D;
  --color-white: #FFFFFF;
  --color-border: #E5DDD0;
  --color-accent: #E07B39;
  
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --radius: 0.75rem;
  --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);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.navbar-menu {
  display: none;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.navbar-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.navbar.scrolled .navbar-menu a {
  color: var(--color-text);
}

.navbar-menu a:hover {
  color: var(--color-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.navbar.scrolled .mobile-menu-btn svg {
  color: var(--color-text);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 8rem;
  padding-bottom: 4rem;
  max-width: 640px;
  animation: fadeInUp 0.8s ease-out;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: rgba(184, 115, 51, 0.9);
  color: var(--color-white);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0.5rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero h1 span {
    font-size: 1.875rem;
  }
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

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

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.6);
  transform: rotate(90deg);
}

/* ========================================
   FEATURES BAR
   ======================================== */
.features-bar {
  background: var(--color-primary);
  padding: 2rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-white);
}

.feature-item svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.feature-item div {
  text-align: left;
}

.feature-item p:first-child {
  font-weight: 600;
}

.feature-item p:last-child {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.section-alt {
  background: rgba(245, 240, 232, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-background-alt);
  color: var(--color-text);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

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

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
}

.about-feature::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.rating-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.rating-badge p:first-child {
  font-size: 2rem;
  font-weight: 700;
}

.rating-badge p:last-child {
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (max-width: 767px) {
  .rating-badge {
    left: 1rem;
    bottom: -1rem;
    padding: 1rem;
  }
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.product-card {
  background: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-content {
  padding: 1.5rem;
}

.product-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.product-content p {
  color: var(--color-text-muted);
}

.products-cta {
  text-align: center;
  margin-top: 3rem;
}

.products-cta p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ========================================
   HOURS SECTION
   ======================================== */
.hours-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .hours-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hour-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.hour-item.special {
  background: rgba(245, 240, 232, 0.8);
  border: none;
}

.hour-day {
  font-weight: 500;
  color: var(--color-text);
  width: 100px;
}

.hour-time {
  color: var(--color-text-muted);
  text-align: right;
}

.reviews-box {
  background: rgba(245, 240, 232, 0.5);
  border-radius: 1rem;
  padding: 2rem;
}

.reviews-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.review-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
  color: var(--color-primary);
}

.review-text {
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 500;
}

.reviews-link {
  text-align: center;
  margin-top: 1.5rem;
}

.reviews-link a {
  color: var(--color-primary);
  font-size: 0.875rem;
  text-decoration: underline;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  background: rgba(184, 115, 51, 0.1);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: rgba(184, 115, 51, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-sm:hover {
  border-color: var(--color-primary);
  background: rgba(184, 115, 51, 0.05);
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.btn-icon:hover {
  border-color: var(--color-primary);
  background: rgba(184, 115, 51, 0.05);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-text);
  color: var(--color-background);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-about p {
  color: rgba(250, 247, 242, 0.7);
  max-width: 400px;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 247, 242, 0.3);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(250, 247, 242, 0.1);
  border-color: rgba(250, 247, 242, 0.5);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(250, 247, 242, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-background);
}

.footer-contact {
  list-style: none;
  color: rgba(250, 247, 242, 0.7);
}

.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-contact a:hover {
  color: var(--color-background);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.2);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.6);
}

/* ========================================
   WORDPRESS ADMIN STYLES
   ======================================== */
.wp-admin .navbar {
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: rgba(184, 115, 51, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 115, 51, 0.5);
}
