/* 
  Theme Name: Hello Elementor Child
  Theme URI: https://github.com/elementor/hello-theme-child/
  Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
  Author: Giuseppe Pisani
  Author URI: https://www.giuseppepisani.dev/
  Template: hello-elementor
  Version: 2.0.0
  Text Domain: hello-elementor-child
  License: GNU General Public License v3 or later.
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Add your custom styles here */

html {
  font-size: 19px;
}


/* ---------------------------------------------------------
   2. VARIABILI
   --------------------------------------------------------- */
:root {
  /* ---- Font ---- */
  --fontTitle: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --fontText: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* ---- Colori testo ---- */
  --colorBlack: #141F3D;
  --colorBlue: #223360;
  --colorYellow: #F9A81B;
  --colorCream: #F6F2EA;
  --colorWhite: #FFFFFF;
  --colorGrey: #3A4660;
  --colorLightGrey: #B9C2D6;
  --colorBorder: #DDD4C2;

  /* ---- Colori testo in hover ---- */
  --hoverColorBlack: #223360;
  --hoverColorBlue: #1A2850;
  --hoverColorYellow: #E3940A;
  --hoverColorCream: #EDE6D8;
  --hoverColorWhite: #F6F2EA;
  --hoverColorGrey: #223360;
  --hoverColorLightGrey: #F6F2EA;
  --hoverColorBorder: #BDB29C;

  /* ---- Colori sfondo ---- */
  --bgColorBlack: #141F3D;
  --bgColorBlue: #223360;
  --bgColorYellow: #F9A81B;
  --bgColorCream: #F6F2EA;
  --bgColorWhite: #FFFFFF;
  --bgColorGrey: #3A4660;
  --bgColorLightGrey: #B9C2D6;
  --bgColorBorder: #DDD4C2;

  /* ---- Colori sfondo in hover ---- */
  --hoverBgColorBlack: #223360;
  --hoverBgColorBlue: #1A2850;
  --hoverBgColorYellow: #E3940A;
  --hoverBgColorCream: #EDE6D8;
  --hoverBgColorWhite: #F6F2EA;
  --hoverBgColorGrey: #223360;
  --hoverBgColorLightGrey: #F6F2EA;
  --hoverBgColorBorder: #BDB29C;

  /* ---- Titolazioni (desktop) ---- */
  --titleLev1: 7rem;        /* 133px */
  --titleLev2: 3.8rem;      /* 72px  */
  --titleLev3: 3rem;        /* 57px  */
  --titleLev4: 1.6rem;      /* 30px  */

  --lineHeightTitleLev1: 0.92;
  --lineHeightTitleLev2: 1;
  --lineHeightTitleLev3: 1;
  --lineHeightTitleLev4: 1.1;

  /* ---- Paragrafi (desktop) ---- */
  --bigParagraph: 1.1rem;   /* 21px */
  --paragraph: 1rem;        /* 19px */
  --smallParagraph: 0.75rem;/* 14px */

  --lineHeightParagraph: 1.6;
  --lineHeightSmallParagraph: 1.5;

  /* ---- Testi di servizio ---- */
  --labelText: 0.75rem;     /* 14px - occhielli sopra i titoli */
  --buttonText: 0.8rem;     /* 15px */
  --menuText: 0.8rem;       /* 15px */

  --letterSpacingLabel: 3px;
  --letterSpacingButton: 1px;
  --letterSpacingMenu: 1px;

  /* ---- Pesi ---- */
  --weightRegular: 400;
  --weightMedium: 500;
  --weightBold: 700;

  /* ---- Layout ---- */
  --containerWidth: 1320px;
  --containerPadding: 40px;
  --sectionSpacing: 100px;
  --gapLarge: 56px;
  --gapMedium: 24px;
  --gapSmall: 14px;

  /* ---- Arrotondamenti ---- */
  --radiusPill: 999px;
  --radiusLarge: 28px;      /* blocchi grandi, hero, card eventi */
  --radiusMedium: 20px;     /* card piatti */
  --radiusSmall: 12px;      /* input */

  /* ---- Bottoni ---- */
  --buttonPaddingY: 18px;
  --buttonPaddingX: 30px;
  --buttonMinHeight: 48px;

  /* ---- Transizioni ---- */
  --transition: 0.2s ease;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  :root {
    --titleLev1: 5rem;      /* 95px */
    --titleLev2: 3rem;      /* 57px */
    --titleLev3: 2.3rem;    /* 44px */
    --titleLev4: 1.4rem;    /* 27px */

    --bigParagraph: 1.05rem;/* 20px */
    --paragraph: 1rem;      /* 19px */
    --smallParagraph: 0.75rem;

    --containerPadding: 32px;
    --sectionSpacing: 72px;
    --gapLarge: 40px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  :root {
    --titleLev1: 3.8rem;    /* 72px */
    --titleLev2: 2.3rem;    /* 44px */
    --titleLev3: 1.9rem;    /* 36px */
    --titleLev4: 1.25rem;   /* 24px */

    --bigParagraph: 1rem;   /* 19px */
    --paragraph: 0.9rem;    /* 17px */
    --smallParagraph: 0.7rem;/* 13px */

    --labelText: 0.65rem;   /* 12px */
    --buttonText: 0.75rem;  /* 14px */
    --letterSpacingLabel: 2px;

    --containerPadding: 20px;
    --sectionSpacing: 40px;
    --gapLarge: 24px;
    --gapMedium: 16px;
    --gapSmall: 10px;

    --radiusLarge: 22px;
    --radiusMedium: 18px;

    --buttonPaddingY: 14px;
    --buttonPaddingX: 24px;
  }
}


/* ---------------------------------------------------------
   3. BASE DOCUMENTO
   --------------------------------------------------------- */
body {
  font-family: var(--fontText);
  font-size: var(--paragraph);
  line-height: var(--lineHeightParagraph);
  color: var(--colorBlack);
  background-color: var(--bgColorCream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--colorBlue);
  transition: color var(--transition);
}
a:hover {
  color: var(--hoverColorBlue);
}

::selection {
  background: var(--bgColorYellow);
  color: var(--colorBlack);
}

:focus-visible {
  outline: 3px solid var(--colorYellow);
  outline-offset: 3px;
}


/* ---------------------------------------------------------
   4. TITOLAZIONI
   Le classi funzionano sia sul tag diretto (h1.titleLev1)
   sia come "Classi CSS" del widget Titolo di Elementor
   (raggiungono .elementor-heading-title al suo interno).
   --------------------------------------------------------- */
.titleLev1,
.titleLev1 .elementor-heading-title,
.titleLev2,
.titleLev2 .elementor-heading-title,
.titleLev3,
.titleLev3 .elementor-heading-title,
.titleLev4,
.titleLev4 .elementor-heading-title {
  font-family: var(--fontTitle);
  font-weight: var(--weightRegular);
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0;
}

.titleLev1,
.titleLev1 .elementor-heading-title {
  font-size: var(--titleLev1);
  line-height: var(--lineHeightTitleLev1);
}

.titleLev2,
.titleLev2 .elementor-heading-title {
  font-size: var(--titleLev2);
  line-height: var(--lineHeightTitleLev2);
}

.titleLev3,
.titleLev3 .elementor-heading-title {
  font-size: var(--titleLev3);
  line-height: var(--lineHeightTitleLev3);
}

.titleLev4,
.titleLev4 .elementor-heading-title {
  font-size: var(--titleLev4);
  line-height: var(--lineHeightTitleLev4);
}


/* ---------------------------------------------------------
   5. PARAGRAFI E TESTI DI SERVIZIO
   Funzionano sul tag diretto o sul widget Editor di testo.
   --------------------------------------------------------- */
.bigParagraph,
.bigParagraph p {
  font-family: var(--fontText);
  font-size: var(--bigParagraph);
  font-weight: var(--weightRegular);
  line-height: var(--lineHeightParagraph);
}

.paragraph,
.paragraph p {
  font-family: var(--fontText);
  font-size: var(--paragraph);
  font-weight: var(--weightRegular);
  line-height: var(--lineHeightParagraph);
}

.smallParagraph,
.smallParagraph p {
  font-family: var(--fontText);
  font-size: var(--smallParagraph);
  font-weight: var(--weightRegular);
  line-height: var(--lineHeightSmallParagraph);
}

/* Occhiello sopra i titoli (es. "La nostra specialità") */
.labelText,
.labelText p,
.labelText .elementor-heading-title {
  font-family: var(--fontText);
  font-size: var(--labelText);
  font-weight: var(--weightBold);
  line-height: 1.4;
  letter-spacing: var(--letterSpacingLabel);
  text-transform: uppercase;
}

.menuText,
.menuText a {
  font-family: var(--fontText);
  font-size: var(--menuText);
  font-weight: var(--weightMedium);
  letter-spacing: var(--letterSpacingMenu);
  text-transform: uppercase;
  text-decoration: none;
}

/* Prezzo nelle card e nel menu */
.priceText {
  font-family: var(--fontText);
  font-size: var(--paragraph);
  font-weight: var(--weightBold);
  color: var(--colorBlue);
  white-space: nowrap;
}

/* Margini paragrafi dentro l'Editor di testo */
.bigParagraph p:last-child,
.paragraph p:last-child,
.smallParagraph p:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   6. COLORI TESTO
   .colorX            → colore del testo
   .hoverColorX:hover → colore del testo al passaggio del mouse
   --------------------------------------------------------- */
.colorBlack, .colorBlack :is(h1,h2,h3,h4,h5,h6,p,span,li,.elementor-heading-title) { color: var(--colorBlack); }
.colorBlue, .colorBlue :is(h1,h2,h3,h4,h5,h6,p,span,li,.elementor-heading-title) { color: var(--colorBlue); }
.colorYellow, .colorYellow :is(h1,h2,h3,h4,h5,h6,p,span,li,.elementor-heading-title) { color: var(--colorYellow); }
.colorCream, .colorCream :is(h1,h2,h3,h4,h5,h6,p,span,li,.elementor-heading-title) { color: var(--colorCream); }
.colorWhite, .colorWhite :is(h1,h2,h3,h4,h5,h6,p,span,li,.elementor-heading-title) { color: var(--colorWhite); }
.colorGrey, .colorGrey :is(h1,h2,h3,h4,h5,h6,p,span,li,.elementor-heading-title) { color: var(--colorGrey); }
.colorLightGrey, .colorLightGrey :is(h1,h2,h3,h4,h5,h6,p,span,li,.elementor-heading-title) { color: var(--colorLightGrey); }
.colorBorder, .colorBorder :is(h1,h2,h3,h4,h5,h6,p,span,li,.elementor-heading-title) { color: var(--colorBorder); }

/* I link dentro un blocco colorato ereditano il suo colore */
:is(.colorBlack,.colorBlue,.colorYellow,.colorCream,.colorWhite,.colorGrey,.colorLightGrey,.colorBorder) a {
  color: inherit;
}

.hoverColorBlack, .hoverColorBlue, .hoverColorYellow, .hoverColorCream,
.hoverColorWhite, .hoverColorGrey, .hoverColorLightGrey, .hoverColorBorder {
  transition: color var(--transition);
}
.hoverColorBlack:hover, .hoverColorBlack:hover :is(a,.elementor-heading-title) { color: var(--hoverColorBlack); }
.hoverColorBlue:hover, .hoverColorBlue:hover :is(a,.elementor-heading-title) { color: var(--hoverColorBlue); }
.hoverColorYellow:hover, .hoverColorYellow:hover :is(a,.elementor-heading-title) { color: var(--hoverColorYellow); }
.hoverColorCream:hover, .hoverColorCream:hover :is(a,.elementor-heading-title) { color: var(--hoverColorCream); }
.hoverColorWhite:hover, .hoverColorWhite:hover :is(a,.elementor-heading-title) { color: var(--hoverColorWhite); }
.hoverColorGrey:hover, .hoverColorGrey:hover :is(a,.elementor-heading-title) { color: var(--hoverColorGrey); }
.hoverColorLightGrey:hover, .hoverColorLightGrey:hover :is(a,.elementor-heading-title) { color: var(--hoverColorLightGrey); }
.hoverColorBorder:hover, .hoverColorBorder:hover :is(a,.elementor-heading-title) { color: var(--hoverColorBorder); }


/* ---------------------------------------------------------
   7. COLORI SFONDO
   .bgColorX              → colore di sfondo
   .hoverBgColorX:hover   → sfondo al passaggio del mouse
   --------------------------------------------------------- */
.bgColorBlack { background-color: var(--bgColorBlack); }
.bgColorBlue { background-color: var(--bgColorBlue); }
.bgColorYellow { background-color: var(--bgColorYellow); }
.bgColorCream { background-color: var(--bgColorCream); }
.bgColorWhite { background-color: var(--bgColorWhite); }
.bgColorGrey { background-color: var(--bgColorGrey); }
.bgColorLightGrey { background-color: var(--bgColorLightGrey); }
.bgColorBorder { background-color: var(--bgColorBorder); }

.hoverBgColorBlack, .hoverBgColorBlue, .hoverBgColorYellow, .hoverBgColorCream,
.hoverBgColorWhite, .hoverBgColorGrey, .hoverBgColorLightGrey, .hoverBgColorBorder {
  transition: background-color var(--transition);
}
.hoverBgColorBlack:hover { background-color: var(--hoverBgColorBlack); }
.hoverBgColorBlue:hover { background-color: var(--hoverBgColorBlue); }
.hoverBgColorYellow:hover { background-color: var(--hoverBgColorYellow); }
.hoverBgColorCream:hover { background-color: var(--hoverBgColorCream); }
.hoverBgColorWhite:hover { background-color: var(--hoverBgColorWhite); }
.hoverBgColorGrey:hover { background-color: var(--hoverBgColorGrey); }
.hoverBgColorLightGrey:hover { background-color: var(--hoverBgColorLightGrey); }
.hoverBgColorBorder:hover { background-color: var(--hoverBgColorBorder); }


.btnPrimary, .btnPrimary .elementor-button,
.btnDark, .btnDark .elementor-button,
.btnBlue, .btnBlue .elementor-button,
.btnOutlineLight, .btnOutlineLight .elementor-button,
.btnOutlineBlue, .btnOutlineBlue .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--buttonMinHeight);
  padding: var(--buttonPaddingY) var(--buttonPaddingX);
  border: 2px solid transparent;
  border-radius: var(--radiusPill);
  font-family: var(--fontText);
  font-size: var(--buttonText);
  font-weight: var(--weightBold);
  line-height: 1;
  letter-spacing: var(--letterSpacingButton);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

