/* Arianna Plus Food - Diario Food cliente V1 */

.apf-local-login-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.apf-local-login-dual strong,
.apf-local-login-dual p {
  grid-column: 1 / -1;
}

.apf-local-login-dual .apf-local-customer-login {
  background: #1768e5;
}

#viewContent.apf-customer-view {
  width: min(1220px, calc(100% - 28px));
  margin: 20px auto 70px;
}

.apf-customer-profile,
.apf-customer-composer,
.apf-customer-side-card,
.apf-customer-post,
.apf-customer-panel {
  border: 1px solid #dfe5ed;
  background: #fff;
  box-shadow: 0 6px 22px rgba(25, 48, 84, .055);
}

.apf-customer-profile {
  overflow: hidden;
  border-radius: 22px;
}

.apf-customer-cover {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #0b2855;
}

.apf-customer-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(2, 15, 38, .42));
  pointer-events: none;
}

.apf-customer-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apf-customer-cover > button {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 18px;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
  color: #15213a;
  font-weight: 900;
  cursor: pointer;
}

.apf-customer-identity {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 32px 16px;
}

.apf-customer-avatar {
  position: relative;
  width: 156px;
  height: 156px;
  margin-top: -80px;
  overflow: visible;
  padding: 0;
  border: 6px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 9px 30px rgba(8, 31, 68, .22);
  cursor: pointer;
}

.apf-customer-avatar img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
}

.apf-customer-avatar span {
  position: absolute;
  right: -3px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #edf1f6;
  font-size: 14px;
}

.apf-customer-name h1 {
  margin: 0;
  color: #102039;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}

.apf-customer-name p,
.apf-customer-name small {
  display: block;
  margin: 7px 0 0;
  color: #61708a;
  font-size: 12px;
}

.apf-customer-name small {
  color: #1768e5;
  font-weight: 850;
}

.apf-customer-profile-actions {
  display: flex;
  gap: 8px;
}

.apf-customer-profile-actions button {
  min-height: 44px;
}

.apf-customer-tabs {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  border-top: 1px solid #e2e8f0;
}

.apf-customer-tabs button {
  min-height: 54px;
  padding: 10px 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #5a6678;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.apf-customer-tabs button.active {
  border-bottom-color: #1768e5;
  color: #1768e5;
}

.apf-customer-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.apf-customer-sidebar {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 14px;
}

.apf-customer-side-card {
  padding: 18px;
  border-radius: 17px;
}

.apf-customer-side-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  color: #14223a;
  font-size: 17px;
}

.apf-customer-side-card h3 button {
  border: 0;
  background: transparent;
  color: #1768e5;
  cursor: pointer;
}

.apf-customer-side-card p {
  margin: 7px 0;
  color: #607087;
  font-size: 11px;
  line-height: 1.55;
}

.apf-customer-journey {
  overflow: hidden;
  background: linear-gradient(145deg, #082957, #0d4d99);
  color: #fff;
}

.apf-customer-journey > span {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .14em;
  opacity: .8;
}

.apf-customer-journey h3,
.apf-customer-journey p {
  color: #fff;
}

.apf-customer-map-art {
  position: relative;
  height: 110px;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 24% 36%, transparent 0 8px, rgba(255,255,255,.22) 9px 10px, transparent 11px),
    linear-gradient(30deg, transparent 45%, rgba(255,255,255,.13) 46% 48%, transparent 49%),
    linear-gradient(-30deg, transparent 45%, rgba(255,255,255,.11) 46% 48%, transparent 49%),
    rgba(255,255,255,.07);
}

.apf-customer-map-art i,
.apf-customer-map-art b,
.apf-customer-map-art em {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #ff5b37;
  transform: rotate(-45deg);
}

.apf-customer-map-art i { left: 22%; top: 28%; }
.apf-customer-map-art b { right: 22%; top: 18%; background: #ffbd16; }
.apf-customer-map-art em { left: 48%; bottom: 18%; background: #20c68b; }

.apf-customer-highlight {
  width: 100%;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #f5f8fc;
  color: #27405f;
  font-size: 10px;
  font-weight: 850;
  text-align: left;
}

.apf-customer-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.apf-customer-composer {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 11px;
  padding: 16px;
  border-radius: 17px;
}

.apf-customer-composer > img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.apf-customer-composer > button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 25px;
  background: #eef2f7;
  color: #788398;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.apf-customer-composer > div {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid #e6ebf2;
}

.apf-customer-composer > div button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #506079;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.apf-customer-composer > div button:hover {
  background: #f1f5fb;
  color: #1768e5;
}

