/*
Theme Name: ProntoPremium
Theme URI: https://www.prontopremium.it
Author: Datavoice Srl / Custom Theme
Author URI: https://www.prontopremium.it
Description: Tema WordPress su misura per ProntoPremium. Leggero, veloce, compatibile con WordPress 6.x+ e PHP 8.x, senza dipendenze da page builder esterni.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: prontopremium
*/

/* ==========================================================================
   1. Reset & Base Typography (Avada ProntoPremium Spec)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'PT Sans', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.69;
  color: #747474;
  background-color: #ffffff;
  overflow-x: hidden;
}

a {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fa7230;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Arial, Helvetica, sans-serif;
  margin-top: 0;
  color: #333333;
}

h1 {
  font-size: 33px;
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 0.67em;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #fa7230;
  margin-bottom: 0.7em;
}

h3 {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.41;
  margin-bottom: 1em;
}

p {
  margin-top: 0;
  margin-bottom: 20px;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 700;
}

.pp-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   2. Header & Navigation (Header v3 / Sticky / Mobile)
   ========================================================================== */
.pp-header {
  background-color: #fa7230;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.pp-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pp-logo {
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  flex-shrink: 0;
}

.pp-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.pp-logo .pp-logo-mobile {
  display: none;
}

/* Main Navigation */
.pp-nav {
  display: flex;
  align-items: center;
}

.pp-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.pp-menu > li {
  position: relative;
  margin: 0;
}

.pp-menu > li > a {
  display: flex;
  align-items: center;
  height: 84px;
  font-family: 'Roboto Slab', serif;
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0px;
  position: relative;
  border-top: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pp-menu > li > a:hover,
.pp-menu > li.current-menu-item > a,
.pp-menu > li > a.active {
  color: #e9a825;
  border-top-color: #a0ce4e;
}

/* Mobile Menu Toggle */
.pp-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #dadada;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  color: #333333;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 1099px) {
  .pp-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dadada;
  }

  .pp-header-inner {
    min-height: 76px;
  }

  .pp-logo .pp-logo-desktop {
    display: none;
  }

  .pp-logo .pp-logo-mobile {
    display: block;
  }

  .pp-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pp-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #dadada;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  }

  .pp-nav.is-open {
    display: block;
  }

  .pp-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .pp-menu > li {
    border-bottom: 1px solid #dadada;
  }

  .pp-menu > li:last-child {
    border-bottom: 0;
  }

  .pp-menu > li > a {
    height: auto;
    padding: 0 22px;
    line-height: 42px;
    font-family: 'PT Sans', sans-serif;
    font-size: 13px;
    color: #020202;
    border-top: 0;
  }

  .pp-menu > li > a:hover {
    background-color: #f6f6f6;
    color: #333333;
  }
}

/* ==========================================================================
   3. Hero Banner (Replaces Revolution Slider "prontopremium")
   ========================================================================== */