/* Gialla */
.btnPrimary, .btnPrimary .elementor-button {
  background-color: var(--bgColorYellow);
  border-color: var(--bgColorYellow);
  color: var(--colorBlack);
}
.btnPrimary:hover, .btnPrimary .elementor-button:hover {
  background-color: var(--hoverBgColorYellow);
  border-color: var(--hoverBgColorYellow);
  color: var(--colorBlack);
}

/* Blu scuro */
.btnDark, .btnDark .elementor-button {
  background-color: var(--bgColorBlack);
  border-color: var(--bgColorBlack);
  color: var(--colorCream);
}
.btnDark:hover, .btnDark .elementor-button:hover {
  background-color: var(--hoverBgColorBlack);
  border-color: var(--hoverBgColorBlack);
  color: var(--colorCream);
}

/* Blu */
.btnBlue, .btnBlue .elementor-button {
  background-color: var(--bgColorBlue);
  border-color: var(--bgColorBlue);
  color: var(--colorCream);
}
.btnBlue:hover, .btnBlue .elementor-button:hover {
  background-color: var(--hoverBgColorBlue);
  border-color: var(--hoverBgColorBlue);
  color: var(--colorCream);
}

/* Contorno chiaro (su fondi blu) */
.btnOutlineLight, .btnOutlineLight .elementor-button {
  background-color: transparent;
  border-color: var(--colorCream);
  color: var(--colorCream);
}
.btnOutlineLight:hover, .btnOutlineLight .elementor-button:hover {
  background-color: var(--bgColorCream);
  border-color: var(--bgColorCream);
  color: var(--colorBlue);
}