.apf-customer-feed-heading,
.apf-customer-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 2px;
}

.apf-customer-feed-heading h2,
.apf-customer-panel-head h2 {
  margin: 0;
  color: #12213a;
  font-size: 21px;
}

.apf-customer-feed-heading p,
.apf-customer-panel-head p {
  margin: 3px 0 0;
  color: #718096;
  font-size: 10px;
}

.apf-customer-feed-heading > span {
  color: #1768e5;
  font-size: 10px;
  font-weight: 900;
}

.apf-customer-post-list {
  display: grid;
  gap: 14px;
}

.apf-customer-post {
  overflow: hidden;
  border-radius: 17px;
}

.apf-customer-post > header {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 11px;
}

.apf-customer-post > header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.apf-customer-post > header strong,
.apf-customer-post > header small {
  display: block;
}

.apf-customer-post > header strong {
  color: #15233a;
  font-size: 13px;
}

.apf-customer-post > header small {
  margin-top: 3px;
  color: #7a8596;
  font-size: 9px;
}

.apf-customer-post > header > button {
  border: 0;
  background: transparent;
  color: #627087;
  cursor: pointer;
}

.apf-customer-demo-label {
  margin: 0 16px 8px;
  color: #b06600;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .1em;
}

.apf-customer-post-copy {
  padding: 0 16px 15px;
}

.apf-customer-post-copy h3 {
  margin: 5px 0 7px;
  color: #15233a;
  font-size: 20px;
}

.apf-customer-post-copy p {
  margin: 0 0 10px;
  color: #3d4c62;
  font-size: 13px;
  line-height: 1.55;
}

.apf-customer-place-link {
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: #edf4ff;
  color: #1768e5;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.apf-customer-post-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 0 3px;
}

.apf-customer-post-media.count-1 {
  grid-template-columns: 1fr;
}

.apf-customer-post-media button {
  height: 235px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #e7ebf0;
  cursor: pointer;
}

.apf-customer-post-media.count-1 button {
  height: 430px;
}

.apf-customer-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apf-customer-post > footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px 9px;
  border-top: 1px solid #e4e9f0;
}

.apf-customer-post > footer button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #59677b;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.apf-customer-post > footer button:hover {
  background: #f2f5f9;
}

.apf-customer-panel {
  min-height: 360px;
  padding: 20px;
  border-radius: 17px;
}

.apf-customer-panel-head {
  padding: 0 0 16px;
  border-bottom: 1px solid #e4e9f0;
}

.apf-customer-place-grid,
.apf-customer-saved-grid {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.apf-customer-place-grid article,
.apf-customer-saved-grid article {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border: 1px solid #dfe6ef;
  border-radius: 13px;
}

.apf-customer-place-grid img,
.apf-customer-saved-grid img {
  width: 100px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.apf-customer-place-grid strong,
.apf-customer-place-grid small,
.apf-customer-place-grid time,
.apf-customer-saved-grid strong,
.apf-customer-saved-grid small,
.apf-customer-saved-grid b {
  display: block;
  margin-top: 4px;
}

.apf-customer-place-grid small,
.apf-customer-place-grid time,
.apf-customer-saved-grid small {
  color: #708095;
  font-size: 9px;
}

.apf-customer-place-grid article > button,
.apf-customer-saved-grid article > button {
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: #1768e5;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
}

.apf-customer-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 15px;
}

.apf-customer-photo-grid button {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #e6ebf1;
}

.apf-customer-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apf-customer-photo-grid span {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 9px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  font-size: 9px;
  text-align: left;
}

.apf-customer-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 1px dashed #c8d4e4;
  border-radius: 13px;
  color: #66768c;
  text-align: center;
}

