/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.4.5
	Stable tag: 3.4.5
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/
/* ------------------------------
   BASE
---------------------------------*/
html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-bottom: 120px; /* 100px footer + 20px aria */
}

/* ------------------------------
   TIPOGRAFIA & COLORI BASE
---------------------------------*/
.g-text {
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text {
  font-size: 48px !important;
  font-weight: 800;
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-align: center;
}

/* ------------------------------
   ELEMENTI UI
---------------------------------*/
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background-color: #fafbff;
  transition: 0.2s ease;
}

.dropzone:hover {
  border-color: #8b5cf6;
  background-color: #f8f7ff;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  margin: 4px;
  border: 1px solid #e8e8f2;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
}

.chip.selected {
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  color: #fff;
  border-color: transparent;
}

.pink-btn {
  background-color: #cc14a4;
  border-color: #cc14a4;
  color: white;
}

.pink-btn:hover {
  background-color: white;
  color: #cc14a4;
  border-color: #cc14a4;
}

.br-20 {
  border-radius: 20px;
}

/* ------------------------------
   CHAT BOX
---------------------------------*/
.chat-wrapper {
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.chat-box {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
  max-width: 900px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 50px;
  padding: 0.8rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.4rem 0;
  max-height: 240px;
  overflow-y: auto;
}

.chat-input::placeholder {
  color: #9ca3af;
}

.btn-icon {
  background: transparent;
  border: none;
  color: #6b6bf0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  color: #4f4fe3;
  transform: translateY(-1px);
}

.btn-send {
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(107, 107, 240, 0.3);
  transition: all 0.2s ease;
}

.btn-send:hover {
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .chat-box {
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
  }
  .btn-send {
    width: 40px;
    height: 40px;
  }
}

/* ------------------------------
   PRICING CARD
---------------------------------*/
.pricing-card {
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  overflow: hidden;
  background: #fff;
}

.pricing-card:hover {
  transform: rotateX(10deg) translateY(-10px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}

.card-description {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  font-size: 0.9rem;
  color: #555;
}

.pricing-card:hover .card-description {
  opacity: 1;
  max-height: 100px;
  margin-top: 10px;
}

.pricing-card .card-header {
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  color: white;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

.pricing-card .btn-outline-primary:hover {
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  color: #fff;
  border: none;
}

/* ------------------------------
   FLIP CARD
---------------------------------*/
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  border-radius: 15px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
}

.flip-card-front {
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  color: black;
  align-content: center;
}

.flip-card-back {
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-back ul {
  text-align: left !important;
}

.flip-text {
  font-weight: 700;
  color: white;
}

.flip-card-back a,
.gradient-button {
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(145, 152, 229, 0.4);
  border: 1px solid white;
}

.flip-card-back a:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 18px rgba(145, 152, 229, 0.6);
  background: linear-gradient(90deg, #e66465, #9198e5);
}

/* ------------------------------
   NAVBAR
---------------------------------*/
.navbar-nav li.nav-item a.nav-link {
  font-size: 15px;
}

.navbar-nav li.nav-item a.nav-link:hover {
  background: linear-gradient(90deg, #e66465, #9198e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ------------------------------
   COPYRIGHT + FOOTER STICKY
---------------------------------*/
.copyright-banner {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.95rem;
  color: #777;
  position: relative;
  z-index: 1;
}

footer.trust-banner-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 150px;
  background: linear-gradient(90deg, #9198e5, #cc14a4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

footer.trust-banner-bottom .trust-content {
  text-align: center;
  color: white;
  padding: 10px 1rem;
}

footer.trust-banner-bottom h4 {
  margin: 0 0 4px 0;
  font-weight: 600;
  line-height: 1.2;
}

footer.trust-banner-bottom h4 span {
  color: #fff;
}

footer.trust-banner-bottom p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* ------------------------------
   MODAL
---------------------------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  animation: fadeIn 0.25s ease-out;
}

#modal-title {
  margin-bottom: 0.8rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #444;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.rating-section {
  margin: 1rem 0;
  text-align: center;
}


.stars span {
  cursor: pointer;
  color: gray;
  font-size: 1.5rem;
  transition: color 0.2s;
}

/* illumina le stelle precedenti al passaggio */
.stars span:hover,
.stars span:hover ~ span {
  color: gold;
}

.modal-content p {
  margin: 0.5rem 0 0.8rem 0;
}
}