/* Contorno blu (su fondi chiari) */
.btnOutlineBlue, .btnOutlineBlue .elementor-button {
  background-color: transparent;
  border-color: var(--colorBlue);
  color: var(--colorBlue);
}
.btnOutlineBlue:hover, .btnOutlineBlue .elementor-button:hover {
  background-color: var(--bgColorBlue);
  border-color: var(--bgColorBlue);
  color: var(--colorCream);
}

@media (max-width: 767px) {
  .btnFullMobile,
  .btnFullMobile .elementor-button {
    display: flex;
    width: 100%;
  }
}

/* Link testuale con freccia ("Tutto il menu") */
.linkArrow, .linkArrow a {
  font-family: var(--fontText);
  font-size: var(--buttonText);
  font-weight: var(--weightBold);
  letter-spacing: var(--letterSpacingButton);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--colorBlue);
}
.linkArrow:hover, .linkArrow a:hover {
  color: var(--hoverColorBlue);
}


/* ---------------------------------------------------------
   9. LAYOUT
   --------------------------------------------------------- */
.containerMalidea {
  width: 100%;
  max-width: var(--containerWidth);
  margin-inline: auto;
  padding-inline: var(--containerPadding);
  box-sizing: border-box;
}

.sectionSpacing {
  padding-block: var(--sectionSpacing);
}