.apf-customer-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 18, 40, .72);
  backdrop-filter: blur(5px);
}

.apf-customer-modal {
  position: relative;
  width: min(700px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 25px;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0,0,0,.36);
}

.apf-customer-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  background: #edf1f6;
  color: #566277;
  font-size: 24px;
}

.apf-customer-modal-heading {
  position: static;
  z-index: auto;
  display: block;
  width: auto;
  height: auto;
  padding: 0 45px 0 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.apf-customer-modal-heading span {
  color: #1768e5;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .14em;
}

.apf-customer-modal-heading h2 {
  margin: 7px 0 4px;
  color: #12213a;
  font-size: 29px;
}

.apf-customer-modal-heading p {
  margin: 0 0 19px;
  color: #6d798c;
  font-size: 11px;
}

.apf-customer-modal form {
  display: grid;
  gap: 13px;
}

.apf-customer-modal label {
  display: grid;
  gap: 6px;
}

.apf-customer-modal label > span {
  color: #27364d;
  font-size: 10px;
  font-weight: 850;
}

.apf-customer-modal input,
.apf-customer-modal textarea,
.apf-customer-modal select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccd8e7;
  border-radius: 11px;
  background: #fff;
  color: #18253a;
  font: inherit;
}

.apf-customer-modal textarea {
  min-height: 120px;
  resize: vertical;
}

.apf-customer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 12px;
}

.apf-customer-check {
  grid-template-columns: auto 1fr !important;
  align-items: center;
  padding: 12px;
  border: 1px solid #d7e1ee;
  border-radius: 11px;
  color: #42516a;
  font-size: 10px;
  font-weight: 800;
}

.apf-customer-check input {
  width: auto;
}

.apf-customer-upload-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.apf-customer-upload-preview span {
  position: relative;
  aspect-ratio: 1;
}

.apf-customer-upload-preview img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.apf-customer-upload-preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 20, 40, .8);
  color: #fff;
}

.apf-customer-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 5px;
}

.apf-share-shop-diary {
  background: #fff7dc !important;
  color: #8a5800 !important;
}

.apf-share-card-diary {
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff4cf !important;
  color: #875500 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
}

@media (max-width: 900px) {
  .apf-customer-cover { height: 260px; }

  .apf-customer-identity {
    grid-template-columns: 140px 1fr;
  }

  .apf-customer-avatar {
    width: 126px;
    height: 126px;
    margin-top: -64px;
  }

  .apf-customer-profile-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .apf-customer-layout {
    grid-template-columns: 1fr;
  }

  .apf-customer-sidebar {
    position: static;
    order: 2;
    grid-template-columns: repeat(3, 1fr);
  }

  .apf-customer-main { order: 1; }
}

@media (max-width: 650px) {
  .apf-local-login-dual {
    grid-template-columns: 1fr;
  }

  .apf-local-login-dual strong,
  .apf-local-login-dual p {
    grid-column: 1;
  }

  #viewContent.apf-customer-view {
    width: min(100% - 14px, 1220px);
    margin-top: 8px;
  }

  .apf-customer-profile {
    border-radius: 17px;
  }

  .apf-customer-cover {
    height: 205px;
  }

  .apf-customer-cover > button {
    right: 10px;
    bottom: 10px;
    min-height: 36px;
    font-size: 9px;
  }

  .apf-customer-identity {
    display: block;
    min-height: 220px;
    padding: 68px 15px 15px;
  }

  .apf-customer-avatar {
    position: absolute;
    top: -52px;
    left: 15px;
    width: 106px;
    height: 106px;
    margin: 0;
  }

  .apf-customer-name h1 {
    font-size: 27px;
  }

  .apf-customer-profile-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .apf-customer-tabs {
    overflow-x: auto;
    padding: 0 8px;
  }

  .apf-customer-tabs button {
    flex: 0 0 auto;
    padding-inline: 13px;
  }

  .apf-customer-sidebar {
    grid-template-columns: 1fr;
  }

  .apf-customer-post-media button,
  .apf-customer-post-media.count-1 button {
    height: 280px;
  }

  .apf-customer-post > footer {
    grid-template-columns: 1fr;
  }

  .apf-customer-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apf-customer-place-grid article,
  .apf-customer-saved-grid article {
    grid-template-columns: 78px 1fr;
  }

  .apf-customer-place-grid img,
  .apf-customer-saved-grid img {
    width: 78px;
    height: 68px;
  }

  .apf-customer-place-grid article > button,
  .apf-customer-saved-grid article > button {
    grid-column: 2;
    justify-self: start;
  }

  .apf-customer-form-grid {
    grid-template-columns: 1fr;
  }

  .apf-customer-modal {
    padding: 21px 15px 15px;
  }

  .apf-customer-upload-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FIX DEFINITIVO FINESTRA CLIENTE */
