/*
Theme Name: Accountant Catuogno
Theme URI: https://osystem.online
Description: Tema custom per Catuogno Shop - Casa e Giocattoli per bambini
Version: 1.0.0
Author: The Accountant Platform
Text Domain: accountant-catuogno
*/

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

:root {
  --cream: #FEFBF3;
  --orange: #F97316;
  --orange-dark: #EA6E0C;
  --green: #65A30D;
  --green-dark: #4D7C0F;
  --text: #1C1917;
  --text-light: #78716C;
  --border: #E7E5E4;
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

body { font-family: 'Open Sans', sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Nunito', sans-serif; font-weight: 700; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: 1200px; margin: 0 auto; }
.site-logo { font-family: 'Nunito', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.site-logo span { color: var(--orange); }
.site-logo small { display: block; font-size: 0.65rem; font-weight: 400; color: var(--text-light); letter-spacing: 0.1em; text-transform: uppercase; }
.main-nav ul { display: flex; list-style: none; gap: 28px; }
.main-nav a { font-weight: 600; color: var(--text); font-size: 0.9rem; transition: color 0.2s; }
.main-nav a:hover { color: var(--orange); }
.header-cart a { display: flex; align-items: center; gap: 8px; background: var(--orange); color: var(--white); padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.85rem; transition: background 0.2s; }
.header-cart a:hover { background: var(--orange-dark); color: var(--white); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

.hero { background: linear-gradient(135deg, #FFF7ED 0%, #FEFBF3 50%, #F0FDF4 100%); padding: 80px 20px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--text); margin-bottom: 16px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 32px; }
.btn-primary { display: inline-block; background: var(--orange); color: var(--white); padding: 14px 36px; border-radius: 50px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1.05rem; transition: all 0.2s; box-shadow: 0 4px 12px rgba(249,115,22,0.3); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-2px); }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; margin-bottom: 8px; }
.section-title p { color: var(--text-light); }

.categories-section { padding: 60px 20px; }
.categories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; }
.cat-card { border-radius: var(--radius); overflow: hidden; position: relative; height: 280px; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card-img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.cat-card-overlay h3 { font-size: 1.8rem; color: var(--white); margin-bottom: 8px; }
.cat-card-overlay span { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.cat-card-btn { display: inline-block; margin-top: 12px; background: var(--white); color: var(--text); padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; }

.products-section { padding: 60px 20px; background: var(--white); }
ul.products { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0; }
ul.products li.product { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
ul.products li.product img { width: 100%; height: 200px; object-fit: cover; }
ul.products li.product .woocommerce-loop-product__title { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem; padding: 12px 16px 4px; color: var(--text); }
ul.products li.product .price { padding: 0 16px; color: var(--orange); font-weight: 700; font-size: 1rem; }
ul.products li.product .add_to_cart_button, ul.products li.product .button { display: block; width: calc(100% - 32px); margin: 12px 16px; background: var(--green); color: var(--white); border: none; border-radius: var(--radius-sm); padding: 10px; font-weight: 700; font-family: 'Nunito', sans-serif; cursor: pointer; text-align: center; transition: background 0.2s; }
ul.products li.product .add_to_cart_button:hover, ul.products li.product .button:hover { background: var(--green-dark); }

.promo-banner { background: linear-gradient(135deg, #F97316 0%, #FB923C 100%); color: var(--white); text-align: center; padding: 40px 20px; }
.promo-banner h3 { font-size: 1.8rem; margin-bottom: 8px; }
.promo-banner p { opacity: 0.9; font-size: 1.05rem; }

.woocommerce-Price-amount { font-size: 1.6rem; color: var(--orange); font-weight: 700; }
.cart button[type=submit], .single_add_to_cart_button { background: var(--orange); color: var(--white); border: none; padding: 14px 36px; border-radius: 50px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s; margin-top: 16px; }
.cart button[type=submit]:hover, .single_add_to_cart_button:hover { background: var(--orange-dark); }

.shop-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

.woocommerce-cart .cart-collaterals, .woocommerce .cart_totals { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.woocommerce #place_order, .woocommerce-cart .checkout-button { background: var(--orange); color: var(--white); border: none; border-radius: 50px; padding: 14px 36px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1rem; width: 100%; cursor: pointer; }

.legal-page-content { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.legal-page-content h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page-content .last-updated { color: var(--text-light); font-size: 0.85rem; margin-bottom: 40px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.legal-page-content h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal-page-content p, .legal-page-content li { color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }
.legal-page-content ul, .legal-page-content ol { padding-left: 24px; }

.site-footer { background: #1C1917; color: #D6D3D1; padding: 60px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.footer-brand h3 { font-family: 'Nunito', sans-serif; font-size: 1.4rem; color: var(--white); margin-bottom: 12px; }
.footer-brand h3 span { color: var(--orange); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-brand .company-info { margin-top: 16px; font-size: 0.8rem; line-height: 2; }
.footer-nav h4, .footer-legal h4 { font-family: 'Nunito', sans-serif; color: var(--white); font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-nav ul, .footer-legal ul { list-style: none; }
.footer-nav li, .footer-legal li { margin-bottom: 8px; }
.footer-nav a, .footer-legal a { color: #D6D3D1; font-size: 0.85rem; transition: color 0.2s; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #44403C; padding-top: 20px; text-align: center; font-size: 0.8rem; color: #78716C; max-width: 1200px; margin: 0 auto; }

@media (max-width: 1024px) { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .main-nav { display: none; }
  .main-nav.open { display: block; width: 100%; }
  .main-nav.open ul { flex-direction: column; gap: 12px; padding: 16px 0; }
  .mobile-menu-btn { display: block; }
  .categories-grid { grid-template-columns: 1fr; }
  ul.products { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) { ul.products { grid-template-columns: 1fr; } }
