/*
Theme Name: Selena Italy
Theme URI: https://selenaitaly.it
Author: Selena Italy
Author URI: https://selenaitaly.it
Description: Tema WordPress per Selena Italy - Donne in rete per la crescita professionale e personale. Associazione no-profit che promuove e valorizza le competenze femminili nell'ambito dell'imprenditoria e del lavoro autonomo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: selenaitaly
Tags: one-column, two-columns, custom-menu, featured-images, translation-ready, blog, nonprofit

Selena Italy - Donne in rete per la crescita professionale e personale
*/


/* Caricamento Arial */
@font-face {
  font-family: 'SelenaArial';
  src: url('/wp-content/themes/selenaitaly/fonts/ArialMT.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
/**  font-display: swap; **/
}



/* Caricamento Calibri */
@font-face {
  font-family: 'SelenaCalibri';
  src: url('/wp-content/themes/selenaitaly/fonts/Calibri.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
/**  font-display: swap; **/
}

@font-face {
  font-family: 'SelenaCalibri';
  src: url('/wp-content/themes/selenaitaly/fonts/Calibri-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
/**  font-display: swap; **/
}



:root {
    --color-cream: #FEFDFB;
    --color-rosa: #DCAD43;
    --color-selenayellow: #E3C20E;
    --color-lavender: #F5F5F5;
/**    --color-accent: #C97B8B; **/
    --color-accent: #000000;
/**    --color-dark: #3D3D3D;**/
    --color-dark: #000000;
    --color-accent-hover: #B5677A;
    --color-accent-light: #F5ECCC;
    --color-success: #6BAF7A;
    --color-warning: #E8B84B;
    --color-error: #D85A5A;
    --color-neutral-100: #FAFAFA;
    --color-neutral-200: #F0EEEC;
    --color-neutral-300: #E0DCDA;
    --color-neutral-400: #B8B4B0;
/**    --color-neutral-500: #8A8580;**/
    --color-neutral-500: #000000;
/**    --color-neutral-600: #5C5856;**/
    --color-neutral-600: #000000;
    --color-neutral-700: #3D3D3D;

    --font-heading: 'SelenaCalibri', Calibri, Arial, sans-serif, Helvetica;
    --font-body: 'SelenaArial', Arial, sans-serif, Helvetica;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(61, 61, 61, 0.06);
    --shadow-md: 0 4px 16px rgba(61, 61, 61, 0.08);
    --shadow-lg: 0 8px 32px rgba(61, 61, 61, 0.12);

    --max-width: 1200px;
    --header-height: 96px;
    --hero-row-height: 360px;
    --hero-common-height: 236px;
}

/** Modal Popup **/

/**.truncated-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}*//

.club-card__readmore {
  display: block;
  margin: 8px auto 0;
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  background: #7a2f6b;   /* swap for your brand color */
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity .2s ease;
}
.club-card__readmore:hover { opacity: .85; }

.member-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9999;
  padding: 20px;
}
.member-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.member-modal-box {
  background: #fff;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.member-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}
.member-modal-avatar {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}
.member-modal-name { margin-top: 0; text-align: center; }
.member-modal-bio  { white-space: pre-wrap; line-height: 1.6; text-align: justify;}

.member-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9999;
  padding: 20px;
}
.member-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.member-modal-box {
  flex: 1 1 480px;
  min-width: 260px;
  max-width: 900px;
  background: #fff;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.member-modal-nav {
  flex: 0 0 auto;
  background: var(--color-selenayellow);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.member-modal-nav:hover {
  background: rgba(0,0,0,.75);
}




/* On small screens the arrows won't fit outside the box, so pull them inside 
@media (max-width: 700px) {
  .member-modal-prev { left: 8px; }
  .member-modal-next { right: 8px; }
} **/

/* Bottone + */
.plus-btn {
    position: absolute;
  bottom: -4px;
  right: -4px;
  z-index: 1;
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-selenayellow);
/**#e91e63;**/
    background: white;
/**    color: #e91e63;**/
    color: var(--color-selenayellow);
    font-size: 26px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.plus-btn:hover {
    background: var(--color-selenayellow); 
/**#e91e63;**/
    color: white;
    transform: rotate(90deg); 
    position: absolute;
  bottom: -4px;
  right: -4px;
  z-index: 1;

}

.plus-btn:active {
    transform: scale(0.9);
}


/* Zoom 70% */
.zoom70 {
  zoom: 70%;
}


/* Menu mobile parent not clickable hack */
/*.menu-item-has-children > a {
    pointer-events: auto;
    cursor: pointer;
}*/

.fancybox__iframe body header, 
x__content {
    width: 70% !important;      /* Larghezza relativa allo schermo */
    max-width: 600px !important;/* Larghezza massima su schermi grandi */
    height: 80vh !important;    /* Altezza: 80% dell'altezza dello schermo */
    max-height: 700px !important;/* Altezza massima */
    padding: 0 !important;      /* Rimuove i margini interni per gli iframe */
    border-radius: 12px;        /* Opzionale: angoli arrotondati */
}

/* Modifica specifica per schermi piccoli (Mobile) */
@media (max-width: 768px) {
    .fancybox__content {
        width: 80% !important;
        height: 90vh !important;
    }
}
.fancybox__iframe body footer,
.fancybox__iframe body .site-header, 
.fancybox__iframe body .site-footer {
    display: none !important;
}

.modal-small .fancybox__content {
    max-width: 500px !important;
    max-height: 450px !important;
}

/* Popup Grande (es. per Mappe, Cataloghi o Pagine dense) */
.modal-large .fancybox__content {
    max-width: 1200px !important;
    height: 90vh !important;
}


.wp-block-image.is-style-selenaitaly-gallery img {
            border: 2px solid currentColor;
            overflow: hidden;
            box-shadow: 0 4px  10px 0 rgba( 0, 0, 0, 0.3 );
            border-radius: 255px 15px 225px 15px/15px 225px 15px 255px !important;
        }