.apf-customer-modal-heading {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  grid-template-columns: none !important;
  align-items: initial !important;
  gap: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 48px 0 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.apf-customer-modal-heading h2 {
  display: block !important;
  width: auto !important;
  margin: 7px 0 4px !important;
}

.apf-customer-modal-heading p {
  display: block !important;
  width: auto !important;
  margin: 0 0 19px !important;
}
/* Arianna Plus Food V3 - Post, Reel e Storie */
.apf-content-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 5px 0 18px;
  padding: 5px;
  border-radius: 14px;
  background: #eef3fa;
}

.apf-content-type-tabs button {
  padding: 11px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #5e6b7e;
  font-weight: 900;
  cursor: pointer;
}

.apf-content-type-tabs button.active {
  border-color: #9dc1f8;
  background: #ffffff;
  color: #1768e5;
  box-shadow: 0 4px 12px rgba(23,104,229,.12);
}

.apf-customer-media-status {
  min-height: 18px;
  color: #1768e5;
  font-size: 11px;
  font-weight: 800;
}

.apf-customer-video-preview video {
  display: block;
  width: min(100%, 360px);
  max-height: 520px;
  margin: 0 auto;
  border-radius: 16px;
  background: #071328;
}

.apf-story-notice {
  margin: 0;
  padding: 11px 13px;
  border-radius: 11px;
  background: #fff7df;
  color: #7a5700;
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 600px) {
  .apf-content-type-tabs button {
    padding: 10px 4px;
    font-size: 11px;
  }
}
.apf-customer-post-video {
  overflow: hidden;
  background: #071328;
}

.apf-customer-post-video video {
  display: block;
  width: 100%;
  max-height: 720px;
  margin: auto;
  background: #071328;
  object-fit: contain;
}

.apf-customer-kind-label {
  display: inline-flex;
  margin: 10px 18px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1768e5;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
}

.apf-kind-story {
  border: 2px solid #f6c95e;
}

.apf-kind-story .apf-customer-kind-label {
  background: #fff5d8;
  color: #8a5a00;
}
/* ANELLO FOTO PROFILO: STORIA ATTIVA */
.apf-customer-avatar.has-story {
  border-color: transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(
      from 15deg,
      #ff3158,
      #ff8a00,
      #ffd43b,
      #ff3158,
      #7357ff,
      #18b9ff,
      #ff3158
    ) border-box;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, .96),
    0 9px 30px rgba(8, 31, 68, .22);
}

.apf-customer-avatar.has-story::after {
  content: "STORIA";
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: #ff3158;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.apf-customer-avatar.has-story:hover {
  transform: scale(1.025);
}

.apf-customer-avatar span {
  z-index: 3;
}
/* VISUALIZZATORE PROFESSIONALE DELLE STORIE */
.apf-customer-avatar.has-story::after {
  content: none !important;
}

.apf-customer-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 190px));
  gap: 18px;
  padding-top: 20px;
}

.apf-story-preview {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #ff9d20;
  border-radius: 22px;
  background: #ffffff;
  color: #102343;
  box-shadow: 0 10px 30px rgba(10, 32, 67, .12);
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.apf-story-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(10, 32, 67, .18);
}

.apf-story-preview-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #07172d;
}

.apf-story-preview-media img,
.apf-story-preview-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.apf-story-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #ffffff;
  font-size: 19px;
}

