/* Copyright by Manolo De Angelis */
/* ============================================
   ARROW BUTTONS SYSTEM
   Sistema modulare di bottoni con frecce direzionali
   ============================================ */

a { color:#333333; text-decoration: none;}

/* Base button styles */
.arrow-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #5c5c5c;
    padding: 30px;
    transition: all 0.3s ease;
    font-family: 'Julius Sans One', sans-serif;
    width: fit-content; /* Il bottone è largo solo quanto il contenuto */
    margin: 0 auto; /* Centra il bottone orizzontalmente */
}

.arrow-button:hover {
    transform: translateY(-2px);
}

.arrow-button:hover .button-text {
    font-weight: 700; /* Testo in grassetto al hover */
}

.button-text {
    font-size: 14px;
    letter-spacing: 2px;
    transition: font-weight 0.2s ease; /* Transizione fluida per il grassetto */
    font-family: 'Julius Sans One', sans-serif;
}

/* Arrow base styles */
.arrow-icon {
    position: relative;
    width: 4rem;
    height: 4rem;
    transition: 150ms cubic-bezier(0.25, 0.25, 0.75, 0.75);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Arrow line (common for all directions) */
.arrow-icon:before {
    content: "";
    position: absolute;
    background-color: #5c5c5c;
}

/* Arrow head (common for all directions) */
.arrow-icon:after {
    content: "";
    position: absolute;
    border-style: solid;
}

/* ============================================
   DIRECTIONAL VARIATIONS
   ============================================ */

/* DOWN ARROW */
.arrow-button.arrow-down {
    flex-direction: column;
}

.arrow-button.arrow-down .button-text {
    margin-bottom: 8px;
}

.arrow-button.arrow-down .arrow-icon:before {
    height: 1.7rem;
    width: 1px;
}

.arrow-button.arrow-down .arrow-icon:after {
    border-width: 9px 2.5px 0 2.5px;
    border-color: #5c5c5c transparent transparent transparent;
    bottom: 18px;
}

.arrow-button.arrow-down:hover .arrow-icon {
    transform: translateY(3px);
}

/* UP ARROW */
.arrow-button.arrow-up {
    flex-direction: column;
}

.arrow-button.arrow-up .button-text {
    margin-top: 8px;
    order: 2;
}

.arrow-button.arrow-up .arrow-icon:before {
    height: 1.7rem;
    width: 1px;
}

.arrow-button.arrow-up .arrow-icon:after {
    border-width: 0 2.5px 9px 2.5px;
    border-color: transparent transparent #5c5c5c transparent;
    top: 18px;
}

.arrow-button.arrow-up:hover .arrow-icon {
    transform: translateY(-3px);
}

/* LEFT ARROW */
.arrow-button.arrow-left {
    flex-direction: row;
}

.arrow-button.arrow-left .button-text {
    margin-left: 8px;
    order: 2;
}

.arrow-button.arrow-left .arrow-icon:before {
    width: 1.7rem;
    height: 1px;
}

.arrow-button.arrow-left .arrow-icon:after {
    border-width: 2.5px 9px 2.5px 0;
    border-color: transparent #5c5c5c transparent transparent;
    left: 18px;
}

.arrow-button.arrow-left:hover .arrow-icon {
    transform: translateX(-3px);
}

/* RIGHT ARROW */
.arrow-button.arrow-right {
    flex-direction: row;
}

.arrow-button.arrow-right .button-text {
    margin-right: 8px;
}

.arrow-button.arrow-right .arrow-icon:before {
    width: 1.7rem;
    height: 1px;
}

.arrow-button.arrow-right .arrow-icon:after {
    border-width: 2.5px 0 2.5px 9px;
    border-color: transparent transparent transparent #5c5c5c;
    right: 18px;
}

.arrow-button.arrow-right:hover .arrow-icon {
    transform: translateX(3px);
}

/* ============================================
   STYLE MODIFIERS
   ============================================ */

/* BORDERED VERSION */
.arrow-button.bordered {
    border: 1px solid #5c5c5c;
    border-radius: 10px;
    padding: 20px 30px;
    transition: all 0.3s ease;
}

.arrow-button.bordered:hover {
    transform: none;
}

.arrow-button.bordered.arrow-right:hover .arrow-icon {
    transform: translateX(5px);
}

.arrow-button.bordered.arrow-left:hover .arrow-icon {
    transform: translateX(-5px);
}

.arrow-button.bordered.arrow-up:hover .arrow-icon {
    transform: translateY(-5px);
}

.arrow-button.bordered.arrow-down:hover .arrow-icon {
    transform: translateY(5px);
}

/* COMPACT VERSION (less vertical padding) */
.arrow-button.compact {
    padding: 15px 30px;
}

.arrow-button.compact.bordered {
    padding: 12px 30px;
}

/* ============================================
   COLOR VARIATIONS (optional)
   ============================================ */

/* Dark theme */
.arrow-button.dark {
    color: #333;
}

.arrow-button.dark .arrow-icon:before {
    background-color: #333;
}

.arrow-button.dark .arrow-icon:after {
    border-color: #333 transparent transparent transparent;
}

.arrow-button.dark.arrow-up .arrow-icon:after {
    border-color: transparent transparent #333 transparent;
}

.arrow-button.dark.arrow-left .arrow-icon:after {
    border-color: transparent #333 transparent transparent;
}

.arrow-button.dark.arrow-right .arrow-icon:after {
    border-color: transparent transparent transparent #333;
}

/* Light theme for dark backgrounds */
.arrow-button.light {
    color: #fff;
}

.arrow-button.light .arrow-icon:before {
    background-color: #fff;
}

.arrow-button.light .arrow-icon:after {
    border-color: #fff transparent transparent transparent;
}

.arrow-button.light.arrow-up .arrow-icon:after {
    border-color: transparent transparent #fff transparent;
}

.arrow-button.light.arrow-left .arrow-icon:after {
    border-color: transparent #fff transparent transparent;
}

.arrow-button.light.arrow-right .arrow-icon:after {
    border-color: transparent transparent transparent #fff;
}

.arrow-button.light.bordered {
    border-color: #fff;
}

.arrow-button.light.bordered:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER POLICY BUTTONS
   ============================================ */

.footer-policy-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.footer-policy-button,
a.footer-policy-button,
.light a.footer-policy-button,
.dark a.footer-policy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 8px;
    background: #3c5170;
    color: #ffffff !important;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-policy-button:hover,
.footer-policy-button:focus,
a.footer-policy-button:hover,
a.footer-policy-button:focus,
.light a.footer-policy-button:hover,
.light a.footer-policy-button:focus,
.dark a.footer-policy-button:hover,
.dark a.footer-policy-button:focus {
    background: #bf9f56;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* ============================================
   WHATSAPP WIDGET
   ============================================ */

.wa-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 1024px) {
    .wa-widget {
        display: flex;
    }
}

.wa-widget__button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #bf9f56;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.wa-widget__button svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: currentColor;
    flex: 0 0 auto;
}

.wa-widget__button:hover {
    transform: translateY(-2px);
}

.wa-widget__chat {
    width: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.wa-widget.is-open .wa-widget__chat {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wa-widget__header {
    background: #2f2f2f;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-widget__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

.wa-widget__title {
    flex: 1;
}

.wa-widget__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.wa-widget__status {
    font-size: 0.8rem;
    opacity: 0.85;
}

.wa-widget__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.wa-widget__body {
    padding: 16px;
    background: #ece5dd;
}

.wa-widget__bubble {
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 14px;
}

.wa-widget__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background: #bf9f56;
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
}