.radiusLarge { border-radius: var(--radiusLarge); overflow: hidden; }
.radiusMedium { border-radius: var(--radiusMedium); overflow: hidden; }
.radiusSmall { border-radius: var(--radiusSmall); overflow: hidden; }
.radiusPill { border-radius: var(--radiusPill); }


/* ---------------------------------------------------------
   10. COMPONENTI
   --------------------------------------------------------- */

/* Card grande (Aperitivo / Eventi / Prenota) */
.cardBlock {
  border-radius: var(--radiusLarge);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 767px) {
  .cardBlock { padding: 28px; }
}

/* Card piatto (immagine + nome + prezzo + descrizione) */
.cardDish {
  display: flex;
  flex-direction: column;
  gap: var(--gapSmall);
}
.cardDish img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radiusMedium);
}
.cardDishHead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

/* Riga del menu (nome, prezzo, ingredienti) */
.menuItem {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--hoverColorBorder);
}
.menuItemHead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

/* Schede categorie del menu (Pinse, Burger, Drink...) */
.menuTab {
  min-height: var(--buttonMinHeight);
  padding: 0 22px;
  border: 2px solid var(--colorBlue);
  border-radius: var(--radiusPill);
  background-color: transparent;
  color: var(--colorBlue);
  font-family: var(--fontText);
  font-size: var(--buttonText);
  font-weight: var(--weightBold);
  letter-spacing: var(--letterSpacingButton);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.menuTab:hover,
.menuTab.isActive,
.menuTab[aria-selected="true"] {
  background-color: var(--bgColorBlue);
  color: var(--colorCream);
}

/* Riga abbinamento Pinsa & Drink (su fondo blu) */
.pairingRow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(246, 242, 234, 0.35);
  font-size: var(--bigParagraph);
}
.pairingRow strong { color: var(--colorCream); }
.pairingRow span { color: var(--colorYellow); }

