/*
Theme Name: ProntoPolizza
Theme URI: https://prontopolizza.it
Description: Tema WordPress moderno e ottimizzato per conversioni per servizi di assicurazioni temporanee. Design pulito e professionale che ispira fiducia con focus sulla conversione dei visitatori. Include landing page ottimizzata con 6 sezioni, form funzionali, elementi di fiducia e design responsive.
Author: MiniMax Agent
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prontopolizza
Tags: insurance, landing-page, conversion-optimized, responsive, business, modern, clean, professional
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4

ProntoPolizza WordPress Theme, Copyright 2024
ProntoPolizza is distributed under the terms of the GNU GPL

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/

/* ProntoPolizza Theme - Ottimizzato per Conversioni Assicurative */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: #2D3748;
  background-color: #ffffff;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Palette Colori ProntoPolizza */
:root {
  /* Colori Primari */
  --primary-blue: #0052FF;
  --primary-blue-dark: #003ACC;
  --primary-blue-light: #3374FF;
  
  /* Colori CTA */
  --cta-green: #00C48C;
  --cta-green-dark: #00A375;
  --cta-orange: #FF7A00;
  --cta-orange-dark: #E56A00;
  
  /* Colori Testo */
  --text-dark: #2D3748;
  --text-medium: #4A5568;
  --text-light: #718096;
  
  /* Colori Supporto */
  --white: #FFFFFF;
  --gray-50: #F7FAFC;
  --gray-100: #EDF2F7;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E0;
  
  /* Ombre */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* WordPress Specific Resets */
.wp-block-group {
  margin: 0;
}

.wp-block-columns {
  margin-bottom: 0;
}

/* Tipografia */
.h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 2rem;
}

.body-large {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-medium);
}

.body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-medium);
}

.small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-light);
}

/* Container e Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.section {
  padding: 4rem 0;
}

.section-large {
  padding: 6rem 0;
}

/* Pulsanti CTA Ottimizzati */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  min-height: 48px;
  gap: 0.5rem;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
}

.btn-cta-green {
  background: linear-gradient(135deg, var(--cta-green) 0%, var(--cta-green-dark) 100%);
  color: var(--white);
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.btn-cta-green:hover {
  background: linear-gradient(135deg, var(--cta-green-dark) 0%, var(--cta-green) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-cta-orange {
  background: linear-gradient(135deg, var(--cta-orange) 0%, var(--cta-orange-dark) 100%);
  color: var(--white);
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.btn-cta-orange:hover {
  background: linear-gradient(135deg, var(--cta-orange-dark) 0%, var(--cta-orange) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

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

.btn-large {
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Form Styles Ottimizzati per Conversioni */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-select {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

/* Trust Elements */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cta-green);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-pricing {
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.card-pricing.featured {
  border-color: var(--cta-orange);
  transform: scale(1.05);
}

.card-pricing.featured::before {
  content: 'PIÙ RICHIESTA';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--cta-orange);
  color: var(--white);
  padding: 0.5rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
  letter-spacing: 0.1em;
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

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

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

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-large {
    padding: 4rem 0;
  }
  
  .btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
  }
  
  .btn-large {
    width: 100%;
    padding: 1.5rem 2rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    flex-direction: column;
    gap: 1rem;
  }
  
  .card-pricing.featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .h1 {
    font-size: 2rem;
  }
  
  .h2 {
    font-size: 1.75rem;
  }
  
  .btn-cta-green,
  .btn-cta-orange {
    font-size: 1rem;
    padding: 1.25rem 2rem;
  }
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus per accessibilità */
*:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* Performance Optimizations */
.will-change {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* WordPress Editor Styles */
.editor-styles-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.editor-styles-wrapper .wp-block {
  max-width: 1200px;
}

/* Gutenberg Block Styles */
.wp-block-prontopolizza-hero-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 6rem 0;
}

.wp-block-prontopolizza-pricing-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 6rem 0;
}

.wp-block-prontopolizza-final-cta {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  padding: 6rem 0;
}
