/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

/* Inizio stile bottone chiama ora su top bar */
/* =========================================================
   CTA TOP BAR - VELYON
========================================================= */

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

.cta-call {
    background-color: #25D366;
    border: 1px solid #25D366;
    color: #ffffff;
    font-weight: 600;
    padding: 3px 16px; /* altezza e larghezza */
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-call:hover {
    background-color: #1ebe5d;
    border-color: #1ebe5d;
    color: #ffffff;
}

@media (max-width: 768px) {
    .cta-topbar {
        justify-content: center;
    }

    .cta-call {
        width: 90%;
        max-width: 300px;
        text-align: center;
    }
}

/* =========================================================
   CTA STICKY MOBILE FOOTER - VELYON
========================================================= */

/* Nascondi su desktop */
.mobile-call-cta {
    display: none;
}

/* SOLO MOBILE */
@media (max-width: 768px) {

    .mobile-call-cta {
        display: block !important;

        position: fixed !important;

        left: 50% !important;

        bottom: calc(15px + env(safe-area-inset-bottom)) !important;

        transform: translateX(-50%) !important;

        width: calc(100% - 30px) !important;

        max-width: 420px !important;

        z-index: 999999 !important;
    }

    .mobile-call-btn {
        display: flex !important;

        align-items: center;
        justify-content: center;
        gap: 10px;

        width: 100%;

        padding: 18px 24px;

        background: #25D366;

        color: #ffffff !important;

        text-decoration: none !important;

        font-size: 18px;

        font-weight: 700;

        border-radius: 999px;

        box-shadow:
            0 10px 30px rgba(37, 211, 102, 0.35),
            0 8px 22px rgba(0, 0, 0, 0.18);

        -webkit-tap-highlight-color: transparent;

        transition: all 0.25s ease;

        backdrop-filter: blur(6px);
    }

    .mobile-call-btn:hover,
    .mobile-call-btn:focus,
    .mobile-call-btn:active {
        background: #1ebe5d;
        color: #ffffff !important;
    }

    /* Icona */
    .mobile-call-btn i {
        font-size: 18px;
    }

    /* Spazio per evitare sovrapposizione footer */
    #footer,
    #colophon,
    .site-footer {
        margin-bottom: 90px;
    }
}
/* Fine stile bottone sticky footer su mobile */

/* ======================================================
   CONTACT FORM VELYON
   ====================================================== */

.velyon-form-card {
  background: #ffffff;
  padding: 38px;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  max-width: 760px;
  margin: 0 auto;
}

/* ROWS */
.velyon-form-row {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
}

.velyon-form-col {
  width: 50%;
}

/* LABELS */
.velyon-form-card label {
  display: block;
  margin-bottom: 7px;
  color: #1A4F83;
  font-size: 14px;
  font-weight: 600;
}

/* INPUTS */
.velyon-form-card input[type="text"],
.velyon-form-card input[type="email"],
.velyon-form-card input[type="tel"],
.velyon-form-card textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d7e3ec;
  border-radius: 10px;
  background: #f8fbfd;
  color: #1f2933;
  font-size: 15px;
  margin-bottom: 18px;
  transition: all 0.25s ease;
}

/* TEXTAREA */
.velyon-form-card textarea {
  min-height: 120px;
  resize: vertical;
}

/* FOCUS */
.velyon-form-card input:focus,
.velyon-form-card textarea:focus {
  outline: none;
  border-color: #00B3E8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 179, 232, 0.15);
}

/* PLACEHOLDER */
.velyon-form-card ::placeholder {
  color: #9aa7b2;
}

/* PRIVACY AREA */
.velyon-privacy {
  margin-top: 5px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #5b6670;
  line-height: 1.5;
}

/* PRIVACY LINK */
.velyon-privacy a {
  color: #1A4F83;
  font-weight: 600;
  text-decoration: underline;
}

/* REMOVE DEFAULT MARGIN */
.velyon-privacy .wpcf7-list-item {
  margin: 0;
}

/* BIGGER CHECKBOX */
.velyon-privacy input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #1A4F83;
  margin-right: 10px;
  transform: translateY(3px);
}