/* Banda scorrevole gialla */
.marqueeBand {
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--bgColorYellow);
  color: var(--colorBlack);
  padding: 16px 0;
  font-family: var(--fontTitle);
  font-size: var(--titleLev4);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.marqueeBand .marqueeTrack {
  display: inline-block;
  padding-left: 100%;
  animation: malideaMarquee 30s linear infinite;
}
@keyframes malideaMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Citazione recensione */
.quoteBlock {
  margin: 0;
  font-family: var(--fontTitle);
  font-size: var(--titleLev3);
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
}

/* Form (prenotazione e newsletter) */
.formMalidea label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--smallParagraph);
  font-weight: var(--weightBold);
  letter-spacing: var(--letterSpacingButton);
  text-transform: uppercase;
}
.formMalidea input,
.formMalidea select,
.formMalidea textarea {
  padding: 14px;
  border: 1px solid var(--colorBorder);
  border-radius: var(--radiusSmall);
  background-color: var(--bgColorWhite);
  color: var(--colorBlack);
  font-family: var(--fontText);
  font-size: 16px; /* evita lo zoom automatico su iPhone */
}
.formMalidea input:focus,
.formMalidea select:focus,
.formMalidea textarea:focus {
  outline: 3px solid var(--colorYellow);
  outline-offset: 1px;
  border-color: var(--colorBlue);
}

/* Nasconde la linguetta fissa "Gestisci consenso" */
.cmplz-manage-consent {
	display: none !important;
}

/* Barra fissa mobile (Chiama / Prenota) */
.stickyMobileBar { display: none; }
@media (max-width: 767px) {
  .stickyMobileBar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background-color: var(--bgColorCream);
    border-top: 1px solid var(--colorBorder);
  }
  .stickyMobileBar > * { flex: 1; }
  body { padding-bottom: 80px; }
}


/* ---------------------------------------------------------
   11. ACCESSIBILITÀ
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marqueeBand .marqueeTrack {
    animation: none;
    padding-left: 0;
  }
}