/* Joniansea – parti comuni alle pagine del nuovo design (dopo il CSS della pagina). */

/* Residui di Flatsome/plugin che senza il CSS del tema resterebbero visibili */
.mfp-hide,#main-menu.mobile-sidebar,.back-to-top,.flatsome-cookies{display:none!important}
body.jn{margin:0}
body.jn.admin-bar header.site{top:32px}
@media (max-width:782px){body.jn.admin-bar header.site{top:46px}}

/* ---------- Menu mobile (hamburger) ---------- */
.jn-drawer{position:fixed;inset:0;z-index:9999;visibility:hidden;pointer-events:none}
.jn-drawer.open{visibility:visible;pointer-events:auto}
.jn-drawer .jn-ov{position:absolute;inset:0;background:rgba(10,10,10,.55);opacity:0;transition:opacity .3s}
.jn-drawer.open .jn-ov{opacity:1}
.jn-drawer .jn-panel{position:absolute;top:0;left:0;bottom:0;width:min(86vw,360px);background:var(--navy,#1e2436);color:#fff;
  transform:translateX(-100%);transition:transform .35s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column;overflow-y:auto;
  padding:calc(env(safe-area-inset-top) + 1rem) 1.4rem 2rem}
.jn-drawer.open .jn-panel{transform:none}
.jn-drawer .jn-close{align-self:flex-end;background:none;border:0;color:#fff;width:44px;height:44px;display:grid;place-items:center;cursor:pointer}
.jn-drawer .jn-close svg{width:26px;height:26px}
.jn-drawer nav{display:flex;flex-direction:column;margin-top:.5rem}
.jn-drawer nav a{font-family:var(--ui);font-weight:700;letter-spacing:.1em;text-transform:uppercase;font-size:1.05rem;color:#fff;text-decoration:none;
  padding:1rem 0;border-bottom:1px solid rgba(255,255,255,.12)}
.jn-drawer nav a.star{color:var(--cta,#ff8400)}
.jn-drawer .jn-extra{display:flex;gap:1.2rem;margin-top:1.6rem}
.jn-drawer .jn-extra a{color:#c8cfdc;font-family:var(--ui);font-weight:600;text-decoration:none;letter-spacing:.06em;text-transform:uppercase;font-size:.9rem}
html.jn-lock,html.jn-lock body{overflow:hidden}

/* ---------- Newsletter ---------- */
.news{position:relative}
.news .news-msg{position:absolute;left:0;right:0;top:calc(100% + .45rem);margin:0;font-size:.85rem;line-height:1.35;color:#c8cfdc}
.news .news-msg:empty{display:none}
.news .news-msg.bad{color:#ff9aa6}
.news .jn-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* ---------- Moduli WPForms nello stile del design ---------- */
.cform-wp .wpforms-container{margin:0!important}
.cform-wp .wpforms-field-container{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem 1.2rem}
.cform-wp .wpforms-field{padding:0!important;margin:0!important;grid-column:1/-1;min-width:0}
.cform-wp .wpforms-field.wpforms-field-email,
.cform-wp .wpforms-field.wpforms-field-text{grid-column:auto}
.cform-wp #wpforms-508-field_12-container{grid-column:1/-1}
.cform-wp .wpforms-field-label{display:block!important;font-family:var(--ui)!important;font-weight:700!important;letter-spacing:.12em;text-transform:uppercase;
  font-size:.78rem!important;color:var(--navy)!important;margin:0 0 .45rem!important;padding:0!important;line-height:1.3!important}
.cform-wp .wpforms-required-label{color:var(--cta)!important;font-weight:700}
.cform-wp .wpforms-field-sublabel{font-family:var(--ui)!important;font-size:.75rem!important;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)!important;margin-top:.35rem!important}
.cform-wp .wpforms-field-row{display:grid!important;grid-template-columns:1fr 1fr;gap:1.2rem;max-width:none!important}
.cform-wp .wpforms-field-row::before,.cform-wp .wpforms-field-row::after{display:none!important}
.cform-wp .wpforms-field-row-block{width:auto!important;padding:0!important;margin:0!important;float:none!important}
.cform-wp input[type=text],.cform-wp input[type=email],.cform-wp input[type=tel],.cform-wp input[type=number],.cform-wp select,.cform-wp textarea{
  width:100%!important;max-width:none!important;box-sizing:border-box;font:inherit!important;font-size:1rem!important;color:var(--ink)!important;background:#f3f5f8!important;
  border:0!important;border-bottom:2px solid #c9d0db!important;border-radius:0!important;padding:.85rem .9rem!important;min-height:48px;height:auto!important;
  box-shadow:none!important;transition:border-color .25s,background .25s}
.cform-wp textarea{min-height:150px!important;resize:vertical}
.cform-wp input:focus,.cform-wp select:focus,.cform-wp textarea:focus{outline:0!important;border-bottom-color:var(--blue)!important;background:#eaf5fc!important}
.cform-wp .wpforms-error,.cform-wp label.wpforms-error,.cform-wp em.wpforms-error{display:block;font-style:normal;font-size:.85rem!important;color:#c0182c!important;margin-top:.35rem!important;padding:0!important}
.cform-wp input.wpforms-error,.cform-wp select.wpforms-error,.cform-wp textarea.wpforms-error{border-bottom-color:#c0182c!important;background:#fdf0f2!important}
.cform-wp .wpforms-recaptcha-container{padding:1.2rem 0 0!important;margin:0!important}
.cform-wp .wpforms-submit-container{padding:1.4rem 0 0!important;margin:0!important}
.cform-wp button.wpforms-submit{display:inline-flex!important;align-items:center;gap:.6em;font-family:var(--ui)!important;font-weight:700!important;font-size:1rem!important;
  letter-spacing:.1em;text-transform:uppercase;padding:.95em 1.6em!important;background:var(--cta)!important;color:#fff!important;border:0!important;border-radius:0!important;
  cursor:pointer;height:auto!important;line-height:1.2!important;transition:background .25s,transform .25s;box-shadow:none!important}
.cform-wp button.wpforms-submit:hover{background:#ec7a00!important;transform:translateY(-2px)}
.cform-wp button.wpforms-submit::after{content:"";width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.cform-wp .cform-note{font-size:.92rem;margin:1rem 0 0;color:var(--muted)}
.cform-wp .cform-note a{color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.cform-wp .wpforms-confirmation-container-full,.cform-wp .wpforms-confirmation-container{padding:2rem!important;background:var(--navy)!important;color:#fff!important;border:0!important;margin:0!important;
  animation:fup .8s cubic-bezier(.16,1,.3,1) both}
.cform-wp .wpforms-confirmation-container-full p,.cform-wp .wpforms-confirmation-container p{margin:0;color:#c8cfdc}
.cform-wp .wpforms-confirmation-container-full p:first-child{font-family:var(--title);font-weight:900;font-size:2rem;text-transform:uppercase;color:#fff;margin-bottom:.4rem}
@media (max-width:640px){
  .cform-wp .wpforms-field-container,.cform-wp .wpforms-field-row{grid-template-columns:1fr}
}

/* WPForms: colonne, etichette visibili, nome/cognome come due campi */
.cform-wp .wpforms-field.wpforms-one-half,.cform-wp .wpforms-field[class*="wpforms-one-"]{width:auto!important;float:none!important;margin-left:0!important;clear:none!important}
.cform-wp .wpforms-label-hide,.cform-wp .wpforms-sublabel-hide{position:static!important;clip:auto!important;clip-path:none!important;height:auto!important;width:auto!important;overflow:visible!important;margin:0 0 .45rem!important}
.cform-wp .wpforms-field-name>.wpforms-field-label{display:none!important}
.cform-wp .wpforms-field-name .wpforms-field-row-block{display:flex;flex-direction:column-reverse}
.cform-wp .wpforms-field-name .wpforms-field-sublabel{display:block;font-family:var(--ui)!important;font-weight:700!important;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem!important;color:var(--navy)!important;margin:0 0 .45rem!important}
.cform-wp .wpforms-field-description{font-size:.92rem!important;color:var(--muted)!important;margin-top:.6rem!important;line-height:1.5}
.cform-wp .wpforms-field-description a{color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.cform-wp ::placeholder{color:#8a93a3;opacity:1}

.cform-wp .wpforms-field-label,.cform-wp .wpforms-field-name .wpforms-field-sublabel{text-transform:uppercase!important;letter-spacing:.12em!important;font-size:.78rem!important;font-weight:700!important;color:var(--navy)!important}
.admin-bar .jn-drawer .jn-panel{padding-top:calc(46px + 1rem)}

/* ---------- Schede prodotto: effetto "lenza" al passaggio del mouse ----------
   Scende una lenza con l'amo, il prodotto ondeggia come un galleggiante e sul fondo scorre una piccola onda.
   Sostituisce inclinazione 3D, riflesso e riempimento blu del primo design. */
.card:hover{transform:none!important}
.card .sq{isolation:isolate}
.card .sq::before{content:"";position:absolute;left:50%;top:0;right:auto;bottom:auto;width:22px;height:0;margin-left:-11px;opacity:1;z-index:3;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 30' fill='none' stroke='%231e2436' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M11 0v19a5 5 0 0 1-10 0l2.6 2.2'/%3E%3C/svg%3E") bottom center/22px 30px no-repeat,
             linear-gradient(#1e2436,#1e2436) top center/1.6px calc(100% - 29px) no-repeat;
  transform-origin:50% 0;transition:height .7s cubic-bezier(.22,1,.36,1)}
.card:hover .sq::before{height:24%;animation:jn-sway 2.8s ease-in-out .7s infinite}
.card .sq::after{inset:auto 0 0 0;height:14px;opacity:0;z-index:2;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14'%3E%3Cpath d='M0 9c10 0 10-6 20-6s10 6 20 6 10-6 20-6v11H0z' fill='%23009fe3'/%3E%3C/svg%3E") 0 100%/60px 14px repeat-x;
  transition:opacity .45s}
.card:hover .sq::after{opacity:.35;animation:jn-tide 3.2s linear infinite}
.card:hover .sq img{transform:none!important}
.card:hover .sq img{animation:jn-bob 2.8s ease-in-out .35s infinite}
@keyframes jn-bob{0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -7px;rotate:-1.2deg}}
@keyframes jn-sway{0%,100%{rotate:0deg}50%{rotate:3deg}}
@keyframes jn-tide{to{background-position:60px 100%}}
@media (prefers-reduced-motion:reduce){.card:hover .sq img,.card:hover .sq::before,.card:hover .sq::after{animation:none}.card .sq::before{transition:none}}