/* PRIVACY TEXT */
.velyon-privacy .wpcf7-list-item-label {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

/* SUBMIT ALIGN */
.velyon-submit {
  text-align: center;
}

/* SUBMIT BUTTON */
.velyon-form-card input[type="submit"] {
  background: #1A4F83;
  color: #ffffff;
  border: none;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* SUBMIT HOVER */
.velyon-form-card input[type="submit"]:hover {
  background: #00B3E8;
  transform: translateY(-2px);
}

/* ERROR MESSAGES */
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #dc3545;
  margin-top: -12px;
  margin-bottom: 12px;
}

/* SUCCESS / RESPONSE BOX */
.wpcf7 form .wpcf7-response-output {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 20px;
}

/* ======================================================
   MOBILE
   ====================================================== */

@media (max-width: 767px) {

  .velyon-form-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .velyon-form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }

  .velyon-form-col {
    width: 100%;
  }

  .velyon-form-card input[type="submit"] {
    width: 100%;
  }

  /* BIGGER MOBILE CHECKBOX */
  .velyon-privacy input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

}
/* ======================================================
   Disabilitazione spinner di invio per centrare meglio il bottone
   ====================================================== */
.wpcf7-spinner {
  display: none !important;
}

/* =======================================================
   STICKY HEADER VELYON
======================================================= */

#site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    transition: background .3s ease, box-shadow .3s ease;
}

body.admin-bar #site-header {
    top: 32px;
}

#site-header.header-scrolled {
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

#site-header-inner,
#site-logo,
#site-logo #site-logo-inner,
#site-logo #site-logo-inner a,
#site-logo img,
#site-navigation-wrap,
#site-navigation-wrap .dropdown-menu > li > a {
    transition: all .3s ease;
}

/* Desktop sticky */
#site-header.header-scrolled #site-header-inner {
    min-height: 54px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#site-header.header-scrolled #site-logo,
#site-header.header-scrolled #site-logo #site-logo-inner,
#site-header.header-scrolled #site-logo #site-logo-inner a {
    height: 54px !important;
    line-height: 54px !important;
}

#site-header.header-scrolled #site-logo img {
    max-height: 38px !important;
    height: auto !important;
    width: auto !important;
}

#site-header.header-scrolled #site-navigation-wrap,
#site-header.header-scrolled #site-navigation-wrap .dropdown-menu > li > a {
    height: 54px !important;
    line-height: 54px !important;
}

#site-header.header-scrolled #site-navigation-wrap a {
    color: #1A4F83 !important;
}

#site-header.header-scrolled #site-navigation-wrap a:hover {
    color: #00B3E8 !important;
}

/* Mobile */
@media (max-width: 767px) {

    body.admin-bar #site-header {
        top: 0 !important;
    }

    html #wpadminbar {
        display: none !important;
    }

    #site-header {
        height: 72px !important;
        min-height: 72px !important;
    }

    #site-header #site-header-inner {
        height: 72px !important;
        min-height: 72px !important;
        padding: 0 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #site-logo,
    #site-logo #site-logo-inner,
    #site-logo #site-logo-inner a {
        height: 72px !important;
        line-height: 72px !important;
    }

    #site-logo img {
        max-height: 44px !important;
        height: auto !important;
        width: auto !important;
    }

    .oceanwp-mobile-menu-icon {
        margin-left: auto !important;
        float: none !important;
        height: 72px !important;
        line-height: 72px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .oceanwp-mobile-menu-icon a {
        height: 72px !important;
        line-height: 72px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px;
    }

    #site-header.header-scrolled {
        height: 62px !important;
        min-height: 62px !important;
    }

    #site-header.header-scrolled #site-header-inner {
        height: 62px !important;
        min-height: 62px !important;
    }

    #site-header.header-scrolled #site-logo,
    #site-header.header-scrolled #site-logo #site-logo-inner,
    #site-header.header-scrolled #site-logo #site-logo-inner a,
    #site-header.header-scrolled .oceanwp-mobile-menu-icon,
    #site-header.header-scrolled .oceanwp-mobile-menu-icon a {
        height: 62px !important;
        line-height: 62px !important;
    }

    #site-header.header-scrolled #site-logo img {
        max-height: 34px !important;
    }

    #site-header.header-scrolled .oceanwp-mobile-menu-icon a,
    #site-header.header-scrolled .oceanwp-mobile-menu-icon i,
    #site-header.header-scrolled .mobile-menu-text {
        color: #1A4F83 !important;
    }
}