/*
Theme Name: WebCraft SEO
Theme URI: https://webcraft-seo.it
Description: Tema WordPress premium per agenzie SEO e web design. Ottimizzato per Elementor con design moderno e persuasivo.
Author: WebCraft SEO Team
Author URI: https://webcraft-seo.it
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webcraft-seo
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
Template: astra
*/

/* =============================================================
   WEBCRAFT SEO THEME
   Design System: Warm Premium Agency
   Palette: Avorio (#FAFAF7) + Blu Notte (#0F1B2D) + Oro (#E8A020)
   ============================================================= */

:root {
  --color-ivory: #FAFAF7;
  --color-navy: #0F1B2D;
  --color-navy-light: #1A2A3D;
  --color-gold: #E8A020;
  --color-gold-light: #F0B540;
  --color-gold-dark: #D48F1A;
  --color-text-dark: #1A1A2E;
  --color-text-light: #F0EDE8;
  --color-text-muted: #888888;
  --color-border: #E8E8E8;
  --color-border-dark: #2A3A4D;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================================= */
/* GLOBAL STYLES */
/* ============================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-ivory);
  line-height: 1.6;
}

/* ============================================================= */
/* TYPOGRAPHY */
/* ============================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-gold-dark);
}

/* ============================================================= */
/* BUTTONS */
/* ============================================================= */

.btn, button, input[type="button"], input[type="submit"] {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
}

.btn-primary, .btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-text-dark);
  box-shadow: 0 4px 20px rgba(232, 160, 32, 0.3);
}

.btn-primary:hover, .btn-gold:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  box-shadow: 0 6px 28px rgba(232, 160, 32, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-text-dark);
}

.btn-secondary:hover {
  background: var(--color-text-dark);
  color: var(--color-ivory);
}

/* ============================================================= */
/* CONTAINER & LAYOUT */
/* ============================================================= */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

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

/* ============================================================= */
/* SECTIONS */
/* ============================================================= */

.section-ivory {
  background-color: var(--color-ivory);
  padding: 60px 0;
}

.section-navy {
  background-color: var(--color-navy);
  color: var(--color-text-light);
  padding: 60px 0;
}

.section-navy a {
  color: var(--color-gold);
}

.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4,
.section-navy h5,
.section-navy h6 {
  color: var(--color-text-light);
}

@media (min-width: 1024px) {
  .section-ivory,
  .section-navy {
    padding: 80px 0;
  }
}

/* ============================================================= */
/* HEADER & NAVIGATION */
/* ============================================================= */

.site-header {
  background: transparent;
  transition: all 0.5s ease;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.site-branding .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.site-branding .logo-text {
  color: var(--color-text-dark);
}

.site-branding .logo-text .highlight {
  color: var(--color-gold);
}

.site-header.scrolled .site-branding .logo-text {
  color: var(--color-navy);
}

/* ============================================================= */
/* CARDS */
/* ============================================================= */

.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 27, 45, 0.12);
  border-color: var(--color-gold);
}

/* ============================================================= */
/* FORMS */
/* ============================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.1);
}

/* ============================================================= */
/* ANIMATIONS */
/* ============================================================= */

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

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

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

.animate-fade-up {
  animation: fadeUp 0.7s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.7s ease forwards;
}

/* ============================================================= */
/* RESPONSIVE */
/* ============================================================= */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section-ivory,
  .section-navy {
    padding: 40px 0;
  }
}

/* ============================================================= */
/* ELEMENTOR INTEGRATION */
/* ============================================================= */

.elementor-container {
  max-width: 1280px;
}

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3 {
  font-family: var(--font-display);
}

.elementor-widget-text-editor {
  font-family: var(--font-body);
}

.elementor-button {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark)) !important;
  color: var(--color-text-dark) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-radius: 4px !important;
}

.elementor-button:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold)) !important;
  transform: translateY(-2px) !important;
}

/* ============================================================= */
/* UTILITY CLASSES */
/* ============================================================= */

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-gold);
}

.text-navy {
  color: var(--color-navy);
}

.bg-ivory {
  background-color: var(--color-ivory);
}

.bg-navy {
  background-color: var(--color-navy);
}

.bg-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ============================================================= */
/* WOOCOMMERCE */
/* ============================================================= */

.woocommerce .product {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.woocommerce .product:hover {
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(232, 160, 32, 0.15);
}

.woocommerce .button {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-text-dark);
  border: none;
  border-radius: 4px;
  font-weight: 600;
}

.woocommerce .button:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
}