.apf-story-preview-time {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(4, 17, 38, .78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.apf-story-preview-copy {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
}

.apf-story-preview-copy img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 2px solid #ff5b45;
  border-radius: 50%;
  object-fit: cover;
}

.apf-story-preview-copy span,
.apf-story-preview-copy strong,
.apf-story-preview-copy small {
  min-width: 0;
  display: block;
}

.apf-story-preview-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.apf-story-preview-copy small {
  margin-top: 2px;
  color: #6d7a91;
  font-size: 10px;
}

.apf-story-placeholder,
.apf-story-viewer-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 25px;
  color: #ffffff;
  font-weight: 900;
  text-align: center;
  background:
    radial-gradient(circle at 25% 20%, #ff8641, transparent 34%),
    linear-gradient(145deg, #142f5d, #061326 70%);
}

body.apf-story-viewer-open {
  overflow: hidden !important;
}

.apf-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(2, 7, 17, .94);
  backdrop-filter: blur(12px);
}

.apf-story-viewer-stage {
  position: relative;
  width: min(430px, calc(100vw - 24px));
  height: min(764px, calc(100vh - 24px));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 24px;
  background: #050b15;
  color: #ffffff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .55);
}

.apf-story-progress {
  position: absolute;
  z-index: 8;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
}

.apf-story-progress span {
  height: 3px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
}

.apf-story-progress span i {
  width: 0;
  height: 100%;
  display: block;
  background: #ffffff;
}

.apf-story-progress span.done i {
  width: 100%;
}

.apf-story-viewer-stage > header {
  position: absolute !important;
  z-index: 7 !important;
  top: 22px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  border: 0 !important;
  background: linear-gradient(rgba(0, 0, 0, .68), transparent) !important;
}

.apf-story-viewer-stage > header img {
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
}

.apf-story-viewer-stage > header div {
  min-width: 0;
  flex: 1;
}

.apf-story-viewer-stage > header strong,
.apf-story-viewer-stage > header small {
  display: block;
  color: #ffffff;
}

.apf-story-viewer-stage > header small {
  margin-top: 2px;
  opacity: .82;
  font-size: 11px;
}

.apf-story-viewer-stage > header button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.apf-story-viewer-media,
.apf-story-viewer-media img,
.apf-story-viewer-media video {
  width: 100%;
  height: 100%;
}

.apf-story-viewer-media img,
.apf-story-viewer-media video {
  display: block;
  object-fit: contain;
  background: #000000;
}

.apf-story-viewer-caption {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 90px 24px 27px;
  color: #ffffff;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
}

.apf-story-viewer-caption h3 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 22px;
}

.apf-story-viewer-caption p {
  margin: 0;
  color: #ffffff;
  line-height: 1.45;
}

.apf-story-navigation {
  position: absolute;
  z-index: 9;
  top: 48%;
  width: 42px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: rgba(0, 0, 0, .28);
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.apf-story-navigation.previous {
  left: 8px;
}

.apf-story-navigation.next {
  right: 8px;
}

.apf-story-counter {
  position: absolute;
  z-index: 8;
  right: 15px;
  bottom: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .48);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .apf-customer-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .apf-story-viewer {
    padding: 0;
    background: #000000;
  }

  .apf-story-viewer-stage {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    border-radius: 0;
  }

  .apf-story-navigation {
    width: 35%;
    height: 60%;
    top: 20%;
    opacity: 0;
  }
}
/* REEL FOOD: FORMATO VERTICALE PROFESSIONALE */
.apf-kind-reel {
  width: min(100%, 430px);
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(8, 31, 68, .16);
}

.apf-kind-reel .apf-customer-post-video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, #172d4c, #050b14 72%);
}

.apf-kind-reel .apf-customer-post-video video {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  object-fit: contain;
  background: transparent;
}

.apf-kind-reel > header,
.apf-kind-reel .apf-customer-post-copy,
.apf-kind-reel > footer {
  background: #ffffff;
}

.apf-kind-reel .apf-customer-post-copy h3 {
  font-size: 23px;
}

.apf-kind-reel .apf-customer-kind-label {
  border-radius: 999px;
}

@media (max-width: 600px) {
  .apf-kind-reel {
    width: 100%;
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .apf-kind-reel .apf-customer-post-video {
    max-height: 78dvh;
  }
}