.pp-hero {
  position: relative;
  width: 100%;
  min-height: 550px;
  background-color: #f6f6f6;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pp-hero-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  min-height: 550px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pp-hero-content {
  position: relative;
  z-index: 6;
  max-width: 650px;
  animation: ppFadeDown 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.pp-hero-title {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 45px;
  color: #000000;
  margin: 0 0 32px 0;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.pp-hero-btn {
  display: inline-block;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 1px;
  color: #ffffff !important;
  background-color: rgba(239, 119, 0, 0.78);
  border: 3px solid #ffffff;
  border-radius: 0px 20px 20px 20px;
  padding: 10px 35px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.pp-hero-btn:hover {
  color: #000000 !important;
  background-color: #ffffff;
  border-color: #000000;
  border-radius: 30px;
}

.pp-hero-phone {
  position: absolute;
  left: 70%;
  top: 150px;
  width: 121px;
  height: 250px;
  z-index: 5;
  animation: ppFloatPhone 4s ease-in-out infinite alternate;
}

@media (max-width: 900px) {
  .pp-hero,
  .pp-hero-inner {
    min-height: 430px;
  }

  .pp-hero-title {
    font-size: 32px;
    line-height: 36px;
  }

  .pp-hero-phone {
    position: relative;
    left: auto;
    top: auto;
    margin-top: 24px;
    width: 95px;
    height: auto;
  }
}

@keyframes ppFadeDown {
  from {
    opacity: 0;
    transform: translateY(-35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ppFloatPhone {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-10px);
  }
}

/* ==========================================================================
   4. Sections, Grid Columns & Avada Separators
   ========================================================================== */
.pp-section {
  width: 100%;
  position: relative;
}

.pp-section-grey {
  background-color: #f8f8f8;
  border-top: 1px solid #e5e4e4;
  border-bottom: 1px solid #e5e4e4;
}

.pp-section-white {
  background-color: #ffffff;
}

.pp-section-orange-dark {
  background-color: #fa7230;
  color: #ffffff;
}

.pp-section-orange-light {
  background-color: #f39335;
  color: #ffffff;
}

.pp-section-dark {
  background-color: #333333;
  color: #ffffff;
}

/* Section Titles */
.pp-section-heading {
  text-align: center;
  font-family: 'PT Sans', Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 44px;
  color: #fa7230;
  margin: 0 0 15px 0;
  text-transform: uppercase;
}

.pp-section-heading-light {
  text-align: center;
  font-family: 'Roboto Slab', Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 44px;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

.pp-section-subtitle {
  text-align: center;
  font-size: 17px;
  line-height: 24px;
  color: #747474;
  margin: -5px auto 15px auto;
  max-width: 900px;
}

.pp-section-subtitle-light {
  text-align: center;
  font-size: 17px;
  line-height: 24px;
  color: #ffffff;
  margin: 0 auto;
  max-width: 960px;
}

/* Double Solid Separator (Avada signature style) */
.pp-sep-double {
  width: 100%;
  height: 6px;
  border-top: 1px solid #e0dede;
  border-bottom: 1px solid #e0dede;
  margin: 15px 0 40px 0;
}

/* Triangle Candy Section Divider */
.pp-triangle-divider {
  width: 100%;
  height: 0;
  position: relative;
  z-index: 10;
}

.pp-triangle-divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 20px solid #f39335;
}

.pp-triangle-divider-dark::after {
  border-top-color: #333333;
}

/* Grid System (1_3, 1_2, 1_1) */
.pp-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -20px;
}

.pp-col {
  padding: 0 20px;
  margin-bottom: 30px;
}

.pp-col-1-3 {
  width: 33.3333%;
}

.pp-col-1-2 {
  width: 50%;
}

.pp-col-1-1 {
  width: 100%;
}

@media (max-width: 800px) {
  .pp-col-1-3,
  .pp-col-1-2 {
    width: 100%;
  }

  .pp-section-heading,
  .pp-section-heading-light {
    font-size: 24px;
    line-height: 34px;
  }
}

/* ==========================================================================
   5. Feature Cards & Image Frames
   ========================================================================== */
.pp-imageframe {
  text-align: center;
  margin-bottom: 20px;
}

.pp-imageframe img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.pp-card-title {
  text-align: center;
  font-family: 'Roboto Slab', Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #fa7230;
  margin: 0 0 15px 0;
  text-transform: uppercase;
}

.pp-card-text {
  font-size: 14px;
  line-height: 1.69;
  color: #747474;
}

/* ==========================================================================
   6. Checklist (Come Funziona Il Servizio)
   ========================================================================== */
.pp-checklist {
  list-style: none;
  margin: 20px 0 0 0;
  padding: 0;
}

.pp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: #333333;
}

.pp-check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #f39335;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 3px;
}

/* ==========================================================================
   7. Buttons (Avada Orange & Custom Gradient Buttons)
   ========================================================================== */
.pp-btn-wrap {
  text-align: center;
  margin-top: 20px;
}

.pp-btn {
  display: inline-block;
  font-family: 'PT Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.25s ease;
}

.pp-btn-orange {
  font-size: 14px;
  line-height: 18px;
  padding: 13px 29px;
  background: linear-gradient(180deg, #f8bf56 0%, #f39335 100%);
  color: #ffffff !important;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.pp-btn-orange:hover {
  background: linear-gradient(180deg, #f39335 0%, #e07b1a 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.pp-btn-contact {
  font-size: 18px;
  line-height: 22px;
  padding: 17px 40px;
  background: linear-gradient(180deg, #f39335 0%, rgba(243, 147, 53, 0.25) 100%);
  color: rgba(0, 0, 0, 0.65) !important;
  border: 2px solid rgba(0, 0, 0, 0.5);
  border-radius: 30px;
}

.pp-btn-contact:hover {
  background: rgba(243, 147, 53, 0.15);
  color: #333333 !important;
  border-color: #333333;
}

/* ==========================================================================
   8. Testimonials (Dicono di Noi)
   ========================================================================== */
.pp-testimonial-quote {
  text-align: center;
  font-size: 17px;
  line-height: 26px;
  color: #747474;
  font-style: italic;
  max-width: 980px;
  margin: 0 auto;
}

.pp-testimonial-quote strong {
  font-style: normal;
  color: #333333;
}

/* ==========================================================================
   9. Page Title Bar & Inner Pages (Privacy & Cookies Policy)
   ========================================================================== */
.pp-page-title-bar {
  background-color: #f6f6f6;
  border-bottom: 1px solid #d2d3d4;
  padding: 28px 0;
}

.pp-page-title-bar h1 {
  font-size: 18px;
  font-weight: 400;
  color: #333333;
  margin: 0;
}

.pp-page-content {
  padding: 55px 0 60px 0;
  font-size: 14px;
  line-height: 1.75;
  color: #747474;
}

.pp-page-content h2 {
  font-size: 20px;
  color: #fa7230;
  margin-top: 28px;
  margin-bottom: 14px;
}

.pp-page-content ul,
.pp-page-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.pp-page-content li {
  margin-bottom: 8px;
}

.pp-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px 0;
  font-family: 'PT Sans', Arial, sans-serif;
}

.pp-page-content table td,
.pp-page-content table th {
  border: 1px solid #cccccc;
  padding: 12px 15px;
  text-align: left;
}

.pp-page-content table tr:first-child td {
  background-color: #f8f8f8;
  color: #333333;
}

/* ==========================================================================
   10. Footer Widgets & Copyright Bar
   ========================================================================== */
.pp-footer-widgets {
  background-color: #363839;
  border-top: 12px solid #e9eaee;
  padding: 60px 0 40px 0;
  color: #8c8989;
  font-size: 13px;
  line-height: 1.7;
}

.pp-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .pp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pp-footer-grid {
    grid-template-columns: 1fr;
  }
}

.pp-footer-widget h4 {
  font-family: 'PT Sans', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #dddddd;
  text-transform: uppercase;
  margin: 0 0 18px 0;
}

.pp-footer-widget a {
  color: #bfbfbf;
}

.pp-footer-widget a:hover {
  color: #e9a825;
}

.pp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pp-footer-links li {
  margin-bottom: 6px;
}

.pp-copyright {
  background-color: #282a2b;
  border-top: 1px solid #4b4c4d;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: #8c8989;
  line-height: 1.8;
}

.pp-copyright a {
  color: #bfbfbf;
}

.pp-copyright a:hover {
  color: #e9a825;
}

/* ==========================================================================
   11. Call Now Button & Back to Top & Cookie Bar
   ========================================================================== */
.pp-call-now {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #f39335;
  color: #ffffff !important;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.pp-call-now:hover {
  background-color: #fa7230;
  color: #ffffff !important;
  transform: scale(1.04);
}

.pp-call-now svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Cookie Consent Bar (CookieLawInfo equivalent) */
.pp-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background-color: #ffffff;
  color: #000000;
  border-top: 2px solid rgba(177, 166, 166, 0.76);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 14px 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}

.pp-cookie-bar.is-visible {
  display: block;
}

.pp-cookie-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pp-cookie-btn-accept {
  background-color: #000000;
  color: #ffffff !important;
  border: 0;
  border-radius: 4px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pp-cookie-btn-accept:hover {
  background-color: #333333;
}

.pp-cookie-link {
  color: #444444;
  text-decoration: underline;
  font-weight: 600;
}

/* Scroll Fade Animation Utility */
.pp-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.pp-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}
